@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.
- package/README.md +72 -10
- package/dist/{activation-DnhG7SmF.d.ts → activation-BnVQMv9y.d.ts} +1 -1
- package/dist/{activation-BBh1p82z.d.cts → activation-CESehfYi.d.cts} +1 -1
- package/dist/{chunk-XHXIDVEC.js → chunk-25BKWR2O.js} +1 -1
- package/dist/{chunk-UK3WM7YZ.cjs → chunk-2B37XAFQ.cjs} +44 -8
- package/dist/{chunk-DJYMDLV5.js → chunk-2DDULZFM.js} +93 -1
- package/dist/{chunk-623FVQSN.cjs → chunk-3FIDHONL.cjs} +104 -0
- package/dist/chunk-6QPOJZT6.cjs +1180 -0
- package/dist/chunk-7ILGCUI6.js +154 -0
- package/dist/chunk-A2OHX3UQ.js +1156 -0
- package/dist/{chunk-VOKMAAJP.js → chunk-A36CCOWS.js} +188 -19
- package/dist/{chunk-FMSW2HDF.cjs → chunk-ELL2RBML.cjs} +0 -14
- package/dist/{chunk-JD2VQIDZ.cjs → chunk-EWYADREB.cjs} +2 -2
- package/dist/{chunk-HWJZVOG7.js → chunk-FQSJI5NV.js} +1 -1
- package/dist/{chunk-ABFZWYHT.js → chunk-FWBRQWRX.js} +156 -48
- package/dist/{chunk-PZCVF76Q.cjs → chunk-I47EENR4.cjs} +209 -40
- package/dist/chunk-J3PYFGKA.cjs +166 -0
- package/dist/{chunk-C5OLWZ42.js → chunk-KXJDRQ6G.js} +1 -13
- package/dist/chunk-M272AHEX.js +25 -0
- package/dist/{chunk-VRHHBPT6.js → chunk-MJ5TGYVG.js} +333 -65
- package/dist/{chunk-SAOBPYYJ.cjs → chunk-NXFBVDOI.cjs} +3 -3
- package/dist/{chunk-XKJA7KX3.js → chunk-OIX4O6UR.js} +38 -2
- package/dist/{chunk-FEW3JBYA.cjs → chunk-OKX3FYIM.cjs} +3 -3
- package/dist/{chunk-M4BBAERY.cjs → chunk-OMY3CKUZ.cjs} +404 -136
- package/dist/chunk-PWIUEWC3.js +81 -0
- package/dist/chunk-Q4MWQNJK.cjs +28 -0
- package/dist/{chunk-P6TA5EZT.cjs → chunk-RUQIMTN5.cjs} +171 -57
- package/dist/{chunk-IISBRUWJ.js → chunk-WXXNCHUY.js} +1 -1
- package/dist/chunk-YHBVMOMK.cjs +87 -0
- package/dist/codegen/index.d.cts +2 -2
- package/dist/codegen/index.d.ts +2 -2
- package/dist/collect-BTHjQaSp.d.ts +86 -0
- package/dist/collect-CSyOg5XC.d.cts +86 -0
- package/dist/{file-BOoHZgoQ.d.cts → file-cgL9l9l8.d.cts} +765 -14
- package/dist/{file-yuPCFU5b.d.ts → file-olQudcx5.d.ts} +765 -14
- package/dist/history/index.cjs +198 -86
- package/dist/history/index.d.cts +49 -10
- package/dist/history/index.d.ts +49 -10
- package/dist/history/index.js +49 -4
- package/dist/index.cjs +64 -51
- package/dist/index.d.cts +9 -53
- package/dist/index.d.ts +9 -53
- package/dist/index.js +5 -4
- package/dist/ir/index.cjs +24 -3
- package/dist/ir/index.d.cts +43 -4
- package/dist/ir/index.d.ts +43 -4
- package/dist/ir/index.js +24 -3
- package/dist/{lower-BzmUz0sq.d.cts → lower-3S6PsqjJ.d.cts} +40 -6
- package/dist/{lower-_-iT4HYs.d.ts → lower-DmZpQ8hJ.d.ts} +40 -6
- package/dist/{manifest-C8N6HDYl.d.ts → manifest-BJjrQt77.d.ts} +1 -1
- package/dist/{manifest-0OLw0i7k.d.cts → manifest-gRI2Q5Fj.d.cts} +1 -1
- package/dist/node-evaluator-SOADN23V.js +14 -0
- package/dist/node-evaluator-YGDEXK4U.cjs +24 -0
- package/dist/quickjs/index.cjs +25 -24
- package/dist/quickjs/index.d.cts +6 -6
- package/dist/quickjs/index.d.ts +6 -6
- package/dist/quickjs/index.js +8 -7
- package/dist/roundtrip/index.cjs +245 -43
- package/dist/roundtrip/index.d.cts +86 -9
- package/dist/roundtrip/index.d.ts +86 -9
- package/dist/roundtrip/index.js +172 -8
- package/dist/runtime/index.cjs +21 -20
- package/dist/runtime/index.d.cts +49 -7
- package/dist/runtime/index.d.ts +49 -7
- package/dist/runtime/index.js +8 -7
- package/dist/testing/index.cjs +514 -74
- package/dist/testing/index.d.cts +127 -10
- package/dist/testing/index.d.ts +127 -10
- package/dist/testing/index.js +480 -42
- package/dist/{types-BGoPzgcl.d.ts → types-Bb2wRnJ5.d.cts} +20 -1
- package/dist/{types-BGoPzgcl.d.cts → types-Bb2wRnJ5.d.ts} +20 -1
- package/dist/{types-DV-HX_Gt.d.ts → types-CQKOhPTa.d.cts} +122 -14
- package/dist/{types-CpBBjaGX.d.cts → types-CnIOinoz.d.ts} +122 -14
- package/dist/{workflow-Bpr3vnA_.d.ts → workflow-8uRU9rhL.d.ts} +2 -2
- package/dist/{workflow-FXUkpIBc.d.cts → workflow-CZOXUlQ5.d.cts} +2 -2
- package/dist/{workflow-C2a05WUJ.d.ts → workflow-DWTPHFbt.d.ts} +124 -12
- package/dist/{workflow-J-yYixny.d.cts → workflow-O6e64ZcG.d.cts} +124 -12
- package/fixtures/histories/auto-upgrade-patched.history.json +276 -0
- package/fixtures/histories/benign-failure.history.json +146 -0
- package/fixtures/histories/cancel-activity-try-cancel.history.json +150 -0
- package/fixtures/histories/child-cancel-wait-requested.history.json +217 -0
- package/fixtures/histories/child-options-roundtrip.history.json +192 -0
- package/fixtures/histories/continue-as-new-last-result.history.json +86 -0
- package/fixtures/histories/continue-as-new-options.history.json +99 -0
- package/fixtures/histories/continue-as-new-r1-long-task-queue.history.json +78 -0
- package/fixtures/histories/continue-as-new-r1-retry-options.history.json +83 -0
- package/fixtures/histories/execution-timeout-chain.history.json +98 -0
- package/fixtures/histories/external-cancel-resolved.history.json +123 -0
- package/fixtures/histories/external-cancel-unknown-target.history.json +127 -0
- package/fixtures/histories/failure-error-types-fails-run.history.json +144 -0
- package/fixtures/histories/handler-drain-warn.history.json +222 -0
- package/fixtures/histories/heartbeat-details-on-retry.history.json +145 -0
- package/fixtures/histories/local-activity-abandoned-at-completion.history.json +73 -0
- package/fixtures/histories/local-activity-cancelled-in-scope.history.json +118 -0
- package/fixtures/histories/local-activity-completed.history.json +157 -0
- package/fixtures/histories/local-activity-failed.history.json +93 -0
- package/fixtures/histories/local-activity-retry-in-task.history.json +88 -0
- package/fixtures/histories/run-retry-last-failure.history.json +90 -0
- package/fixtures/histories/run-timeout.history.json +159 -0
- package/fixtures/histories/schedule-to-start-timeout.history.json +132 -0
- package/fixtures/histories/start-delay-signal-ends-delay.history.json +155 -0
- package/fixtures/histories/typeerror-task-retry-100.history.json +137 -0
- package/package.json +1 -1
- package/schema/history-file.schema.json +283 -2
- package/schema/ir-v2.schema.json +45 -0
- package/schema/run-event.schema.json +264 -2
- package/schema/workflow-command.schema.json +178 -1
- package/schema/workflow-task.schema.json +392 -4
- package/dist/assemble-BLqQ8lSu.d.cts +0 -39
- package/dist/assemble-DWgaXHd-.d.ts +0 -39
- package/dist/chunk-2J6TF7YI.cjs +0 -86
- package/dist/chunk-BO6OVILK.js +0 -79
- package/dist/chunk-DHTLALBL.cjs +0 -80
- package/dist/chunk-I5LR3D2K.js +0 -869
- package/dist/chunk-N23SKIG4.js +0 -73
- package/dist/chunk-QQ6ULXHI.cjs +0 -885
- package/dist/node-evaluator-4MSDKWOG.cjs +0 -22
- package/dist/node-evaluator-SX4LEYQC.js +0 -12
package/dist/history/index.cjs
CHANGED
|
@@ -1,287 +1,399 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkI47EENR4_cjs = require('../chunk-I47EENR4.cjs');
|
|
4
4
|
require('../chunk-SAENRNBJ.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
99
|
+
get: function () { return chunkI47EENR4_cjs.compilePayloadValidator; }
|
|
59
100
|
});
|
|
60
101
|
Object.defineProperty(exports, "createHistoryFile", {
|
|
61
102
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkI47EENR4_cjs.createHistoryFile; }
|
|
63
104
|
});
|
|
64
105
|
Object.defineProperty(exports, "parseHistoryFile", {
|
|
65
106
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkI47EENR4_cjs.parseHistoryFile; }
|
|
67
108
|
});
|
|
68
109
|
Object.defineProperty(exports, "serializeHistoryFile", {
|
|
69
110
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkI47EENR4_cjs.serializeHistoryFile; }
|
|
71
112
|
});
|
|
72
113
|
Object.defineProperty(exports, "validateCommand", {
|
|
73
114
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkI47EENR4_cjs.validateCommand; }
|
|
75
116
|
});
|
|
76
117
|
Object.defineProperty(exports, "validateCommands", {
|
|
77
118
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkI47EENR4_cjs.validateCommands; }
|
|
79
120
|
});
|
|
80
121
|
Object.defineProperty(exports, "validateHistory", {
|
|
81
122
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkI47EENR4_cjs.validateHistory; }
|
|
83
124
|
});
|
|
84
125
|
Object.defineProperty(exports, "validateHistoryFile", {
|
|
85
126
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
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
|
|
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
|
|
135
|
+
get: function () { return chunkRUQIMTN5_cjs.CHILD_DEFAULT_PARENT_CLOSE_POLICY; }
|
|
95
136
|
});
|
|
96
|
-
Object.defineProperty(exports, "
|
|
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
|
|
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
|
|
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
|
|
163
|
+
get: function () { return chunkRUQIMTN5_cjs.applyEvent; }
|
|
107
164
|
});
|
|
108
165
|
Object.defineProperty(exports, "codeWorkflowParentClosePolicy", {
|
|
109
166
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkRUQIMTN5_cjs.codeWorkflowParentClosePolicy; }
|
|
111
168
|
});
|
|
112
|
-
Object.defineProperty(exports, "
|
|
169
|
+
Object.defineProperty(exports, "commandFeatures", {
|
|
113
170
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkRUQIMTN5_cjs.commandFeatures; }
|
|
115
172
|
});
|
|
116
|
-
Object.defineProperty(exports, "
|
|
173
|
+
Object.defineProperty(exports, "continueAsNewRetryShape", {
|
|
117
174
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkRUQIMTN5_cjs.continueAsNewRetryShape; }
|
|
119
176
|
});
|
|
120
|
-
Object.defineProperty(exports, "
|
|
177
|
+
Object.defineProperty(exports, "eventsForCommands", {
|
|
121
178
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkRUQIMTN5_cjs.eventsForCommands; }
|
|
123
180
|
});
|
|
124
181
|
Object.defineProperty(exports, "hasUnprocessedInput", {
|
|
125
182
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkRUQIMTN5_cjs.hasUnprocessedInput; }
|
|
127
184
|
});
|
|
128
185
|
Object.defineProperty(exports, "initialRunState", {
|
|
129
186
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkRUQIMTN5_cjs.initialRunState; }
|
|
131
188
|
});
|
|
132
189
|
Object.defineProperty(exports, "isActivityOpen", {
|
|
133
190
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkRUQIMTN5_cjs.isActivityOpen; }
|
|
135
192
|
});
|
|
136
193
|
Object.defineProperty(exports, "isChildOpen", {
|
|
137
194
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunkRUQIMTN5_cjs.isChildOpen; }
|
|
139
196
|
});
|
|
140
197
|
Object.defineProperty(exports, "isCommandEnabled", {
|
|
141
198
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
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
|
|
207
|
+
get: function () { return chunkRUQIMTN5_cjs.isWorkflowCommandEnabled; }
|
|
147
208
|
});
|
|
148
209
|
Object.defineProperty(exports, "pendingCounts", {
|
|
149
210
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunkRUQIMTN5_cjs.pendingCounts; }
|
|
151
212
|
});
|
|
152
213
|
Object.defineProperty(exports, "projectRunState", {
|
|
153
214
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunkRUQIMTN5_cjs.projectRunState; }
|
|
155
216
|
});
|
|
156
217
|
Object.defineProperty(exports, "splitActivations", {
|
|
157
218
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunkRUQIMTN5_cjs.splitActivations; }
|
|
159
220
|
});
|
|
160
221
|
Object.defineProperty(exports, "taskCompletedEvents", {
|
|
161
222
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunkRUQIMTN5_cjs.taskCompletedEvents; }
|
|
163
224
|
});
|
|
164
225
|
Object.defineProperty(exports, "unseenInputs", {
|
|
165
226
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
343
|
+
get: function () { return chunk3FIDHONL_cjs.TERMINAL_EVENTS; }
|
|
255
344
|
});
|
|
256
|
-
Object.defineProperty(exports, "
|
|
345
|
+
Object.defineProperty(exports, "VERSIONING_BEHAVIORS", {
|
|
257
346
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
347
|
+
get: function () { return chunk3FIDHONL_cjs.VERSIONING_BEHAVIORS; }
|
|
259
348
|
});
|
|
260
|
-
Object.defineProperty(exports, "
|
|
349
|
+
Object.defineProperty(exports, "WORKFLOW_ID_CONFLICT_POLICIES", {
|
|
261
350
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
351
|
+
get: function () { return chunk3FIDHONL_cjs.WORKFLOW_ID_CONFLICT_POLICIES; }
|
|
263
352
|
});
|
|
264
|
-
Object.defineProperty(exports, "
|
|
353
|
+
Object.defineProperty(exports, "WORKFLOW_ID_REUSE_POLICIES", {
|
|
265
354
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
355
|
+
get: function () { return chunk3FIDHONL_cjs.WORKFLOW_ID_REUSE_POLICIES; }
|
|
267
356
|
});
|
|
268
|
-
Object.defineProperty(exports, "
|
|
357
|
+
Object.defineProperty(exports, "WORKFLOW_TIMEOUT_TYPES", {
|
|
269
358
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
359
|
+
get: function () { return chunk3FIDHONL_cjs.WORKFLOW_TIMEOUT_TYPES; }
|
|
271
360
|
});
|
|
272
|
-
Object.defineProperty(exports, "
|
|
361
|
+
Object.defineProperty(exports, "assertActivityNodeType", {
|
|
273
362
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
363
|
+
get: function () { return chunk3FIDHONL_cjs.assertActivityNodeType; }
|
|
275
364
|
});
|
|
276
|
-
Object.defineProperty(exports, "
|
|
365
|
+
Object.defineProperty(exports, "isActivityNodeTypeAllowed", {
|
|
277
366
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
367
|
+
get: function () { return chunk3FIDHONL_cjs.isActivityNodeTypeAllowed; }
|
|
279
368
|
});
|
|
280
|
-
Object.defineProperty(exports, "
|
|
369
|
+
Object.defineProperty(exports, "isCommandEvent", {
|
|
281
370
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
371
|
+
get: function () { return chunk3FIDHONL_cjs.isCommandEvent; }
|
|
283
372
|
});
|
|
284
|
-
Object.defineProperty(exports, "
|
|
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
|
|
395
|
+
get: function () { return chunkYHBVMOMK_cjs.explicitRunRetryPolicy; }
|
|
287
396
|
});
|
|
397
|
+
exports.fnv1a32 = fnv1a32;
|
|
398
|
+
exports.inRollout = inRollout;
|
|
399
|
+
exports.rolloutBucket = rolloutBucket;
|
package/dist/history/index.d.cts
CHANGED
|
@@ -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-
|
|
2
|
-
export { A as ACTIVITY_CANCELLATION_TYPES,
|
|
3
|
-
import { H as HistoryIssue } from '../file-
|
|
4
|
-
export { A as ActivityState,
|
|
5
|
-
export { A as Activation, s as splitActivations, u as unseenInputs } from '../activation-
|
|
6
|
-
import '../types-
|
|
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
|
|
19
|
-
* `
|
|
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?:
|
|
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 };
|