@fluidgrids/workflows 2026.1027.0 → 2026.1027.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 +26 -5
- package/dist/{assemble-DMOuaxRI.d.ts → assemble-CrpUyd_3.d.ts} +20 -2
- package/dist/{assemble-BJo9TECS.d.cts → assemble-DEf3znGD.d.cts} +20 -2
- package/dist/chunk-3M34AUIY.cjs +27 -0
- package/dist/chunk-5AW745OG.js +25 -0
- package/dist/{chunk-RRQ5HOBF.cjs → chunk-6AIAC2FP.cjs} +4 -4
- package/dist/{chunk-GO34UHSY.js → chunk-6BEW4QD6.js} +3 -3
- package/dist/{chunk-SS4LT2IP.js → chunk-6U446SKY.js} +5 -10
- package/dist/{chunk-AU3YW7FZ.cjs → chunk-7YR7DI7B.cjs} +46 -51
- package/dist/{chunk-27HASETB.cjs → chunk-CSYBNN3V.cjs} +3 -1
- package/dist/{chunk-LRM6JXJA.cjs → chunk-E3APHA6O.cjs} +19 -1
- package/dist/{chunk-BWSLWF2E.js → chunk-EEAIM35V.js} +38 -12
- package/dist/{chunk-X4HKU3MX.js → chunk-IHKXLG6I.js} +3 -1
- package/dist/chunk-MBBKGD7K.js +440 -0
- package/dist/{chunk-LSKSBVL4.cjs → chunk-OSPTJCDI.cjs} +6 -6
- package/dist/{chunk-KUTMY2IO.cjs → chunk-TQF7MYEN.cjs} +101 -75
- package/dist/{chunk-BYJ7QTLY.cjs → chunk-TWOYB4Y7.cjs} +13 -13
- package/dist/{chunk-PL73GJR4.js → chunk-UB2BHU2M.js} +1 -1
- package/dist/{chunk-REV7ZOA4.js → chunk-UJNHTS6D.js} +13 -2
- package/dist/{chunk-IZQNUNSU.cjs → chunk-UWQWD7BP.cjs} +17 -17
- package/dist/{chunk-4DPEGDPW.js → chunk-W32BSO3M.js} +4 -4
- package/dist/{chunk-LMX35GNQ.js → chunk-XBIID5DY.js} +4 -4
- package/dist/chunk-Y7NWR3WH.cjs +450 -0
- package/dist/codegen/index.cjs +7 -7
- package/dist/codegen/index.js +5 -5
- package/dist/index.cjs +30 -30
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/ir/index.cjs +118 -116
- package/dist/ir/index.d.cts +18 -8
- package/dist/ir/index.d.ts +18 -8
- package/dist/ir/index.js +21 -19
- package/dist/{lower-Dw5grNrI.d.ts → lower-CXggJTIo.d.ts} +20 -2
- package/dist/{lower-DcOY8ux0.d.cts → lower-DAzvsJCo.d.cts} +20 -2
- package/dist/node-evaluator-CH3XCJND.cjs +17 -0
- package/dist/node-evaluator-TULXA3WE.js +8 -0
- package/dist/quickjs/index.cjs +32 -78
- package/dist/quickjs/index.d.cts +4 -4
- package/dist/quickjs/index.d.ts +4 -4
- package/dist/quickjs/index.js +32 -78
- package/dist/roundtrip/index.cjs +201 -128
- package/dist/roundtrip/index.d.cts +7 -4
- package/dist/roundtrip/index.d.ts +7 -4
- package/dist/roundtrip/index.js +87 -18
- package/package.json +44 -18
- package/dist/chunk-265J2FCH.cjs +0 -33
- package/dist/chunk-LUXCXFOE.cjs +0 -269
- package/dist/chunk-S34NJE3A.js +0 -262
- package/dist/chunk-SRQRLWOS.js +0 -31
- package/dist/node-evaluator-2GTUZVPK.cjs +0 -17
- package/dist/node-evaluator-RMYEWCXZ.js +0 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunkOSPTJCDI_cjs = require('./chunk-OSPTJCDI.cjs');
|
|
4
|
+
var chunk6AIAC2FP_cjs = require('./chunk-6AIAC2FP.cjs');
|
|
5
|
+
var chunkCSYBNN3V_cjs = require('./chunk-CSYBNN3V.cjs');
|
|
6
|
+
var chunkE3APHA6O_cjs = require('./chunk-E3APHA6O.cjs');
|
|
7
7
|
var standalone = require('prettier/standalone');
|
|
8
8
|
var prettierPluginEstree = require('prettier/plugins/estree');
|
|
9
9
|
var prettierPluginTypescript = require('prettier/plugins/typescript');
|
|
@@ -199,7 +199,7 @@ function clientNames(manifests) {
|
|
|
199
199
|
if (typeof manifest.nodeType !== "string" || manifest.nodeType.startsWith("internal:"))
|
|
200
200
|
continue;
|
|
201
201
|
const current = latest.get(manifest.nodeType);
|
|
202
|
-
if (!current ||
|
|
202
|
+
if (!current || chunkOSPTJCDI_cjs.compareVersions(manifest.nodeVersion, current.nodeVersion) > 0)
|
|
203
203
|
latest.set(manifest.nodeType, manifest);
|
|
204
204
|
}
|
|
205
205
|
const usedTs = /* @__PURE__ */ new Set(["internal", "custom"]);
|
|
@@ -220,7 +220,7 @@ function clientNames(manifests) {
|
|
|
220
220
|
const operations = /* @__PURE__ */ new Map();
|
|
221
221
|
const opTs = /* @__PURE__ */ new Set();
|
|
222
222
|
const opPy = /* @__PURE__ */ new Set();
|
|
223
|
-
for (const operation of
|
|
223
|
+
for (const operation of chunkOSPTJCDI_cjs.operationsOf(manifest)) {
|
|
224
224
|
if (operations.has(operation.name)) continue;
|
|
225
225
|
let tsName = /^[A-Za-z_$][A-Za-z0-9_$]*$/.test(operation.name) ? operation.name : safeTsIdentifier(camelCase(operation.name), "op");
|
|
226
226
|
let pyName = safePyIdentifier(snakeCase(operation.name), "op");
|
|
@@ -450,7 +450,7 @@ function str(text) {
|
|
|
450
450
|
}
|
|
451
451
|
function propertyKey(key) {
|
|
452
452
|
if (key === "__proto__") return `[${str(key)}]`;
|
|
453
|
-
return
|
|
453
|
+
return chunkE3APHA6O_cjs.isJsIdentifier(key) ? key : str(key);
|
|
454
454
|
}
|
|
455
455
|
function nodeSource(nodeId, ctx) {
|
|
456
456
|
const name = ctx.vars.get(nodeId);
|
|
@@ -460,7 +460,7 @@ function refText(ref, ctx) {
|
|
|
460
460
|
let text = ref.target.kind === "node" ? `${nodeSource(ref.target.nodeId, ctx)}.output` : `wf.${ref.target.kind}`;
|
|
461
461
|
for (const segment of ref.path) {
|
|
462
462
|
if (segment.kind === "index") text += `[${segment.index}]`;
|
|
463
|
-
else if (
|
|
463
|
+
else if (chunkE3APHA6O_cjs.isJsIdentifier(segment.key) && !chunk6AIAC2FP_cjs.RESERVED_REF_KEYS.has(segment.key))
|
|
464
464
|
text += `.${segment.key}`;
|
|
465
465
|
else text += `[${str(segment.key)}]`;
|
|
466
466
|
}
|
|
@@ -579,7 +579,7 @@ function registrySnapshotHash(manifests) {
|
|
|
579
579
|
const projection = manifests.filter((manifest) => typeof manifest.nodeType === "string").map((manifest) => ({
|
|
580
580
|
nodeType: manifest.nodeType,
|
|
581
581
|
nodeVersion: manifest.nodeVersion ?? null,
|
|
582
|
-
operations:
|
|
582
|
+
operations: chunkOSPTJCDI_cjs.operationsOf(manifest).map((operation) => ({
|
|
583
583
|
name: operation.name,
|
|
584
584
|
type: operation.type ?? null,
|
|
585
585
|
role: operation.role ?? null,
|
|
@@ -589,11 +589,11 @@ function registrySnapshotHash(manifests) {
|
|
|
589
589
|
})).sort(
|
|
590
590
|
(a, b) => a.nodeType === b.nodeType ? String(a.nodeVersion) < String(b.nodeVersion) ? -1 : 1 : a.nodeType < b.nodeType ? -1 : 1
|
|
591
591
|
);
|
|
592
|
-
return
|
|
592
|
+
return chunkCSYBNN3V_cjs.sha256Tagged(chunkCSYBNN3V_cjs.canonicalJson(projection));
|
|
593
593
|
}
|
|
594
594
|
function fieldOf(value) {
|
|
595
595
|
if (typeof value === "string") return { type: value };
|
|
596
|
-
return
|
|
596
|
+
return chunkE3APHA6O_cjs.isRecord(value) ? value : {};
|
|
597
597
|
}
|
|
598
598
|
function stringChoices(field) {
|
|
599
599
|
const choices = Array.isArray(field.enum) ? field.enum : Array.isArray(field.options) ? field.options : void 0;
|
|
@@ -627,7 +627,7 @@ function tsType(value, use, depth = 0) {
|
|
|
627
627
|
return "Array<Json>";
|
|
628
628
|
}
|
|
629
629
|
case "object":
|
|
630
|
-
if (
|
|
630
|
+
if (chunkE3APHA6O_cjs.isRecord(field.properties) && depth < 4)
|
|
631
631
|
return tsObject(field.properties, false, use, depth + 1);
|
|
632
632
|
use.add("Json");
|
|
633
633
|
return "Json";
|
|
@@ -664,7 +664,7 @@ function tsDescriptor(manifest, operation, use) {
|
|
|
664
664
|
use,
|
|
665
665
|
0
|
|
666
666
|
);
|
|
667
|
-
const factory =
|
|
667
|
+
const factory = chunkOSPTJCDI_cjs.isTriggerOperation(operation) ? "trigger" : "op";
|
|
668
668
|
const version = manifest.nodeVersion !== void 0 ? JSON.stringify(manifest.nodeVersion) : "undefined";
|
|
669
669
|
return `${factory}<${input}, ${output}>(${JSON.stringify(manifest.nodeType)}, ${version}, ${JSON.stringify(operation.name)})`;
|
|
670
670
|
}
|
|
@@ -688,12 +688,12 @@ async function generateTypeScript(manifests, snapshot) {
|
|
|
688
688
|
for (const [client, manifest] of latestManifests(manifests, names)) {
|
|
689
689
|
const members = [];
|
|
690
690
|
const triggerMembers = [];
|
|
691
|
-
for (const operation of
|
|
691
|
+
for (const operation of chunkOSPTJCDI_cjs.operationsOf(manifest)) {
|
|
692
692
|
const key = client.operations.get(operation.name)?.ts;
|
|
693
693
|
if (!key) continue;
|
|
694
694
|
const descriptor = tsDescriptor(manifest, operation, use);
|
|
695
695
|
members.push(`${comment(operation.description)}${tsKey(key)}: ${descriptor},`);
|
|
696
|
-
if (
|
|
696
|
+
if (chunkOSPTJCDI_cjs.isTriggerOperation(operation)) {
|
|
697
697
|
usesTrigger = true;
|
|
698
698
|
triggerMembers.push(`${tsKey(key)}: ${descriptor},`);
|
|
699
699
|
} else usesOp = true;
|
|
@@ -819,7 +819,7 @@ function generatePython(manifests, snapshot) {
|
|
|
819
819
|
const triggerClassName = uniqueTypeName(`_${pascal(client.py)}Triggers`);
|
|
820
820
|
const body = [];
|
|
821
821
|
const triggerBody = [];
|
|
822
|
-
for (const operation of
|
|
822
|
+
for (const operation of chunkOSPTJCDI_cjs.operationsOf(manifest)) {
|
|
823
823
|
const opName = client.operations.get(operation.name)?.py;
|
|
824
824
|
if (!opName) continue;
|
|
825
825
|
const stem = `${pascal(client.py)}${pascal(opName)}`;
|
|
@@ -835,7 +835,7 @@ function generatePython(manifests, snapshot) {
|
|
|
835
835
|
use
|
|
836
836
|
)
|
|
837
837
|
);
|
|
838
|
-
const trigger =
|
|
838
|
+
const trigger = chunkOSPTJCDI_cjs.isTriggerOperation(operation);
|
|
839
839
|
if (trigger) usesTrigger = true;
|
|
840
840
|
else usesOp = true;
|
|
841
841
|
const descriptor = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hashedProjection } from './chunk-
|
|
2
|
-
import { isRecord, deepEqual } from './chunk-
|
|
1
|
+
import { hashedProjection } from './chunk-6U446SKY.js';
|
|
2
|
+
import { isRecord, deepEqual, ownValue } from './chunk-UJNHTS6D.js';
|
|
3
3
|
|
|
4
4
|
// src/ir/diff.ts
|
|
5
5
|
function keyPath(base, key) {
|
|
@@ -10,8 +10,8 @@ function diffValues(before, after, path, out) {
|
|
|
10
10
|
if (isRecord(before) && isRecord(after)) {
|
|
11
11
|
const keys = [.../* @__PURE__ */ new Set([...Object.keys(before), ...Object.keys(after)])].sort();
|
|
12
12
|
for (const key of keys) {
|
|
13
|
-
const left = before
|
|
14
|
-
const right = after
|
|
13
|
+
const left = ownValue(before, key);
|
|
14
|
+
const right = ownValue(after, key);
|
|
15
15
|
if (left === void 0 && right !== void 0)
|
|
16
16
|
out.push({ kind: "added", path: keyPath(path, key), after: right });
|
|
17
17
|
else if (left !== void 0 && right === void 0)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { compareVersions, operationsOf, isTriggerOperation } from './chunk-
|
|
2
|
-
import { RESERVED_REF_KEYS } from './chunk-
|
|
3
|
-
import { sha256Tagged, canonicalJson } from './chunk-
|
|
4
|
-
import { isJsIdentifier, isRecord } from './chunk-
|
|
1
|
+
import { compareVersions, operationsOf, isTriggerOperation } from './chunk-6BEW4QD6.js';
|
|
2
|
+
import { RESERVED_REF_KEYS } from './chunk-UB2BHU2M.js';
|
|
3
|
+
import { sha256Tagged, canonicalJson } from './chunk-IHKXLG6I.js';
|
|
4
|
+
import { isJsIdentifier, isRecord } from './chunk-UJNHTS6D.js';
|
|
5
5
|
import { format } from 'prettier/standalone';
|
|
6
6
|
import * as prettierPluginEstree from 'prettier/plugins/estree';
|
|
7
7
|
import * as prettierPluginTypescript from 'prettier/plugins/typescript';
|