@fluidgrids/workflows 2026.1028.2 → 2026.1029.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 +72 -10
  2. package/dist/{activation-DnhG7SmF.d.ts → activation-BnVQMv9y.d.ts} +1 -1
  3. package/dist/{activation-BBh1p82z.d.cts → activation-CESehfYi.d.cts} +1 -1
  4. package/dist/{chunk-XHXIDVEC.js → chunk-25BKWR2O.js} +1 -1
  5. package/dist/{chunk-UK3WM7YZ.cjs → chunk-2B37XAFQ.cjs} +44 -8
  6. package/dist/{chunk-DJYMDLV5.js → chunk-2DDULZFM.js} +93 -1
  7. package/dist/{chunk-623FVQSN.cjs → chunk-3FIDHONL.cjs} +104 -0
  8. package/dist/chunk-6QPOJZT6.cjs +1180 -0
  9. package/dist/chunk-7ILGCUI6.js +154 -0
  10. package/dist/chunk-A2OHX3UQ.js +1156 -0
  11. package/dist/{chunk-VOKMAAJP.js → chunk-A36CCOWS.js} +188 -19
  12. package/dist/{chunk-FMSW2HDF.cjs → chunk-ELL2RBML.cjs} +0 -14
  13. package/dist/{chunk-JD2VQIDZ.cjs → chunk-EWYADREB.cjs} +2 -2
  14. package/dist/{chunk-HWJZVOG7.js → chunk-FQSJI5NV.js} +1 -1
  15. package/dist/{chunk-ABFZWYHT.js → chunk-FWBRQWRX.js} +156 -48
  16. package/dist/{chunk-PZCVF76Q.cjs → chunk-I47EENR4.cjs} +209 -40
  17. package/dist/chunk-J3PYFGKA.cjs +166 -0
  18. package/dist/{chunk-C5OLWZ42.js → chunk-KXJDRQ6G.js} +1 -13
  19. package/dist/chunk-M272AHEX.js +25 -0
  20. package/dist/{chunk-VRHHBPT6.js → chunk-MJ5TGYVG.js} +333 -65
  21. package/dist/{chunk-SAOBPYYJ.cjs → chunk-NXFBVDOI.cjs} +3 -3
  22. package/dist/{chunk-XKJA7KX3.js → chunk-OIX4O6UR.js} +38 -2
  23. package/dist/{chunk-FEW3JBYA.cjs → chunk-OKX3FYIM.cjs} +3 -3
  24. package/dist/{chunk-M4BBAERY.cjs → chunk-OMY3CKUZ.cjs} +404 -136
  25. package/dist/chunk-PWIUEWC3.js +81 -0
  26. package/dist/chunk-Q4MWQNJK.cjs +28 -0
  27. package/dist/{chunk-P6TA5EZT.cjs → chunk-RUQIMTN5.cjs} +171 -57
  28. package/dist/{chunk-IISBRUWJ.js → chunk-WXXNCHUY.js} +1 -1
  29. package/dist/chunk-YHBVMOMK.cjs +87 -0
  30. package/dist/codegen/index.d.cts +2 -2
  31. package/dist/codegen/index.d.ts +2 -2
  32. package/dist/collect-BTHjQaSp.d.ts +86 -0
  33. package/dist/collect-CSyOg5XC.d.cts +86 -0
  34. package/dist/{file-BOoHZgoQ.d.cts → file-cgL9l9l8.d.cts} +765 -14
  35. package/dist/{file-yuPCFU5b.d.ts → file-olQudcx5.d.ts} +765 -14
  36. package/dist/history/index.cjs +198 -86
  37. package/dist/history/index.d.cts +49 -10
  38. package/dist/history/index.d.ts +49 -10
  39. package/dist/history/index.js +49 -4
  40. package/dist/index.cjs +64 -51
  41. package/dist/index.d.cts +9 -53
  42. package/dist/index.d.ts +9 -53
  43. package/dist/index.js +5 -4
  44. package/dist/ir/index.cjs +24 -3
  45. package/dist/ir/index.d.cts +43 -4
  46. package/dist/ir/index.d.ts +43 -4
  47. package/dist/ir/index.js +24 -3
  48. package/dist/{lower-BzmUz0sq.d.cts → lower-3S6PsqjJ.d.cts} +40 -6
  49. package/dist/{lower-_-iT4HYs.d.ts → lower-DmZpQ8hJ.d.ts} +40 -6
  50. package/dist/{manifest-C8N6HDYl.d.ts → manifest-BJjrQt77.d.ts} +1 -1
  51. package/dist/{manifest-0OLw0i7k.d.cts → manifest-gRI2Q5Fj.d.cts} +1 -1
  52. package/dist/node-evaluator-SOADN23V.js +14 -0
  53. package/dist/node-evaluator-YGDEXK4U.cjs +24 -0
  54. package/dist/quickjs/index.cjs +25 -24
  55. package/dist/quickjs/index.d.cts +6 -6
  56. package/dist/quickjs/index.d.ts +6 -6
  57. package/dist/quickjs/index.js +8 -7
  58. package/dist/roundtrip/index.cjs +245 -43
  59. package/dist/roundtrip/index.d.cts +86 -9
  60. package/dist/roundtrip/index.d.ts +86 -9
  61. package/dist/roundtrip/index.js +172 -8
  62. package/dist/runtime/index.cjs +21 -20
  63. package/dist/runtime/index.d.cts +49 -7
  64. package/dist/runtime/index.d.ts +49 -7
  65. package/dist/runtime/index.js +8 -7
  66. package/dist/testing/index.cjs +514 -74
  67. package/dist/testing/index.d.cts +127 -10
  68. package/dist/testing/index.d.ts +127 -10
  69. package/dist/testing/index.js +480 -42
  70. package/dist/{types-BGoPzgcl.d.ts → types-Bb2wRnJ5.d.cts} +20 -1
  71. package/dist/{types-BGoPzgcl.d.cts → types-Bb2wRnJ5.d.ts} +20 -1
  72. package/dist/{types-DV-HX_Gt.d.ts → types-CQKOhPTa.d.cts} +122 -14
  73. package/dist/{types-CpBBjaGX.d.cts → types-CnIOinoz.d.ts} +122 -14
  74. package/dist/{workflow-Bpr3vnA_.d.ts → workflow-8uRU9rhL.d.ts} +2 -2
  75. package/dist/{workflow-FXUkpIBc.d.cts → workflow-CZOXUlQ5.d.cts} +2 -2
  76. package/dist/{workflow-C2a05WUJ.d.ts → workflow-DWTPHFbt.d.ts} +124 -12
  77. package/dist/{workflow-J-yYixny.d.cts → workflow-O6e64ZcG.d.cts} +124 -12
  78. package/fixtures/histories/auto-upgrade-patched.history.json +276 -0
  79. package/fixtures/histories/benign-failure.history.json +146 -0
  80. package/fixtures/histories/cancel-activity-try-cancel.history.json +150 -0
  81. package/fixtures/histories/child-cancel-wait-requested.history.json +217 -0
  82. package/fixtures/histories/child-options-roundtrip.history.json +192 -0
  83. package/fixtures/histories/continue-as-new-last-result.history.json +86 -0
  84. package/fixtures/histories/continue-as-new-options.history.json +99 -0
  85. package/fixtures/histories/continue-as-new-r1-long-task-queue.history.json +78 -0
  86. package/fixtures/histories/continue-as-new-r1-retry-options.history.json +83 -0
  87. package/fixtures/histories/execution-timeout-chain.history.json +98 -0
  88. package/fixtures/histories/external-cancel-resolved.history.json +123 -0
  89. package/fixtures/histories/external-cancel-unknown-target.history.json +127 -0
  90. package/fixtures/histories/failure-error-types-fails-run.history.json +144 -0
  91. package/fixtures/histories/handler-drain-warn.history.json +222 -0
  92. package/fixtures/histories/heartbeat-details-on-retry.history.json +145 -0
  93. package/fixtures/histories/local-activity-abandoned-at-completion.history.json +73 -0
  94. package/fixtures/histories/local-activity-cancelled-in-scope.history.json +118 -0
  95. package/fixtures/histories/local-activity-completed.history.json +157 -0
  96. package/fixtures/histories/local-activity-failed.history.json +93 -0
  97. package/fixtures/histories/local-activity-retry-in-task.history.json +88 -0
  98. package/fixtures/histories/run-retry-last-failure.history.json +90 -0
  99. package/fixtures/histories/run-timeout.history.json +159 -0
  100. package/fixtures/histories/schedule-to-start-timeout.history.json +132 -0
  101. package/fixtures/histories/start-delay-signal-ends-delay.history.json +155 -0
  102. package/fixtures/histories/typeerror-task-retry-100.history.json +137 -0
  103. package/package.json +1 -1
  104. package/schema/history-file.schema.json +283 -2
  105. package/schema/ir-v2.schema.json +45 -0
  106. package/schema/run-event.schema.json +264 -2
  107. package/schema/workflow-command.schema.json +178 -1
  108. package/schema/workflow-task.schema.json +392 -4
  109. package/dist/assemble-BLqQ8lSu.d.cts +0 -39
  110. package/dist/assemble-DWgaXHd-.d.ts +0 -39
  111. package/dist/chunk-2J6TF7YI.cjs +0 -86
  112. package/dist/chunk-BO6OVILK.js +0 -79
  113. package/dist/chunk-DHTLALBL.cjs +0 -80
  114. package/dist/chunk-I5LR3D2K.js +0 -869
  115. package/dist/chunk-N23SKIG4.js +0 -73
  116. package/dist/chunk-QQ6ULXHI.cjs +0 -885
  117. package/dist/node-evaluator-4MSDKWOG.cjs +0 -22
  118. package/dist/node-evaluator-SX4LEYQC.js +0 -12
