@fluidgrids/workflows 2026.1029.1 → 2026.1030.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.
Files changed (118) hide show
  1. package/README.md +112 -4
  2. package/dist/{activation-CESehfYi.d.cts → activation-DqUfpHzk.d.cts} +1 -1
  3. package/dist/{activation-BnVQMv9y.d.ts → activation-xpx1oWuo.d.ts} +1 -1
  4. package/dist/{chunk-MJ5TGYVG.js → chunk-2D3MYIIF.js} +969 -153
  5. package/dist/{chunk-2B37XAFQ.cjs → chunk-3U2NU7YC.cjs} +24 -11
  6. package/dist/{chunk-NEIUQASE.cjs → chunk-4QKB4ARC.cjs} +3 -3
  7. package/dist/{chunk-GBQ33SIZ.cjs → chunk-54FLQNUM.cjs} +12 -1
  8. package/dist/{chunk-2DDULZFM.js → chunk-5HIVIV53.js} +86 -75
  9. package/dist/chunk-5MFVJM76.js +1222 -0
  10. package/dist/{chunk-EWYADREB.cjs → chunk-672KMMBK.cjs} +2 -2
  11. package/dist/{chunk-KXJDRQ6G.js → chunk-6A2FGSUS.js} +22 -2
  12. package/dist/{chunk-OIX4O6UR.js → chunk-6OLN6BMB.js} +16 -3
  13. package/dist/{chunk-6FSHT5IL.js → chunk-7EZIANC7.js} +1 -1
  14. package/dist/chunk-A5SXCA62.cjs +93 -0
  15. package/dist/chunk-AC6ZEXVR.js +85 -0
  16. package/dist/{chunk-FWBRQWRX.js → chunk-AE5Q6ZAJ.js} +167 -10
  17. package/dist/{chunk-7ILGCUI6.js → chunk-C4F5KJTI.js} +142 -3
  18. package/dist/{chunk-WXXNCHUY.js → chunk-G5H32GIG.js} +1 -1
  19. package/dist/{chunk-OMY3CKUZ.cjs → chunk-GEQDGUGB.cjs} +1042 -226
  20. package/dist/{chunk-25BKWR2O.js → chunk-HCM7ZC7Q.js} +1 -1
  21. package/dist/{chunk-I47EENR4.cjs → chunk-HMZUGSMU.cjs} +673 -156
  22. package/dist/{chunk-NXFBVDOI.cjs → chunk-IQPXHQQQ.cjs} +8 -4
  23. package/dist/{chunk-RUQIMTN5.cjs → chunk-ISOIA7NV.cjs} +178 -15
  24. package/dist/chunk-JSC75O5C.cjs +167 -0
  25. package/dist/{chunk-BD7ZPG53.js → chunk-NWQ5WRLE.js} +10 -2
  26. package/dist/chunk-ODZ2IAR2.cjs +1247 -0
  27. package/dist/{chunk-FQSJI5NV.js → chunk-SR7TR5KX.js} +6 -2
  28. package/dist/{chunk-OKX3FYIM.cjs → chunk-TCTE7DX5.cjs} +3 -3
  29. package/dist/{chunk-3FIDHONL.cjs → chunk-TYF56RGB.cjs} +99 -80
  30. package/dist/{chunk-J3PYFGKA.cjs → chunk-VA4OFR72.cjs} +162 -4
  31. package/dist/chunk-VU5S5A7V.js +150 -0
  32. package/dist/{chunk-A36CCOWS.js → chunk-YEHR4NNE.js} +633 -128
  33. package/dist/{chunk-ELL2RBML.cjs → chunk-ZCGKGDCL.cjs} +23 -1
  34. package/dist/codegen/index.d.cts +2 -2
  35. package/dist/codegen/index.d.ts +2 -2
  36. package/dist/{collect-BTHjQaSp.d.ts → collect-6NIEufHd.d.ts} +20 -3
  37. package/dist/{collect-CSyOg5XC.d.cts → collect-CcTCKqx6.d.cts} +20 -3
  38. package/dist/{file-cgL9l9l8.d.cts → file-BxYpwjRQ.d.cts} +250 -15
  39. package/dist/{file-olQudcx5.d.ts → file-CFdPQJI9.d.ts} +250 -15
  40. package/dist/history/index.cjs +283 -106
  41. package/dist/history/index.d.cts +549 -10
  42. package/dist/history/index.d.ts +549 -10
  43. package/dist/history/index.js +5 -4
  44. package/dist/index.cjs +146 -53
  45. package/dist/index.d.cts +38 -14
  46. package/dist/index.d.ts +38 -14
  47. package/dist/index.js +6 -5
  48. package/dist/interceptors-CNcr2dlk.d.ts +159 -0
  49. package/dist/interceptors-CqkNZVfI.d.cts +159 -0
  50. package/dist/ir/index.cjs +339 -36
  51. package/dist/ir/index.d.cts +244 -8
  52. package/dist/ir/index.d.ts +244 -8
  53. package/dist/ir/index.js +306 -21
  54. package/dist/{lower-3S6PsqjJ.d.cts → lower-BtRfIW2A.d.cts} +23 -9
  55. package/dist/{lower-DmZpQ8hJ.d.ts → lower-CpsMFOFX.d.ts} +23 -9
  56. package/dist/{manifest-BJjrQt77.d.ts → manifest-D-I_twys.d.ts} +1 -1
  57. package/dist/{manifest-gRI2Q5Fj.d.cts → manifest-DahBQVM8.d.cts} +1 -1
  58. package/dist/node-evaluator-DGQDPSPI.cjs +24 -0
  59. package/dist/node-evaluator-LEEVD7H7.js +14 -0
  60. package/dist/payload-fields-BVRQn2yH.d.cts +122 -0
  61. package/dist/payload-fields-oOBWxDiG.d.ts +122 -0
  62. package/dist/quickjs/index.cjs +27 -27
  63. package/dist/quickjs/index.d.cts +6 -6
  64. package/dist/quickjs/index.d.ts +6 -6
  65. package/dist/quickjs/index.js +9 -9
  66. package/dist/roundtrip/index.cjs +72 -66
  67. package/dist/roundtrip/index.d.cts +25 -11
  68. package/dist/roundtrip/index.d.ts +25 -11
  69. package/dist/roundtrip/index.js +13 -11
  70. package/dist/runtime/index.cjs +19 -19
  71. package/dist/runtime/index.d.cts +139 -12
  72. package/dist/runtime/index.d.ts +139 -12
  73. package/dist/runtime/index.js +6 -6
  74. package/dist/testing/index.cjs +688 -121
  75. package/dist/testing/index.d.cts +174 -10
  76. package/dist/testing/index.d.ts +174 -10
  77. package/dist/testing/index.js +646 -82
  78. package/dist/{types-CnIOinoz.d.ts → types-Bv2i4cBX.d.cts} +126 -23
  79. package/dist/{types-CQKOhPTa.d.cts → types-DGx-b9eq.d.ts} +126 -23
  80. package/dist/{types-Bb2wRnJ5.d.cts → types-V7jEEUaL.d.cts} +1 -1
  81. package/dist/{types-Bb2wRnJ5.d.ts → types-V7jEEUaL.d.ts} +1 -1
  82. package/dist/{workflow-8uRU9rhL.d.ts → workflow-B18OeF7g.d.ts} +2 -2
  83. package/dist/{workflow-DWTPHFbt.d.ts → workflow-BGnv8SS6.d.ts} +261 -14
  84. package/dist/{workflow-CZOXUlQ5.d.cts → workflow-BJPFv3cp.d.cts} +2 -2
  85. package/dist/{workflow-O6e64ZcG.d.cts → workflow-DS32Gtws.d.cts} +261 -14
  86. package/fixtures/histories/activity-options-updated.history.json +159 -0
  87. package/fixtures/histories/activity-paused-unpaused.history.json +160 -0
  88. package/fixtures/histories/codec-opaque.history.json +229 -0
  89. package/fixtures/histories/dynamic-workflow.history.json +150 -0
  90. package/fixtures/histories/interceptor-headers.history.json +339 -0
  91. package/fixtures/histories/query-custom.history.json +213 -0
  92. package/fixtures/histories/query-default-handler.history.json +120 -0
  93. package/fixtures/histories/reset-forked-reapplied-signals.history.json +239 -0
  94. package/fixtures/histories/reset-reapplied-update-admitted.history.json +228 -0
  95. package/fixtures/histories/search-attributes-upserted.history.json +177 -0
  96. package/fixtures/histories/update-accepted-completed.history.json +45 -30
  97. package/fixtures/histories/update-default-handler.history.json +246 -0
  98. package/fixtures/histories/update-handler-awaits-activity.history.json +196 -0
  99. package/fixtures/histories/update-not-handled.history.json +138 -0
  100. package/fixtures/histories/update-rejected-no-event.history.json +190 -0
  101. package/fixtures/histories/update-with-start-admitted.history.json +150 -0
  102. package/fixtures/histories/user-activity-cancel.history.json +149 -0
  103. package/fixtures/histories/user-activity-retry.history.json +143 -0
  104. package/fixtures/histories/user-activity.history.json +149 -0
  105. package/package.json +1 -1
  106. package/schema/bridge-v2.schema.json +1062 -0
  107. package/schema/history-file.schema.json +255 -81
  108. package/schema/ir-v2.schema.json +246 -1
  109. package/schema/payload-fields.json +162 -0
  110. package/schema/run-event.schema.json +239 -80
  111. package/schema/workflow-command.schema.json +210 -84
  112. package/schema/workflow-task.schema.json +532 -167
  113. package/dist/chunk-6QPOJZT6.cjs +0 -1180
  114. package/dist/chunk-A2OHX3UQ.js +0 -1156
  115. package/dist/chunk-PWIUEWC3.js +0 -81
  116. package/dist/chunk-YHBVMOMK.cjs +0 -87
  117. package/dist/node-evaluator-SOADN23V.js +0 -14
  118. package/dist/node-evaluator-YGDEXK4U.cjs +0 -24
