@fluidgrids/workflows 2026.1029.1 → 2026.1030.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/README.md +112 -4
  2. package/dist/{activation-CESehfYi.d.cts → activation-DqUfpHzk.d.cts} +1 -1
  3. package/dist/{activation-BnVQMv9y.d.ts → activation-xpx1oWuo.d.ts} +1 -1
  4. package/dist/{chunk-MJ5TGYVG.js → chunk-2D3MYIIF.js} +969 -153
  5. package/dist/{chunk-2B37XAFQ.cjs → chunk-3U2NU7YC.cjs} +24 -11
  6. package/dist/{chunk-NEIUQASE.cjs → chunk-4QKB4ARC.cjs} +3 -3
  7. package/dist/{chunk-GBQ33SIZ.cjs → chunk-54FLQNUM.cjs} +12 -1
  8. package/dist/{chunk-2DDULZFM.js → chunk-5HIVIV53.js} +86 -75
  9. package/dist/chunk-5MFVJM76.js +1222 -0
  10. package/dist/{chunk-EWYADREB.cjs → chunk-672KMMBK.cjs} +2 -2
  11. package/dist/{chunk-KXJDRQ6G.js → chunk-6A2FGSUS.js} +22 -2
  12. package/dist/{chunk-OIX4O6UR.js → chunk-6OLN6BMB.js} +16 -3
  13. package/dist/{chunk-6FSHT5IL.js → chunk-7EZIANC7.js} +1 -1
  14. package/dist/chunk-A5SXCA62.cjs +93 -0
  15. package/dist/chunk-AC6ZEXVR.js +85 -0
  16. package/dist/{chunk-FWBRQWRX.js → chunk-AE5Q6ZAJ.js} +167 -10
  17. package/dist/{chunk-7ILGCUI6.js → chunk-C4F5KJTI.js} +142 -3
  18. package/dist/{chunk-WXXNCHUY.js → chunk-G5H32GIG.js} +1 -1
  19. package/dist/{chunk-OMY3CKUZ.cjs → chunk-GEQDGUGB.cjs} +1042 -226
  20. package/dist/{chunk-25BKWR2O.js → chunk-HCM7ZC7Q.js} +1 -1
  21. package/dist/{chunk-I47EENR4.cjs → chunk-HMZUGSMU.cjs} +673 -156
  22. package/dist/{chunk-NXFBVDOI.cjs → chunk-IQPXHQQQ.cjs} +8 -4
  23. package/dist/{chunk-RUQIMTN5.cjs → chunk-ISOIA7NV.cjs} +178 -15
  24. package/dist/chunk-JSC75O5C.cjs +167 -0
  25. package/dist/{chunk-BD7ZPG53.js → chunk-NWQ5WRLE.js} +10 -2
  26. package/dist/chunk-ODZ2IAR2.cjs +1247 -0
  27. package/dist/{chunk-FQSJI5NV.js → chunk-SR7TR5KX.js} +6 -2
  28. package/dist/{chunk-OKX3FYIM.cjs → chunk-TCTE7DX5.cjs} +3 -3
  29. package/dist/{chunk-3FIDHONL.cjs → chunk-TYF56RGB.cjs} +99 -80
  30. package/dist/{chunk-J3PYFGKA.cjs → chunk-VA4OFR72.cjs} +162 -4
  31. package/dist/chunk-VU5S5A7V.js +150 -0
  32. package/dist/{chunk-A36CCOWS.js → chunk-YEHR4NNE.js} +633 -128
  33. package/dist/{chunk-ELL2RBML.cjs → chunk-ZCGKGDCL.cjs} +23 -1
  34. package/dist/codegen/index.d.cts +2 -2
  35. package/dist/codegen/index.d.ts +2 -2
  36. package/dist/{collect-BTHjQaSp.d.ts → collect-6NIEufHd.d.ts} +20 -3
  37. package/dist/{collect-CSyOg5XC.d.cts → collect-CcTCKqx6.d.cts} +20 -3
  38. package/dist/{file-cgL9l9l8.d.cts → file-BxYpwjRQ.d.cts} +250 -15
  39. package/dist/{file-olQudcx5.d.ts → file-CFdPQJI9.d.ts} +250 -15
  40. package/dist/history/index.cjs +283 -106
  41. package/dist/history/index.d.cts +549 -10
  42. package/dist/history/index.d.ts +549 -10
  43. package/dist/history/index.js +5 -4
  44. package/dist/index.cjs +146 -53
  45. package/dist/index.d.cts +38 -14
  46. package/dist/index.d.ts +38 -14
  47. package/dist/index.js +6 -5
  48. package/dist/interceptors-CNcr2dlk.d.ts +159 -0
  49. package/dist/interceptors-CqkNZVfI.d.cts +159 -0
  50. package/dist/ir/index.cjs +339 -36
  51. package/dist/ir/index.d.cts +244 -8
  52. package/dist/ir/index.d.ts +244 -8
  53. package/dist/ir/index.js +306 -21
  54. package/dist/{lower-3S6PsqjJ.d.cts → lower-BtRfIW2A.d.cts} +23 -9
  55. package/dist/{lower-DmZpQ8hJ.d.ts → lower-CpsMFOFX.d.ts} +23 -9
  56. package/dist/{manifest-BJjrQt77.d.ts → manifest-D-I_twys.d.ts} +1 -1
  57. package/dist/{manifest-gRI2Q5Fj.d.cts → manifest-DahBQVM8.d.cts} +1 -1
  58. package/dist/node-evaluator-DGQDPSPI.cjs +24 -0
  59. package/dist/node-evaluator-LEEVD7H7.js +14 -0
  60. package/dist/payload-fields-BVRQn2yH.d.cts +122 -0
  61. package/dist/payload-fields-oOBWxDiG.d.ts +122 -0
  62. package/dist/quickjs/index.cjs +27 -27
  63. package/dist/quickjs/index.d.cts +6 -6
  64. package/dist/quickjs/index.d.ts +6 -6
  65. package/dist/quickjs/index.js +9 -9
  66. package/dist/roundtrip/index.cjs +72 -66
  67. package/dist/roundtrip/index.d.cts +25 -11
  68. package/dist/roundtrip/index.d.ts +25 -11
  69. package/dist/roundtrip/index.js +13 -11
  70. package/dist/runtime/index.cjs +19 -19
  71. package/dist/runtime/index.d.cts +139 -12
  72. package/dist/runtime/index.d.ts +139 -12
  73. package/dist/runtime/index.js +6 -6
  74. package/dist/testing/index.cjs +688 -121
  75. package/dist/testing/index.d.cts +174 -10
  76. package/dist/testing/index.d.ts +174 -10
  77. package/dist/testing/index.js +646 -82
  78. package/dist/{types-CnIOinoz.d.ts → types-Bv2i4cBX.d.cts} +126 -23
  79. package/dist/{types-CQKOhPTa.d.cts → types-DGx-b9eq.d.ts} +126 -23
  80. package/dist/{types-Bb2wRnJ5.d.cts → types-V7jEEUaL.d.cts} +1 -1
  81. package/dist/{types-Bb2wRnJ5.d.ts → types-V7jEEUaL.d.ts} +1 -1
  82. package/dist/{workflow-8uRU9rhL.d.ts → workflow-B18OeF7g.d.ts} +2 -2
  83. package/dist/{workflow-DWTPHFbt.d.ts → workflow-BGnv8SS6.d.ts} +261 -14
  84. package/dist/{workflow-CZOXUlQ5.d.cts → workflow-BJPFv3cp.d.cts} +2 -2
  85. package/dist/{workflow-O6e64ZcG.d.cts → workflow-DS32Gtws.d.cts} +261 -14
  86. package/fixtures/histories/activity-options-updated.history.json +159 -0
  87. package/fixtures/histories/activity-paused-unpaused.history.json +160 -0
  88. package/fixtures/histories/codec-opaque.history.json +229 -0
  89. package/fixtures/histories/dynamic-workflow.history.json +150 -0
  90. package/fixtures/histories/interceptor-headers.history.json +339 -0
  91. package/fixtures/histories/query-custom.history.json +213 -0
  92. package/fixtures/histories/query-default-handler.history.json +120 -0
  93. package/fixtures/histories/reset-forked-reapplied-signals.history.json +239 -0
  94. package/fixtures/histories/reset-reapplied-update-admitted.history.json +228 -0
  95. package/fixtures/histories/search-attributes-upserted.history.json +177 -0
  96. package/fixtures/histories/update-accepted-completed.history.json +45 -30
  97. package/fixtures/histories/update-default-handler.history.json +246 -0
  98. package/fixtures/histories/update-handler-awaits-activity.history.json +196 -0
  99. package/fixtures/histories/update-not-handled.history.json +138 -0
  100. package/fixtures/histories/update-rejected-no-event.history.json +190 -0
  101. package/fixtures/histories/update-with-start-admitted.history.json +150 -0
  102. package/fixtures/histories/user-activity-cancel.history.json +149 -0
  103. package/fixtures/histories/user-activity-retry.history.json +143 -0
  104. package/fixtures/histories/user-activity.history.json +149 -0
  105. package/package.json +1 -1
  106. package/schema/bridge-v2.schema.json +1062 -0
  107. package/schema/history-file.schema.json +255 -81
  108. package/schema/ir-v2.schema.json +246 -1
  109. package/schema/payload-fields.json +162 -0
  110. package/schema/run-event.schema.json +239 -80
  111. package/schema/workflow-command.schema.json +210 -84
  112. package/schema/workflow-task.schema.json +532 -167
  113. package/dist/chunk-6QPOJZT6.cjs +0 -1180
  114. package/dist/chunk-A2OHX3UQ.js +0 -1156
  115. package/dist/chunk-PWIUEWC3.js +0 -81
  116. package/dist/chunk-YHBVMOMK.cjs +0 -87
  117. package/dist/node-evaluator-SOADN23V.js +0 -14
  118. package/dist/node-evaluator-YGDEXK4U.cjs +0 -24
