@fluidgrids/workflows 2026.1028.1 → 2026.1028.2
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/dist/{chunk-FQIHX7YI.cjs → chunk-DHTLALBL.cjs} +1 -1
- package/dist/{chunk-HR3BN4C4.cjs → chunk-FEW3JBYA.cjs} +3 -3
- package/dist/{chunk-5HDSBTBX.js → chunk-HWJZVOG7.js} +1 -1
- package/dist/{chunk-H7KEVW2M.js → chunk-I5LR3D2K.js} +62 -9
- package/dist/{chunk-CSNWNFKU.cjs → chunk-M4BBAERY.cjs} +5 -5
- package/dist/{chunk-7NQ37GZU.js → chunk-N23SKIG4.js} +1 -1
- package/dist/{chunk-2DP2Y6EU.cjs → chunk-QQ6ULXHI.cjs} +72 -19
- package/dist/{chunk-57MSZ24T.cjs → chunk-SAOBPYYJ.cjs} +3 -3
- package/dist/{chunk-CBL5JSCC.cjs → chunk-UK3WM7YZ.cjs} +8 -8
- package/dist/{chunk-3FOTFQ3J.js → chunk-VRHHBPT6.js} +1 -1
- package/dist/{chunk-XB53G2DK.js → chunk-XHXIDVEC.js} +1 -1
- package/dist/{chunk-PDHLTDZB.js → chunk-XKJA7KX3.js} +2 -2
- package/dist/index.cjs +30 -30
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/{lower-BuSvAFqi.d.cts → lower-BzmUz0sq.d.cts} +1 -1
- package/dist/{lower-C_Qv_34S.d.ts → lower-_-iT4HYs.d.ts} +1 -1
- package/dist/lower-types-DQNBfWQn.d.cts +37 -0
- package/dist/lower-types-DQNBfWQn.d.ts +37 -0
- package/dist/{node-evaluator-DMKPKUWA.cjs → node-evaluator-4MSDKWOG.cjs} +6 -6
- package/dist/{node-evaluator-CJNP4GHX.js → node-evaluator-SX4LEYQC.js} +5 -5
- package/dist/quickjs/index.cjs +7 -7
- package/dist/quickjs/index.d.cts +2 -2
- package/dist/quickjs/index.d.ts +2 -2
- package/dist/quickjs/index.js +4 -4
- package/dist/roundtrip/index.cjs +42 -42
- package/dist/roundtrip/index.d.cts +4 -4
- package/dist/roundtrip/index.d.ts +4 -4
- package/dist/roundtrip/index.js +6 -6
- package/dist/runtime/index.cjs +14 -14
- package/dist/runtime/index.js +2 -2
- package/dist/testing/index.cjs +7 -7
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +3 -3
- package/package.json +1 -1
- package/dist/lower-types-nofRXw9c.d.cts +0 -15
- package/dist/lower-types-nofRXw9c.d.ts +0 -15
|
@@ -4,7 +4,7 @@ var chunkG4UEPUGO_cjs = require('./chunk-G4UEPUGO.cjs');
|
|
|
4
4
|
var chunkGVTZMA5C_cjs = require('./chunk-GVTZMA5C.cjs');
|
|
5
5
|
var chunkTBDXTV22_cjs = require('./chunk-TBDXTV22.cjs');
|
|
6
6
|
var chunkSAENRNBJ_cjs = require('./chunk-SAENRNBJ.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkDHTLALBL_cjs = require('./chunk-DHTLALBL.cjs');
|
|
8
8
|
|
|
9
9
|
// src/builder/descriptors.ts
|
|
10
10
|
function op(nodeType, version, operation) {
|
|
@@ -334,7 +334,7 @@ var WorkflowBuilder = class {
|
|
|
334
334
|
let workflowFn;
|
|
335
335
|
let definition;
|
|
336
336
|
if (typeof fn === "string" && fn !== "") workflowFn = fn;
|
|
337
|
-
else if (
|
|
337
|
+
else if (chunkDHTLALBL_cjs.isDurableWorkflow(fn)) {
|
|
338
338
|
definition = fn;
|
|
339
339
|
workflowFn = fn.name;
|
|
340
340
|
} else throw new chunkGVTZMA5C_cjs.BuilderError("wf.codeWorkflow needs a workflow() function or its export name");
|
|
@@ -755,7 +755,7 @@ function assembleRecording(recording, options = {}) {
|
|
|
755
755
|
const authoring = options.authoring ?? {
|
|
756
756
|
mode: "canvas",
|
|
757
757
|
generator: "sdk-ts",
|
|
758
|
-
generatorVersion:
|
|
758
|
+
generatorVersion: chunkDHTLALBL_cjs.SDK_VERSION
|
|
759
759
|
};
|
|
760
760
|
const out = { schemaVersion: 2 };
|
|
761
761
|
for (const key of ["key", "name", "description", "interface", "code"]) {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSAOBPYYJ_cjs = require('./chunk-SAOBPYYJ.cjs');
|
|
4
4
|
var chunkGVTZMA5C_cjs = require('./chunk-GVTZMA5C.cjs');
|
|
5
5
|
var chunkSAENRNBJ_cjs = require('./chunk-SAENRNBJ.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkDHTLALBL_cjs = require('./chunk-DHTLALBL.cjs');
|
|
7
7
|
|
|
8
8
|
// src/builder/collect.ts
|
|
9
9
|
var COLLECTION_FORMAT = "fluidgrids.tier1-collection";
|
|
10
10
|
function triggerOf(spec, where) {
|
|
11
11
|
if (spec === void 0) return void 0;
|
|
12
|
-
const operation =
|
|
13
|
-
if (!
|
|
12
|
+
const operation = chunkSAOBPYYJ_cjs.isOperation(spec) ? spec : chunkSAENRNBJ_cjs.isRecord(spec) ? spec.operation : void 0;
|
|
13
|
+
if (!chunkSAOBPYYJ_cjs.isOperation(operation))
|
|
14
14
|
throw new chunkGVTZMA5C_cjs.BuilderError(`${where}: trigger must be a trigger operation`);
|
|
15
15
|
const out = { nodeType: operation.nodeType };
|
|
16
16
|
if (operation.version !== void 0) out.version = operation.version;
|
|
17
17
|
if (operation.operation !== void 0) out.operation = operation.operation;
|
|
18
|
-
if (!
|
|
18
|
+
if (!chunkSAOBPYYJ_cjs.isOperation(spec)) {
|
|
19
19
|
if (spec.args !== void 0) out.args = spec.args;
|
|
20
20
|
if (spec.id !== void 0) out.id = spec.id;
|
|
21
21
|
}
|
|
@@ -27,7 +27,7 @@ function collectWorkflowExports(modules) {
|
|
|
27
27
|
for (const [module, namespace] of modules) {
|
|
28
28
|
for (const exportName of Object.keys(namespace).sort()) {
|
|
29
29
|
const value = namespace[exportName];
|
|
30
|
-
if (!
|
|
30
|
+
if (!chunkDHTLALBL_cjs.isDurableWorkflow(value) || exportNames.has(value)) continue;
|
|
31
31
|
exportNames.set(value, exportName);
|
|
32
32
|
const options = value.options;
|
|
33
33
|
const entry = {
|
|
@@ -35,7 +35,7 @@ function collectWorkflowExports(modules) {
|
|
|
35
35
|
exportName,
|
|
36
36
|
name: value.name,
|
|
37
37
|
taskQueue: options.taskQueue ?? "managed",
|
|
38
|
-
interface:
|
|
38
|
+
interface: chunkDHTLALBL_cjs.interfaceOf(value)
|
|
39
39
|
};
|
|
40
40
|
if (options.title !== void 0) entry.title = options.title;
|
|
41
41
|
if (options.description !== void 0) entry.description = options.description;
|
|
@@ -49,7 +49,7 @@ function collectWorkflowExports(modules) {
|
|
|
49
49
|
for (const [module, namespace] of modules) {
|
|
50
50
|
for (const exportName of Object.keys(namespace).sort()) {
|
|
51
51
|
const value = namespace[exportName];
|
|
52
|
-
if (!
|
|
52
|
+
if (!chunkSAOBPYYJ_cjs.isTier1Workflow(value)) continue;
|
|
53
53
|
for (const ref of value.durableRefs ?? []) {
|
|
54
54
|
const resolved = exportNames.get(ref.definition);
|
|
55
55
|
if (resolved === void 0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ServerFailure, failureToError, CancelledFailure, TimeoutFailure, ApplicationError, TerminatedFailure, DeterminismViolation, HistoryLimitExceeded, PhaseCFeatureError, isCancellation, isRunFailure, errorToFailure, optionalMs, ActivityFailure, toMs, signalName, ChildRunFailure } from './chunk-C5OLWZ42.js';
|
|
2
2
|
import { createRandom, seedOf, takeShimControl, uuidFrom } from './chunk-4LYSEANA.js';
|
|
3
|
-
import { isDurableWorkflow, SDK_VERSION } from './chunk-
|
|
3
|
+
import { isDurableWorkflow, SDK_VERSION } from './chunk-N23SKIG4.js';
|
|
4
4
|
import { utf8Bytes, splitActivations, explicitRetryPolicy, CHILD_DEFAULT_CANCELLATION_TYPE, CHILD_DEFAULT_PARENT_CLOSE_POLICY } from './chunk-ABFZWYHT.js';
|
|
5
5
|
import { COMMAND_EVENT_TYPES, DEFAULT_HISTORY_LIMIT, CONTINUE_AS_NEW_SUGGESTED_RATIO, HISTORY_PROTOCOL, HISTORY_LIMIT_EXCEEDED_RATIO, BUILT_IN_QUERIES } from './chunk-DJYMDLV5.js';
|
|
6
6
|
import { isActivityNodeTypeAllowed } from './chunk-BO6OVILK.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { runIsolateWorker, outcomeToCollection } from './chunk-
|
|
1
|
+
import { runIsolateWorker, outcomeToCollection } from './chunk-I5LR3D2K.js';
|
|
2
2
|
|
|
3
3
|
// src/generated/vm-worker-source.ts
|
|
4
4
|
var VM_WORKER_SOURCE = '"use strict";\n\nvar import_node_worker_threads = require("node:worker_threads");\n\nfunction isRecord(value) {\n return typeof value === "object" && value !== null && !Array.isArray(value);\n}\n\nvar DETERMINISM_VIOLATION = "DeterminismViolation";\nvar DETERMINISM_PRELUDE = `(() => {\n const NAME = ${JSON.stringify(DETERMINISM_VIOLATION)};\n const fail = (what) => {\n const error = new Error(\n what + " is not allowed in workflow code: lowering must give the same IR on every build. Read times and random values at run time instead (for example wf.now)."\n );\n error.name = NAME;\n throw error;\n };\n const lock = (target, key, value) =>\n Object.defineProperty(target, key, { value, writable: false, enumerable: false, configurable: false });\n const RealDate = Date;\n const LockedDate = function Date(...args) {\n if (new.target === undefined) return fail("Date()");\n if (args.length === 0) return fail("new Date()");\n return Reflect.construct(RealDate, args, new.target);\n };\n lock(LockedDate, "prototype", RealDate.prototype);\n lock(RealDate.prototype, "constructor", LockedDate);\n lock(LockedDate, "now", function now() { return fail("Date.now()"); });\n lock(LockedDate, "parse", RealDate.parse);\n lock(LockedDate, "UTC", RealDate.UTC);\n lock(globalThis, "Date", LockedDate);\n lock(Math, "random", function random() { return fail("Math.random()"); });\n const crypto = globalThis.crypto;\n if (crypto !== null && typeof crypto === "object") {\n for (const name of ["getRandomValues", "randomUUID"]) {\n if (typeof crypto[name] === "function") lock(crypto, name, function () { return fail("crypto." + name + "()"); });\n }\n }\n const DateTimeFormat = typeof Intl === "object" && Intl !== null ? Intl.DateTimeFormat : undefined;\n if (typeof DateTimeFormat === "function") {\n const proto = DateTimeFormat.prototype;\n const format = Object.getOwnPropertyDescriptor(proto, "format");\n if (format && typeof format.get === "function") {\n const get = format.get;\n Object.defineProperty(proto, "format", {\n get() {\n const bound = get.call(this);\n return (date) => (date === undefined ? fail("Intl.DateTimeFormat format()") : bound(date));\n },\n enumerable: false,\n configurable: false,\n });\n }\n const formatToParts = proto.formatToParts;\n if (typeof formatToParts === "function") {\n lock(proto, "formatToParts", function (date) {\n return date === undefined ? fail("Intl.DateTimeFormat formatToParts()") : formatToParts.call(this, date);\n });\n }\n }\n})();\n`;\nfunction failure(kind, message) {\n return { ok: false, failure: kind, message };\n}\n\nvar import_node_vm = require("node:vm");\nvar import_node_util = require("node:util");\nvar BUNDLE_GLOBAL = "__fluidgridsBundle";\nfunction wrap(code) {\n return `(function () {\n const describe = (error) => {\n let name = "Error";\n let message = "";\n try {\n if (error !== null && (typeof error === "object" || typeof error === "function")) {\n const n = error.name;\n if (typeof n === "string") name = n;\n const m = error.message;\n message = typeof m === "string" ? m : m === undefined ? "" + error : "" + m;\n } else {\n message = "" + error;\n }\n } catch (_) {\n message = "a value whose message cannot be read was thrown";\n }\n return (name === ${JSON.stringify(DETERMINISM_VIOLATION)} ? "D" : "E") + message;\n };\n try {\n${code}\n;const __fluidgridsValue = ${BUNDLE_GLOBAL}.__fluidgrids;\n return typeof __fluidgridsValue === "string" ? "R" + __fluidgridsValue : "N";\n } catch (error) {\n try {\n return describe(error);\n } catch (_) {\n return "Ean error that cannot be described was thrown";\n }\n }\n})()`;\n}\nfunction hostErrorFields(error) {\n if (!import_node_util.types.isNativeError(error)) return {};\n const code = Object.getOwnPropertyDescriptor(error, "code")?.value;\n const message = Object.getOwnPropertyDescriptor(error, "message")?.value;\n return {\n ...typeof code === "string" ? { code } : {},\n ...typeof message === "string" ? { message } : {}\n };\n}\nfunction decode(result) {\n const tag = result.charAt(0);\n const rest = result.slice(1);\n if (tag === "R") return { ok: true, value: rest };\n if (tag === "N")\n return failure("no-collection", "The bundle did not export a workflow collection");\n if (tag === "D") return failure("determinism", rest);\n return failure("error", rest);\n}\nfunction runInVmContext(code, timeoutMs) {\n const context = (0, import_node_vm.createContext)(/* @__PURE__ */ Object.create(null), {\n codeGeneration: { strings: false, wasm: false },\n microtaskMode: "afterEvaluate",\n name: "fluidgrids-workflow-lowering"\n });\n const refuseImport = () => {\n throw new Error("Workflow code may not import modules at run time");\n };\n const deadline = Date.now() + timeoutMs;\n const run = (source, filename) => new import_node_vm.Script(source, { filename, importModuleDynamically: refuseImport }).runInContext(context, {\n timeout: Math.max(1, deadline - Date.now()),\n breakOnSigint: true\n });\n try {\n run(DETERMINISM_PRELUDE, "determinism-prelude.js");\n const result = run(wrap(code), "workflow-bundle.js");\n return typeof result === "string" ? decode(result) : failure("no-collection", "The bundle did not export a workflow collection");\n } catch (error) {\n const fields = hostErrorFields(error);\n if (fields.code === "ERR_SCRIPT_EXECUTION_TIMEOUT" || fields.message !== void 0 && /^Script execution timed out/.test(fields.message)) {\n return failure("timeout", `Evaluating the workflow code timed out after ${timeoutMs} ms`);\n }\n return failure("error", fields.message ?? "The workflow code could not be evaluated");\n }\n}\n\nprocess.on("unhandledRejection", () => void 0);\nvar input = import_node_worker_threads.workerData;\nimport_node_worker_threads.parentPort?.postMessage(\n isRecord(input) && typeof input["code"] === "string" && typeof input["timeoutMs"] === "number" ? runInVmContext(input["code"], input["timeoutMs"]) : failure("crashed", "The evaluation worker received no bundle")\n);\n';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { isTier1Workflow, isOperation } from './chunk-
|
|
1
|
+
import { isTier1Workflow, isOperation } from './chunk-HWJZVOG7.js';
|
|
2
2
|
import { BuilderError } from './chunk-JZ4TOOLN.js';
|
|
3
3
|
import { isRecord, setOwn } from './chunk-PMCM2OH4.js';
|
|
4
|
-
import { isDurableWorkflow, interfaceOf } from './chunk-
|
|
4
|
+
import { isDurableWorkflow, interfaceOf } from './chunk-N23SKIG4.js';
|
|
5
5
|
|
|
6
6
|
// src/builder/collect.ts
|
|
7
7
|
var COLLECTION_FORMAT = "fluidgrids.tier1-collection";
|
package/dist/index.cjs
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkUK3WM7YZ_cjs = require('./chunk-UK3WM7YZ.cjs');
|
|
4
|
+
var chunkSAOBPYYJ_cjs = require('./chunk-SAOBPYYJ.cjs');
|
|
5
5
|
require('./chunk-G4UEPUGO.cjs');
|
|
6
6
|
var chunkGVTZMA5C_cjs = require('./chunk-GVTZMA5C.cjs');
|
|
7
7
|
require('./chunk-TBDXTV22.cjs');
|
|
8
8
|
require('./chunk-SAENRNBJ.cjs');
|
|
9
9
|
var chunkFMSW2HDF_cjs = require('./chunk-FMSW2HDF.cjs');
|
|
10
10
|
require('./chunk-FR7KYWRO.cjs');
|
|
11
|
-
var
|
|
11
|
+
var chunkDHTLALBL_cjs = require('./chunk-DHTLALBL.cjs');
|
|
12
12
|
require('./chunk-Z2Y65YOY.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "COLLECTION_FORMAT", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkUK3WM7YZ_cjs.COLLECTION_FORMAT; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "collectWorkflowExports", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkUK3WM7YZ_cjs.collectWorkflowExports; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "LAYOUT_FORMAT", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkSAOBPYYJ_cjs.LAYOUT_FORMAT; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "LAYOUT_FORMAT_VERSION", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkSAOBPYYJ_cjs.LAYOUT_FORMAT_VERSION; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "RECORDING_FORMAT", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkSAOBPYYJ_cjs.RECORDING_FORMAT; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "RECORDING_FORMAT_VERSION", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkSAOBPYYJ_cjs.RECORDING_FORMAT_VERSION; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "UnresolvedConnectionsError", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkSAOBPYYJ_cjs.UnresolvedConnectionsError; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "WorkflowBuilder", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkSAOBPYYJ_cjs.WorkflowBuilder; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "assembleRecording", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkSAOBPYYJ_cjs.assembleRecording; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "defaultEdgeId", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkSAOBPYYJ_cjs.defaultEdgeId; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "defineWorkflow", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkSAOBPYYJ_cjs.defineWorkflow; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "edge", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkSAOBPYYJ_cjs.edge; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "internalNodes", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkSAOBPYYJ_cjs.internalNodes; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "isOperation", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkSAOBPYYJ_cjs.isOperation; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "isTier1Workflow", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkSAOBPYYJ_cjs.isTier1Workflow; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "nodes", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkSAOBPYYJ_cjs.nodes; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "op", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkSAOBPYYJ_cjs.op; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "parseLayoutSidecar", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkSAOBPYYJ_cjs.parseLayoutSidecar; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "toIR", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkSAOBPYYJ_cjs.toIR; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "trigger", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkSAOBPYYJ_cjs.trigger; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "triggers", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkSAOBPYYJ_cjs.triggers; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "BuilderError", {
|
|
101
101
|
enumerable: true,
|
|
@@ -191,25 +191,25 @@ Object.defineProperty(exports, "toMs", {
|
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "DURABLE_MARKER", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkDHTLALBL_cjs.DURABLE_MARKER; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "SDK_VERSION", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkDHTLALBL_cjs.SDK_VERSION; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "interfaceOf", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkDHTLALBL_cjs.interfaceOf; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "isDurableWorkflow", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkDHTLALBL_cjs.isDurableWorkflow; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "jsonSchemaOf", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkDHTLALBL_cjs.jsonSchemaOf; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "workflow", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkDHTLALBL_cjs.workflow; }
|
|
215
215
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -150,6 +150,6 @@ declare function errorToFailure(error: unknown, source?: string, depth?: number)
|
|
|
150
150
|
declare function failureToError(failure: Failure, depth?: number): WorkflowFailure;
|
|
151
151
|
|
|
152
152
|
/** The version of @fluidgrids/workflows. */
|
|
153
|
-
declare const SDK_VERSION = "2026.1028.
|
|
153
|
+
declare const SDK_VERSION = "2026.1028.2";
|
|
154
154
|
|
|
155
155
|
export { ActivityFailure, ApplicationError, type ApplicationErrorOptions, COLLECTION_FORMAT, CancelledFailure, ChildRunFailure, type CollectedDurableWorkflow, type CollectedTrigger, type CollectedWorkflow, DeterminismViolation, Failure, HistoryLimitExceeded, Json, JsonObject, PhaseCFeatureError, SDK_VERSION, ServerFailure, TerminatedFailure, type Tier1Collection, Tier1Recording, TimeoutFailure, WorkflowFailure, collectWorkflowExports, errorToFailure, failureToError, isCancellation };
|
package/dist/index.d.ts
CHANGED
|
@@ -150,6 +150,6 @@ declare function errorToFailure(error: unknown, source?: string, depth?: number)
|
|
|
150
150
|
declare function failureToError(failure: Failure, depth?: number): WorkflowFailure;
|
|
151
151
|
|
|
152
152
|
/** The version of @fluidgrids/workflows. */
|
|
153
|
-
declare const SDK_VERSION = "2026.1028.
|
|
153
|
+
declare const SDK_VERSION = "2026.1028.2";
|
|
154
154
|
|
|
155
155
|
export { ActivityFailure, ApplicationError, type ApplicationErrorOptions, COLLECTION_FORMAT, CancelledFailure, ChildRunFailure, type CollectedDurableWorkflow, type CollectedTrigger, type CollectedWorkflow, DeterminismViolation, Failure, HistoryLimitExceeded, Json, JsonObject, PhaseCFeatureError, SDK_VERSION, ServerFailure, TerminatedFailure, type Tier1Collection, Tier1Recording, TimeoutFailure, WorkflowFailure, collectWorkflowExports, errorToFailure, failureToError, isCancellation };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { COLLECTION_FORMAT, collectWorkflowExports } from './chunk-
|
|
2
|
-
export { LAYOUT_FORMAT, LAYOUT_FORMAT_VERSION, RECORDING_FORMAT, RECORDING_FORMAT_VERSION, UnresolvedConnectionsError, WorkflowBuilder, assembleRecording, defaultEdgeId, defineWorkflow, edge, internalNodes, isOperation, isTier1Workflow, nodes, op, parseLayoutSidecar, toIR, trigger, triggers } from './chunk-
|
|
1
|
+
export { COLLECTION_FORMAT, collectWorkflowExports } from './chunk-XKJA7KX3.js';
|
|
2
|
+
export { LAYOUT_FORMAT, LAYOUT_FORMAT_VERSION, RECORDING_FORMAT, RECORDING_FORMAT_VERSION, UnresolvedConnectionsError, WorkflowBuilder, assembleRecording, defaultEdgeId, defineWorkflow, edge, internalNodes, isOperation, isTier1Workflow, nodes, op, parseLayoutSidecar, toIR, trigger, triggers } from './chunk-HWJZVOG7.js';
|
|
3
3
|
import './chunk-5LUIDMF4.js';
|
|
4
4
|
export { BuilderError, PREDICATE_OPERATORS, and, expr, or } from './chunk-JZ4TOOLN.js';
|
|
5
5
|
import './chunk-7AAZGVKD.js';
|
|
6
6
|
import './chunk-PMCM2OH4.js';
|
|
7
7
|
export { ActivityFailure, ApplicationError, CancelledFailure, ChildRunFailure, DeterminismViolation, HistoryLimitExceeded, PhaseCFeatureError, ServerFailure, TerminatedFailure, TimeoutFailure, WorkflowFailure, defineQuery, defineSignal, defineUpdate, errorToFailure, failureToError, isCancellation, toMs } from './chunk-C5OLWZ42.js';
|
|
8
8
|
import './chunk-LNUQE6D6.js';
|
|
9
|
-
export { DURABLE_MARKER, SDK_VERSION, interfaceOf, isDurableWorkflow, jsonSchemaOf, workflow } from './chunk-
|
|
9
|
+
export { DURABLE_MARKER, SDK_VERSION, interfaceOf, isDurableWorkflow, jsonSchemaOf, workflow } from './chunk-N23SKIG4.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { S as SourceFile } from './hash-CZkTXPCX.cjs';
|
|
2
2
|
import { b as WorkflowDefinition, W as WorkflowInterface } from './types-BGoPzgcl.cjs';
|
|
3
3
|
import { C as ConnectionResolver } from './assemble-BLqQ8lSu.cjs';
|
|
4
|
-
import { E as EsbuildApi, L as LowerError } from './lower-types-
|
|
4
|
+
import { E as EsbuildApi, L as LowerError } from './lower-types-DQNBfWQn.cjs';
|
|
5
5
|
|
|
6
6
|
/** One vendored package: its version and its files (paths relative to the package root). */
|
|
7
7
|
interface VendoredPackage {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { S as SourceFile } from './hash-CZkTXPCX.js';
|
|
2
2
|
import { b as WorkflowDefinition, W as WorkflowInterface } from './types-BGoPzgcl.js';
|
|
3
3
|
import { C as ConnectionResolver } from './assemble-DWgaXHd-.js';
|
|
4
|
-
import { E as EsbuildApi, L as LowerError } from './lower-types-
|
|
4
|
+
import { E as EsbuildApi, L as LowerError } from './lower-types-DQNBfWQn.js';
|
|
5
5
|
|
|
6
6
|
/** One vendored package: its version and its files (paths relative to the package root). */
|
|
7
7
|
interface VendoredPackage {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as esbuild from 'esbuild';
|
|
2
|
+
|
|
3
|
+
/** Why an evaluation produced no collection. */
|
|
4
|
+
type IsolateFailure = 'error' | 'timeout' | 'determinism' | 'no-collection' | 'out-of-memory' | 'crashed';
|
|
5
|
+
|
|
6
|
+
/** The esbuild API surface lower() uses (`esbuild` or `esbuild-wasm`, version 0.28.2). */
|
|
7
|
+
type EsbuildApi = Pick<typeof esbuild, 'build' | 'transform'>;
|
|
8
|
+
/** Why lowering failed, when the cause is one a caller may want to tell apart. */
|
|
9
|
+
type LowerFailureReason = IsolateFailure | 'too-large';
|
|
10
|
+
/** Where a build message points: a file of the project, a vendored package or the SDK. */
|
|
11
|
+
interface BuildDiagnosticLocation {
|
|
12
|
+
/**
|
|
13
|
+
* The file, relative to the project root (`workflows/order.ts`), as
|
|
14
|
+
* `node_modules/<package>/<path>` for a vendored package, or
|
|
15
|
+
* `@fluidgrids/workflows` for the embedded SDK.
|
|
16
|
+
*/
|
|
17
|
+
file: string;
|
|
18
|
+
/** 1-based line. */
|
|
19
|
+
line: number;
|
|
20
|
+
/** 0-based column, in bytes, as esbuild reports it. */
|
|
21
|
+
column: number;
|
|
22
|
+
/** The text of that line. */
|
|
23
|
+
lineText: string;
|
|
24
|
+
}
|
|
25
|
+
/** One compiler message of a failed bundle. */
|
|
26
|
+
interface BuildDiagnostic {
|
|
27
|
+
text: string;
|
|
28
|
+
location?: BuildDiagnosticLocation;
|
|
29
|
+
}
|
|
30
|
+
declare class LowerError extends Error {
|
|
31
|
+
readonly reason?: LowerFailureReason | undefined;
|
|
32
|
+
/** The compiler messages, when bundling failed; empty otherwise. */
|
|
33
|
+
readonly diagnostics: readonly BuildDiagnostic[];
|
|
34
|
+
constructor(message: string, reason?: LowerFailureReason | undefined, diagnostics?: readonly BuildDiagnostic[]);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { type BuildDiagnostic as B, type EsbuildApi as E, LowerError as L, type BuildDiagnosticLocation as a, type LowerFailureReason as b };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as esbuild from 'esbuild';
|
|
2
|
+
|
|
3
|
+
/** Why an evaluation produced no collection. */
|
|
4
|
+
type IsolateFailure = 'error' | 'timeout' | 'determinism' | 'no-collection' | 'out-of-memory' | 'crashed';
|
|
5
|
+
|
|
6
|
+
/** The esbuild API surface lower() uses (`esbuild` or `esbuild-wasm`, version 0.28.2). */
|
|
7
|
+
type EsbuildApi = Pick<typeof esbuild, 'build' | 'transform'>;
|
|
8
|
+
/** Why lowering failed, when the cause is one a caller may want to tell apart. */
|
|
9
|
+
type LowerFailureReason = IsolateFailure | 'too-large';
|
|
10
|
+
/** Where a build message points: a file of the project, a vendored package or the SDK. */
|
|
11
|
+
interface BuildDiagnosticLocation {
|
|
12
|
+
/**
|
|
13
|
+
* The file, relative to the project root (`workflows/order.ts`), as
|
|
14
|
+
* `node_modules/<package>/<path>` for a vendored package, or
|
|
15
|
+
* `@fluidgrids/workflows` for the embedded SDK.
|
|
16
|
+
*/
|
|
17
|
+
file: string;
|
|
18
|
+
/** 1-based line. */
|
|
19
|
+
line: number;
|
|
20
|
+
/** 0-based column, in bytes, as esbuild reports it. */
|
|
21
|
+
column: number;
|
|
22
|
+
/** The text of that line. */
|
|
23
|
+
lineText: string;
|
|
24
|
+
}
|
|
25
|
+
/** One compiler message of a failed bundle. */
|
|
26
|
+
interface BuildDiagnostic {
|
|
27
|
+
text: string;
|
|
28
|
+
location?: BuildDiagnosticLocation;
|
|
29
|
+
}
|
|
30
|
+
declare class LowerError extends Error {
|
|
31
|
+
readonly reason?: LowerFailureReason | undefined;
|
|
32
|
+
/** The compiler messages, when bundling failed; empty otherwise. */
|
|
33
|
+
readonly diagnostics: readonly BuildDiagnostic[];
|
|
34
|
+
constructor(message: string, reason?: LowerFailureReason | undefined, diagnostics?: readonly BuildDiagnostic[]);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { type BuildDiagnostic as B, type EsbuildApi as E, LowerError as L, type BuildDiagnosticLocation as a, type LowerFailureReason as b };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var chunkFEW3JBYA_cjs = require('./chunk-FEW3JBYA.cjs');
|
|
4
|
+
require('./chunk-QQ6ULXHI.cjs');
|
|
5
|
+
require('./chunk-UK3WM7YZ.cjs');
|
|
6
|
+
require('./chunk-SAOBPYYJ.cjs');
|
|
7
7
|
require('./chunk-GBQ33SIZ.cjs');
|
|
8
8
|
require('./chunk-G4UEPUGO.cjs');
|
|
9
9
|
require('./chunk-GVTZMA5C.cjs');
|
|
10
10
|
require('./chunk-QKZL3ONM.cjs');
|
|
11
11
|
require('./chunk-TBDXTV22.cjs');
|
|
12
12
|
require('./chunk-SAENRNBJ.cjs');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-DHTLALBL.cjs');
|
|
14
14
|
require('./chunk-2J6TF7YI.cjs');
|
|
15
15
|
require('./chunk-Z2Y65YOY.cjs');
|
|
16
16
|
|
|
@@ -18,5 +18,5 @@ require('./chunk-Z2Y65YOY.cjs');
|
|
|
18
18
|
|
|
19
19
|
Object.defineProperty(exports, "createNodeVmEvaluator", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkFEW3JBYA_cjs.createNodeVmEvaluator; }
|
|
22
22
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { createNodeVmEvaluator } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { createNodeVmEvaluator } from './chunk-XHXIDVEC.js';
|
|
2
|
+
import './chunk-I5LR3D2K.js';
|
|
3
|
+
import './chunk-XKJA7KX3.js';
|
|
4
|
+
import './chunk-HWJZVOG7.js';
|
|
5
5
|
import './chunk-BD7ZPG53.js';
|
|
6
6
|
import './chunk-5LUIDMF4.js';
|
|
7
7
|
import './chunk-JZ4TOOLN.js';
|
|
8
8
|
import './chunk-E2VK7J2C.js';
|
|
9
9
|
import './chunk-7AAZGVKD.js';
|
|
10
10
|
import './chunk-PMCM2OH4.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-N23SKIG4.js';
|
|
12
12
|
import './chunk-BO6OVILK.js';
|
package/dist/quickjs/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkQQ6ULXHI_cjs = require('../chunk-QQ6ULXHI.cjs');
|
|
4
|
+
require('../chunk-UK3WM7YZ.cjs');
|
|
5
5
|
var chunkJD2VQIDZ_cjs = require('../chunk-JD2VQIDZ.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-SAOBPYYJ.cjs');
|
|
7
7
|
var chunkGBQ33SIZ_cjs = require('../chunk-GBQ33SIZ.cjs');
|
|
8
8
|
require('../chunk-G4UEPUGO.cjs');
|
|
9
9
|
require('../chunk-GVTZMA5C.cjs');
|
|
@@ -11,7 +11,7 @@ require('../chunk-QKZL3ONM.cjs');
|
|
|
11
11
|
require('../chunk-TBDXTV22.cjs');
|
|
12
12
|
var chunkSAENRNBJ_cjs = require('../chunk-SAENRNBJ.cjs');
|
|
13
13
|
require('../chunk-L24YIZY7.cjs');
|
|
14
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-DHTLALBL.cjs');
|
|
15
15
|
require('../chunk-623FVQSN.cjs');
|
|
16
16
|
require('../chunk-2J6TF7YI.cjs');
|
|
17
17
|
var chunkZ2Y65YOY_cjs = require('../chunk-Z2Y65YOY.cjs');
|
|
@@ -240,7 +240,7 @@ function quickjsModuleUrl2() {
|
|
|
240
240
|
try {
|
|
241
241
|
return url.pathToFileURL(module$1.createRequire(chunkZ2Y65YOY_cjs.importMetaUrl).resolve("quickjs-emscripten")).href;
|
|
242
242
|
} catch (error) {
|
|
243
|
-
throw new
|
|
243
|
+
throw new chunkQQ6ULXHI_cjs.LowerError(
|
|
244
244
|
`quickjs-emscripten cannot be resolved: ${error instanceof Error ? error.message : String(error)}`,
|
|
245
245
|
"crashed"
|
|
246
246
|
);
|
|
@@ -255,12 +255,12 @@ function createQuickJSEvaluator(options = {}) {
|
|
|
255
255
|
return {
|
|
256
256
|
format: "esm",
|
|
257
257
|
async evaluate(code) {
|
|
258
|
-
const outcome = await
|
|
258
|
+
const outcome = await chunkQQ6ULXHI_cjs.runIsolateWorker({
|
|
259
259
|
source: QUICKJS_WORKER_SOURCE,
|
|
260
260
|
workerData: { code, limits, moduleUrl: quickjsModuleUrl2() },
|
|
261
261
|
timeoutMs: limits.timeoutMs
|
|
262
262
|
});
|
|
263
|
-
return
|
|
263
|
+
return chunkQQ6ULXHI_cjs.outcomeToCollection(outcome);
|
|
264
264
|
}
|
|
265
265
|
};
|
|
266
266
|
}
|
package/dist/quickjs/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { E as Evaluator } from '../lower-
|
|
1
|
+
import { E as Evaluator } from '../lower-BzmUz0sq.cjs';
|
|
2
2
|
import { a7 as WorkflowTaskRequest, a8 as WorkflowTaskResult } from '../types-CpBBjaGX.cjs';
|
|
3
3
|
import '../hash-CZkTXPCX.cjs';
|
|
4
4
|
import '../types-BGoPzgcl.cjs';
|
|
5
5
|
import '../assemble-BLqQ8lSu.cjs';
|
|
6
6
|
import '../workflow-FXUkpIBc.cjs';
|
|
7
7
|
import '../workflow-J-yYixny.cjs';
|
|
8
|
-
import '../lower-types-
|
|
8
|
+
import '../lower-types-DQNBfWQn.cjs';
|
|
9
9
|
import 'esbuild';
|
|
10
10
|
|
|
11
11
|
interface WorkflowTaskRunnerOptions {
|
package/dist/quickjs/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { E as Evaluator } from '../lower-
|
|
1
|
+
import { E as Evaluator } from '../lower-_-iT4HYs.js';
|
|
2
2
|
import { a7 as WorkflowTaskRequest, a8 as WorkflowTaskResult } from '../types-DV-HX_Gt.js';
|
|
3
3
|
import '../hash-CZkTXPCX.js';
|
|
4
4
|
import '../types-BGoPzgcl.js';
|
|
5
5
|
import '../assemble-DWgaXHd-.js';
|
|
6
6
|
import '../workflow-Bpr3vnA_.js';
|
|
7
7
|
import '../workflow-C2a05WUJ.js';
|
|
8
|
-
import '../lower-types-
|
|
8
|
+
import '../lower-types-DQNBfWQn.js';
|
|
9
9
|
import 'esbuild';
|
|
10
10
|
|
|
11
11
|
interface WorkflowTaskRunnerOptions {
|
package/dist/quickjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { runIsolateWorker, outcomeToCollection, LowerError } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
import { runIsolateWorker, outcomeToCollection, LowerError } from '../chunk-I5LR3D2K.js';
|
|
2
|
+
import '../chunk-XKJA7KX3.js';
|
|
3
3
|
import { failedTaskResult } from '../chunk-IISBRUWJ.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-HWJZVOG7.js';
|
|
5
5
|
import { buildIdOf } from '../chunk-BD7ZPG53.js';
|
|
6
6
|
import '../chunk-5LUIDMF4.js';
|
|
7
7
|
import '../chunk-JZ4TOOLN.js';
|
|
@@ -9,7 +9,7 @@ import '../chunk-E2VK7J2C.js';
|
|
|
9
9
|
import '../chunk-7AAZGVKD.js';
|
|
10
10
|
import { isRecord } from '../chunk-PMCM2OH4.js';
|
|
11
11
|
import '../chunk-4LYSEANA.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-N23SKIG4.js';
|
|
13
13
|
import '../chunk-DJYMDLV5.js';
|
|
14
14
|
import '../chunk-BO6OVILK.js';
|
|
15
15
|
import { createRequire } from 'module';
|