@@ -1,287 +1,399 @@
1
1
  'use strict';
2
2
 
3
- var chunkPZCVF76Q_cjs = require('../chunk-PZCVF76Q.cjs');
3
+ var chunkI47EENR4_cjs = require('../chunk-I47EENR4.cjs');
4
4
  require('../chunk-SAENRNBJ.cjs');
5
- var chunkP6TA5EZT_cjs = require('../chunk-P6TA5EZT.cjs');
6
- var chunk623FVQSN_cjs = require('../chunk-623FVQSN.cjs');
7
- var chunk2J6TF7YI_cjs = require('../chunk-2J6TF7YI.cjs');
5
+ var chunkRUQIMTN5_cjs = require('../chunk-RUQIMTN5.cjs');
6
+ var chunk3FIDHONL_cjs = require('../chunk-3FIDHONL.cjs');
7
+ var chunkYHBVMOMK_cjs = require('../chunk-YHBVMOMK.cjs');
8
8
  require('../chunk-Z2Y65YOY.cjs');
9
9
 
10
-
10
+ // src/history/rollout.ts
11
+ var FNV_OFFSET = 2166136261;
12
+ var FNV_PRIME = 16777619;
13
+ function utf8(key) {
14
+ const bytes = [];
15
+ for (let index = 0; index < key.length; index++) {
16
+ let code = key.charCodeAt(index);
17
+ if (code >= 55296 && code <= 56319) {
18
+ const next = index + 1 < key.length ? key.charCodeAt(index + 1) : 0;
19
+ if (next >= 56320 && next <= 57343) {
20
+ code = 65536 + (code - 55296 << 10) + (next - 56320);
21
+ index++;
22
+ } else code = 65533;
23
+ } else if (code >= 56320 && code <= 57343) code = 65533;
24
+ if (code < 128) bytes.push(code);
25
+ else if (code < 2048) bytes.push(192 | code >> 6, 128 | code & 63);
26
+ else if (code < 65536)
27
+ bytes.push(224 | code >> 12, 128 | code >> 6 & 63, 128 | code & 63);
28
+ else
29
+ bytes.push(
30
+ 240 | code >> 18,
31
+ 128 | code >> 12 & 63,
32
+ 128 | code >> 6 & 63,
33
+ 128 | code & 63
34
+ );
35
+ }
36
+ return bytes;
37
+ }
38
+ function fnv1a32(key) {
39
+ let hash = FNV_OFFSET;
40
+ for (const byte of utf8(key)) {
41
+ hash ^= byte;
42
+ hash = Math.imul(hash, FNV_PRIME) >>> 0;
43
+ }
44
+ return hash >>> 0;
45
+ }
46
+ function rolloutBucket(key) {
47
+ return fnv1a32(key) % 100;
48
+ }
49
+ function inRollout(key, percent) {
50
+ return rolloutBucket(key) < percent;
51
+ }
11
52
 
12
53
  Object.defineProperty(exports, "HISTORY_FILE_FORMAT", {
13
54
  enumerable: true,
14
- get: function () { return chunkPZCVF76Q_cjs.HISTORY_FILE_FORMAT; }
55
+ get: function () { return chunkI47EENR4_cjs.HISTORY_FILE_FORMAT; }
15
56
  });
16
57
  Object.defineProperty(exports, "HISTORY_FILE_SCHEMA", {
17
58
  enumerable: true,
18
- get: function () { return chunkPZCVF76Q_cjs.HISTORY_FILE_SCHEMA; }
59
+ get: function () { return chunkI47EENR4_cjs.HISTORY_FILE_SCHEMA; }
19
60
  });
20
61
  Object.defineProperty(exports, "HISTORY_FILE_SCHEMA_ID", {
21
62
  enumerable: true,
22
- get: function () { return chunkPZCVF76Q_cjs.HISTORY_FILE_SCHEMA_ID; }
63
+ get: function () { return chunkI47EENR4_cjs.HISTORY_FILE_SCHEMA_ID; }
23
64
  });
24
65
  Object.defineProperty(exports, "HISTORY_SCHEMA_FILES", {
25
66
  enumerable: true,
26
- get: function () { return chunkPZCVF76Q_cjs.HISTORY_SCHEMA_FILES; }
67
+ get: function () { return chunkI47EENR4_cjs.HISTORY_SCHEMA_FILES; }
27
68
  });
