@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.
Files changed (39) hide show
  1. package/dist/{chunk-FQIHX7YI.cjs → chunk-DHTLALBL.cjs} +1 -1
  2. package/dist/{chunk-HR3BN4C4.cjs → chunk-FEW3JBYA.cjs} +3 -3
  3. package/dist/{chunk-5HDSBTBX.js → chunk-HWJZVOG7.js} +1 -1
  4. package/dist/{chunk-H7KEVW2M.js → chunk-I5LR3D2K.js} +62 -9
  5. package/dist/{chunk-CSNWNFKU.cjs → chunk-M4BBAERY.cjs} +5 -5
  6. package/dist/{chunk-7NQ37GZU.js → chunk-N23SKIG4.js} +1 -1
  7. package/dist/{chunk-2DP2Y6EU.cjs → chunk-QQ6ULXHI.cjs} +72 -19
  8. package/dist/{chunk-57MSZ24T.cjs → chunk-SAOBPYYJ.cjs} +3 -3
  9. package/dist/{chunk-CBL5JSCC.cjs → chunk-UK3WM7YZ.cjs} +8 -8
  10. package/dist/{chunk-3FOTFQ3J.js → chunk-VRHHBPT6.js} +1 -1
  11. package/dist/{chunk-XB53G2DK.js → chunk-XHXIDVEC.js} +1 -1
  12. package/dist/{chunk-PDHLTDZB.js → chunk-XKJA7KX3.js} +2 -2
  13. package/dist/index.cjs +30 -30
  14. package/dist/index.d.cts +1 -1
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.js +3 -3
  17. package/dist/{lower-BuSvAFqi.d.cts → lower-BzmUz0sq.d.cts} +1 -1
  18. package/dist/{lower-C_Qv_34S.d.ts → lower-_-iT4HYs.d.ts} +1 -1
  19. package/dist/lower-types-DQNBfWQn.d.cts +37 -0
  20. package/dist/lower-types-DQNBfWQn.d.ts +37 -0
  21. package/dist/{node-evaluator-DMKPKUWA.cjs → node-evaluator-4MSDKWOG.cjs} +6 -6
  22. package/dist/{node-evaluator-CJNP4GHX.js → node-evaluator-SX4LEYQC.js} +5 -5
  23. package/dist/quickjs/index.cjs +7 -7
  24. package/dist/quickjs/index.d.cts +2 -2
  25. package/dist/quickjs/index.d.ts +2 -2
  26. package/dist/quickjs/index.js +4 -4
  27. package/dist/roundtrip/index.cjs +42 -42
  28. package/dist/roundtrip/index.d.cts +4 -4
  29. package/dist/roundtrip/index.d.ts +4 -4
  30. package/dist/roundtrip/index.js +6 -6
  31. package/dist/runtime/index.cjs +14 -14
  32. package/dist/runtime/index.js +2 -2
  33. package/dist/testing/index.cjs +7 -7
  34. package/dist/testing/index.d.cts +1 -1
  35. package/dist/testing/index.d.ts +1 -1
  36. package/dist/testing/index.js +3 -3
  37. package/package.json +1 -1
  38. package/dist/lower-types-nofRXw9c.d.cts +0 -15
  39. package/dist/lower-types-nofRXw9c.d.ts +0 -15
@@ -1,19 +1,19 @@
1
1
  'use strict';
2
2
 
3
- var chunkHR3BN4C4_cjs = require('../chunk-HR3BN4C4.cjs');
3
+ var chunkFEW3JBYA_cjs = require('../chunk-FEW3JBYA.cjs');
4
4
  var chunkNEIUQASE_cjs = require('../chunk-NEIUQASE.cjs');
5
5
  var chunkSX2PNKKT_cjs = require('../chunk-SX2PNKKT.cjs');
6
6
  var chunkCPDK3K5N_cjs = require('../chunk-CPDK3K5N.cjs');
7
- var chunk2DP2Y6EU_cjs = require('../chunk-2DP2Y6EU.cjs');
8
- require('../chunk-CBL5JSCC.cjs');
9
- var chunk57MSZ24T_cjs = require('../chunk-57MSZ24T.cjs');
7
+ var chunkQQ6ULXHI_cjs = require('../chunk-QQ6ULXHI.cjs');
8
+ require('../chunk-UK3WM7YZ.cjs');
9
+ var chunkSAOBPYYJ_cjs = require('../chunk-SAOBPYYJ.cjs');
10
10
  var chunkGBQ33SIZ_cjs = require('../chunk-GBQ33SIZ.cjs');
11
11
  require('../chunk-G4UEPUGO.cjs');
12
12
  var chunkGVTZMA5C_cjs = require('../chunk-GVTZMA5C.cjs');
13
13
  var chunkQKZL3ONM_cjs = require('../chunk-QKZL3ONM.cjs');
14
14
  var chunkTBDXTV22_cjs = require('../chunk-TBDXTV22.cjs');
15
15
  var chunkSAENRNBJ_cjs = require('../chunk-SAENRNBJ.cjs');
16
- require('../chunk-FQIHX7YI.cjs');
16
+ require('../chunk-DHTLALBL.cjs');
17
17
  require('../chunk-2J6TF7YI.cjs');
18
18
  require('../chunk-Z2Y65YOY.cjs');
19
19
  var fs = require('fs');