@@ -1,81 +0,0 @@
1
- // src/history/retry.ts
2
- var DEFAULT_ACTIVITY_RETRY = Object.freeze({
3
- retryDelay: 1e3,
4
- backoffMultiplier: 2,
5
- maxDelay: 1e5
6
- });
7
- var FINAL_TIMEOUTS = /* @__PURE__ */ new Set(["SCHEDULE_TO_START", "SCHEDULE_TO_CLOSE"]);
8
- function computeRetryDelay(policy, attempt, failure) {
9
- if (failure?.nonRetryable === true) return { retry: false, reason: "nonRetryable" };
10
- if (failure?.timeoutType !== void 0 && FINAL_TIMEOUTS.has(failure.timeoutType))
11
- return { retry: false, reason: "finalTimeout" };
12
- if (failure?.type !== void 0 && policy.nonRetryableErrorTypes !== void 0 && policy.nonRetryableErrorTypes.includes(failure.type))
13
- return { retry: false, reason: "typeDenied" };
14
- if (failure !== void 0 && policy.retryOnErrorTypes !== void 0 && policy.retryOnErrorTypes.length > 0 && !policy.retryOnErrorTypes.includes(failure.errorType))
15
- return { retry: false, reason: "errorTypeNotListed" };
16
- if (policy.maxRetries !== void 0 && attempt > policy.maxRetries)
17
- return { retry: false, reason: "maxRetries" };
18
- if (failure?.nextRetryDelayMs !== void 0)
19
- return { retry: true, delayMs: Math.max(0, Math.round(failure.nextRetryDelayMs)) };
20
- const base = Math.max(0, policy.retryDelay);
21
- const multiplier = policy.backoffMultiplier ?? 2;
22
- const cap = policy.maxDelay ?? base * 100;
23
- const exponent = Math.max(0, attempt - 1);
24
- const delay = Math.min(base * Math.pow(multiplier, exponent), cap);
25
- return { retry: true, delayMs: Math.round(Number.isFinite(delay) ? delay : cap) };
26
- }
27
- function explicitRetryPolicy(policy) {
28
- const retryDelay = policy?.retryDelay ?? DEFAULT_ACTIVITY_RETRY.retryDelay;
29
- const out = {
30
- retryDelay,
31
- backoffMultiplier: policy?.backoffMultiplier ?? DEFAULT_ACTIVITY_RETRY.backoffMultiplier ?? 2,
32
- maxDelay: policy?.maxDelay ?? (policy?.retryDelay === void 0 ? 1e5 : Math.max(retryDelay, retryDelay * 100))
33
- };
34
- if (policy?.maxRetries !== void 0) out.maxRetries = policy.maxRetries;
35
- if (policy?.retryOnErrorTypes !== void 0)
36
- out.retryOnErrorTypes = [...policy.retryOnErrorTypes];
37
- if (policy?.nonRetryableErrorTypes !== void 0)
38
- out.nonRetryableErrorTypes = [...policy.nonRetryableErrorTypes];
39
- return out;
40
- }
41
- function computeRunRetryDelay(policy, attempt, failure) {
42
- if (policy === void 0) return { retry: false, reason: "noPolicy" };
43
- if (failure.timeoutType === "WORKFLOW_EXECUTION")
44
- return { retry: false, reason: "executionTimeout" };
45
- if (policy.maxAttempts !== void 0 && attempt >= policy.maxAttempts)
46
- return { retry: false, reason: "maxAttempts" };
47
- const activityPolicy = {
48
- retryDelay: policy.initialDelayMs,
49
- ...policy.backoffMultiplier !== void 0 ? { backoffMultiplier: policy.backoffMultiplier } : {},
50
- ...policy.maxDelayMs !== void 0 ? { maxDelay: policy.maxDelayMs } : {},
51
- ...policy.retryOnErrorTypes !== void 0 ? { retryOnErrorTypes: policy.retryOnErrorTypes } : {},
52
- ...policy.nonRetryableErrorTypes !== void 0 ? { nonRetryableErrorTypes: policy.nonRetryableErrorTypes } : {}
53
- };
54
- const classified = { ...failure };
55
- if (classified.timeoutType === "WORKFLOW_RUN") delete classified.timeoutType;
56
- const decision = computeRetryDelay(activityPolicy, attempt, classified);
57
- if (decision.retry) return decision;
58
- switch (decision.reason) {
59
- case "nonRetryable":
60
- case "typeDenied":
61
- case "errorTypeNotListed":
62
- return { retry: false, reason: decision.reason };
63
- default:
64
- return { retry: false, reason: "maxAttempts" };
65
- }
66
- }
67
- function explicitRunRetryPolicy(policy) {
68
- const initialDelayMs = policy.initialDelayMs ?? DEFAULT_ACTIVITY_RETRY.retryDelay;
69
- const out = {
70
- initialDelayMs,
71
- backoffMultiplier: policy.backoffMultiplier ?? 2,
72
- maxDelayMs: policy.maxDelayMs ?? (policy.initialDelayMs === void 0 ? 1e5 : Math.max(initialDelayMs, initialDelayMs * 100))
73
- };
74
- if (policy.maxAttempts !== void 0) out.maxAttempts = policy.maxAttempts;
75
- if (policy.retryOnErrorTypes !== void 0) out.retryOnErrorTypes = [...policy.retryOnErrorTypes];
76
- if (policy.nonRetryableErrorTypes !== void 0)
77
- out.nonRetryableErrorTypes = [...policy.nonRetryableErrorTypes];
78
- return out;
79
- }
80
-
81
- export { DEFAULT_ACTIVITY_RETRY, computeRetryDelay, computeRunRetryDelay, explicitRetryPolicy, explicitRunRetryPolicy };
@@ -1,87 +0,0 @@
1
- 'use strict';
2
-
3
- // src/history/retry.ts
4
- var DEFAULT_ACTIVITY_RETRY = Object.freeze({
5
- retryDelay: 1e3,
6
- backoffMultiplier: 2,
7
- maxDelay: 1e5
8
- });
9
- var FINAL_TIMEOUTS = /* @__PURE__ */ new Set(["SCHEDULE_TO_START", "SCHEDULE_TO_CLOSE"]);
10
- function computeRetryDelay(policy, attempt, failure) {
11
- if (failure?.nonRetryable === true) return { retry: false, reason: "nonRetryable" };
12
- if (failure?.timeoutType !== void 0 && FINAL_TIMEOUTS.has(failure.timeoutType))
13
- return { retry: false, reason: "finalTimeout" };
14
- if (failure?.type !== void 0 && policy.nonRetryableErrorTypes !== void 0 && policy.nonRetryableErrorTypes.includes(failure.type))
15
- return { retry: false, reason: "typeDenied" };
16
- if (failure !== void 0 && policy.retryOnErrorTypes !== void 0 && policy.retryOnErrorTypes.length > 0 && !policy.retryOnErrorTypes.includes(failure.errorType))
17
- return { retry: false, reason: "errorTypeNotListed" };
18
- if (policy.maxRetries !== void 0 && attempt > policy.maxRetries)
19
- return { retry: false, reason: "maxRetries" };
20
- if (failure?.nextRetryDelayMs !== void 0)
21
- return { retry: true, delayMs: Math.max(0, Math.round(failure.nextRetryDelayMs)) };
22
- const base = Math.max(0, policy.retryDelay);
23
- const multiplier = policy.backoffMultiplier ?? 2;
24
- const cap = policy.maxDelay ?? base * 100;
25
- const exponent = Math.max(0, attempt - 1);
26
- const delay = Math.min(base * Math.pow(multiplier, exponent), cap);
27
- return { retry: true, delayMs: Math.round(Number.isFinite(delay) ? delay : cap) };
28
- }
29
- function explicitRetryPolicy(policy) {
30
- const retryDelay = policy?.retryDelay ?? DEFAULT_ACTIVITY_RETRY.retryDelay;
31
- const out = {
32
- retryDelay,
33
- backoffMultiplier: policy?.backoffMultiplier ?? DEFAULT_ACTIVITY_RETRY.backoffMultiplier ?? 2,
34
- maxDelay: policy?.maxDelay ?? (policy?.retryDelay === void 0 ? 1e5 : Math.max(retryDelay, retryDelay * 100))
35
- };
36
- if (policy?.maxRetries !== void 0) out.maxRetries = policy.maxRetries;
37
- if (policy?.retryOnErrorTypes !== void 0)
38
- out.retryOnErrorTypes = [...policy.retryOnErrorTypes];
39
- if (policy?.nonRetryableErrorTypes !== void 0)
40
- out.nonRetryableErrorTypes = [...policy.nonRetryableErrorTypes];
41
- return out;
42
- }
43
- function computeRunRetryDelay(policy, attempt, failure) {
44
- if (policy === void 0) return { retry: false, reason: "noPolicy" };
45
- if (failure.timeoutType === "WORKFLOW_EXECUTION")
46
- return { retry: false, reason: "executionTimeout" };
47
- if (policy.maxAttempts !== void 0 && attempt >= policy.maxAttempts)
48
- return { retry: false, reason: "maxAttempts" };
49
- const activityPolicy = {
50
- retryDelay: policy.initialDelayMs,
51
- ...policy.backoffMultiplier !== void 0 ? { backoffMultiplier: policy.backoffMultiplier } : {},
52
- ...policy.maxDelayMs !== void 0 ? { maxDelay: policy.maxDelayMs } : {},
53
- ...policy.retryOnErrorTypes !== void 0 ? { retryOnErrorTypes: policy.retryOnErrorTypes } : {},
54
- ...policy.nonRetryableErrorTypes !== void 0 ? { nonRetryableErrorTypes: policy.nonRetryableErrorTypes } : {}
55
- };
56
- const classified = { ...failure };
57
- if (classified.timeoutType === "WORKFLOW_RUN") delete classified.timeoutType;
58
- const decision = computeRetryDelay(activityPolicy, attempt, classified);
59
- if (decision.retry) return decision;
60
- switch (decision.reason) {
61
- case "nonRetryable":
62
- case "typeDenied":
63
- case "errorTypeNotListed":
64
- return { retry: false, reason: decision.reason };
65
- default:
66
- return { retry: false, reason: "maxAttempts" };
67
- }
68
- }
69
- function explicitRunRetryPolicy(policy) {
70
- const initialDelayMs = policy.initialDelayMs ?? DEFAULT_ACTIVITY_RETRY.retryDelay;
71
- const out = {
72
- initialDelayMs,
73
- backoffMultiplier: policy.backoffMultiplier ?? 2,
74
- maxDelayMs: policy.maxDelayMs ?? (policy.initialDelayMs === void 0 ? 1e5 : Math.max(initialDelayMs, initialDelayMs * 100))
75
- };
76
- if (policy.maxAttempts !== void 0) out.maxAttempts = policy.maxAttempts;
77
- if (policy.retryOnErrorTypes !== void 0) out.retryOnErrorTypes = [...policy.retryOnErrorTypes];
78
- if (policy.nonRetryableErrorTypes !== void 0)
79
- out.nonRetryableErrorTypes = [...policy.nonRetryableErrorTypes];
80
- return out;
81
- }
82
-
83
- exports.DEFAULT_ACTIVITY_RETRY = DEFAULT_ACTIVITY_RETRY;
84
- exports.computeRetryDelay = computeRetryDelay;
85
- exports.computeRunRetryDelay = computeRunRetryDelay;
86
- exports.explicitRetryPolicy = explicitRetryPolicy;
87
- exports.explicitRunRetryPolicy = explicitRunRetryPolicy;
@@ -1,14 +0,0 @@
1
- export { createNodeVmEvaluator } from './chunk-25BKWR2O.js';
2
- import './chunk-A2OHX3UQ.js';
3
- import './chunk-OIX4O6UR.js';
4
- import './chunk-FQSJI5NV.js';
5
- import './chunk-BD7ZPG53.js';
6
- import './chunk-5LUIDMF4.js';
7
- import './chunk-JZ4TOOLN.js';
8
- import './chunk-E2VK7J2C.js';
9
- import './chunk-7AAZGVKD.js';
10
- import './chunk-PMCM2OH4.js';
11
- import './chunk-7ILGCUI6.js';
12
- import './chunk-LNUQE6D6.js';
13
- import './chunk-2DDULZFM.js';
14
- import './chunk-PWIUEWC3.js';
@@ -1,24 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkOKX3FYIM_cjs = require('./chunk-OKX3FYIM.cjs');
4
- require('./chunk-6QPOJZT6.cjs');
5
- require('./chunk-2B37XAFQ.cjs');
6
- require('./chunk-NXFBVDOI.cjs');
7
- require('./chunk-GBQ33SIZ.cjs');
8
- require('./chunk-G4UEPUGO.cjs');
9
- require('./chunk-GVTZMA5C.cjs');
10
- require('./chunk-QKZL3ONM.cjs');
11
- require('./chunk-TBDXTV22.cjs');
12
- require('./chunk-SAENRNBJ.cjs');
13
- require('./chunk-J3PYFGKA.cjs');
14
- require('./chunk-FR7KYWRO.cjs');
15
- require('./chunk-3FIDHONL.cjs');
16
- require('./chunk-YHBVMOMK.cjs');
17
- require('./chunk-Z2Y65YOY.cjs');
18
-
19
-
20
-
21
- Object.defineProperty(exports, "createNodeVmEvaluator", {
22
- enumerable: true,
23
- get: function () { return chunkOKX3FYIM_cjs.createNodeVmEvaluator; }
24
- });