28
69
  Object.defineProperty(exports, "HistoryFileError", {
29
70
  enumerable: true,
30
- get: function () { return chunkPZCVF76Q_cjs.HistoryFileError; }
71
+ get: function () { return chunkI47EENR4_cjs.HistoryFileError; }
31
72
  });
32
73
  Object.defineProperty(exports, "RUN_EVENT_SCHEMA", {
33
74
  enumerable: true,
34
- get: function () { return chunkPZCVF76Q_cjs.RUN_EVENT_SCHEMA; }
75
+ get: function () { return chunkI47EENR4_cjs.RUN_EVENT_SCHEMA; }
35
76
  });
36
77
  Object.defineProperty(exports, "RUN_EVENT_SCHEMA_ID", {
37
78
  enumerable: true,
38
- get: function () { return chunkPZCVF76Q_cjs.RUN_EVENT_SCHEMA_ID; }
79
+ get: function () { return chunkI47EENR4_cjs.RUN_EVENT_SCHEMA_ID; }
39
80
  });
40
81
  Object.defineProperty(exports, "WORKFLOW_COMMAND_SCHEMA", {
41
82
  enumerable: true,
42
- get: function () { return chunkPZCVF76Q_cjs.WORKFLOW_COMMAND_SCHEMA; }
83
+ get: function () { return chunkI47EENR4_cjs.WORKFLOW_COMMAND_SCHEMA; }
43
84
  });
44
85
  Object.defineProperty(exports, "WORKFLOW_COMMAND_SCHEMA_ID", {
45
86
  enumerable: true,
46
- get: function () { return chunkPZCVF76Q_cjs.WORKFLOW_COMMAND_SCHEMA_ID; }
87
+ get: function () { return chunkI47EENR4_cjs.WORKFLOW_COMMAND_SCHEMA_ID; }
47
88
  });
48
89
  Object.defineProperty(exports, "WORKFLOW_TASK_SCHEMA", {
49
90
  enumerable: true,
50
- get: function () { return chunkPZCVF76Q_cjs.WORKFLOW_TASK_SCHEMA; }
91
+ get: function () { return chunkI47EENR4_cjs.WORKFLOW_TASK_SCHEMA; }
51
92
  });
52
93
  Object.defineProperty(exports, "WORKFLOW_TASK_SCHEMA_ID", {
53
94
  enumerable: true,
54
- get: function () { return chunkPZCVF76Q_cjs.WORKFLOW_TASK_SCHEMA_ID; }
95
+ get: function () { return chunkI47EENR4_cjs.WORKFLOW_TASK_SCHEMA_ID; }
55
96
  });
56
97
  Object.defineProperty(exports, "compilePayloadValidator", {
57
98
  enumerable: true,
58
- get: function () { return chunkPZCVF76Q_cjs.compilePayloadValidator; }
99
+ get: function () { return chunkI47EENR4_cjs.compilePayloadValidator; }
59
100
  });
60
101
  Object.defineProperty(exports, "createHistoryFile", {
61
102
  enumerable: true,
62
- get: function () { return chunkPZCVF76Q_cjs.createHistoryFile; }
103
+ get: function () { return chunkI47EENR4_cjs.createHistoryFile; }
63
104
  });
64
105
  Object.defineProperty(exports, "parseHistoryFile", {
65
106
  enumerable: true,
66
- get: function () { return chunkPZCVF76Q_cjs.parseHistoryFile; }
107
+ get: function () { return chunkI47EENR4_cjs.parseHistoryFile; }
67
108
  });
68
109
  Object.defineProperty(exports, "serializeHistoryFile", {
69
110
  enumerable: true,
70
- get: function () { return chunkPZCVF76Q_cjs.serializeHistoryFile; }
111
+ get: function () { return chunkI47EENR4_cjs.serializeHistoryFile; }
71
112
  });
72
113
  Object.defineProperty(exports, "validateCommand", {
73
114
  enumerable: true,
74
- get: function () { return chunkPZCVF76Q_cjs.validateCommand; }
115
+ get: function () { return chunkI47EENR4_cjs.validateCommand; }
75
116
  });
76
117
  Object.defineProperty(exports, "validateCommands", {
77
118
  enumerable: true,
78
- get: function () { return chunkPZCVF76Q_cjs.validateCommands; }
119
+ get: function () { return chunkI47EENR4_cjs.validateCommands; }
79
120
  });
80
121
  Object.defineProperty(exports, "validateHistory", {
81
122
  enumerable: true,
82
- get: function () { return chunkPZCVF76Q_cjs.validateHistory; }
123
+ get: function () { return chunkI47EENR4_cjs.validateHistory; }
83
124
  });
84
125
  Object.defineProperty(exports, "validateHistoryFile", {
85
126
  enumerable: true,
86
- get: function () { return chunkPZCVF76Q_cjs.validateHistoryFile; }
127
+ get: function () { return chunkI47EENR4_cjs.validateHistoryFile; }
87
128
  });
88
129
  Object.defineProperty(exports, "CHILD_DEFAULT_CANCELLATION_TYPE", {
89
130
  enumerable: true,
90
- get: function () { return chunkP6TA5EZT_cjs.CHILD_DEFAULT_CANCELLATION_TYPE; }
131
+ get: function () { return chunkRUQIMTN5_cjs.CHILD_DEFAULT_CANCELLATION_TYPE; }
91
132
  });
92
133
  Object.defineProperty(exports, "CHILD_DEFAULT_PARENT_CLOSE_POLICY", {
93
134
  enumerable: true,
94
- get: function () { return chunkP6TA5EZT_cjs.CHILD_DEFAULT_PARENT_CLOSE_POLICY; }
135
+ get: function () { return chunkRUQIMTN5_cjs.CHILD_DEFAULT_PARENT_CLOSE_POLICY; }
95
136
  });