package/dist/index.cjs CHANGED
@@ -1,102 +1,103 @@
1
1
  'use strict';
2
2
 
3
- var chunk2B37XAFQ_cjs = require('./chunk-2B37XAFQ.cjs');
4
- var chunkNXFBVDOI_cjs = require('./chunk-NXFBVDOI.cjs');
3
+ var chunk3U2NU7YC_cjs = require('./chunk-3U2NU7YC.cjs');
4
+ var chunkIQPXHQQQ_cjs = require('./chunk-IQPXHQQQ.cjs');
5
5
  require('./chunk-G4UEPUGO.cjs');
6
6
  var chunkGVTZMA5C_cjs = require('./chunk-GVTZMA5C.cjs');
7
7
  require('./chunk-TBDXTV22.cjs');
8
+ var chunkJSC75O5C_cjs = require('./chunk-JSC75O5C.cjs');
8
9
  require('./chunk-SAENRNBJ.cjs');
9
- var chunkELL2RBML_cjs = require('./chunk-ELL2RBML.cjs');
10
- var chunkJ3PYFGKA_cjs = require('./chunk-J3PYFGKA.cjs');
10
+ var chunkZCGKGDCL_cjs = require('./chunk-ZCGKGDCL.cjs');
11
+ var chunkVA4OFR72_cjs = require('./chunk-VA4OFR72.cjs');
11
12
  require('./chunk-FR7KYWRO.cjs');
12
- require('./chunk-YHBVMOMK.cjs');
13
+ require('./chunk-TYF56RGB.cjs');
13
14
  require('./chunk-Z2Y65YOY.cjs');
14
15
 
15
16
 
16
17
 
17
18
  Object.defineProperty(exports, "COLLECTION_FORMAT", {
18
19
  enumerable: true,
19
- get: function () { return chunk2B37XAFQ_cjs.COLLECTION_FORMAT; }
20
+ get: function () { return chunk3U2NU7YC_cjs.COLLECTION_FORMAT; }
20
21
  });
21
22
  Object.defineProperty(exports, "collectWorkflowExports", {
22
23
  enumerable: true,
23
- get: function () { return chunk2B37XAFQ_cjs.collectWorkflowExports; }
24
+ get: function () { return chunk3U2NU7YC_cjs.collectWorkflowExports; }
24
25
  });
25
26
  Object.defineProperty(exports, "LAYOUT_FORMAT", {
26
27
  enumerable: true,
27
- get: function () { return chunkNXFBVDOI_cjs.LAYOUT_FORMAT; }
28
+ get: function () { return chunkIQPXHQQQ_cjs.LAYOUT_FORMAT; }
28
29
  });
29
30
  Object.defineProperty(exports, "LAYOUT_FORMAT_VERSION", {
30
31
  enumerable: true,
31
- get: function () { return chunkNXFBVDOI_cjs.LAYOUT_FORMAT_VERSION; }
32
+ get: function () { return chunkIQPXHQQQ_cjs.LAYOUT_FORMAT_VERSION; }
32
33
  });
33
34
  Object.defineProperty(exports, "RECORDING_FORMAT", {
34
35
  enumerable: true,
35
- get: function () { return chunkNXFBVDOI_cjs.RECORDING_FORMAT; }
36
+ get: function () { return chunkIQPXHQQQ_cjs.RECORDING_FORMAT; }
36
37
  });
37
38
  Object.defineProperty(exports, "RECORDING_FORMAT_VERSION", {
38
39
  enumerable: true,
39
- get: function () { return chunkNXFBVDOI_cjs.RECORDING_FORMAT_VERSION; }
40
+ get: function () { return chunkIQPXHQQQ_cjs.RECORDING_FORMAT_VERSION; }
40
41
  });
41
42
  Object.defineProperty(exports, "UnresolvedConnectionsError", {
42
43
  enumerable: true,
43
- get: function () { return chunkNXFBVDOI_cjs.UnresolvedConnectionsError; }
44
+ get: function () { return chunkIQPXHQQQ_cjs.UnresolvedConnectionsError; }
44
45
  });
