@fluidgrids/workflows 2026.1028.2 → 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.
- package/README.md +181 -11
- package/dist/{activation-BBh1p82z.d.cts → activation-DqUfpHzk.d.cts} +1 -1
- package/dist/{activation-DnhG7SmF.d.ts → activation-xpx1oWuo.d.ts} +1 -1
- package/dist/{chunk-VRHHBPT6.js → chunk-2D3MYIIF.js} +1212 -128
- package/dist/chunk-3U2NU7YC.cjs +124 -0
- package/dist/{chunk-NEIUQASE.cjs → chunk-4QKB4ARC.cjs} +3 -3
- package/dist/{chunk-GBQ33SIZ.cjs → chunk-54FLQNUM.cjs} +12 -1
- package/dist/chunk-5HIVIV53.js +330 -0
- package/dist/chunk-5MFVJM76.js +1222 -0
- package/dist/{chunk-JD2VQIDZ.cjs → chunk-672KMMBK.cjs} +2 -2
- package/dist/{chunk-C5OLWZ42.js → chunk-6A2FGSUS.js} +22 -14
- package/dist/{chunk-XKJA7KX3.js → chunk-6OLN6BMB.js} +52 -3
- package/dist/{chunk-6FSHT5IL.js → chunk-7EZIANC7.js} +1 -1
- package/dist/{chunk-2J6TF7YI.cjs → chunk-A5SXCA62.cjs} +10 -3
- package/dist/{chunk-BO6OVILK.js → chunk-AC6ZEXVR.js} +10 -4
- package/dist/{chunk-ABFZWYHT.js → chunk-AE5Q6ZAJ.js} +315 -50
- package/dist/chunk-C4F5KJTI.js +293 -0
- package/dist/{chunk-IISBRUWJ.js → chunk-G5H32GIG.js} +1 -1
- package/dist/chunk-GEQDGUGB.cjs +2719 -0
- package/dist/{chunk-XHXIDVEC.js → chunk-HCM7ZC7Q.js} +1 -1
- package/dist/chunk-HMZUGSMU.cjs +1554 -0
- package/dist/{chunk-SAOBPYYJ.cjs → chunk-IQPXHQQQ.cjs} +8 -4
- package/dist/{chunk-P6TA5EZT.cjs → chunk-ISOIA7NV.cjs} +335 -58
- package/dist/chunk-JSC75O5C.cjs +167 -0
- package/dist/chunk-M272AHEX.js +25 -0
- package/dist/{chunk-BD7ZPG53.js → chunk-NWQ5WRLE.js} +10 -2
- package/dist/chunk-ODZ2IAR2.cjs +1247 -0
- package/dist/chunk-Q4MWQNJK.cjs +28 -0
- package/dist/{chunk-HWJZVOG7.js → chunk-SR7TR5KX.js} +6 -2
- package/dist/{chunk-FEW3JBYA.cjs → chunk-TCTE7DX5.cjs} +3 -3
- package/dist/{chunk-623FVQSN.cjs → chunk-TYF56RGB.cjs} +123 -0
- package/dist/chunk-VA4OFR72.cjs +324 -0
- package/dist/chunk-VU5S5A7V.js +150 -0
- package/dist/chunk-YEHR4NNE.js +1522 -0
- package/dist/{chunk-FMSW2HDF.cjs → chunk-ZCGKGDCL.cjs} +23 -15
- package/dist/codegen/index.d.cts +2 -2
- package/dist/codegen/index.d.ts +2 -2
- package/dist/collect-6NIEufHd.d.ts +103 -0
- package/dist/collect-CcTCKqx6.d.cts +103 -0
- package/dist/{file-BOoHZgoQ.d.cts → file-BxYpwjRQ.d.cts} +1007 -21
- package/dist/{file-yuPCFU5b.d.ts → file-CFdPQJI9.d.ts} +1007 -21
- package/dist/history/index.cjs +375 -86
- package/dist/history/index.d.cts +590 -12
- package/dist/history/index.d.ts +590 -12
- package/dist/history/index.js +50 -4
- package/dist/index.cjs +156 -50
- package/dist/index.d.cts +38 -58
- package/dist/index.d.ts +38 -58
- package/dist/index.js +6 -4
- package/dist/interceptors-CNcr2dlk.d.ts +159 -0
- package/dist/interceptors-CqkNZVfI.d.cts +159 -0
- package/dist/ir/index.cjs +362 -38
- package/dist/ir/index.d.cts +282 -7
- package/dist/ir/index.d.ts +282 -7
- package/dist/ir/index.js +329 -23
- package/dist/{lower-BzmUz0sq.d.cts → lower-BtRfIW2A.d.cts} +56 -8
- package/dist/{lower-_-iT4HYs.d.ts → lower-CpsMFOFX.d.ts} +56 -8
- package/dist/{manifest-C8N6HDYl.d.ts → manifest-D-I_twys.d.ts} +1 -1
- package/dist/{manifest-0OLw0i7k.d.cts → manifest-DahBQVM8.d.cts} +1 -1
- package/dist/node-evaluator-DGQDPSPI.cjs +24 -0
- package/dist/node-evaluator-LEEVD7H7.js +14 -0
- package/dist/payload-fields-BVRQn2yH.d.cts +122 -0
- package/dist/payload-fields-oOBWxDiG.d.ts +122 -0
- package/dist/quickjs/index.cjs +28 -27
- package/dist/quickjs/index.d.cts +6 -6
- package/dist/quickjs/index.d.ts +6 -6
- package/dist/quickjs/index.js +10 -9
- package/dist/roundtrip/index.cjs +259 -51
- package/dist/roundtrip/index.d.cts +100 -9
- package/dist/roundtrip/index.d.ts +100 -9
- package/dist/roundtrip/index.js +177 -11
- package/dist/runtime/index.cjs +21 -20
- package/dist/runtime/index.d.cts +184 -15
- package/dist/runtime/index.d.ts +184 -15
- package/dist/runtime/index.js +8 -7
- package/dist/testing/index.cjs +1122 -115
- package/dist/testing/index.d.cts +294 -13
- package/dist/testing/index.d.ts +294 -13
- package/dist/testing/index.js +1086 -84
- package/dist/{types-DV-HX_Gt.d.ts → types-Bv2i4cBX.d.cts} +244 -33
- package/dist/{types-CpBBjaGX.d.cts → types-DGx-b9eq.d.ts} +244 -33
- package/dist/{types-BGoPzgcl.d.ts → types-V7jEEUaL.d.cts} +20 -1
- package/dist/{types-BGoPzgcl.d.cts → types-V7jEEUaL.d.ts} +20 -1
- package/dist/{workflow-Bpr3vnA_.d.ts → workflow-B18OeF7g.d.ts} +2 -2
- package/dist/workflow-BGnv8SS6.d.ts +803 -0
- package/dist/{workflow-FXUkpIBc.d.cts → workflow-BJPFv3cp.d.cts} +2 -2
- package/dist/workflow-DS32Gtws.d.cts +803 -0
- package/fixtures/histories/activity-options-updated.history.json +159 -0
- package/fixtures/histories/activity-paused-unpaused.history.json +160 -0
- 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/codec-opaque.history.json +229 -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/dynamic-workflow.history.json +150 -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/interceptor-headers.history.json +339 -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/query-custom.history.json +213 -0
- package/fixtures/histories/query-default-handler.history.json +120 -0
- package/fixtures/histories/reset-forked-reapplied-signals.history.json +239 -0
- package/fixtures/histories/reset-reapplied-update-admitted.history.json +228 -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/search-attributes-upserted.history.json +177 -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/fixtures/histories/update-accepted-completed.history.json +45 -30
- package/fixtures/histories/update-default-handler.history.json +246 -0
- package/fixtures/histories/update-handler-awaits-activity.history.json +196 -0
- package/fixtures/histories/update-not-handled.history.json +138 -0
- package/fixtures/histories/update-rejected-no-event.history.json +190 -0
- package/fixtures/histories/update-with-start-admitted.history.json +150 -0
- package/fixtures/histories/user-activity-cancel.history.json +149 -0
- package/fixtures/histories/user-activity-retry.history.json +143 -0
- package/fixtures/histories/user-activity.history.json +149 -0
- package/package.json +1 -1
- package/schema/bridge-v2.schema.json +1062 -0
- package/schema/history-file.schema.json +538 -83
- package/schema/ir-v2.schema.json +290 -0
- package/schema/payload-fields.json +162 -0
- package/schema/run-event.schema.json +503 -82
- package/schema/workflow-command.schema.json +372 -69
- package/schema/workflow-task.schema.json +924 -171
- package/dist/assemble-BLqQ8lSu.d.cts +0 -39
- package/dist/assemble-DWgaXHd-.d.ts +0 -39
- package/dist/chunk-DHTLALBL.cjs +0 -80
- package/dist/chunk-DJYMDLV5.js +0 -227
- package/dist/chunk-I5LR3D2K.js +0 -869
- package/dist/chunk-M4BBAERY.cjs +0 -1635
- package/dist/chunk-N23SKIG4.js +0 -73
- package/dist/chunk-PZCVF76Q.cjs +0 -868
- package/dist/chunk-QQ6ULXHI.cjs +0 -885
- package/dist/chunk-UK3WM7YZ.cjs +0 -75
- package/dist/chunk-VOKMAAJP.js +0 -848
- package/dist/node-evaluator-4MSDKWOG.cjs +0 -22
- package/dist/node-evaluator-SX4LEYQC.js +0 -12
- package/dist/workflow-C2a05WUJ.d.ts +0 -444
- package/dist/workflow-J-yYixny.d.cts +0 -444
package/dist/history/index.js
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
|
-
export { HISTORY_FILE_FORMAT, HISTORY_FILE_SCHEMA, HISTORY_FILE_SCHEMA_ID, HISTORY_SCHEMA_FILES, HistoryFileError, RUN_EVENT_SCHEMA, RUN_EVENT_SCHEMA_ID, WORKFLOW_COMMAND_SCHEMA, WORKFLOW_COMMAND_SCHEMA_ID, WORKFLOW_TASK_SCHEMA, WORKFLOW_TASK_SCHEMA_ID, compilePayloadValidator, createHistoryFile, parseHistoryFile, serializeHistoryFile, validateCommand, validateCommands, validateHistory, validateHistoryFile } from '../chunk-
|
|
1
|
+
export { BRIDGE_IDLE_TIMEOUT_MS, BRIDGE_MAX_FRAME_BYTES, BRIDGE_MAX_HISTORY_TAIL_BYTES, BRIDGE_PATH, BRIDGE_PING_SECONDS, BRIDGE_PROTOCOL_VERSION, BRIDGE_REQUEST_METHODS, BRIDGE_V2_SCHEMA, BRIDGE_V2_SCHEMA_ID, BRIDGE_WORKER_HEARTBEAT_SECONDS, BridgeCloseCode, HISTORY_FILE_FORMAT, HISTORY_FILE_SCHEMA, HISTORY_FILE_SCHEMA_ID, HISTORY_SCHEMA_FILES, HistoryFileError, RUN_EVENT_SCHEMA, RUN_EVENT_SCHEMA_ID, WORKFLOW_COMMAND_SCHEMA, WORKFLOW_COMMAND_SCHEMA_ID, WORKFLOW_TASK_SCHEMA, WORKFLOW_TASK_SCHEMA_ID, compilePayloadValidator, createHistoryFile, parseHistoryFile, serializeHistoryFile, validateBridgeFrame, validateCommand, validateCommands, validateHistory, validateHistoryFile } from '../chunk-YEHR4NNE.js';
|
|
2
|
+
export { COMMAND_FAILURE_FIELDS, COMMAND_PAYLOAD_FIELDS, ENCODED_PAYLOAD_MARKER, ENCODED_PAYLOAD_VERSION, FAILURE_CAUSE_FIELD, FAILURE_FIELDS, FAILURE_PAYLOAD_FIELDS, PAYLOAD_ENCODINGS, PAYLOAD_FIELDS, PAYLOAD_FIELDS_DOCUMENT, PAYLOAD_FIELDS_FORMAT, isEncodedPayload, mapCommandPayloads, mapEventPayloads, mapPayloadFields, payloadEncodingOf } from '../chunk-VU5S5A7V.js';
|
|
2
3
|
import '../chunk-PMCM2OH4.js';
|
|
3
|
-
export { CHILD_DEFAULT_CANCELLATION_TYPE, CHILD_DEFAULT_PARENT_CLOSE_POLICY,
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
4
|
+
export { CHILD_DEFAULT_CANCELLATION_TYPE, CHILD_DEFAULT_PARENT_CLOSE_POLICY, CODE_FEATURE_FLAGS, COMMAND_FEATURES, CORE_CAN_OPTIONS, CORE_CHILD_OPTIONS, HistoryStateError, PHASE_B_CORE_FEATURES, PHASE_B_PARITY_FEATURES, PHASE_C_CODE_FEATURES, PHASE_C_FEATURES, PHASE_C_FEATURE_FLAGS, applyEvent, codeFeaturesEnabledBy, codeWorkflowParentClosePolicy, commandFeatures, continueAsNewRetryShape, eventsForCommands, hasUnprocessedInput, initialRunState, isActivityOpen, isChildOpen, isCommandEnabled, isReliefCommand, isWorkflowCommandEnabled, mergeSearchAttributes, pendingCounts, projectRunState, splitActivations, taskCompletedEvents, unseenInputs, unsupportedMessage, utf8Bytes } from '../chunk-AE5Q6ZAJ.js';
|
|
5
|
+
export { ACTIVITY_ASYNC_COMPLETION_ALLOWLIST, ACTIVITY_INTERNAL_ALLOWLIST, ACTIVITY_NODE_ALLOWLIST, ACTIVITY_NODE_DENYLIST, ActivityNodeTypeNotAllowedError, assertActivityNodeType, isActivityNodeTypeAllowed } from '../chunk-AC6ZEXVR.js';
|
|
6
|
+
export { ACTIVITY_CANCELLATION_TYPES, ACTIVITY_NAME_PATTERN, BUILT_IN_QUERIES, CHILD_CANCELLATION_TYPES, COMMAND_EVENTS, COMMAND_EVENT_TYPES, COMMAND_TYPES, CONTINUE_AS_NEW_SUGGESTED_RATIO, DEFAULT_ACTIVITY_RETRY, DEFAULT_HISTORY_LIMIT, ERROR_TYPES, EVENT_TYPES, EXECUTION_KINDS, FAIRNESS_KEY_MAX_LENGTH, FAIRNESS_WEIGHT_MAX, FAIRNESS_WEIGHT_MIN, HISTORY_LIMIT_EXCEEDED_RATIO, HISTORY_PROTOCOL, INPUT_EVENTS, LOCAL_ACTIVITY_MAX_TIMEOUT_MS, MAX_ACTIVITY_CONNECTIONS, MAX_HEADERS_BYTES, MAX_SINK_CALLS, PARENT_CLOSE_POLICIES, PHASE_B_CORE_COMMANDS, PHASE_B_PARITY_COMMANDS, PHASE_C_COMMANDS, RUNTIME_CAPABILITIES, RUNTIME_RELEASE, TASK_FAILURE_CAUSES, TASK_QUEUE_NAME_PATTERN, TERMINAL_COMMANDS, TERMINAL_EVENTS, VERSIONING_BEHAVIORS, WORKFLOW_ID_CONFLICT_POLICIES, WORKFLOW_ID_REUSE_POLICIES, WORKFLOW_TIMEOUT_TYPES, computeRetryDelay, computeRunRetryDelay, explicitRetryPolicy, explicitRunRetryPolicy, isCommandEvent, isInputEvent } from '../chunk-5HIVIV53.js';
|
|
7
|
+
|
|
8
|
+
// src/history/rollout.ts
|
|
9
|
+
var FNV_OFFSET = 2166136261;
|
|
10
|
+
var FNV_PRIME = 16777619;
|
|
11
|
+
function utf8(key) {
|
|
12
|
+
const bytes = [];
|
|
13
|
+
for (let index = 0; index < key.length; index++) {
|
|
14
|
+
let code = key.charCodeAt(index);
|
|
15
|
+
if (code >= 55296 && code <= 56319) {
|
|
16
|
+
const next = index + 1 < key.length ? key.charCodeAt(index + 1) : 0;
|
|
17
|
+
if (next >= 56320 && next <= 57343) {
|
|
18
|
+
code = 65536 + (code - 55296 << 10) + (next - 56320);
|
|
19
|
+
index++;
|
|
20
|
+
} else code = 65533;
|
|
21
|
+
} else if (code >= 56320 && code <= 57343) code = 65533;
|
|
22
|
+
if (code < 128) bytes.push(code);
|
|
23
|
+
else if (code < 2048) bytes.push(192 | code >> 6, 128 | code & 63);
|
|
24
|
+
else if (code < 65536)
|
|
25
|
+
bytes.push(224 | code >> 12, 128 | code >> 6 & 63, 128 | code & 63);
|
|
26
|
+
else
|
|
27
|
+
bytes.push(
|
|
28
|
+
240 | code >> 18,
|
|
29
|
+
128 | code >> 12 & 63,
|
|
30
|
+
128 | code >> 6 & 63,
|
|
31
|
+
128 | code & 63
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
return bytes;
|
|
35
|
+
}
|
|
36
|
+
function fnv1a32(key) {
|
|
37
|
+
let hash = FNV_OFFSET;
|
|
38
|
+
for (const byte of utf8(key)) {
|
|
39
|
+
hash ^= byte;
|
|
40
|
+
hash = Math.imul(hash, FNV_PRIME) >>> 0;
|
|
41
|
+
}
|
|
42
|
+
return hash >>> 0;
|
|
43
|
+
}
|
|
44
|
+
function rolloutBucket(key) {
|
|
45
|
+
return fnv1a32(key) % 100;
|
|
46
|
+
}
|
|
47
|
+
function inRollout(key, percent) {
|
|
48
|
+
return rolloutBucket(key) < percent;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { fnv1a32, inRollout, rolloutBucket };
|
package/dist/index.cjs
CHANGED
|
@@ -1,101 +1,103 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
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
|
|
10
|
+
var chunkZCGKGDCL_cjs = require('./chunk-ZCGKGDCL.cjs');
|
|
11
|
+
var chunkVA4OFR72_cjs = require('./chunk-VA4OFR72.cjs');
|
|
10
12
|
require('./chunk-FR7KYWRO.cjs');
|
|
11
|
-
|
|
13
|
+
require('./chunk-TYF56RGB.cjs');
|
|
12
14
|
require('./chunk-Z2Y65YOY.cjs');
|
|
13
15
|
|
|
14
16
|
|
|
15
17
|
|
|
16
18
|
Object.defineProperty(exports, "COLLECTION_FORMAT", {
|
|
17
19
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk3U2NU7YC_cjs.COLLECTION_FORMAT; }
|
|
19
21
|
});
|
|
20
22
|
Object.defineProperty(exports, "collectWorkflowExports", {
|
|
21
23
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunk3U2NU7YC_cjs.collectWorkflowExports; }
|
|
23
25
|
});
|
|
24
26
|
Object.defineProperty(exports, "LAYOUT_FORMAT", {
|
|
25
27
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkIQPXHQQQ_cjs.LAYOUT_FORMAT; }
|
|
27
29
|
});
|
|
28
30
|
Object.defineProperty(exports, "LAYOUT_FORMAT_VERSION", {
|
|
29
31
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkIQPXHQQQ_cjs.LAYOUT_FORMAT_VERSION; }
|
|
31
33
|
});
|
|
32
34
|
Object.defineProperty(exports, "RECORDING_FORMAT", {
|
|
33
35
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkIQPXHQQQ_cjs.RECORDING_FORMAT; }
|
|
35
37
|
});
|
|
36
38
|
Object.defineProperty(exports, "RECORDING_FORMAT_VERSION", {
|
|
37
39
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkIQPXHQQQ_cjs.RECORDING_FORMAT_VERSION; }
|
|
39
41
|
});
|
|
40
42
|
Object.defineProperty(exports, "UnresolvedConnectionsError", {
|
|
41
43
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkIQPXHQQQ_cjs.UnresolvedConnectionsError; }
|
|
43
45
|
});
|
|
44
46
|
Object.defineProperty(exports, "WorkflowBuilder", {
|
|
45
47
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkIQPXHQQQ_cjs.WorkflowBuilder; }
|
|
47
49
|
});
|
|
48
50
|
Object.defineProperty(exports, "assembleRecording", {
|
|
49
51
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkIQPXHQQQ_cjs.assembleRecording; }
|
|
51
53
|
});
|
|
52
54
|
Object.defineProperty(exports, "defaultEdgeId", {
|
|
53
55
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkIQPXHQQQ_cjs.defaultEdgeId; }
|
|
55
57
|
});
|
|
56
58
|
Object.defineProperty(exports, "defineWorkflow", {
|
|
57
59
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkIQPXHQQQ_cjs.defineWorkflow; }
|
|
59
61
|
});
|
|
60
62
|
Object.defineProperty(exports, "edge", {
|
|
61
63
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkIQPXHQQQ_cjs.edge; }
|
|
63
65
|
});
|
|
64
66
|
Object.defineProperty(exports, "internalNodes", {
|
|
65
67
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkIQPXHQQQ_cjs.internalNodes; }
|
|
67
69
|
});
|
|
68
70
|
Object.defineProperty(exports, "isOperation", {
|
|
69
71
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkIQPXHQQQ_cjs.isOperation; }
|
|
71
73
|
});
|
|
72
74
|
Object.defineProperty(exports, "isTier1Workflow", {
|
|
73
75
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkIQPXHQQQ_cjs.isTier1Workflow; }
|
|
75
77
|
});
|
|
76
78
|
Object.defineProperty(exports, "nodes", {
|
|
77
79
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkIQPXHQQQ_cjs.nodes; }
|
|
79
81
|
});
|
|
80
82
|
Object.defineProperty(exports, "op", {
|
|
81
83
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkIQPXHQQQ_cjs.op; }
|
|
83
85
|
});
|
|
84
86
|
Object.defineProperty(exports, "parseLayoutSidecar", {
|
|
85
87
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkIQPXHQQQ_cjs.parseLayoutSidecar; }
|
|
87
89
|
});
|
|
88
90
|
Object.defineProperty(exports, "toIR", {
|
|
89
91
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkIQPXHQQQ_cjs.toIR; }
|
|
91
93
|
});
|
|
92
94
|
Object.defineProperty(exports, "trigger", {
|
|
93
95
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkIQPXHQQQ_cjs.trigger; }
|
|
95
97
|
});
|
|
96
98
|
Object.defineProperty(exports, "triggers", {
|
|
97
99
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkIQPXHQQQ_cjs.triggers; }
|
|
99
101
|
});
|
|
100
102
|
Object.defineProperty(exports, "BuilderError", {
|
|
101
103
|
enumerable: true,
|
|
@@ -117,99 +119,203 @@ Object.defineProperty(exports, "or", {
|
|
|
117
119
|
enumerable: true,
|
|
118
120
|
get: function () { return chunkGVTZMA5C_cjs.or; }
|
|
119
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
|
+
});
|
|
120
130
|
Object.defineProperty(exports, "ActivityFailure", {
|
|
121
131
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkZCGKGDCL_cjs.ActivityFailure; }
|
|
133
|
+
});
|
|
134
|
+
Object.defineProperty(exports, "ActivityPausedError", {
|
|
135
|
+
enumerable: true,
|
|
136
|
+
get: function () { return chunkZCGKGDCL_cjs.ActivityPausedError; }
|
|
123
137
|
});
|
|
124
138
|
Object.defineProperty(exports, "ApplicationError", {
|
|
125
139
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkZCGKGDCL_cjs.ApplicationError; }
|
|
127
141
|
});
|
|
128
142
|
Object.defineProperty(exports, "CancelledFailure", {
|
|
129
143
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkZCGKGDCL_cjs.CancelledFailure; }
|
|
131
145
|
});
|
|
132
146
|
Object.defineProperty(exports, "ChildRunFailure", {
|
|
133
147
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkZCGKGDCL_cjs.ChildRunFailure; }
|
|
135
149
|
});
|
|
136
150
|
Object.defineProperty(exports, "DeterminismViolation", {
|
|
137
151
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkZCGKGDCL_cjs.DeterminismViolation; }
|
|
139
153
|
});
|
|
140
154
|
Object.defineProperty(exports, "HistoryLimitExceeded", {
|
|
141
155
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkZCGKGDCL_cjs.HistoryLimitExceeded; }
|
|
143
157
|
});
|
|
144
158
|
Object.defineProperty(exports, "PhaseCFeatureError", {
|
|
145
159
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkZCGKGDCL_cjs.PhaseCFeatureError; }
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "QueryHandlerSideEffect", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () { return chunkZCGKGDCL_cjs.QueryHandlerSideEffect; }
|
|
147
165
|
});
|
|
148
166
|
Object.defineProperty(exports, "ServerFailure", {
|
|
149
167
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkZCGKGDCL_cjs.ServerFailure; }
|
|
151
169
|
});
|
|
152
170
|
Object.defineProperty(exports, "TerminatedFailure", {
|
|
153
171
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkZCGKGDCL_cjs.TerminatedFailure; }
|
|
155
173
|
});
|
|
156
174
|
Object.defineProperty(exports, "TimeoutFailure", {
|
|
157
175
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkZCGKGDCL_cjs.TimeoutFailure; }
|
|
159
177
|
});
|
|
160
178
|
Object.defineProperty(exports, "WorkflowFailure", {
|
|
161
179
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkZCGKGDCL_cjs.WorkflowFailure; }
|
|
163
181
|
});
|
|
164
182
|
Object.defineProperty(exports, "defineQuery", {
|
|
165
183
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkZCGKGDCL_cjs.defineQuery; }
|
|
167
185
|
});
|
|
168
186
|
Object.defineProperty(exports, "defineSignal", {
|
|
169
187
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkZCGKGDCL_cjs.defineSignal; }
|
|
171
189
|
});
|
|
172
190
|
Object.defineProperty(exports, "defineUpdate", {
|
|
173
191
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkZCGKGDCL_cjs.defineUpdate; }
|
|
175
193
|
});
|
|
176
194
|
Object.defineProperty(exports, "errorToFailure", {
|
|
177
195
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkZCGKGDCL_cjs.errorToFailure; }
|
|
179
197
|
});
|
|
180
198
|
Object.defineProperty(exports, "failureToError", {
|
|
181
199
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkZCGKGDCL_cjs.failureToError; }
|
|
183
201
|
});
|
|
184
202
|
Object.defineProperty(exports, "isCancellation", {
|
|
185
203
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkZCGKGDCL_cjs.isCancellation; }
|
|
187
205
|
});
|
|
188
|
-
Object.defineProperty(exports, "
|
|
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", {
|
|
189
211
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkVA4OFR72_cjs.ACTIVITY_MARKER; }
|
|
191
213
|
});
|
|
192
214
|
Object.defineProperty(exports, "DURABLE_MARKER", {
|
|
193
215
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
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; }
|
|
225
|
+
});
|
|
226
|
+
Object.defineProperty(exports, "MAX_WORKFLOW_TASK_TIMEOUT_MS", {
|
|
227
|
+
enumerable: true,
|
|
228
|
+
get: function () { return chunkVA4OFR72_cjs.MAX_WORKFLOW_TASK_TIMEOUT_MS; }
|
|
195
229
|
});
|
|
196
230
|
Object.defineProperty(exports, "SDK_VERSION", {
|
|
197
231
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
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; }
|
|
245
|
+
});
|
|
246
|
+
Object.defineProperty(exports, "continueAsNewRetryOf", {
|
|
247
|
+
enumerable: true,
|
|
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; }
|
|
199
281
|
});
|
|
200
282
|
Object.defineProperty(exports, "interfaceOf", {
|
|
201
283
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
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; }
|
|
203
293
|
});
|
|
204
294
|
Object.defineProperty(exports, "isDurableWorkflow", {
|
|
205
295
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunkVA4OFR72_cjs.isDurableWorkflow; }
|
|
207
297
|
});
|
|
208
298
|
Object.defineProperty(exports, "jsonSchemaOf", {
|
|
209
299
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
300
|
+
get: function () { return chunkVA4OFR72_cjs.jsonSchemaOf; }
|
|
301
|
+
});
|
|
302
|
+
Object.defineProperty(exports, "resolveWorkflowInterceptors", {
|
|
303
|
+
enumerable: true,
|
|
304
|
+
get: function () { return chunkVA4OFR72_cjs.resolveWorkflowInterceptors; }
|
|
305
|
+
});
|
|
306
|
+
Object.defineProperty(exports, "runRetryPolicyOf", {
|
|
307
|
+
enumerable: true,
|
|
308
|
+
get: function () { return chunkVA4OFR72_cjs.runRetryPolicyOf; }
|
|
309
|
+
});
|
|
310
|
+
Object.defineProperty(exports, "toMs", {
|
|
311
|
+
enumerable: true,
|
|
312
|
+
get: function () { return chunkVA4OFR72_cjs.toMs; }
|
|
211
313
|
});
|
|
212
314
|
Object.defineProperty(exports, "workflow", {
|
|
213
315
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
316
|
+
get: function () { return chunkVA4OFR72_cjs.workflow; }
|
|
317
|
+
});
|
|
318
|
+
Object.defineProperty(exports, "workflowInterceptors", {
|
|
319
|
+
enumerable: true,
|
|
320
|
+
get: function () { return chunkVA4OFR72_cjs.workflowInterceptors; }
|
|
215
321
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,54 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
export { A as
|
|
3
|
-
export { C as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Runs inside the evaluation isolate at the end of a bundle: gathers the
|
|
12
|
-
* recordings of every exported `defineWorkflow` value and the declarations of
|
|
13
|
-
* every exported tier-2 `workflow()` as one JSON string, the only thing that
|
|
14
|
-
* leaves the isolate.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
declare const COLLECTION_FORMAT = "fluidgrids.tier1-collection";
|
|
18
|
-
interface CollectedWorkflow {
|
|
19
|
-
module: string;
|
|
20
|
-
exportName: string;
|
|
21
|
-
recording: Tier1Recording;
|
|
22
|
-
}
|
|
23
|
-
/** The trigger a standalone tier-2 workflow declares. */
|
|
24
|
-
interface CollectedTrigger {
|
|
25
|
-
nodeType: string;
|
|
26
|
-
version?: string;
|
|
27
|
-
operation?: string;
|
|
28
|
-
args?: JsonObject;
|
|
29
|
-
id?: string;
|
|
30
|
-
}
|
|
31
|
-
/** One exported tier-2 workflow (C-ABI `durable` entries of the collection). */
|
|
32
|
-
interface CollectedDurableWorkflow {
|
|
33
|
-
module: string;
|
|
34
|
-
exportName: string;
|
|
35
|
-
/** The workflow key it gets when standalone. */
|
|
36
|
-
name: string;
|
|
37
|
-
title?: string;
|
|
38
|
-
description?: string;
|
|
39
|
-
taskQueue: string;
|
|
40
|
-
interface: WorkflowInterface;
|
|
41
|
-
standalone?: boolean;
|
|
42
|
-
trigger?: CollectedTrigger;
|
|
43
|
-
}
|
|
44
|
-
interface Tier1Collection {
|
|
45
|
-
format: typeof COLLECTION_FORMAT;
|
|
46
|
-
workflows: CollectedWorkflow[];
|
|
47
|
-
/** Tier-2 functions; absent when the bundle has none. */
|
|
48
|
-
durable?: CollectedDurableWorkflow[];
|
|
49
|
-
}
|
|
50
|
-
/** Collect the workflows exported by each module, as JSON. */
|
|
51
|
-
declare function collectWorkflowExports(modules: ReadonlyArray<readonly [string, Record<string, unknown>]>): string;
|
|
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';
|
|
52
10
|
|
|
53
11
|
/**
|
|
54
12
|
* Failure classes of tier-2 workflow code (spec 02 §4, 11 §2.25).
|
|
@@ -91,12 +49,34 @@ declare class ApplicationError extends WorkflowFailure {
|
|
|
91
49
|
readonly category: 'BENIGN' | undefined;
|
|
92
50
|
constructor(message: string, options?: ApplicationErrorOptions);
|
|
93
51
|
}
|
|
94
|
-
/**
|
|
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
|
+
*/
|
|
95
57
|
declare class ActivityFailure extends WorkflowFailure {
|
|
96
58
|
readonly activityId: string;
|
|
97
59
|
readonly nodeType: string;
|
|
98
60
|
readonly operation: string;
|
|
99
|
-
|
|
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);
|
|
100
80
|
}
|
|
101
81
|
/** A child run failed, timed out, was cancelled or terminated; `cause` says which. */
|
|
102
82
|
declare class ChildRunFailure extends WorkflowFailure {
|
|
@@ -134,9 +114,9 @@ declare class HistoryLimitExceeded extends Error {
|
|
|
134
114
|
constructor(message: string);
|
|
135
115
|
}
|
|
136
116
|
/**
|
|
137
|
-
* A
|
|
138
|
-
*
|
|
139
|
-
* with `UNSUPPORTED_COMMAND`; `
|
|
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.
|
|
140
120
|
*/
|
|
141
121
|
declare class PhaseCFeatureError extends Error {
|
|
142
122
|
readonly code = "durable.phaseC";
|
|
@@ -150,6 +130,6 @@ declare function errorToFailure(error: unknown, source?: string, depth?: number)
|
|
|
150
130
|
declare function failureToError(failure: Failure, depth?: number): WorkflowFailure;
|
|
151
131
|
|
|
152
132
|
/** The version of @fluidgrids/workflows. */
|
|
153
|
-
declare const SDK_VERSION = "2026.
|
|
133
|
+
declare const SDK_VERSION = "2026.1030.1";
|
|
154
134
|
|
|
155
|
-
export { ActivityFailure, ApplicationError, type ApplicationErrorOptions,
|
|
135
|
+
export { ActivityFailure, ActivityPausedError, ApplicationError, type ApplicationErrorOptions, CancelledFailure, ChildRunFailure, DeterminismViolation, Failure, HistoryLimitExceeded, Json, PhaseCFeatureError, QueryHandlerSideEffect, SDK_VERSION, ServerFailure, TerminatedFailure, TimeoutFailure, WorkflowFailure, errorToFailure, failureToError, isCancellation };
|