@@ -253,7 +253,7 @@ function richEdge(edge2, info, items) {
253
253
  const options2 = [];
254
254
  const extra = [];
255
255
  if (edge2["id"] === void 0) options2.push(["id", { k: "literal", value: false }]);
256
- else if (edge2["id"] !== chunk57MSZ24T_cjs.defaultEdgeId(source, target, sourceHandle, targetHandle))
256
+ else if (edge2["id"] !== chunkSAOBPYYJ_cjs.defaultEdgeId(source, target, sourceHandle, targetHandle))
257
257
  options2.push(["id", literalOrStructure(edge2["id"])]);
258
258
  if (edge2["type"] === void 0) options2.push(["type", { k: "literal", value: false }]);
259
259
  else if (edge2["type"] !== "deletable") options2.push(["type", literalOrStructure(edge2["type"])]);
@@ -754,19 +754,19 @@ function connectionsByName(connectionNames, definition) {
754
754
  function descriptor(operation) {
755
755
  switch (operation.kind) {
756
756
  case "trigger": {
757
- const value2 = chunk57MSZ24T_cjs.triggers[operation.name];
757
+ const value2 = chunkSAOBPYYJ_cjs.triggers[operation.name];
758
758
  if (!value2) throw new LiftError(`Unknown trigger ${operation.name}`);
759
759
  return value2;
760
760
  }
761
761
  case "internal": {
762
- const value2 = chunk57MSZ24T_cjs.internalNodes[operation.name];
762
+ const value2 = chunkSAOBPYYJ_cjs.internalNodes[operation.name];
763
763
  if (!value2) throw new LiftError(`Unknown internal node ${operation.name}`);
764
764
  return value2;
765
765
  }
766
766
  case "client":
767
- return operation.role === "trigger" ? chunk57MSZ24T_cjs.trigger(operation.nodeType, operation.version, operation.operation) : chunk57MSZ24T_cjs.op(operation.nodeType, operation.version, operation.operation);
767
+ return operation.role === "trigger" ? chunkSAOBPYYJ_cjs.trigger(operation.nodeType, operation.version, operation.operation) : chunkSAOBPYYJ_cjs.op(operation.nodeType, operation.version, operation.operation);
768
768
  case "custom":
769
- return chunk57MSZ24T_cjs.nodes.custom(operation.nodeType, operation.operation, operation.version);
769
+ return chunkSAOBPYYJ_cjs.nodes.custom(operation.nodeType, operation.operation, operation.version);
770
770
  }
771
771
  }
772
772
  function refValue(ref, wf, runtime) {
@@ -824,7 +824,7 @@ function value(expression2, wf, runtime) {
824
824
  return (declared ?? wf.ref(expression2.nodeId)).handle(expression2.handle);
825
825
  }
826
826
  case "edge":
827
- return chunk57MSZ24T_cjs.edge(
827
+ return chunkSAOBPYYJ_cjs.edge(
828
828
  value(expression2.from, wf, runtime),
829
829
  value({ k: "object", entries: expression2.options }, wf, runtime)
830
830
  );
@@ -852,7 +852,7 @@ function interpretPlan(plan) {
852
852
  k: "object",
853
853
  entries: plan.workflowOptions
854
854
  });
855
- const workflow = chunk57MSZ24T_cjs.defineWorkflow(workflowOptions2, (wf) => {
855
+ const workflow = chunkSAOBPYYJ_cjs.defineWorkflow(workflowOptions2, (wf) => {
856
856
  const runtime = /* @__PURE__ */ new Map();
857
857
  for (const statement of plan.statements) {
858
858
  if (statement.kind === "node") {
@@ -1130,8 +1130,8 @@ function layoutOf(reference) {
1130
1130
  if (typeof x === "number" && typeof y === "number") chunkSAENRNBJ_cjs.setOwn(positions, node["id"], { x, y });
1131
1131
  }
1132
1132
  const sidecar = {
1133
- format: chunk57MSZ24T_cjs.LAYOUT_FORMAT,
1134
- formatVersion: chunk57MSZ24T_cjs.LAYOUT_FORMAT_VERSION,
1133
+ format: chunkSAOBPYYJ_cjs.LAYOUT_FORMAT,
1134
+ formatVersion: chunkSAOBPYYJ_cjs.LAYOUT_FORMAT_VERSION,
1135
1135
  positions
1136
1136
  };
1137
1137
  if (Array.isArray(data["stickyNotes"])) sidecar.stickyNotes = data["stickyNotes"];
@@ -1229,7 +1229,7 @@ function prepareLift(definition, options2 = {}) {
1229
1229
  const run = (rawNodes, rawEdges) => {
1230
1230
  const build = buildPlan(reference, options2, rawNodes, rawEdges);
1231
1231
  const recording = interpretPlan(build.plan);
1232
- const candidate = chunk57MSZ24T_cjs.assembleRecording(recording, {
1232
+ const candidate = chunkSAOBPYYJ_cjs.assembleRecording(recording, {
1233
1233
  layout,
1234
1234
  ...connections ? { connections } : {},
1235
1235
  ...pinned ? { pinnedData: pinned } : {}
@@ -1357,12 +1357,12 @@ function readJson(path) {
1357
1357
  try {
1358
1358
  parsed = JSON.parse(fs.readFileSync(path, "utf8"));
1359
1359
  } catch (error) {
1360
- throw new chunk2DP2Y6EU_cjs.LowerError(
1360
+ throw new chunkQQ6ULXHI_cjs.LowerError(
1361
1361
  `Cannot read ${path}: ${error instanceof Error ? error.message : String(error)}`
1362
1362
  );
1363
1363
  }
1364
1364
  if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed))
1365
- throw new chunk2DP2Y6EU_cjs.LowerError(`${path} is not a JSON object`);
1365
+ throw new chunkQQ6ULXHI_cjs.LowerError(`${path} is not a JSON object`);
1366
1366
  return parsed;
1367
1367
  }
1368
1368
  function namesOf(value2) {
@@ -1395,7 +1395,7 @@ function collectFiles(packageDir, dir, files, budget) {
1395
1395
  if (!KEPT_EXTENSIONS.some((ext) => entry.endsWith(ext))) continue;
1396
1396
  budget.left -= stats.size;
1397
1397
  if (budget.left < 0)
1398
- throw new chunk2DP2Y6EU_cjs.LowerError(
1398
+ throw new chunkQQ6ULXHI_cjs.LowerError(
1399
1399
  `The vendored packages are larger than the limit (reached at "${budget.name}")`,
1400
1400
  "too-large"
1401
1401
  );
@@ -1415,7 +1415,7 @@ function vendorDependencies(projectDir, options2 = {}) {
1415
1415
  const packageDir = locate(next.name, next.fromDir);
1416
1416
  if (packageDir === void 0) {
1417
1417
  if (next.optional) continue;
1418
- throw new chunk2DP2Y6EU_cjs.LowerError(
1418
+ throw new chunkQQ6ULXHI_cjs.LowerError(
1419
1419
  `"${next.name}" is a dependency but is not installed under ${rootDir}; run your package manager's install first`
1420
1420
  );
1421
1421
  }
@@ -1452,10 +1452,10 @@ function packSources(archive) {
1452
1452
  return new Uint8Array(zipped.buffer, zipped.byteOffset, zipped.byteLength);
1453
1453
  }
1454
1454
  function stringMap(value2, what) {
1455
- if (!chunkSAENRNBJ_cjs.isRecord(value2)) throw new chunk2DP2Y6EU_cjs.LowerError(`${what} must be an object`);
1455
+ if (!chunkSAENRNBJ_cjs.isRecord(value2)) throw new chunkQQ6ULXHI_cjs.LowerError(`${what} must be an object`);
1456
1456
  const out = {};
1457
1457
  for (const [key, entry] of Object.entries(value2)) {
1458
- if (typeof entry !== "string") throw new chunk2DP2Y6EU_cjs.LowerError(`${what}["${key}"] must be a string`);
1458
+ if (typeof entry !== "string") throw new chunkQQ6ULXHI_cjs.LowerError(`${what}["${key}"] must be a string`);
1459
1459
  Object.defineProperty(out, key, {
1460
1460
  value: entry,
1461
1461
  enumerable: true,
@@ -1472,7 +1472,7 @@ function unpackSources(data, options2 = {}) {
1472
1472
  text = zlib.gunzipSync(data, { maxOutputLength: maxBytes }).toString("utf8");
1473
1473
  } catch (error) {
1474
1474
  const message = error instanceof Error ? error.message : String(error);
1475
- throw new chunk2DP2Y6EU_cjs.LowerError(
1475
+ throw new chunkQQ6ULXHI_cjs.LowerError(
1476
1476
  /buffer|length|range/i.test(message) ? `The source archive is larger than ${maxBytes} bytes uncompressed` : `The source archive is not gzip: ${message}`,
1477
1477
  /buffer|length|range/i.test(message) ? "too-large" : void 0
1478
1478
  );
@@ -1481,20 +1481,20 @@ function unpackSources(data, options2 = {}) {
1481
1481
  try {
1482
1482
  parsed = JSON.parse(text);
1483
1483
  } catch {
1484
- throw new chunk2DP2Y6EU_cjs.LowerError("The source archive is not JSON");
1484
+ throw new chunkQQ6ULXHI_cjs.LowerError("The source archive is not JSON");
1485
1485
  }
1486
- if (!chunkSAENRNBJ_cjs.isRecord(parsed)) throw new chunk2DP2Y6EU_cjs.LowerError("The source archive is not an object");
1486
+ if (!chunkSAENRNBJ_cjs.isRecord(parsed)) throw new chunkQQ6ULXHI_cjs.LowerError("The source archive is not an object");
1487
1487
  const archive = { files: stringMap(parsed["files"], "files") };
1488
1488
  if (parsed["lock"] !== void 0) {
1489
- if (typeof parsed["lock"] !== "string") throw new chunk2DP2Y6EU_cjs.LowerError("lock must be a string");
1489
+ if (typeof parsed["lock"] !== "string") throw new chunkQQ6ULXHI_cjs.LowerError("lock must be a string");
1490
1490
  archive.lock = parsed["lock"];
1491
1491
  }
1492
1492
  if (parsed["vendored"] !== void 0) {
1493
- if (!chunkSAENRNBJ_cjs.isRecord(parsed["vendored"])) throw new chunk2DP2Y6EU_cjs.LowerError("vendored must be an object");
1493
+ if (!chunkSAENRNBJ_cjs.isRecord(parsed["vendored"])) throw new chunkQQ6ULXHI_cjs.LowerError("vendored must be an object");
1494
1494
  const vendored = {};
1495
1495
  for (const [name, pkg] of Object.entries(parsed["vendored"])) {
1496
1496
  if (!chunkSAENRNBJ_cjs.isRecord(pkg) || typeof pkg["version"] !== "string")
1497
- throw new chunk2DP2Y6EU_cjs.LowerError(`vendored["${name}"] needs a version`);
1497
+ throw new chunkQQ6ULXHI_cjs.LowerError(`vendored["${name}"] needs a version`);
1498
1498
  Object.defineProperty(vendored, name, {
1499
1499
  value: {
1500
1500
  version: pkg["version"],
@@ -1524,7 +1524,7 @@ async function checkFidelity(files, reference, items, options2 = {}) {
1524
1524
  const all = [...items];
1525
1525
  const connections = options2.connectionNames && chunkSAENRNBJ_cjs.isRecord(reference) ? connectionsByName(options2.connectionNames, reference) : void 0;
1526
1526
  try {
1527
- const result = await chunk2DP2Y6EU_cjs.lower(
1527
+ const result = await chunkQQ6ULXHI_cjs.lower(
1528
1528
  files.map((file) => ({ path: file.path, content: file.content })),
1529
1529
  {
1530
1530
  ...options2.esbuild ? { esbuild: options2.esbuild } : {},
@@ -1569,7 +1569,7 @@ async function exportWorkflowCode(definition, options2) {
1569
1569
 
1570
1570
  Object.defineProperty(exports, "createNodeVmEvaluator", {
1571
1571
  enumerable: true,
1572
- get: function () { return chunkHR3BN4C4_cjs.createNodeVmEvaluator; }
1572
+ get: function () { return chunkFEW3JBYA_cjs.createNodeVmEvaluator; }
1573
1573
  });
1574
1574
  Object.defineProperty(exports, "PY_LINE_LENGTH", {
1575
1575
  enumerable: true,
@@ -1585,55 +1585,55 @@ Object.defineProperty(exports, "TS_NODES_IMPORT", {
1585
1585
  });
1586
1586
  Object.defineProperty(exports, "DeterminismViolationError", {
1587
1587
  enumerable: true,
1588
- get: function () { return chunk2DP2Y6EU_cjs.DeterminismViolationError; }
1588
+ get: function () { return chunkQQ6ULXHI_cjs.DeterminismViolationError; }
1589
1589
  });
1590
1590
  Object.defineProperty(exports, "ESBUILD_VERSION", {
1591
1591
  enumerable: true,
1592
- get: function () { return chunk2DP2Y6EU_cjs.ESBUILD_VERSION; }
1592
+ get: function () { return chunkQQ6ULXHI_cjs.ESBUILD_VERSION; }
1593
1593
  });
1594
1594
  Object.defineProperty(exports, "EVALUATION_GLOBAL", {
1595
1595
  enumerable: true,
1596
- get: function () { return chunk2DP2Y6EU_cjs.EVALUATION_GLOBAL; }
1596
+ get: function () { return chunkQQ6ULXHI_cjs.EVALUATION_GLOBAL; }
1597
1597
  });
1598
1598
  Object.defineProperty(exports, "LowerError", {
1599
1599
  enumerable: true,
1600
- get: function () { return chunk2DP2Y6EU_cjs.LowerError; }
1600
+ get: function () { return chunkQQ6ULXHI_cjs.LowerError; }
1601
1601
  });
1602
1602
  Object.defineProperty(exports, "NODE_BUILTINS", {
1603
1603
  enumerable: true,
1604
- get: function () { return chunk2DP2Y6EU_cjs.NODE_BUILTINS; }
1604
+ get: function () { return chunkQQ6ULXHI_cjs.NODE_BUILTINS; }
1605
1605
  });
1606
1606
  Object.defineProperty(exports, "buildBundle", {
1607
1607
  enumerable: true,
1608
- get: function () { return chunk2DP2Y6EU_cjs.buildBundle; }
1608
+ get: function () { return chunkQQ6ULXHI_cjs.buildBundle; }
1609
1609
  });
1610
1610
  Object.defineProperty(exports, "bundleProject", {
1611
1611
  enumerable: true,
1612
- get: function () { return chunk2DP2Y6EU_cjs.bundleProject; }
1612
+ get: function () { return chunkQQ6ULXHI_cjs.bundleProject; }
1613
1613
  });
1614
1614
  Object.defineProperty(exports, "bundleSourceHash", {
1615
1615
  enumerable: true,
1616
- get: function () { return chunk2DP2Y6EU_cjs.bundleSourceHash; }
1616
+ get: function () { return chunkQQ6ULXHI_cjs.bundleSourceHash; }
1617
1617
  });
1618
1618
  Object.defineProperty(exports, "defaultEntries", {
1619
1619
  enumerable: true,
1620
- get: function () { return chunk2DP2Y6EU_cjs.defaultEntries; }
1620
+ get: function () { return chunkQQ6ULXHI_cjs.defaultEntries; }
1621
1621
  });
1622
1622
  Object.defineProperty(exports, "lower", {
1623
1623
  enumerable: true,
1624
- get: function () { return chunk2DP2Y6EU_cjs.lower; }
1624
+ get: function () { return chunkQQ6ULXHI_cjs.lower; }
1625
1625
  });
1626
1626
  Object.defineProperty(exports, "resolvePackageEntry", {
1627
1627
  enumerable: true,
1628
- get: function () { return chunk2DP2Y6EU_cjs.resolvePackageEntry; }
1628
+ get: function () { return chunkQQ6ULXHI_cjs.resolvePackageEntry; }
1629
1629
  });
1630
1630
  Object.defineProperty(exports, "scanDurableSources", {
1631
1631
  enumerable: true,
1632
- get: function () { return chunk2DP2Y6EU_cjs.scanDurableSources; }
1632
+ get: function () { return chunkQQ6ULXHI_cjs.scanDurableSources; }
1633
1633
  });
1634
1634
  Object.defineProperty(exports, "splitSpecifier", {
1635
1635
  enumerable: true,
1636
- get: function () { return chunk2DP2Y6EU_cjs.splitSpecifier; }
1636
+ get: function () { return chunkQQ6ULXHI_cjs.splitSpecifier; }
1637
1637
  });
1638
1638
  exports.LiftError = LiftError;
1639
1639
  exports.PY_PROJECT_MODULE = PY_PROJECT_MODULE;
@@ -2,10 +2,10 @@ import { b as WorkflowDefinition, J as JsonObject } from '../types-BGoPzgcl.cjs'
2
2
  import { b as LayoutSidecar } from '../assemble-BLqQ8lSu.cjs';
3
3
  import { N as NodeManifest } from '../manifest-0OLw0i7k.cjs';
4
4
  import { P as PathSegment } from '../expressions-DhHaqyar.cjs';
5
- import { V as VendoredDeps, a as VendoredPackage, E as Evaluator } from '../lower-BuSvAFqi.cjs';
6
- export { B as BuildBundleOptions, b as BuiltBundle, D as DeterminismViolationError, c as ESBUILD_VERSION, d as EVALUATION_GLOBAL, L as LowerIssue, e as LowerOptions, f as LowerResult, g as LoweredWorkflow, N as NODE_BUILTINS, h as buildBundle, i as bundleProject, j as bundleSourceHash, k as defaultEntries, l as lower, r as resolvePackageEntry, s as scanDurableSources, m as splitSpecifier } from '../lower-BuSvAFqi.cjs';
7
- import { E as EsbuildApi } from '../lower-types-nofRXw9c.cjs';
8
- export { L as LowerError, a as LowerFailureReason } from '../lower-types-nofRXw9c.cjs';
5
+ import { V as VendoredDeps, a as VendoredPackage, E as Evaluator } from '../lower-BzmUz0sq.cjs';
6
+ export { B as BuildBundleOptions, b as BuiltBundle, D as DeterminismViolationError, c as ESBUILD_VERSION, d as EVALUATION_GLOBAL, L as LowerIssue, e as LowerOptions, f as LowerResult, g as LoweredWorkflow, N as NODE_BUILTINS, h as buildBundle, i as bundleProject, j as bundleSourceHash, k as defaultEntries, l as lower, r as resolvePackageEntry, s as scanDurableSources, m as splitSpecifier } from '../lower-BzmUz0sq.cjs';
7
+ import { E as EsbuildApi } from '../lower-types-DQNBfWQn.cjs';
8
+ export { B as BuildDiagnostic, a as BuildDiagnosticLocation, L as LowerError, b as LowerFailureReason } from '../lower-types-DQNBfWQn.cjs';
9
9
  import '../workflow-FXUkpIBc.cjs';
10
10
  import '../workflow-J-yYixny.cjs';
11
11
  import '../types-CpBBjaGX.cjs';
@@ -2,10 +2,10 @@ import { b as WorkflowDefinition, J as JsonObject } from '../types-BGoPzgcl.js';
2
2
  import { b as LayoutSidecar } from '../assemble-DWgaXHd-.js';
3
3
  import { N as NodeManifest } from '../manifest-C8N6HDYl.js';
4
4
  import { P as PathSegment } from '../expressions-DhHaqyar.js';
5
- import { V as VendoredDeps, a as VendoredPackage, E as Evaluator } from '../lower-C_Qv_34S.js';
6
- export { B as BuildBundleOptions, b as BuiltBundle, D as DeterminismViolationError, c as ESBUILD_VERSION, d as EVALUATION_GLOBAL, L as LowerIssue, e as LowerOptions, f as LowerResult, g as LoweredWorkflow, N as NODE_BUILTINS, h as buildBundle, i as bundleProject, j as bundleSourceHash, k as defaultEntries, l as lower, r as resolvePackageEntry, s as scanDurableSources, m as splitSpecifier } from '../lower-C_Qv_34S.js';
7
- import { E as EsbuildApi } from '../lower-types-nofRXw9c.js';
8
- export { L as LowerError, a as LowerFailureReason } from '../lower-types-nofRXw9c.js';
5
+ import { V as VendoredDeps, a as VendoredPackage, E as Evaluator } from '../lower-_-iT4HYs.js';
6
+ export { B as BuildBundleOptions, b as BuiltBundle, D as DeterminismViolationError, c as ESBUILD_VERSION, d as EVALUATION_GLOBAL, L as LowerIssue, e as LowerOptions, f as LowerResult, g as LoweredWorkflow, N as NODE_BUILTINS, h as buildBundle, i as bundleProject, j as bundleSourceHash, k as defaultEntries, l as lower, r as resolvePackageEntry, s as scanDurableSources, m as splitSpecifier } from '../lower-_-iT4HYs.js';
7
+ import { E as EsbuildApi } from '../lower-types-DQNBfWQn.js';
8
+ export { B as BuildDiagnostic, a as BuildDiagnosticLocation, L as LowerError, b as LowerFailureReason } from '../lower-types-DQNBfWQn.js';
9
9
  import '../workflow-Bpr3vnA_.js';
10
10
  import '../workflow-C2a05WUJ.js';
11
11
  import '../types-DV-HX_Gt.js';
@@ -1,19 +1,19 @@
1
- export { createNodeVmEvaluator } from '../chunk-XB53G2DK.js';
1
+ export { createNodeVmEvaluator } from '../chunk-XHXIDVEC.js';
2
2
  import { diffDefinitions } from '../chunk-6FSHT5IL.js';
3
3
  import { renderTypeScript, generateNodeClients, pyWorkflowName, NameAllocator, referencedLater, formatLines, formatImport, clientNames, pyString, snakeCase, pyNumber, PY_KEYWORDS } from '../chunk-SMCANK3F.js';
4
4
  export { PY_LINE_LENGTH, TS_FORMAT_OPTIONS, TS_NODES_IMPORT } from '../chunk-SMCANK3F.js';
5
5
  import { operationsOf, isTriggerOperation } from '../chunk-QAN5MZEM.js';
6
- import { LowerError, lower } from '../chunk-H7KEVW2M.js';
7
- export { DeterminismViolationError, ESBUILD_VERSION, EVALUATION_GLOBAL, LowerError, NODE_BUILTINS, buildBundle, bundleProject, bundleSourceHash, defaultEntries, lower, resolvePackageEntry, scanDurableSources, splitSpecifier } from '../chunk-H7KEVW2M.js';
8
- import '../chunk-PDHLTDZB.js';
9
- import { assembleRecording, LAYOUT_FORMAT_VERSION, LAYOUT_FORMAT, defineWorkflow, nodes, trigger, op, internalNodes, triggers, edge, defaultEdgeId } from '../chunk-5HDSBTBX.js';
6
+ import { LowerError, lower } from '../chunk-I5LR3D2K.js';
7
+ export { DeterminismViolationError, ESBUILD_VERSION, EVALUATION_GLOBAL, LowerError, NODE_BUILTINS, buildBundle, bundleProject, bundleSourceHash, defaultEntries, lower, resolvePackageEntry, scanDurableSources, splitSpecifier } from '../chunk-I5LR3D2K.js';
8
+ import '../chunk-XKJA7KX3.js';
9
+ import { assembleRecording, LAYOUT_FORMAT_VERSION, LAYOUT_FORMAT, defineWorkflow, nodes, trigger, op, internalNodes, triggers, edge, defaultEdgeId } from '../chunk-HWJZVOG7.js';
10
10
  import { normalizeDefinition, irHash } from '../chunk-BD7ZPG53.js';
11
11
  import '../chunk-5LUIDMF4.js';
12
12
  import { PREDICATE_OPERATORS, BuilderError, and, or, expr, RESERVED_REF_KEYS } from '../chunk-JZ4TOOLN.js';
13
13
  import { canonicalJson, stableStringify } from '../chunk-E2VK7J2C.js';
14
14
  import { parseTemplate } from '../chunk-7AAZGVKD.js';
15
15
  import { isRecord, setOwn, deepEqual } from '../chunk-PMCM2OH4.js';
16
- import '../chunk-7NQ37GZU.js';
16
+ import '../chunk-N23SKIG4.js';
17
17
  import '../chunk-BO6OVILK.js';
18
18
  import { readFileSync, existsSync, readdirSync, statSync } from 'fs';
19
19
  import { resolve, join, dirname, relative, sep } from 'path';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkCSNWNFKU_cjs = require('../chunk-CSNWNFKU.cjs');
3
+ var chunkM4BBAERY_cjs = require('../chunk-M4BBAERY.cjs');
4
4
  require('../chunk-FMSW2HDF.cjs');
5
5
  require('../chunk-FR7KYWRO.cjs');
6
6
  var chunkL24YIZY7_cjs = require('../chunk-L24YIZY7.cjs');
7
- require('../chunk-FQIHX7YI.cjs');
7
+ require('../chunk-DHTLALBL.cjs');
8
8
  var chunkP6TA5EZT_cjs = require('../chunk-P6TA5EZT.cjs');
9
9
  require('../chunk-623FVQSN.cjs');
10
10
  require('../chunk-2J6TF7YI.cjs');
@@ -14,51 +14,51 @@ require('../chunk-Z2Y65YOY.cjs');
14
14
 
15
15
  Object.defineProperty(exports, "CommandIds", {
16
16
  enumerable: true,
17
- get: function () { return chunkCSNWNFKU_cjs.CommandIds; }
17
+ get: function () { return chunkM4BBAERY_cjs.CommandIds; }
18
18
  });
19
19
  Object.defineProperty(exports, "RUNTIME_GLOBAL", {
20
20
  enumerable: true,
21
- get: function () { return chunkCSNWNFKU_cjs.RUNTIME_GLOBAL; }
21
+ get: function () { return chunkM4BBAERY_cjs.RUNTIME_GLOBAL; }
22
22
  });
23
23
  Object.defineProperty(exports, "SDK_NAME", {
24
24
  enumerable: true,
25
- get: function () { return chunkCSNWNFKU_cjs.SDK_NAME; }
25
+ get: function () { return chunkM4BBAERY_cjs.SDK_NAME; }
26
26
  });
27
27
  Object.defineProperty(exports, "WorkflowExecution", {
28
28
  enumerable: true,
29
- get: function () { return chunkCSNWNFKU_cjs.WorkflowExecution; }
29
+ get: function () { return chunkM4BBAERY_cjs.WorkflowExecution; }
30
30
  });
31
31
  Object.defineProperty(exports, "buildWorkflowRegistry", {
32
32
  enumerable: true,
33
- get: function () { return chunkCSNWNFKU_cjs.buildWorkflowRegistry; }
33
+ get: function () { return chunkM4BBAERY_cjs.buildWorkflowRegistry; }
34
34
  });
35
35
  Object.defineProperty(exports, "createWorkflowRuntime", {
36
36
  enumerable: true,
37
- get: function () { return chunkCSNWNFKU_cjs.createWorkflowRuntime; }
37
+ get: function () { return chunkM4BBAERY_cjs.createWorkflowRuntime; }
38
38
  });
39
39
  Object.defineProperty(exports, "installWorkflowRuntime", {
40
40
  enumerable: true,
41
- get: function () { return chunkCSNWNFKU_cjs.installWorkflowRuntime; }
41
+ get: function () { return chunkM4BBAERY_cjs.installWorkflowRuntime; }
42
42
  });
43
43
  Object.defineProperty(exports, "isPatchMarkerId", {
44
44
  enumerable: true,
45
- get: function () { return chunkCSNWNFKU_cjs.isPatchMarkerId; }
45
+ get: function () { return chunkM4BBAERY_cjs.isPatchMarkerId; }
46
46
  });
47
47
  Object.defineProperty(exports, "isRuntimeAbi", {
48
48
  enumerable: true,
49
- get: function () { return chunkCSNWNFKU_cjs.isRuntimeAbi; }
49
+ get: function () { return chunkM4BBAERY_cjs.isRuntimeAbi; }
50
50
  });
51
51
  Object.defineProperty(exports, "matchActivation", {
52
52
  enumerable: true,
53
- get: function () { return chunkCSNWNFKU_cjs.matchActivation; }
53
+ get: function () { return chunkM4BBAERY_cjs.matchActivation; }
54
54
  });
55
55
  Object.defineProperty(exports, "mismatch", {
56
56
  enumerable: true,
57
- get: function () { return chunkCSNWNFKU_cjs.mismatch; }
57
+ get: function () { return chunkM4BBAERY_cjs.mismatch; }
58
58
  });
59
59
  Object.defineProperty(exports, "patchMarkerId", {
60
60
  enumerable: true,
61
- get: function () { return chunkCSNWNFKU_cjs.patchMarkerId; }
61
+ get: function () { return chunkM4BBAERY_cjs.patchMarkerId; }
62
62
  });
63
63
  Object.defineProperty(exports, "SHIM_HOOK", {
64
64
  enumerable: true,
@@ -1,8 +1,8 @@
1
- export { CommandIds, RUNTIME_GLOBAL, SDK_NAME, WorkflowExecution, buildWorkflowRegistry, createWorkflowRuntime, installWorkflowRuntime, isPatchMarkerId, isRuntimeAbi, matchActivation, mismatch, patchMarkerId } from '../chunk-3FOTFQ3J.js';
1
+ export { CommandIds, RUNTIME_GLOBAL, SDK_NAME, WorkflowExecution, buildWorkflowRegistry, createWorkflowRuntime, installWorkflowRuntime, isPatchMarkerId, isRuntimeAbi, matchActivation, mismatch, patchMarkerId } from '../chunk-VRHHBPT6.js';
2
2
  import '../chunk-C5OLWZ42.js';
3
3
  import '../chunk-LNUQE6D6.js';
4
4
  export { SHIM_HOOK, SHIM_VIOLATION, TASK_PRELUDE, createRandom, seedOf, uuidFrom } from '../chunk-4LYSEANA.js';
5
- import '../chunk-7NQ37GZU.js';
5
+ import '../chunk-N23SKIG4.js';
6
6
  export { splitActivations } from '../chunk-ABFZWYHT.js';
7
7
  import '../chunk-DJYMDLV5.js';
8
8
  import '../chunk-BO6OVILK.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkJD2VQIDZ_cjs = require('../chunk-JD2VQIDZ.cjs');
4
- var chunk57MSZ24T_cjs = require('../chunk-57MSZ24T.cjs');
4
+ var chunkSAOBPYYJ_cjs = require('../chunk-SAOBPYYJ.cjs');
5
5
  var chunkGBQ33SIZ_cjs = require('../chunk-GBQ33SIZ.cjs');
6
6
  require('../chunk-G4UEPUGO.cjs');
7
7
  require('../chunk-GVTZMA5C.cjs');
@@ -9,11 +9,11 @@ require('../chunk-QKZL3ONM.cjs');
9
9
  require('../chunk-TBDXTV22.cjs');
10
10
  var chunkPZCVF76Q_cjs = require('../chunk-PZCVF76Q.cjs');
11
11
  var chunkSAENRNBJ_cjs = require('../chunk-SAENRNBJ.cjs');
12
- var chunkCSNWNFKU_cjs = require('../chunk-CSNWNFKU.cjs');
12
+ var chunkM4BBAERY_cjs = require('../chunk-M4BBAERY.cjs');
13
13
  var chunkFMSW2HDF_cjs = require('../chunk-FMSW2HDF.cjs');
14
14
  require('../chunk-FR7KYWRO.cjs');
15
15
  var chunkL24YIZY7_cjs = require('../chunk-L24YIZY7.cjs');
16
- var chunkFQIHX7YI_cjs = require('../chunk-FQIHX7YI.cjs');
16
+ var chunkDHTLALBL_cjs = require('../chunk-DHTLALBL.cjs');
17
17
  var chunkP6TA5EZT_cjs = require('../chunk-P6TA5EZT.cjs');
18
18
  var chunk623FVQSN_cjs = require('../chunk-623FVQSN.cjs');
19
19
  require('../chunk-2J6TF7YI.cjs');
@@ -25,7 +25,7 @@ function drainJobs() {
25
25
  return new Promise((resolve) => setImmediate(resolve));
26
26
  }
27
27
  function registryOf(workflows) {
28
- return chunkCSNWNFKU_cjs.buildWorkflowRegistry([["in-process", { ...workflows }]]);
28
+ return chunkM4BBAERY_cjs.buildWorkflowRegistry([["in-process", { ...workflows }]]);
29
29
  }
30
30
  async function hostLoop(abi, requestJson) {
31
31
  abi.start(requestJson);
@@ -35,7 +35,7 @@ async function hostLoop(abi, requestJson) {
35
35
  return abi.complete();
36
36
  }
37
37
  async function runWorkflowTaskInProcess(registry, request) {
38
- const abi = chunkCSNWNFKU_cjs.createWorkflowRuntime(registry);
38
+ const abi = chunkM4BBAERY_cjs.createWorkflowRuntime(registry);
39
39
  const json = await hostLoop(abi, JSON.stringify(request));
40
40
  return JSON.parse(json);
41
41
  }
@@ -836,7 +836,7 @@ async function replay(workflows, input, options = {}) {
836
836
  const { events, file } = eventsOf(input);
837
837
  const started = events[0]?.type === "WORKFLOW_STARTED" ? events[0].payload["workflowFn"] : void 0;
838
838
  const recordedFn = options.workflowFn ?? file?.workflowFn ?? (typeof started === "string" ? started : void 0);
839
- const map = chunkFQIHX7YI_cjs.isDurableWorkflow(workflows) ? { [recordedFn ?? workflows.name]: workflows } : { ...workflows };
839
+ const map = chunkDHTLALBL_cjs.isDurableWorkflow(workflows) ? { [recordedFn ?? workflows.name]: workflows } : { ...workflows };
840
840
  const workflowFn = recordedFn ?? Object.keys(map)[0] ?? "";
841
841
  const result = await runWorkflowTaskInProcess(
842
842
  registryOf(map),
@@ -898,7 +898,7 @@ function assertHistory(history, expected, options = {}) {
898
898
  );
899
899
  }
900
900
  function definitionOf(value) {
901
- return chunkGBQ33SIZ_cjs.normalizeDefinition(chunk57MSZ24T_cjs.isTier1Workflow(value) ? chunk57MSZ24T_cjs.toIR(value) : value);
901
+ return chunkGBQ33SIZ_cjs.normalizeDefinition(chunkSAOBPYYJ_cjs.isTier1Workflow(value) ? chunkSAOBPYYJ_cjs.toIR(value) : value);
902
902
  }
903
903
  function expectIR(value) {
904
904
  const definition = definitionOf(value);
@@ -3,7 +3,7 @@ import { i as HistoryFile, m as RunState } from '../file-BOoHZgoQ.cjs';
3
3
  import { a6 as WorkflowInfoSnapshot, a7 as WorkflowTaskRequest, a8 as WorkflowTaskResult, U as RunEventRecord, F as Failure, V as RunEventType } from '../types-CpBBjaGX.cjs';
4
4
  import { a as Json, b as WorkflowDefinition, m as WorkflowNode } from '../types-BGoPzgcl.cjs';
5
5
  import { x as Tier1Workflow } from '../workflow-FXUkpIBc.cjs';
6
- import { E as EsbuildApi } from '../lower-types-nofRXw9c.cjs';
6
+ import { E as EsbuildApi } from '../lower-types-DQNBfWQn.cjs';
7
7
  import { WorkflowRegistry } from '../runtime/index.cjs';
8
8
  import 'esbuild';
9
9
  import '../activation-BBh1p82z.cjs';
@@ -3,7 +3,7 @@ import { i as HistoryFile, m as RunState } from '../file-yuPCFU5b.js';
3
3
  import { a6 as WorkflowInfoSnapshot, a7 as WorkflowTaskRequest, a8 as WorkflowTaskResult, U as RunEventRecord, F as Failure, V as RunEventType } from '../types-DV-HX_Gt.js';
4
4
  import { a as Json, b as WorkflowDefinition, m as WorkflowNode } from '../types-BGoPzgcl.js';
5
5
  import { x as Tier1Workflow } from '../workflow-Bpr3vnA_.js';
6
- import { E as EsbuildApi } from '../lower-types-nofRXw9c.js';
6
+ import { E as EsbuildApi } from '../lower-types-DQNBfWQn.js';
7
7
  import { WorkflowRegistry } from '../runtime/index.js';
8
8
  import 'esbuild';
9
9
  import '../activation-DnhG7SmF.js';
@@ -1,5 +1,5 @@
1
1
  import { failedTaskResult } from '../chunk-IISBRUWJ.js';
2
- import { isTier1Workflow, toIR } from '../chunk-5HDSBTBX.js';
2
+ import { isTier1Workflow, toIR } from '../chunk-HWJZVOG7.js';
3
3
  import { irHash, CODE_WORKFLOW_NODE_TYPE, normalizeDefinition } from '../chunk-BD7ZPG53.js';
4
4
  import '../chunk-5LUIDMF4.js';
5
5
  import '../chunk-JZ4TOOLN.js';
@@ -7,11 +7,11 @@ import '../chunk-E2VK7J2C.js';
7
7
  import '../chunk-7AAZGVKD.js';
8
8
  import { createHistoryFile, validateCommands, parseHistoryFile } from '../chunk-VOKMAAJP.js';
9
9
  import { isRecord } from '../chunk-PMCM2OH4.js';
10
- import { buildWorkflowRegistry, createWorkflowRuntime } from '../chunk-3FOTFQ3J.js';
10
+ import { buildWorkflowRegistry, createWorkflowRuntime } from '../chunk-VRHHBPT6.js';
11
11
  import { failureToError, signalName, toMs, errorToFailure, ApplicationError, CancelledFailure, DeterminismViolation } from '../chunk-C5OLWZ42.js';
12
12
  import '../chunk-LNUQE6D6.js';
13
13
  import { TASK_PRELUDE } from '../chunk-4LYSEANA.js';
14
- import { isDurableWorkflow } from '../chunk-7NQ37GZU.js';
14
+ import { isDurableWorkflow } from '../chunk-N23SKIG4.js';
15
15
  import { initialRunState, applyEvent, eventsForCommands, isActivityOpen, computeRetryDelay, isChildOpen } from '../chunk-ABFZWYHT.js';
16
16
  import { isInputEvent, HISTORY_PROTOCOL, TERMINAL_COMMANDS } from '../chunk-DJYMDLV5.js';
17
17
  import '../chunk-BO6OVILK.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidgrids/workflows",
3
- "version": "2026.1028.1",
3
+ "version": "2026.1028.2",
4
4
  "description": "Author FluidGrids workflows as code: the IR v2 schema and tools, the tier-1 graph builder, tier-2 durable workflow functions with their runtime, history contract, QuickJS replay runner and test environment, lift and lower between canvas JSON, TypeScript and Python, and typed node client generation.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -1,15 +0,0 @@
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
- declare class LowerError extends Error {
11
- readonly reason?: LowerFailureReason | undefined;
12
- constructor(message: string, reason?: LowerFailureReason | undefined);
13
- }
14
-
15
- export { type EsbuildApi as E, LowerError as L, type LowerFailureReason as a };
@@ -1,15 +0,0 @@
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
- declare class LowerError extends Error {
11
- readonly reason?: LowerFailureReason | undefined;
12
- constructor(message: string, reason?: LowerFailureReason | undefined);
13
- }
14
-
15
- export { type EsbuildApi as E, LowerError as L, type LowerFailureReason as a };