45
46
  Object.defineProperty(exports, "WorkflowBuilder", {
46
47
  enumerable: true,
47
- get: function () { return chunkNXFBVDOI_cjs.WorkflowBuilder; }
48
+ get: function () { return chunkIQPXHQQQ_cjs.WorkflowBuilder; }
48
49
  });
49
50
  Object.defineProperty(exports, "assembleRecording", {
50
51
  enumerable: true,
51
- get: function () { return chunkNXFBVDOI_cjs.assembleRecording; }
52
+ get: function () { return chunkIQPXHQQQ_cjs.assembleRecording; }
52
53
  });
53
54
  Object.defineProperty(exports, "defaultEdgeId", {
54
55
  enumerable: true,
55
- get: function () { return chunkNXFBVDOI_cjs.defaultEdgeId; }
56
+ get: function () { return chunkIQPXHQQQ_cjs.defaultEdgeId; }
56
57
  });
57
58
  Object.defineProperty(exports, "defineWorkflow", {
58
59
  enumerable: true,
59
- get: function () { return chunkNXFBVDOI_cjs.defineWorkflow; }
60
+ get: function () { return chunkIQPXHQQQ_cjs.defineWorkflow; }
60
61
  });
61
62
  Object.defineProperty(exports, "edge", {
62
63
  enumerable: true,
63
- get: function () { return chunkNXFBVDOI_cjs.edge; }
64
+ get: function () { return chunkIQPXHQQQ_cjs.edge; }
64
65
  });
65
66
  Object.defineProperty(exports, "internalNodes", {
66
67
  enumerable: true,
67
- get: function () { return chunkNXFBVDOI_cjs.internalNodes; }
68
+ get: function () { return chunkIQPXHQQQ_cjs.internalNodes; }
68
69
  });
69
70
  Object.defineProperty(exports, "isOperation", {
70
71
  enumerable: true,
71
- get: function () { return chunkNXFBVDOI_cjs.isOperation; }
72
+ get: function () { return chunkIQPXHQQQ_cjs.isOperation; }
72
73
  });
73
74
  Object.defineProperty(exports, "isTier1Workflow", {
74
75
  enumerable: true,
75
- get: function () { return chunkNXFBVDOI_cjs.isTier1Workflow; }
76
+ get: function () { return chunkIQPXHQQQ_cjs.isTier1Workflow; }
76
77
  });
77
78
  Object.defineProperty(exports, "nodes", {
78
79
  enumerable: true,
79
- get: function () { return chunkNXFBVDOI_cjs.nodes; }
80
+ get: function () { return chunkIQPXHQQQ_cjs.nodes; }
80
81
  });
81
82
  Object.defineProperty(exports, "op", {
82
83
  enumerable: true,
83
- get: function () { return chunkNXFBVDOI_cjs.op; }
84
+ get: function () { return chunkIQPXHQQQ_cjs.op; }
84
85
  });
85
86
  Object.defineProperty(exports, "parseLayoutSidecar", {
86
87
  enumerable: true,
87
- get: function () { return chunkNXFBVDOI_cjs.parseLayoutSidecar; }
88
+ get: function () { return chunkIQPXHQQQ_cjs.parseLayoutSidecar; }
88
89
  });
89
90
  Object.defineProperty(exports, "toIR", {
90
91
  enumerable: true,
91
- get: function () { return chunkNXFBVDOI_cjs.toIR; }
92
+ get: function () { return chunkIQPXHQQQ_cjs.toIR; }
92
93
  });
93
94
  Object.defineProperty(exports, "trigger", {
94
95
  enumerable: true,
95
- get: function () { return chunkNXFBVDOI_cjs.trigger; }
96
+ get: function () { return chunkIQPXHQQQ_cjs.trigger; }
96
97
  });
97
98
  Object.defineProperty(exports, "triggers", {
98
99
  enumerable: true,
99
- get: function () { return chunkNXFBVDOI_cjs.triggers; }
100
+ get: function () { return chunkIQPXHQQQ_cjs.triggers; }
100
101
  });