96
- Object.defineProperty(exports, "DEFAULT_ACTIVITY_RETRY", {
137
+ Object.defineProperty(exports, "COMMAND_FEATURES", {
138
+ enumerable: true,
139
+ get: function () { return chunkRUQIMTN5_cjs.COMMAND_FEATURES; }
140
+ });
141
+ Object.defineProperty(exports, "CORE_CAN_OPTIONS", {
97
142
  enumerable: true,
98
- get: function () { return chunkP6TA5EZT_cjs.DEFAULT_ACTIVITY_RETRY; }
143
+ get: function () { return chunkRUQIMTN5_cjs.CORE_CAN_OPTIONS; }
144
+ });
145
+ Object.defineProperty(exports, "CORE_CHILD_OPTIONS", {
146
+ enumerable: true,
147
+ get: function () { return chunkRUQIMTN5_cjs.CORE_CHILD_OPTIONS; }
99
148
  });
100
149
  Object.defineProperty(exports, "HistoryStateError", {
101
150
  enumerable: true,
102
- get: function () { return chunkP6TA5EZT_cjs.HistoryStateError; }
151
+ get: function () { return chunkRUQIMTN5_cjs.HistoryStateError; }
152
+ });
153
+ Object.defineProperty(exports, "PHASE_B_CORE_FEATURES", {
154
+ enumerable: true,
155
+ get: function () { return chunkRUQIMTN5_cjs.PHASE_B_CORE_FEATURES; }
156
+ });
157
+ Object.defineProperty(exports, "PHASE_B_PARITY_FEATURES", {
158
+ enumerable: true,
159
+ get: function () { return chunkRUQIMTN5_cjs.PHASE_B_PARITY_FEATURES; }
103
160
  });
104
161
  Object.defineProperty(exports, "applyEvent", {
105
162
  enumerable: true,
106
- get: function () { return chunkP6TA5EZT_cjs.applyEvent; }
163
+ get: function () { return chunkRUQIMTN5_cjs.applyEvent; }
107
164
  });
108
165
  Object.defineProperty(exports, "codeWorkflowParentClosePolicy", {
109
166
  enumerable: true,
110
- get: function () { return chunkP6TA5EZT_cjs.codeWorkflowParentClosePolicy; }
167
+ get: function () { return chunkRUQIMTN5_cjs.codeWorkflowParentClosePolicy; }
111
168
  });
112
- Object.defineProperty(exports, "computeRetryDelay", {
169
+ Object.defineProperty(exports, "commandFeatures", {
113
170
  enumerable: true,
114
- get: function () { return chunkP6TA5EZT_cjs.computeRetryDelay; }
171
+ get: function () { return chunkRUQIMTN5_cjs.commandFeatures; }
115
172
  });
116
- Object.defineProperty(exports, "eventsForCommands", {
173
+ Object.defineProperty(exports, "continueAsNewRetryShape", {
117
174
  enumerable: true,
118
- get: function () { return chunkP6TA5EZT_cjs.eventsForCommands; }
175
+ get: function () { return chunkRUQIMTN5_cjs.continueAsNewRetryShape; }
119
176
  });
120
- Object.defineProperty(exports, "explicitRetryPolicy", {
177
+ Object.defineProperty(exports, "eventsForCommands", {
121
178
  enumerable: true,
122
- get: function () { return chunkP6TA5EZT_cjs.explicitRetryPolicy; }
179
+ get: function () { return chunkRUQIMTN5_cjs.eventsForCommands; }
123
180
  });
124
181
  Object.defineProperty(exports, "hasUnprocessedInput", {
125
182
  enumerable: true,
126
- get: function () { return chunkP6TA5EZT_cjs.hasUnprocessedInput; }
183
+ get: function () { return chunkRUQIMTN5_cjs.hasUnprocessedInput; }
127
184
  });
128
185
  Object.defineProperty(exports, "initialRunState", {
129
186
  enumerable: true,
130
- get: function () { return chunkP6TA5EZT_cjs.initialRunState; }
187
+ get: function () { return chunkRUQIMTN5_cjs.initialRunState; }
131
188
  });
132
189
  Object.defineProperty(exports, "isActivityOpen", {
133
190
  enumerable: true,
134
- get: function () { return chunkP6TA5EZT_cjs.isActivityOpen; }
191
+ get: function () { return chunkRUQIMTN5_cjs.isActivityOpen; }
135
192
  });
136
193
  Object.defineProperty(exports, "isChildOpen", {
137
194
  enumerable: true,
138
- get: function () { return chunkP6TA5EZT_cjs.isChildOpen; }
195
+ get: function () { return chunkRUQIMTN5_cjs.isChildOpen; }
139
196
  });
140
197
  Object.defineProperty(exports, "isCommandEnabled", {
141
198
  enumerable: true,
142
- get: function () { return chunkP6TA5EZT_cjs.isCommandEnabled; }
199
+ get: function () { return chunkRUQIMTN5_cjs.isCommandEnabled; }
200
+ });
201
+ Object.defineProperty(exports, "isReliefCommand", {
202
+ enumerable: true,
203
+ get: function () { return chunkRUQIMTN5_cjs.isReliefCommand; }
143
204
  });
144
205
  Object.defineProperty(exports, "isWorkflowCommandEnabled", {
145
206
  enumerable: true,
146
- get: function () { return chunkP6TA5EZT_cjs.isWorkflowCommandEnabled; }
207
+ get: function () { return chunkRUQIMTN5_cjs.isWorkflowCommandEnabled; }
147
208
  });
148
209
  Object.defineProperty(exports, "pendingCounts", {
149
210
  enumerable: true,
150
- get: function () { return chunkP6TA5EZT_cjs.pendingCounts; }
211
+ get: function () { return chunkRUQIMTN5_cjs.pendingCounts; }
151
212
  });
152
213
  Object.defineProperty(exports, "projectRunState", {
153
214
  enumerable: true,
154
- get: function () { return chunkP6TA5EZT_cjs.projectRunState; }
215
+ get: function () { return chunkRUQIMTN5_cjs.projectRunState; }
155
216
  });
156
217
  Object.defineProperty(exports, "splitActivations", {
157
218
  enumerable: true,
158
- get: function () { return chunkP6TA5EZT_cjs.splitActivations; }
219
+ get: function () { return chunkRUQIMTN5_cjs.splitActivations; }
159
220
  });
160
221
  Object.defineProperty(exports, "taskCompletedEvents", {
161
222
  enumerable: true,
162
- get: function () { return chunkP6TA5EZT_cjs.taskCompletedEvents; }
223
+ get: function () { return chunkRUQIMTN5_cjs.taskCompletedEvents; }
163
224
  });
164
225
  Object.defineProperty(exports, "unseenInputs", {
165
226
  enumerable: true,
166
- get: function () { return chunkP6TA5EZT_cjs.unseenInputs; }
227
+ get: function () { return chunkRUQIMTN5_cjs.unseenInputs; }
228
+ });
229
+ Object.defineProperty(exports, "unsupportedMessage", {
230
+ enumerable: true,
231
+ get: function () { return chunkRUQIMTN5_cjs.unsupportedMessage; }
167
232
  });
168
233
  Object.defineProperty(exports, "utf8Bytes", {
169
234
  enumerable: true,
170
- get: function () { return chunkP6TA5EZT_cjs.utf8Bytes; }
235
+ get: function () { return chunkRUQIMTN5_cjs.utf8Bytes; }
171
236
  });
172
237
  Object.defineProperty(exports, "ACTIVITY_CANCELLATION_TYPES", {
173
238
  enumerable: true,
174
- get: function () { return chunk623FVQSN_cjs.ACTIVITY_CANCELLATION_TYPES; }
239
+ get: function () { return chunk3FIDHONL_cjs.ACTIVITY_CANCELLATION_TYPES; }
240
+ });
241
+ Object.defineProperty(exports, "ACTIVITY_INTERNAL_ALLOWLIST", {
242
+ enumerable: true,
243
+ get: function () { return chunk3FIDHONL_cjs.ACTIVITY_INTERNAL_ALLOWLIST; }
244
+ });
245
+ Object.defineProperty(exports, "ACTIVITY_NODE_ALLOWLIST", {
246
+ enumerable: true,
247
+ get: function () { return chunk3FIDHONL_cjs.ACTIVITY_NODE_ALLOWLIST; }
248
+ });
249
+ Object.defineProperty(exports, "ACTIVITY_NODE_DENYLIST", {
250
+ enumerable: true,
251
+ get: function () { return chunk3FIDHONL_cjs.ACTIVITY_NODE_DENYLIST; }
252
+ });
253
+ Object.defineProperty(exports, "ActivityNodeTypeNotAllowedError", {
254
+ enumerable: true,
255
+ get: function () { return chunk3FIDHONL_cjs.ActivityNodeTypeNotAllowedError; }
175
256
  });
176
257
  Object.defineProperty(exports, "BUILT_IN_QUERIES", {
177
258
  enumerable: true,
178
- get: function () { return chunk623FVQSN_cjs.BUILT_IN_QUERIES; }
259
+ get: function () { return chunk3FIDHONL_cjs.BUILT_IN_QUERIES; }
179
260
  });
180
261
  Object.defineProperty(exports, "CHILD_CANCELLATION_TYPES", {
181
262
  enumerable: true,
182
- get: function () { return chunk623FVQSN_cjs.CHILD_CANCELLATION_TYPES; }
263
+ get: function () { return chunk3FIDHONL_cjs.CHILD_CANCELLATION_TYPES; }
183
264
  });
184
265
  Object.defineProperty(exports, "COMMAND_EVENTS", {
185
266
  enumerable: true,
186
- get: function () { return chunk623FVQSN_cjs.COMMAND_EVENTS; }
267
+ get: function () { return chunk3FIDHONL_cjs.COMMAND_EVENTS; }
187
268
  });
188
269
  Object.defineProperty(exports, "COMMAND_EVENT_TYPES", {
189
270
  enumerable: true,
190
- get: function () { return chunk623FVQSN_cjs.COMMAND_EVENT_TYPES; }
271
+ get: function () { return chunk3FIDHONL_cjs.COMMAND_EVENT_TYPES; }
191
272
  });
192
273
  Object.defineProperty(exports, "COMMAND_TYPES", {
193
274
  enumerable: true,
194
- get: function () { return chunk623FVQSN_cjs.COMMAND_TYPES; }
275
+ get: function () { return chunk3FIDHONL_cjs.COMMAND_TYPES; }
195
276
  });
196
277
  Object.defineProperty(exports, "CONTINUE_AS_NEW_SUGGESTED_RATIO", {
197
278
  enumerable: true,
198
- get: function () { return chunk623FVQSN_cjs.CONTINUE_AS_NEW_SUGGESTED_RATIO; }
279
+ get: function () { return chunk3FIDHONL_cjs.CONTINUE_AS_NEW_SUGGESTED_RATIO; }
199
280
  });
200
281
  Object.defineProperty(exports, "DEFAULT_HISTORY_LIMIT", {
201
282
  enumerable: true,
202
- get: function () { return chunk623FVQSN_cjs.DEFAULT_HISTORY_LIMIT; }
283
+ get: function () { return chunk3FIDHONL_cjs.DEFAULT_HISTORY_LIMIT; }
203
284
  });
204
285
  Object.defineProperty(exports, "ERROR_TYPES", {
205
286
  enumerable: true,
206
- get: function () { return chunk623FVQSN_cjs.ERROR_TYPES; }
287
+ get: function () { return chunk3FIDHONL_cjs.ERROR_TYPES; }
207
288
  });
208
289
  Object.defineProperty(exports, "EVENT_TYPES", {
209
290
  enumerable: true,
210
- get: function () { return chunk623FVQSN_cjs.EVENT_TYPES; }
291
+ get: function () { return chunk3FIDHONL_cjs.EVENT_TYPES; }
211
292
  });
212
293
  Object.defineProperty(exports, "EXECUTION_KINDS", {
213
294
  enumerable: true,
214
- get: function () { return chunk623FVQSN_cjs.EXECUTION_KINDS; }
295
+ get: function () { return chunk3FIDHONL_cjs.EXECUTION_KINDS; }
215
296
  });
216
297
  Object.defineProperty(exports, "HISTORY_LIMIT_EXCEEDED_RATIO", {
217
298
  enumerable: true,
218
- get: function () { return chunk623FVQSN_cjs.HISTORY_LIMIT_EXCEEDED_RATIO; }
299
+ get: function () { return chunk3FIDHONL_cjs.HISTORY_LIMIT_EXCEEDED_RATIO; }
219
300
  });
220
301
  Object.defineProperty(exports, "HISTORY_PROTOCOL", {
221
302
  enumerable: true,
222
- get: function () { return chunk623FVQSN_cjs.HISTORY_PROTOCOL; }
303
+ get: function () { return chunk3FIDHONL_cjs.HISTORY_PROTOCOL; }
223
304
  });
224
305
  Object.defineProperty(exports, "INPUT_EVENTS", {
225
306
  enumerable: true,
226
- get: function () { return chunk623FVQSN_cjs.INPUT_EVENTS; }
307
+ get: function () { return chunk3FIDHONL_cjs.INPUT_EVENTS; }
308
+ });
309
+ Object.defineProperty(exports, "LOCAL_ACTIVITY_MAX_TIMEOUT_MS", {
310
+ enumerable: true,
311
+ get: function () { return chunk3FIDHONL_cjs.LOCAL_ACTIVITY_MAX_TIMEOUT_MS; }
227
312
  });
228
313
  Object.defineProperty(exports, "PARENT_CLOSE_POLICIES", {
229
314
  enumerable: true,
230
- get: function () { return chunk623FVQSN_cjs.PARENT_CLOSE_POLICIES; }
315
+ get: function () { return chunk3FIDHONL_cjs.PARENT_CLOSE_POLICIES; }
231
316
  });
232
317
  Object.defineProperty(exports, "PHASE_B_CORE_COMMANDS", {
233
318
  enumerable: true,
234
- get: function () { return chunk623FVQSN_cjs.PHASE_B_CORE_COMMANDS; }
319
+ get: function () { return chunk3FIDHONL_cjs.PHASE_B_CORE_COMMANDS; }
235
320
  });
236
321
  Object.defineProperty(exports, "PHASE_B_PARITY_COMMANDS", {
237
322
  enumerable: true,
238
- get: function () { return chunk623FVQSN_cjs.PHASE_B_PARITY_COMMANDS; }
323
+ get: function () { return chunk3FIDHONL_cjs.PHASE_B_PARITY_COMMANDS; }
239
324
  });
240
325
  Object.defineProperty(exports, "PHASE_C_COMMANDS", {
241
326
  enumerable: true,
242
- get: function () { return chunk623FVQSN_cjs.PHASE_C_COMMANDS; }
327
+ get: function () { return chunk3FIDHONL_cjs.PHASE_C_COMMANDS; }
328
+ });
329
+ Object.defineProperty(exports, "RUNTIME_RELEASE", {
330
+ enumerable: true,
331
+ get: function () { return chunk3FIDHONL_cjs.RUNTIME_RELEASE; }
243
332
  });
244
333
  Object.defineProperty(exports, "TASK_FAILURE_CAUSES", {
245
334
  enumerable: true,
246
- get: function () { return chunk623FVQSN_cjs.TASK_FAILURE_CAUSES; }
335
+ get: function () { return chunk3FIDHONL_cjs.TASK_FAILURE_CAUSES; }
247
336
  });
248
337
  Object.defineProperty(exports, "TERMINAL_COMMANDS", {
249
338
  enumerable: true,
250
- get: function () { return chunk623FVQSN_cjs.TERMINAL_COMMANDS; }
339
+ get: function () { return chunk3FIDHONL_cjs.TERMINAL_COMMANDS; }
251
340
  });
252
341
  Object.defineProperty(exports, "TERMINAL_EVENTS", {
253
342
  enumerable: true,
254
- get: function () { return chunk623FVQSN_cjs.TERMINAL_EVENTS; }
343
+ get: function () { return chunk3FIDHONL_cjs.TERMINAL_EVENTS; }
255
344
  });
256
- Object.defineProperty(exports, "isCommandEvent", {
345
+ Object.defineProperty(exports, "VERSIONING_BEHAVIORS", {
257
346
  enumerable: true,
258
- get: function () { return chunk623FVQSN_cjs.isCommandEvent; }
347
+ get: function () { return chunk3FIDHONL_cjs.VERSIONING_BEHAVIORS; }
259
348
  });
260
- Object.defineProperty(exports, "isInputEvent", {
349
+ Object.defineProperty(exports, "WORKFLOW_ID_CONFLICT_POLICIES", {
261
350
  enumerable: true,
262
- get: function () { return chunk623FVQSN_cjs.isInputEvent; }
351
+ get: function () { return chunk3FIDHONL_cjs.WORKFLOW_ID_CONFLICT_POLICIES; }
263
352
  });
264
- Object.defineProperty(exports, "ACTIVITY_INTERNAL_ALLOWLIST", {
353
+ Object.defineProperty(exports, "WORKFLOW_ID_REUSE_POLICIES", {
265
354
  enumerable: true,
266
- get: function () { return chunk2J6TF7YI_cjs.ACTIVITY_INTERNAL_ALLOWLIST; }
355
+ get: function () { return chunk3FIDHONL_cjs.WORKFLOW_ID_REUSE_POLICIES; }
267
356
  });
268
- Object.defineProperty(exports, "ACTIVITY_NODE_ALLOWLIST", {
357
+ Object.defineProperty(exports, "WORKFLOW_TIMEOUT_TYPES", {
269
358
  enumerable: true,
270
- get: function () { return chunk2J6TF7YI_cjs.ACTIVITY_NODE_ALLOWLIST; }
359
+ get: function () { return chunk3FIDHONL_cjs.WORKFLOW_TIMEOUT_TYPES; }
271
360
  });
272
- Object.defineProperty(exports, "ACTIVITY_NODE_DENYLIST", {
361
+ Object.defineProperty(exports, "assertActivityNodeType", {
273
362
  enumerable: true,
274
- get: function () { return chunk2J6TF7YI_cjs.ACTIVITY_NODE_DENYLIST; }
363
+ get: function () { return chunk3FIDHONL_cjs.assertActivityNodeType; }
275
364
  });
276
- Object.defineProperty(exports, "ActivityNodeTypeNotAllowedError", {
365
+ Object.defineProperty(exports, "isActivityNodeTypeAllowed", {
277
366
  enumerable: true,
278
- get: function () { return chunk2J6TF7YI_cjs.ActivityNodeTypeNotAllowedError; }
367
+ get: function () { return chunk3FIDHONL_cjs.isActivityNodeTypeAllowed; }
279
368
  });
280
- Object.defineProperty(exports, "assertActivityNodeType", {
369
+ Object.defineProperty(exports, "isCommandEvent", {
281
370
  enumerable: true,
282
- get: function () { return chunk2J6TF7YI_cjs.assertActivityNodeType; }
371
+ get: function () { return chunk3FIDHONL_cjs.isCommandEvent; }
283
372
  });
284
- Object.defineProperty(exports, "isActivityNodeTypeAllowed", {
373
+ Object.defineProperty(exports, "isInputEvent", {
374
+ enumerable: true,
375
+ get: function () { return chunk3FIDHONL_cjs.isInputEvent; }
376
+ });
377
+ Object.defineProperty(exports, "DEFAULT_ACTIVITY_RETRY", {
378
+ enumerable: true,
379
+ get: function () { return chunkYHBVMOMK_cjs.DEFAULT_ACTIVITY_RETRY; }
380
+ });
381
+ Object.defineProperty(exports, "computeRetryDelay", {
382
+ enumerable: true,
383
+ get: function () { return chunkYHBVMOMK_cjs.computeRetryDelay; }
384
+ });
385
+ Object.defineProperty(exports, "computeRunRetryDelay", {
386
+ enumerable: true,
387
+ get: function () { return chunkYHBVMOMK_cjs.computeRunRetryDelay; }
388
+ });
389
+ Object.defineProperty(exports, "explicitRetryPolicy", {
390
+ enumerable: true,
391
+ get: function () { return chunkYHBVMOMK_cjs.explicitRetryPolicy; }
392
+ });
393
+ Object.defineProperty(exports, "explicitRunRetryPolicy", {
285
394
  enumerable: true,
286
- get: function () { return chunk2J6TF7YI_cjs.isActivityNodeTypeAllowed; }
395
+ get: function () { return chunkYHBVMOMK_cjs.explicitRunRetryPolicy; }
287
396
  });
397
+ exports.fnv1a32 = fnv1a32;
398
+ exports.inRollout = inRollout;
399
+ exports.rolloutBucket = rolloutBucket;
@@ -1,9 +1,9 @@
1
- import { W as WorkflowCommand, a as WorkflowTaskFailureCause, R as RetryPolicy, F as Failure, C as ChildCancellationType, P as ParentClosePolicy } from '../types-CpBBjaGX.cjs';
2
- export { A as ACTIVITY_CANCELLATION_TYPES, b as AcceptUpdateCommand, c as ActivityCancellationType, B as BUILT_IN_QUERIES, d as BuiltInQueryName, e as CHILD_CANCELLATION_TYPES, f as COMMAND_EVENTS, g as COMMAND_EVENT_TYPES, h as COMMAND_TYPES, i as CONTINUE_AS_NEW_SUGGESTED_RATIO, j as CancelTimerCommand, k as CancelWorkflowCommand, l as ChildRunOptions, m as CommandType, n as CompleteUpdateCommand, o as CompleteWorkflowCommand, p as ContinueAsNewCommand, D as DEFAULT_HISTORY_LIMIT, E as ERROR_TYPES, q as EVENT_TYPES, r as EXECUTION_KINDS, s as ExecutionKind, t as FailWorkflowCommand, u as FailureSource, H as HISTORY_LIMIT_EXCEEDED_RATIO, v as HISTORY_PROTOCOL, w as Headers, x as HistoryLimit, I as INPUT_EVENTS, L as LocalActivityRequest, y as PARENT_CLOSE_POLICIES, z as PHASE_B_CORE_COMMANDS, G as PHASE_B_PARITY_COMMANDS, J as PHASE_C_COMMANDS, K as RecordLocalActivityCommand, M as RecordMarkerCommand, N as RecordSideEffectCommand, O as RejectUpdateCommand, Q as RequestCancelActivityCommand, S as RequestCancelExternalRunCommand, T as RunEventDraft, U as RunEventRecord, V as RunEventType, X as RunTarget, Y as ScheduleActivityCommand, Z as SignalRunCommand, _ as StartChildRunCommand, $ as StartTimerCommand, a0 as TASK_FAILURE_CAUSES, a1 as TERMINAL_COMMANDS, a2 as TERMINAL_EVENTS, a3 as TaskLogLine, a4 as UpsertContextCommand, a5 as UpsertSearchAttributesCommand, a6 as WorkflowInfoSnapshot, a7 as WorkflowTaskRequest, a8 as WorkflowTaskResult, a9 as isCommandEvent, aa as isInputEvent } from '../types-CpBBjaGX.cjs';
3
- import { H as HistoryIssue } from '../file-BOoHZgoQ.cjs';
4
- export { A as ActivityState, a as ActivityStatus, C as ChildState, b as ChildStatus, E as EventsForCommandsContext, c as EventsForCommandsResult, d as ExternalState, e as HISTORY_FILE_FORMAT, f as HISTORY_FILE_SCHEMA, g as HISTORY_FILE_SCHEMA_ID, h as HISTORY_SCHEMA_FILES, i as HistoryFile, j as HistoryFileError, k as HistoryStateError, R as RUN_EVENT_SCHEMA, l as RUN_EVENT_SCHEMA_ID, m as RunState, n as RunStatus, T as TimerState, W as WORKFLOW_COMMAND_SCHEMA, o as WORKFLOW_COMMAND_SCHEMA_ID, p as WORKFLOW_TASK_SCHEMA, q as WORKFLOW_TASK_SCHEMA_ID, r as applyEvent, s as createHistoryFile, t as eventsForCommands, u as hasUnprocessedInput, v as initialRunState, w as isActivityOpen, x as isChildOpen, y as isCommandEnabled, z as isWorkflowCommandEnabled, B as parseHistoryFile, D as pendingCounts, F as projectRunState, G as serializeHistoryFile, I as taskCompletedEvents, J as utf8Bytes } from '../file-BOoHZgoQ.cjs';
5
- export { A as Activation, s as splitActivations, u as unseenInputs } from '../activation-BBh1p82z.cjs';
6
- import '../types-BGoPzgcl.cjs';
1
+ import { W as WorkflowCommand, a as WorkflowTaskFailureCause, R as RetryPolicy, F as Failure, b as RunRetryPolicy, C as ChildCancellationType, P as ParentClosePolicy } from '../types-CQKOhPTa.cjs';
2
+ export { A as ACTIVITY_CANCELLATION_TYPES, c as AcceptUpdateCommand, d as ActivityCancellationType, B as BUILT_IN_QUERIES, e as BuiltInQueryName, f as CHILD_CANCELLATION_TYPES, g as COMMAND_EVENTS, h as COMMAND_EVENT_TYPES, i as COMMAND_TYPES, j as CONTINUE_AS_NEW_SUGGESTED_RATIO, k as CancelTimerCommand, l as CancelWorkflowCommand, m as ChildRunOptions, n as CommandType, o as CompleteUpdateCommand, p as CompleteWorkflowCommand, q as ContinueAsNewCommand, D as DEFAULT_HISTORY_LIMIT, E as ERROR_TYPES, r as EVENT_TYPES, s as EXECUTION_KINDS, t as ExecutionKind, u as FailWorkflowCommand, v as FailureSource, H as HISTORY_LIMIT_EXCEEDED_RATIO, w as HISTORY_PROTOCOL, x as Headers, y as HistoryLimit, I as INPUT_EVENTS, L as LOCAL_ACTIVITY_MAX_TIMEOUT_MS, z as LocalActivityRequest, G as LocalActivityResult, J as PARENT_CLOSE_POLICIES, K as PHASE_B_CORE_COMMANDS, M as PHASE_B_PARITY_COMMANDS, N as PHASE_C_COMMANDS, O as RUNTIME_RELEASE, Q as RecordLocalActivityCommand, S as RecordMarkerCommand, T as RecordSideEffectCommand, U as RejectUpdateCommand, V as RequestCancelActivityCommand, X as RequestCancelExternalRunCommand, Y as RunEventDraft, Z as RunEventRecord, _ as RunEventType, $ as RunTarget, a0 as ScheduleActivityCommand, a1 as SignalRunCommand, a2 as StartChildRunCommand, a3 as StartTimerCommand, a4 as TASK_FAILURE_CAUSES, a5 as TERMINAL_COMMANDS, a6 as TERMINAL_EVENTS, a7 as TaskLogLine, a8 as UnfinishedHandler, a9 as UpsertContextCommand, aa as UpsertSearchAttributesCommand, ab as VERSIONING_BEHAVIORS, ac as VersioningBehavior, ad as WORKFLOW_ID_CONFLICT_POLICIES, ae as WORKFLOW_ID_REUSE_POLICIES, af as WORKFLOW_TIMEOUT_TYPES, ag as WorkflowIdConflictPolicy, ah as WorkflowIdReusePolicy, ai as WorkflowInfoSnapshot, aj as WorkflowTaskRequest, ak as WorkflowTaskResult, al as WorkflowTimeoutType, am as WorkflowTimeouts, an as isCommandEvent, ao as isInputEvent } from '../types-CQKOhPTa.cjs';
3
+ import { H as HistoryIssue, C as CommandGate, a as CommandRelief } from '../file-cgL9l9l8.cjs';
4
+ export { A as ActivityState, b as ActivityStatus, c as COMMAND_FEATURES, d as CORE_CAN_OPTIONS, e as CORE_CHILD_OPTIONS, f as ChildState, g as ChildStatus, h as CommandFeature, E as EventsForCommandsContext, i as EventsForCommandsResult, j as ExternalState, k as HISTORY_FILE_FORMAT, l as HISTORY_FILE_SCHEMA, m as HISTORY_FILE_SCHEMA_ID, n as HISTORY_SCHEMA_FILES, o as HistoryFile, p as HistoryFileError, q as HistoryStateError, L as LocalActivityState, P as PHASE_B_CORE_FEATURES, r as PHASE_B_PARITY_FEATURES, R as RUN_EVENT_SCHEMA, s as RUN_EVENT_SCHEMA_ID, t as RunState, u as RunStatus, T as TimerState, W as WORKFLOW_COMMAND_SCHEMA, v as WORKFLOW_COMMAND_SCHEMA_ID, w as WORKFLOW_TASK_SCHEMA, x as WORKFLOW_TASK_SCHEMA_ID, y as applyEvent, z as commandFeatures, B as continueAsNewRetryShape, D as createHistoryFile, F as eventsForCommands, G as hasUnprocessedInput, I as initialRunState, J as isActivityOpen, K as isChildOpen, M as isCommandEnabled, N as isReliefCommand, O as isWorkflowCommandEnabled, Q as parseHistoryFile, S as pendingCounts, U as projectRunState, V as serializeHistoryFile, X as taskCompletedEvents, Y as unsupportedMessage, Z as utf8Bytes } from '../file-cgL9l9l8.cjs';
5
+ export { A as Activation, s as splitActivations, u as unseenInputs } from '../activation-CESehfYi.cjs';
6
+ import '../types-Bb2wRnJ5.cjs';
7
7
 
8
8
  type CommandValidation = {
9
9
  ok: true;
@@ -15,10 +15,16 @@ type CommandValidation = {
15
15
  };
16
16
  interface ValidateCommandsOptions {
17
17
  /**
18
- * Which commands are enabled. `core` (default) is the Phase B core set,
19
- * `parity` adds the parity commands. Phase C commands are always refused.
18
+ * Which commands are enabled: a feature set (C-GATE), or the R1 release
19
+ * levels `core` (default, the Phase B core set) and `parity` (adds the
20
+ * parity commands). Phase C commands are always refused.
20
21
  */
21
- enabled?: 'core' | 'parity';
22
+ enabled?: CommandGate;
23
+ /**
24
+ * What the lease already granted. A relief command (see `isReliefCommand`)
25
+ * passes the gate even when its feature is not enabled.
26
+ */
27
+ relief?: CommandRelief;
22
28
  /** Largest batch. Default 1000 (the workers' limit). */
23
29
  maxCommands?: number;
24
30
  }
@@ -89,6 +95,39 @@ type RetryDecision = {
89
95
  declare function computeRetryDelay(policy: RetryPolicy, attempt: number, failure?: Failure): RetryDecision;
90
96
  /** A copy of `policy` with the defaults filled in, as the SDK writes it into a command. */
91
97
  declare function explicitRetryPolicy(policy: Partial<RetryPolicy> | undefined): RetryPolicy;
98
+ /** Why a run is or is not started again under its run-level retry policy (11 §2.17). */
99
+ type RunRetryDecision = {
100
+ retry: true;
101
+ delayMs: number;
102
+ } | {
103
+ retry: false;
104
+ reason: 'noPolicy' | 'nonRetryable' | 'executionTimeout' | 'typeDenied' | 'errorTypeNotListed' | 'maxAttempts';
105
+ };
106
+ /**
107
+ * Whether a DURABLE_FN run whose attempt `attempt` (1-based) just failed, or
108
+ * timed out (`failure.timeoutType` `WORKFLOW_RUN`), is started again, and
109
+ * after how long. An execution timeout (`WORKFLOW_EXECUTION`) bounds the whole
110
+ * chain and is never retried; cancellation and termination never reach this
111
+ * function. The backoff is the activity backoff over the run policy.
112
+ */
113
+ declare function computeRunRetryDelay(policy: RunRetryPolicy | undefined, attempt: number, failure: Failure): RunRetryDecision;
114
+ /** The run retry policy with its defaults (Temporal's: 1 s, x2, at most 100 s, unlimited attempts). */
115
+ declare function explicitRunRetryPolicy(policy: Partial<RunRetryPolicy>): RunRetryPolicy;
116
+
117
+ /**
118
+ * The bucket of a gradual rollout (11 §2.27): automatic starts hash
119
+ * `workflowId ?? runId` into 0-99 and take the rollout's `toVersion` when the
120
+ * bucket is below `percent`. The service's version resolution and the tests
121
+ * share this function, so a fixed key set splits the same way everywhere.
122
+ *
123
+ * Pure JavaScript, no I/O: FNV-1a (32 bit) over the UTF-8 bytes of the key.
124
+ */
125
+ /** FNV-1a, 32 bit, of the UTF-8 bytes of `key`, as an unsigned integer. */
126
+ declare function fnv1a32(key: string): number;
127
+ /** The rollout bucket of a key: `fnv1a32(key) % 100`, an integer in 0-99. */
128
+ declare function rolloutBucket(key: string): number;
129
+ /** True when a start with this key takes the rollout's target version. */
130
+ declare function inRollout(key: string, percent: number): boolean;
92
131
 
93
132
  /**
94
133
  * The activity allow-list (C-ALLOW): which node types `ctx.run` may schedule.
@@ -154,4 +193,4 @@ declare const CHILD_DEFAULT_PARENT_CLOSE_POLICY: Readonly<{
154
193
  */
155
194
  declare const CHILD_DEFAULT_CANCELLATION_TYPE: ChildCancellationType;
156
195
 
157
- export { ACTIVITY_INTERNAL_ALLOWLIST, ACTIVITY_NODE_ALLOWLIST, ACTIVITY_NODE_DENYLIST, ActivityNodeTypeNotAllowedError, CHILD_DEFAULT_CANCELLATION_TYPE, CHILD_DEFAULT_PARENT_CLOSE_POLICY, ChildCancellationType, type CommandValidation, DEFAULT_ACTIVITY_RETRY, Failure, HistoryIssue, ParentClosePolicy, type PayloadValidator, type RetryDecision, RetryPolicy, type ValidateCommandsOptions, WorkflowCommand, WorkflowTaskFailureCause, assertActivityNodeType, codeWorkflowParentClosePolicy, compilePayloadValidator, computeRetryDelay, explicitRetryPolicy, isActivityNodeTypeAllowed, validateCommand, validateCommands, validateHistory, validateHistoryFile };
196
+ export { ACTIVITY_INTERNAL_ALLOWLIST, ACTIVITY_NODE_ALLOWLIST, ACTIVITY_NODE_DENYLIST, ActivityNodeTypeNotAllowedError, CHILD_DEFAULT_CANCELLATION_TYPE, CHILD_DEFAULT_PARENT_CLOSE_POLICY, ChildCancellationType, CommandGate, CommandRelief, type CommandValidation, DEFAULT_ACTIVITY_RETRY, Failure, HistoryIssue, ParentClosePolicy, type PayloadValidator, type RetryDecision, RetryPolicy, type RunRetryDecision, RunRetryPolicy, type ValidateCommandsOptions, WorkflowCommand, WorkflowTaskFailureCause, assertActivityNodeType, codeWorkflowParentClosePolicy, compilePayloadValidator, computeRetryDelay, computeRunRetryDelay, explicitRetryPolicy, explicitRunRetryPolicy, fnv1a32, inRollout, isActivityNodeTypeAllowed, rolloutBucket, validateCommand, validateCommands, validateHistory, validateHistoryFile };