101
102
  Object.defineProperty(exports, "BuilderError", {
102
103
  enumerable: true,
@@ -118,111 +119,203 @@ Object.defineProperty(exports, "or", {
118
119
  enumerable: true,
119
120
  get: function () { return chunkGVTZMA5C_cjs.or; }
120
121
  });
122
+ Object.defineProperty(exports, "ENCODED_PAYLOAD_MARKER", {
123
+ enumerable: true,
124
+ get: function () { return chunkJSC75O5C_cjs.ENCODED_PAYLOAD_MARKER; }
125
+ });
126
+ Object.defineProperty(exports, "isEncodedPayload", {
127
+ enumerable: true,
128
+ get: function () { return chunkJSC75O5C_cjs.isEncodedPayload; }
129
+ });
121
130
  Object.defineProperty(exports, "ActivityFailure", {
122
131
  enumerable: true,
123
- get: function () { return chunkELL2RBML_cjs.ActivityFailure; }
132
+ get: function () { return chunkZCGKGDCL_cjs.ActivityFailure; }
133
+ });
134
+ Object.defineProperty(exports, "ActivityPausedError", {
135
+ enumerable: true,
136
+ get: function () { return chunkZCGKGDCL_cjs.ActivityPausedError; }
124
137
  });
125
138
  Object.defineProperty(exports, "ApplicationError", {
126
139
  enumerable: true,
127
- get: function () { return chunkELL2RBML_cjs.ApplicationError; }
140
+ get: function () { return chunkZCGKGDCL_cjs.ApplicationError; }
128
141
  });
129
142
  Object.defineProperty(exports, "CancelledFailure", {
130
143
  enumerable: true,
131
- get: function () { return chunkELL2RBML_cjs.CancelledFailure; }
144
+ get: function () { return chunkZCGKGDCL_cjs.CancelledFailure; }
132
145
  });
133
146
  Object.defineProperty(exports, "ChildRunFailure", {
134
147
  enumerable: true,
135
- get: function () { return chunkELL2RBML_cjs.ChildRunFailure; }
148
+ get: function () { return chunkZCGKGDCL_cjs.ChildRunFailure; }
136
149
  });
137
150
  Object.defineProperty(exports, "DeterminismViolation", {
138
151
  enumerable: true,
139
- get: function () { return chunkELL2RBML_cjs.DeterminismViolation; }
152
+ get: function () { return chunkZCGKGDCL_cjs.DeterminismViolation; }
140
153
  });
141
154
  Object.defineProperty(exports, "HistoryLimitExceeded", {
142
155
  enumerable: true,
143
- get: function () { return chunkELL2RBML_cjs.HistoryLimitExceeded; }
156
+ get: function () { return chunkZCGKGDCL_cjs.HistoryLimitExceeded; }
144
157
  });
145
158
  Object.defineProperty(exports, "PhaseCFeatureError", {
146
159
  enumerable: true,
147
- get: function () { return chunkELL2RBML_cjs.PhaseCFeatureError; }
160
+ get: function () { return chunkZCGKGDCL_cjs.PhaseCFeatureError; }
161
+ });
162
+ Object.defineProperty(exports, "QueryHandlerSideEffect", {
163
+ enumerable: true,
164
+ get: function () { return chunkZCGKGDCL_cjs.QueryHandlerSideEffect; }
148
165
  });
149
166
  Object.defineProperty(exports, "ServerFailure", {
150
167
  enumerable: true,
151
- get: function () { return chunkELL2RBML_cjs.ServerFailure; }
168
+ get: function () { return chunkZCGKGDCL_cjs.ServerFailure; }
152
169
  });
153
170
  Object.defineProperty(exports, "TerminatedFailure", {
154
171
  enumerable: true,
155
- get: function () { return chunkELL2RBML_cjs.TerminatedFailure; }
172
+ get: function () { return chunkZCGKGDCL_cjs.TerminatedFailure; }
156
173
  });
157
174
  Object.defineProperty(exports, "TimeoutFailure", {
158
175
  enumerable: true,
159
- get: function () { return chunkELL2RBML_cjs.TimeoutFailure; }
176
+ get: function () { return chunkZCGKGDCL_cjs.TimeoutFailure; }
160
177
  });
161
178
  Object.defineProperty(exports, "WorkflowFailure", {
162
179
  enumerable: true,
163
- get: function () { return chunkELL2RBML_cjs.WorkflowFailure; }
180
+ get: function () { return chunkZCGKGDCL_cjs.WorkflowFailure; }
164
181
  });
165
182
  Object.defineProperty(exports, "defineQuery", {
166
183
  enumerable: true,
167
- get: function () { return chunkELL2RBML_cjs.defineQuery; }
184
+ get: function () { return chunkZCGKGDCL_cjs.defineQuery; }
168
185
  });
169
186
  Object.defineProperty(exports, "defineSignal", {
170
187
  enumerable: true,
171
- get: function () { return chunkELL2RBML_cjs.defineSignal; }
188
+ get: function () { return chunkZCGKGDCL_cjs.defineSignal; }
172
189
  });
173
190
  Object.defineProperty(exports, "defineUpdate", {
174
191
  enumerable: true,
175
- get: function () { return chunkELL2RBML_cjs.defineUpdate; }
192
+ get: function () { return chunkZCGKGDCL_cjs.defineUpdate; }
176
193
  });
177
194
  Object.defineProperty(exports, "errorToFailure", {
178
195
  enumerable: true,
179
- get: function () { return chunkELL2RBML_cjs.errorToFailure; }
196
+ get: function () { return chunkZCGKGDCL_cjs.errorToFailure; }
180
197
  });
181
198
  Object.defineProperty(exports, "failureToError", {
182
199
  enumerable: true,
183
- get: function () { return chunkELL2RBML_cjs.failureToError; }
200
+ get: function () { return chunkZCGKGDCL_cjs.failureToError; }
184
201
  });
185
202
  Object.defineProperty(exports, "isCancellation", {
186
203
  enumerable: true,
187
- get: function () { return chunkELL2RBML_cjs.isCancellation; }
204
+ get: function () { return chunkZCGKGDCL_cjs.isCancellation; }
205
+ });
206
+ Object.defineProperty(exports, "ACTIVITY_IMPL_MARKER", {
207
+ enumerable: true,
208
+ get: function () { return chunkVA4OFR72_cjs.ACTIVITY_IMPL_MARKER; }
209
+ });
210
+ Object.defineProperty(exports, "ACTIVITY_MARKER", {
211
+ enumerable: true,
212
+ get: function () { return chunkVA4OFR72_cjs.ACTIVITY_MARKER; }
188
213
  });
189
214
  Object.defineProperty(exports, "DURABLE_MARKER", {
190
215
  enumerable: true,
191
- get: function () { return chunkJ3PYFGKA_cjs.DURABLE_MARKER; }
216
+ get: function () { return chunkVA4OFR72_cjs.DURABLE_MARKER; }
217
+ });
218
+ Object.defineProperty(exports, "DYNAMIC_ACTIVITY_NAME", {
219
+ enumerable: true,
220
+ get: function () { return chunkVA4OFR72_cjs.DYNAMIC_ACTIVITY_NAME; }
221
+ });
222
+ Object.defineProperty(exports, "INTERCEPTORS_MARKER", {
223
+ enumerable: true,
224
+ get: function () { return chunkVA4OFR72_cjs.INTERCEPTORS_MARKER; }
192
225
  });
193
226
  Object.defineProperty(exports, "MAX_WORKFLOW_TASK_TIMEOUT_MS", {
194
227
  enumerable: true,
195
- get: function () { return chunkJ3PYFGKA_cjs.MAX_WORKFLOW_TASK_TIMEOUT_MS; }
228
+ get: function () { return chunkVA4OFR72_cjs.MAX_WORKFLOW_TASK_TIMEOUT_MS; }
196
229
  });
197
230
  Object.defineProperty(exports, "SDK_VERSION", {
198
231
  enumerable: true,
199
- get: function () { return chunkJ3PYFGKA_cjs.SDK_VERSION; }
232
+ get: function () { return chunkVA4OFR72_cjs.SDK_VERSION; }
233
+ });
234
+ Object.defineProperty(exports, "checkActivityName", {
235
+ enumerable: true,
236
+ get: function () { return chunkVA4OFR72_cjs.checkActivityName; }
237
+ });
238
+ Object.defineProperty(exports, "checkTaskQueueName", {
239
+ enumerable: true,
240
+ get: function () { return chunkVA4OFR72_cjs.checkTaskQueueName; }
241
+ });
242
+ Object.defineProperty(exports, "composeInterceptors", {
243
+ enumerable: true,
244
+ get: function () { return chunkVA4OFR72_cjs.compose; }
200
245
  });
201
246
  Object.defineProperty(exports, "continueAsNewRetryOf", {
202
247
  enumerable: true,
203
- get: function () { return chunkJ3PYFGKA_cjs.continueAsNewRetryOf; }
248
+ get: function () { return chunkVA4OFR72_cjs.continueAsNewRetryOf; }
249
+ });
250
+ Object.defineProperty(exports, "declareActivity", {
251
+ enumerable: true,
252
+ get: function () { return chunkVA4OFR72_cjs.declareActivity; }
253
+ });
254
+ Object.defineProperty(exports, "defineActivity", {
255
+ enumerable: true,
256
+ get: function () { return chunkVA4OFR72_cjs.defineActivity; }
257
+ });
258
+ Object.defineProperty(exports, "dynamicActivity", {
259
+ enumerable: true,
260
+ get: function () { return chunkVA4OFR72_cjs.dynamicActivity; }
261
+ });
262
+ Object.defineProperty(exports, "dynamicWorkflow", {
263
+ enumerable: true,
264
+ get: function () { return chunkVA4OFR72_cjs.dynamicWorkflow; }
265
+ });
266
+ Object.defineProperty(exports, "executeActivity", {
267
+ enumerable: true,
268
+ get: function () { return chunkVA4OFR72_cjs.executeActivity; }
269
+ });
270
+ Object.defineProperty(exports, "findActivityImplementation", {
271
+ enumerable: true,
272
+ get: function () { return chunkVA4OFR72_cjs.findActivityImplementation; }
273
+ });
274
+ Object.defineProperty(exports, "implementActivity", {
275
+ enumerable: true,
276
+ get: function () { return chunkVA4OFR72_cjs.implementActivity; }
277
+ });
278
+ Object.defineProperty(exports, "interceptorsFactoryOf", {
279
+ enumerable: true,
280
+ get: function () { return chunkVA4OFR72_cjs.interceptorsFactoryOf; }
204
281
  });
205
282
  Object.defineProperty(exports, "interfaceOf", {
206
283
  enumerable: true,
207
- get: function () { return chunkJ3PYFGKA_cjs.interfaceOf; }
284
+ get: function () { return chunkVA4OFR72_cjs.interfaceOf; }
285
+ });
286
+ Object.defineProperty(exports, "isActivityDefinition", {
287
+ enumerable: true,
288
+ get: function () { return chunkVA4OFR72_cjs.isActivityDefinition; }
289
+ });
290
+ Object.defineProperty(exports, "isActivityImplementation", {
291
+ enumerable: true,
292
+ get: function () { return chunkVA4OFR72_cjs.isActivityImplementation; }
208
293
  });
209
294
  Object.defineProperty(exports, "isDurableWorkflow", {
210
295
  enumerable: true,
211
- get: function () { return chunkJ3PYFGKA_cjs.isDurableWorkflow; }
296
+ get: function () { return chunkVA4OFR72_cjs.isDurableWorkflow; }
212
297
  });
213
298
  Object.defineProperty(exports, "jsonSchemaOf", {
214
299
  enumerable: true,
215
- get: function () { return chunkJ3PYFGKA_cjs.jsonSchemaOf; }
300
+ get: function () { return chunkVA4OFR72_cjs.jsonSchemaOf; }
301
+ });
302
+ Object.defineProperty(exports, "resolveWorkflowInterceptors", {
303
+ enumerable: true,
304
+ get: function () { return chunkVA4OFR72_cjs.resolveWorkflowInterceptors; }
216
305
  });
217
306
  Object.defineProperty(exports, "runRetryPolicyOf", {
218
307
  enumerable: true,
219
- get: function () { return chunkJ3PYFGKA_cjs.runRetryPolicyOf; }
308
+ get: function () { return chunkVA4OFR72_cjs.runRetryPolicyOf; }
220
309
  });
221
310
  Object.defineProperty(exports, "toMs", {
222
311
  enumerable: true,
223
- get: function () { return chunkJ3PYFGKA_cjs.toMs; }
312
+ get: function () { return chunkVA4OFR72_cjs.toMs; }
224
313
  });
225
314
  Object.defineProperty(exports, "workflow", {
226
315
  enumerable: true,
227
- get: function () { return chunkJ3PYFGKA_cjs.workflow; }
316
+ get: function () { return chunkVA4OFR72_cjs.workflow; }
317
+ });
318
+ Object.defineProperty(exports, "workflowInterceptors", {
319
+ enumerable: true,
320
+ get: function () { return chunkVA4OFR72_cjs.workflowInterceptors; }
228
321
  });
package/dist/index.d.cts CHANGED
@@ -1,10 +1,12 @@
1
- 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, T as Tier1Recording, 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-CZOXUlQ5.cjs';
2
- 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, k as ExternalRunTarget, F as FileRef, H as HandlerUnfinishedPolicy, L as LegacyContinueAsNewRetry, l as LocalActivityOptions, M as MAX_WORKFLOW_TASK_TIMEOUT_MS, O as Operation, Q as QueryDefinition, R as RunOptions, S as Saga, m as SchemaLike, n as SignalDefinition, o as SignalHandlerOptions, T as TriggerOperation, p as TriggerSpec, U as UpdateDefinition, W as WorkflowContext, q as WorkflowIdTarget, r as WorkflowInfo, s as WorkflowLogger, t as WorkflowRetryOptions, u as continueAsNewRetryOf, v as defineQuery, w as defineSignal, x as defineUpdate, y as interfaceOf, z as internalNodes, A as isDurableWorkflow, B as isOperation, G as jsonSchemaOf, I as nodes, J as op, K as runRetryPolicyOf, N as toMs, P as trigger, V as triggers, X as workflow } from './workflow-O6e64ZcG.cjs';
3
- export { A as AssembleOptions, C as COLLECTION_FORMAT, a as CollectedDurableWorkflow, b as CollectedTrigger, c as CollectedWorkflow, d as ConnectionResolver, L as LAYOUT_FORMAT, e as LAYOUT_FORMAT_VERSION, f as LayoutSidecar, T as Tier1Collection, U as UnresolvedConnectionsError, g as assembleRecording, h as collectWorkflowExports, p as parseLayoutSidecar, t as toIR } from './collect-CSyOg5XC.cjs';
4
- import { E as ErrorType, J as Json } from './types-Bb2wRnJ5.cjs';
5
- export { a as JsonObject, W as WorkflowDefinition } from './types-Bb2wRnJ5.cjs';
6
- import { F as Failure } from './types-CQKOhPTa.cjs';
7
- export { P as ParentClosePolicy, R as RetryPolicy, b as RunRetryPolicy, ac as VersioningBehavior, ag as WorkflowIdConflictPolicy, ah as WorkflowIdReusePolicy } from './types-CQKOhPTa.cjs';
1
+ 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, T as Tier1Recording, 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-BJPFv3cp.cjs';
2
+ export { A as ACTIVITY_IMPL_MARKER, a as ACTIVITY_MARKER, b as AbortSignalLike, c as ActivityContext, d as ActivityDeclarationOptions, e as ActivityDefinition, f as ActivityExecuteInput, g as ActivityFunction, h as ActivityImplementation, i as ActivityInboundInterceptor, j as ActivityInfo, k as ActivityOptions, l as ActivityOutboundInterceptor, C as CancellationScope, m as CancellationScopeFunction, n as CancellationScopeOptions, o as ChildHandle, p as ChildOptions, q as ChildTarget, r as ContinueAsNewOptions, D as DURABLE_MARKER, s as DYNAMIC_ACTIVITY_NAME, t as DefaultUpdateHandlerOptions, u as DefinitionOptions, v as DurableWorkflow, w as DurableWorkflowOptions, x as Duration, E as ExternalRunHandle, y as ExternalRunTarget, F as FileRef, H as HandlerUnfinishedPolicy, L as LegacyContinueAsNewRetry, z as LocalActivityOptions, M as MAX_WORKFLOW_TASK_TIMEOUT_MS, O as Operation, Q as QueryDefinition, R as RunOptions, S as Saga, B as SchemaLike, G as SignalDefinition, I as SignalHandlerOptions, T as TriggerOperation, J as TriggerSpec, U as UpdateDefinition, K as UpdateHandlerOptions, W as WorkflowContext, N as WorkflowIdTarget, P as WorkflowInfo, V as WorkflowLogger, X as WorkflowRetryOptions, Y as WorkflowSinks, Z as checkActivityName, _ as checkTaskQueueName, $ as continueAsNewRetryOf, a0 as declareActivity, a1 as defineActivity, a2 as defineQuery, a3 as defineSignal, a4 as defineUpdate, a5 as dynamicActivity, a6 as dynamicWorkflow, a7 as executeActivity, a8 as findActivityImplementation, a9 as implementActivity, aa as interfaceOf, ab as internalNodes, ac as isActivityDefinition, ad as isActivityImplementation, ae as isDurableWorkflow, af as isOperation, ag as jsonSchemaOf, ah as nodes, ai as op, aj as runRetryPolicyOf, ak as toMs, al as trigger, am as triggers, an as workflow } from './workflow-DS32Gtws.cjs';
3
+ export { A as AssembleOptions, C as COLLECTION_FORMAT, a as CollectedDurableWorkflow, b as CollectedTrigger, c as CollectedWorkflow, d as ConnectionResolver, L as LAYOUT_FORMAT, e as LAYOUT_FORMAT_VERSION, f as LayoutSidecar, T as Tier1Collection, U as UnresolvedConnectionsError, g as assembleRecording, h as collectWorkflowExports, p as parseLayoutSidecar, t as toIR } from './collect-CcTCKqx6.cjs';
4
+ import { E as ErrorType, a as Json } from './types-V7jEEUaL.cjs';
5
+ export { J as JsonObject, W as WorkflowDefinition } from './types-V7jEEUaL.cjs';
6
+ import { F as Failure } from './types-Bv2i4cBX.cjs';
7
+ export { P as ParentClosePolicy, e as RetryPolicy, f as RunRetryPolicy, at as VersioningBehavior, ax as WorkflowIdConflictPolicy, ay as WorkflowIdReusePolicy } from './types-Bv2i4cBX.cjs';
8
+ export { C as CancelRunInput, a as ContinueAsNewInput, I as INTERCEPTORS_MARKER, M as MarkedInterceptorsFactory, Q as QueryInput, S as ScheduleActivityInput, b as ScheduleLocalActivityInput, c as SignalInput, d as SignalRunInput, e as StartChildInput, f as StartTimerInput, U as UpdateInput, g as UpsertContextInput, h as UpsertSearchAttributesInput, W as WorkflowExecuteInput, i as WorkflowInboundInterceptor, j as WorkflowInterceptors, k as WorkflowInterceptorsFactory, l as WorkflowOutboundInterceptor, m as composeInterceptors, n as interceptorsFactoryOf, r as resolveWorkflowInterceptors, w as workflowInterceptors } from './interceptors-CqkNZVfI.cjs';
9
+ export { E as ENCODED_PAYLOAD_MARKER, c as EncodedPayload, i as isEncodedPayload } from './payload-fields-BVRQn2yH.cjs';
8
10
 
9
11
  /**
10
12
  * Failure classes of tier-2 workflow code (spec 02 §4, 11 §2.25).
@@ -47,12 +49,34 @@ declare class ApplicationError extends WorkflowFailure {
47
49
  readonly category: 'BENIGN' | undefined;
48
50
  constructor(message: string, options?: ApplicationErrorOptions);
49
51
  }
50
- /** The final failure of an activity, after its retries. `cause` is the last attempt's failure. */
52
+ /**
53
+ * The final failure of an activity, after its retries. `cause` is the last
54
+ * attempt's failure. A user activity (Phase C) has an empty `nodeType`, its
55
+ * name as `operation` and as `activityName`.
56
+ */
51
57
  declare class ActivityFailure extends WorkflowFailure {
52
58
  readonly activityId: string;
53
59
  readonly nodeType: string;
54
60
  readonly operation: string;
55
- constructor(message: string, activityId: string, nodeType: string, operation: string, cause: Error);
61
+ readonly activityName?: string | undefined;
62
+ constructor(message: string, activityId: string, nodeType: string, operation: string, cause: Error, activityName?: string | undefined);
63
+ }
64
+ /**
65
+ * Thrown by an activity whose attempt was paused (`pauseActivity`, 11 §2.28),
66
+ * after a heartbeat reported `paused`. The engine does not retry it while the
67
+ * activity is paused, and the workflow sees nothing: its awaitable stays
68
+ * pending until the activity is unpaused or reset.
69
+ */
70
+ declare class ActivityPausedError extends ApplicationError {
71
+ constructor(message?: string, details?: Json);
72
+ }
73
+ /**
74
+ * A query handler or an update validator tried to change the run: issue a
75
+ * command (an activity, a timer, a child, a signal, a side effect, ...) or
76
+ * call a sink. Queries and validators are read-only (05 §5, 11 §2.39).
77
+ */
78
+ declare class QueryHandlerSideEffect extends Error {
79
+ constructor(what: string);
56
80
  }
57
81
  /** A child run failed, timed out, was cancelled or terminated; `cause` says which. */
58
82
  declare class ChildRunFailure extends WorkflowFailure {
@@ -90,9 +114,9 @@ declare class HistoryLimitExceeded extends Error {
90
114
  constructor(message: string);
91
115
  }
92
116
  /**
93
- * A Phase C feature (user activities, custom queries and updates, search
94
- * attributes, sinks, interceptors) used in Phase B. Fails the workflow task
95
- * with `UNSUPPORTED_COMMAND`; `validate` reports `durable.phaseC` at push time.
117
+ * A feature this release does not run yet (from C-R1 only user local
118
+ * activities: `ctx.localActivity` with a function). Fails the workflow task
119
+ * with `UNSUPPORTED_COMMAND`; `lower()` reports `durable.phaseC` at push time.
96
120
  */
97
121
  declare class PhaseCFeatureError extends Error {
98
122
  readonly code = "durable.phaseC";
@@ -106,6 +130,6 @@ declare function errorToFailure(error: unknown, source?: string, depth?: number)
106
130
  declare function failureToError(failure: Failure, depth?: number): WorkflowFailure;
107
131
 
108
132
  /** The version of @fluidgrids/workflows. */
109
- declare const SDK_VERSION = "2026.1029.1";
133
+ declare const SDK_VERSION = "2026.1030.1";
110
134
 
111
- export { ActivityFailure, ApplicationError, type ApplicationErrorOptions, CancelledFailure, ChildRunFailure, DeterminismViolation, Failure, HistoryLimitExceeded, Json, PhaseCFeatureError, SDK_VERSION, ServerFailure, TerminatedFailure, TimeoutFailure, WorkflowFailure, errorToFailure, failureToError, isCancellation };
135
+ export { ActivityFailure, ActivityPausedError, ApplicationError, type ApplicationErrorOptions, CancelledFailure, ChildRunFailure, DeterminismViolation, Failure, HistoryLimitExceeded, Json, PhaseCFeatureError, QueryHandlerSideEffect, SDK_VERSION, ServerFailure, TerminatedFailure, TimeoutFailure, WorkflowFailure, errorToFailure, failureToError, isCancellation };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,12 @@
1
- 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, T as Tier1Recording, 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-8uRU9rhL.js';
2
- 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, k as ExternalRunTarget, F as FileRef, H as HandlerUnfinishedPolicy, L as LegacyContinueAsNewRetry, l as LocalActivityOptions, M as MAX_WORKFLOW_TASK_TIMEOUT_MS, O as Operation, Q as QueryDefinition, R as RunOptions, S as Saga, m as SchemaLike, n as SignalDefinition, o as SignalHandlerOptions, T as TriggerOperation, p as TriggerSpec, U as UpdateDefinition, W as WorkflowContext, q as WorkflowIdTarget, r as WorkflowInfo, s as WorkflowLogger, t as WorkflowRetryOptions, u as continueAsNewRetryOf, v as defineQuery, w as defineSignal, x as defineUpdate, y as interfaceOf, z as internalNodes, A as isDurableWorkflow, B as isOperation, G as jsonSchemaOf, I as nodes, J as op, K as runRetryPolicyOf, N as toMs, P as trigger, V as triggers, X as workflow } from './workflow-DWTPHFbt.js';
3
- export { A as AssembleOptions, C as COLLECTION_FORMAT, a as CollectedDurableWorkflow, b as CollectedTrigger, c as CollectedWorkflow, d as ConnectionResolver, L as LAYOUT_FORMAT, e as LAYOUT_FORMAT_VERSION, f as LayoutSidecar, T as Tier1Collection, U as UnresolvedConnectionsError, g as assembleRecording, h as collectWorkflowExports, p as parseLayoutSidecar, t as toIR } from './collect-BTHjQaSp.js';
4
- import { E as ErrorType, J as Json } from './types-Bb2wRnJ5.js';
5
- export { a as JsonObject, W as WorkflowDefinition } from './types-Bb2wRnJ5.js';
6
- import { F as Failure } from './types-CnIOinoz.js';
7
- export { P as ParentClosePolicy, R as RetryPolicy, b as RunRetryPolicy, ac as VersioningBehavior, ag as WorkflowIdConflictPolicy, ah as WorkflowIdReusePolicy } from './types-CnIOinoz.js';
1
+ 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, T as Tier1Recording, 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-B18OeF7g.js';
2
+ export { A as ACTIVITY_IMPL_MARKER, a as ACTIVITY_MARKER, b as AbortSignalLike, c as ActivityContext, d as ActivityDeclarationOptions, e as ActivityDefinition, f as ActivityExecuteInput, g as ActivityFunction, h as ActivityImplementation, i as ActivityInboundInterceptor, j as ActivityInfo, k as ActivityOptions, l as ActivityOutboundInterceptor, C as CancellationScope, m as CancellationScopeFunction, n as CancellationScopeOptions, o as ChildHandle, p as ChildOptions, q as ChildTarget, r as ContinueAsNewOptions, D as DURABLE_MARKER, s as DYNAMIC_ACTIVITY_NAME, t as DefaultUpdateHandlerOptions, u as DefinitionOptions, v as DurableWorkflow, w as DurableWorkflowOptions, x as Duration, E as ExternalRunHandle, y as ExternalRunTarget, F as FileRef, H as HandlerUnfinishedPolicy, L as LegacyContinueAsNewRetry, z as LocalActivityOptions, M as MAX_WORKFLOW_TASK_TIMEOUT_MS, O as Operation, Q as QueryDefinition, R as RunOptions, S as Saga, B as SchemaLike, G as SignalDefinition, I as SignalHandlerOptions, T as TriggerOperation, J as TriggerSpec, U as UpdateDefinition, K as UpdateHandlerOptions, W as WorkflowContext, N as WorkflowIdTarget, P as WorkflowInfo, V as WorkflowLogger, X as WorkflowRetryOptions, Y as WorkflowSinks, Z as checkActivityName, _ as checkTaskQueueName, $ as continueAsNewRetryOf, a0 as declareActivity, a1 as defineActivity, a2 as defineQuery, a3 as defineSignal, a4 as defineUpdate, a5 as dynamicActivity, a6 as dynamicWorkflow, a7 as executeActivity, a8 as findActivityImplementation, a9 as implementActivity, aa as interfaceOf, ab as internalNodes, ac as isActivityDefinition, ad as isActivityImplementation, ae as isDurableWorkflow, af as isOperation, ag as jsonSchemaOf, ah as nodes, ai as op, aj as runRetryPolicyOf, ak as toMs, al as trigger, am as triggers, an as workflow } from './workflow-BGnv8SS6.js';
3
+ export { A as AssembleOptions, C as COLLECTION_FORMAT, a as CollectedDurableWorkflow, b as CollectedTrigger, c as CollectedWorkflow, d as ConnectionResolver, L as LAYOUT_FORMAT, e as LAYOUT_FORMAT_VERSION, f as LayoutSidecar, T as Tier1Collection, U as UnresolvedConnectionsError, g as assembleRecording, h as collectWorkflowExports, p as parseLayoutSidecar, t as toIR } from './collect-6NIEufHd.js';
4
+ import { E as ErrorType, a as Json } from './types-V7jEEUaL.js';
5
+ export { J as JsonObject, W as WorkflowDefinition } from './types-V7jEEUaL.js';
6
+ import { F as Failure } from './types-DGx-b9eq.js';
7
+ export { P as ParentClosePolicy, e as RetryPolicy, f as RunRetryPolicy, at as VersioningBehavior, ax as WorkflowIdConflictPolicy, ay as WorkflowIdReusePolicy } from './types-DGx-b9eq.js';
8
+ export { C as CancelRunInput, a as ContinueAsNewInput, I as INTERCEPTORS_MARKER, M as MarkedInterceptorsFactory, Q as QueryInput, S as ScheduleActivityInput, b as ScheduleLocalActivityInput, c as SignalInput, d as SignalRunInput, e as StartChildInput, f as StartTimerInput, U as UpdateInput, g as UpsertContextInput, h as UpsertSearchAttributesInput, W as WorkflowExecuteInput, i as WorkflowInboundInterceptor, j as WorkflowInterceptors, k as WorkflowInterceptorsFactory, l as WorkflowOutboundInterceptor, m as composeInterceptors, n as interceptorsFactoryOf, r as resolveWorkflowInterceptors, w as workflowInterceptors } from './interceptors-CNcr2dlk.js';
9
+ export { E as ENCODED_PAYLOAD_MARKER, c as EncodedPayload, i as isEncodedPayload } from './payload-fields-oOBWxDiG.js';
8
10
 
9
11
  /**
10
12
  * Failure classes of tier-2 workflow code (spec 02 §4, 11 §2.25).
@@ -47,12 +49,34 @@ declare class ApplicationError extends WorkflowFailure {
47
49
  readonly category: 'BENIGN' | undefined;
48
50
  constructor(message: string, options?: ApplicationErrorOptions);
49
51
  }
50
- /** The final failure of an activity, after its retries. `cause` is the last attempt's failure. */
52
+ /**
53
+ * The final failure of an activity, after its retries. `cause` is the last
54
+ * attempt's failure. A user activity (Phase C) has an empty `nodeType`, its
55
+ * name as `operation` and as `activityName`.
56
+ */
51
57
  declare class ActivityFailure extends WorkflowFailure {
52
58
  readonly activityId: string;
53
59
  readonly nodeType: string;
54
60
  readonly operation: string;
55
- constructor(message: string, activityId: string, nodeType: string, operation: string, cause: Error);
61
+ readonly activityName?: string | undefined;
62
+ constructor(message: string, activityId: string, nodeType: string, operation: string, cause: Error, activityName?: string | undefined);
63
+ }
64
+ /**
65
+ * Thrown by an activity whose attempt was paused (`pauseActivity`, 11 §2.28),
66
+ * after a heartbeat reported `paused`. The engine does not retry it while the
67
+ * activity is paused, and the workflow sees nothing: its awaitable stays
68
+ * pending until the activity is unpaused or reset.
69
+ */
70
+ declare class ActivityPausedError extends ApplicationError {
71
+ constructor(message?: string, details?: Json);
72
+ }
73
+ /**
74
+ * A query handler or an update validator tried to change the run: issue a
75
+ * command (an activity, a timer, a child, a signal, a side effect, ...) or
76
+ * call a sink. Queries and validators are read-only (05 §5, 11 §2.39).
77
+ */
78
+ declare class QueryHandlerSideEffect extends Error {
79
+ constructor(what: string);
56
80
  }
57
81
  /** A child run failed, timed out, was cancelled or terminated; `cause` says which. */
58
82
  declare class ChildRunFailure extends WorkflowFailure {
@@ -90,9 +114,9 @@ declare class HistoryLimitExceeded extends Error {
90
114
  constructor(message: string);
91
115
  }
92
116
  /**
93
- * A Phase C feature (user activities, custom queries and updates, search
94
- * attributes, sinks, interceptors) used in Phase B. Fails the workflow task
95
- * with `UNSUPPORTED_COMMAND`; `validate` reports `durable.phaseC` at push time.
117
+ * A feature this release does not run yet (from C-R1 only user local
118
+ * activities: `ctx.localActivity` with a function). Fails the workflow task
119
+ * with `UNSUPPORTED_COMMAND`; `lower()` reports `durable.phaseC` at push time.
96
120
  */
97
121
  declare class PhaseCFeatureError extends Error {
98
122
  readonly code = "durable.phaseC";
@@ -106,6 +130,6 @@ declare function errorToFailure(error: unknown, source?: string, depth?: number)
106
130
  declare function failureToError(failure: Failure, depth?: number): WorkflowFailure;
107
131
 
108
132
  /** The version of @fluidgrids/workflows. */
109
- declare const SDK_VERSION = "2026.1029.1";
133
+ declare const SDK_VERSION = "2026.1030.1";
110
134
 
111
- export { ActivityFailure, ApplicationError, type ApplicationErrorOptions, CancelledFailure, ChildRunFailure, DeterminismViolation, Failure, HistoryLimitExceeded, Json, PhaseCFeatureError, SDK_VERSION, ServerFailure, TerminatedFailure, TimeoutFailure, WorkflowFailure, errorToFailure, failureToError, isCancellation };
135
+ export { ActivityFailure, ActivityPausedError, ApplicationError, type ApplicationErrorOptions, CancelledFailure, ChildRunFailure, DeterminismViolation, Failure, HistoryLimitExceeded, Json, PhaseCFeatureError, QueryHandlerSideEffect, SDK_VERSION, ServerFailure, TerminatedFailure, TimeoutFailure, WorkflowFailure, errorToFailure, failureToError, isCancellation };
package/dist/index.js CHANGED
@@ -1,10 +1,11 @@
1
- export { COLLECTION_FORMAT, collectWorkflowExports } from './chunk-OIX4O6UR.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-FQSJI5NV.js';
1
+ export { COLLECTION_FORMAT, collectWorkflowExports } from './chunk-6OLN6BMB.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-SR7TR5KX.js';
3
3
  import './chunk-5LUIDMF4.js';
4
4
  export { BuilderError, PREDICATE_OPERATORS, and, expr, or } from './chunk-JZ4TOOLN.js';
5
5
  import './chunk-7AAZGVKD.js';
6
+ export { ENCODED_PAYLOAD_MARKER, isEncodedPayload } from './chunk-VU5S5A7V.js';
6
7
  import './chunk-PMCM2OH4.js';
7
- export { ActivityFailure, ApplicationError, CancelledFailure, ChildRunFailure, DeterminismViolation, HistoryLimitExceeded, PhaseCFeatureError, ServerFailure, TerminatedFailure, TimeoutFailure, WorkflowFailure, defineQuery, defineSignal, defineUpdate, errorToFailure, failureToError, isCancellation } from './chunk-KXJDRQ6G.js';
8
- export { DURABLE_MARKER, MAX_WORKFLOW_TASK_TIMEOUT_MS, SDK_VERSION, continueAsNewRetryOf, interfaceOf, isDurableWorkflow, jsonSchemaOf, runRetryPolicyOf, toMs, workflow } from './chunk-7ILGCUI6.js';
8
+ export { ActivityFailure, ActivityPausedError, ApplicationError, CancelledFailure, ChildRunFailure, DeterminismViolation, HistoryLimitExceeded, PhaseCFeatureError, QueryHandlerSideEffect, ServerFailure, TerminatedFailure, TimeoutFailure, WorkflowFailure, defineQuery, defineSignal, defineUpdate, errorToFailure, failureToError, isCancellation } from './chunk-6A2FGSUS.js';
9
+ export { ACTIVITY_IMPL_MARKER, ACTIVITY_MARKER, DURABLE_MARKER, DYNAMIC_ACTIVITY_NAME, INTERCEPTORS_MARKER, MAX_WORKFLOW_TASK_TIMEOUT_MS, SDK_VERSION, checkActivityName, checkTaskQueueName, compose as composeInterceptors, continueAsNewRetryOf, declareActivity, defineActivity, dynamicActivity, dynamicWorkflow, executeActivity, findActivityImplementation, implementActivity, interceptorsFactoryOf, interfaceOf, isActivityDefinition, isActivityImplementation, isDurableWorkflow, jsonSchemaOf, resolveWorkflowInterceptors, runRetryPolicyOf, toMs, workflow, workflowInterceptors } from './chunk-C4F5KJTI.js';
9
10
  import './chunk-LNUQE6D6.js';
10
- import './chunk-PWIUEWC3.js';
11
+ import './chunk-5HIVIV53.js';