windmill-cli 1.749.0 → 1.750.0
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/esm/main.js +65 -3
- package/package.json +2 -2
package/esm/main.js
CHANGED
|
@@ -16784,7 +16784,7 @@ var init_OpenAPI = __esm(() => {
|
|
|
16784
16784
|
PASSWORD: undefined,
|
|
16785
16785
|
TOKEN: getEnv3("WM_TOKEN"),
|
|
16786
16786
|
USERNAME: undefined,
|
|
16787
|
-
VERSION: "1.
|
|
16787
|
+
VERSION: "1.750.0",
|
|
16788
16788
|
WITH_CREDENTIALS: true,
|
|
16789
16789
|
interceptors: {
|
|
16790
16790
|
request: new Interceptors,
|
|
@@ -26422,7 +26422,7 @@ var init_auth = __esm(async () => {
|
|
|
26422
26422
|
});
|
|
26423
26423
|
|
|
26424
26424
|
// src/core/constants.ts
|
|
26425
|
-
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.
|
|
26425
|
+
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.750.0";
|
|
26426
26426
|
|
|
26427
26427
|
// src/utils/git.ts
|
|
26428
26428
|
var exports_git = {};
|
|
@@ -95835,6 +95835,11 @@ function buildLineageDag(g2) {
|
|
|
95835
95835
|
const at = t2;
|
|
95836
95836
|
addEdge(dag, assetNodeId(at.asset_kind, at.asset_path), scriptNodeId(at.runnable_path));
|
|
95837
95837
|
}
|
|
95838
|
+
for (const t2 of g2.test_edges ?? []) {
|
|
95839
|
+
if (t2.runnable_kind !== "script")
|
|
95840
|
+
continue;
|
|
95841
|
+
addEdge(dag, assetNodeId(t2.asset_kind, t2.asset_path), scriptNodeId(t2.runnable_path));
|
|
95842
|
+
}
|
|
95838
95843
|
return dag;
|
|
95839
95844
|
}
|
|
95840
95845
|
function closure(adj, start) {
|
|
@@ -96474,8 +96479,13 @@ async function buildLocalPipelineGraph(args) {
|
|
|
96474
96479
|
const assetSet = new Map;
|
|
96475
96480
|
const derivedFromByKey = new Map;
|
|
96476
96481
|
const pipelineScripts = [];
|
|
96482
|
+
const dataTestsByPath = new Map;
|
|
96483
|
+
const readsByRunnable = new Map;
|
|
96477
96484
|
for (const s2 of all) {
|
|
96478
96485
|
const out = await inferScriptAssets(s2.content, s2.language);
|
|
96486
|
+
const reads = (out.assets ?? []).filter((a2) => a2.access_type == null || a2.access_type === "r" || a2.access_type === "rw").map((a2) => ({ kind: a2.kind, path: a2.path }));
|
|
96487
|
+
if (reads.length > 0)
|
|
96488
|
+
readsByRunnable.set(s2.path, reads);
|
|
96479
96489
|
const macroLibDefs = libMacros.get(s2.path);
|
|
96480
96490
|
if (macroLibDefs) {
|
|
96481
96491
|
runnables.push({
|
|
@@ -96493,6 +96503,9 @@ async function buildLocalPipelineGraph(args) {
|
|
|
96493
96503
|
}
|
|
96494
96504
|
if (!out.in_pipeline)
|
|
96495
96505
|
continue;
|
|
96506
|
+
if (out.data_tests && out.data_tests.length > 0) {
|
|
96507
|
+
dataTestsByPath.set(s2.path, out.data_tests);
|
|
96508
|
+
}
|
|
96496
96509
|
const retry = normalizeRetry(out.retry);
|
|
96497
96510
|
const nativeTriggers = recoverHeaderNativeTriggers(s2.content, s2.language);
|
|
96498
96511
|
pipelineScripts.push(out.tag ? { ...s2, tag: out.tag } : s2);
|
|
@@ -96584,6 +96597,7 @@ async function buildLocalPipelineGraph(args) {
|
|
|
96584
96597
|
}
|
|
96585
96598
|
}
|
|
96586
96599
|
const macroEdges = buildMacroEdges(all, libMacros, runnables);
|
|
96600
|
+
const testEdges = buildTestEdges(dataTestsByPath, readsByRunnable, edges);
|
|
96587
96601
|
const assets = [...assetSet.entries()].map(([key, a2]) => {
|
|
96588
96602
|
const derived_from = a2.derived_from ?? derivedFromByKey.get(key);
|
|
96589
96603
|
return derived_from ? { ...a2, derived_from } : a2;
|
|
@@ -96594,11 +96608,59 @@ async function buildLocalPipelineGraph(args) {
|
|
|
96594
96608
|
assets,
|
|
96595
96609
|
edges,
|
|
96596
96610
|
triggers,
|
|
96597
|
-
...macroEdges.length > 0 ? { macro_edges: macroEdges } : {}
|
|
96611
|
+
...macroEdges.length > 0 ? { macro_edges: macroEdges } : {},
|
|
96612
|
+
...testEdges.length > 0 ? { test_edges: testEdges } : {}
|
|
96598
96613
|
},
|
|
96599
96614
|
scripts: pipelineScripts
|
|
96600
96615
|
};
|
|
96601
96616
|
}
|
|
96617
|
+
function buildTestEdges(dataTestsByPath, readsByRunnable, edges) {
|
|
96618
|
+
const producersByAsset = new Map;
|
|
96619
|
+
for (const e2 of edges) {
|
|
96620
|
+
if (e2.access_type !== "w" && e2.access_type !== "rw")
|
|
96621
|
+
continue;
|
|
96622
|
+
const key = `${e2.asset_kind}\x00${e2.asset_path}`;
|
|
96623
|
+
(producersByAsset.get(key) ?? producersByAsset.set(key, []).get(key)).push({
|
|
96624
|
+
kind: e2.runnable_kind,
|
|
96625
|
+
path: e2.runnable_path
|
|
96626
|
+
});
|
|
96627
|
+
}
|
|
96628
|
+
const out = [];
|
|
96629
|
+
const seen = new Set;
|
|
96630
|
+
for (const [memberPath, dts] of dataTestsByPath) {
|
|
96631
|
+
for (const dt of dts) {
|
|
96632
|
+
let referenced = [];
|
|
96633
|
+
if (dt.type === "relationships") {
|
|
96634
|
+
referenced = [{ kind: dt.to_kind, path: dt.to_path }];
|
|
96635
|
+
} else if (dt.type === "custom") {
|
|
96636
|
+
referenced = readsByRunnable.get(dt.path) ?? [];
|
|
96637
|
+
}
|
|
96638
|
+
for (const ref of referenced) {
|
|
96639
|
+
const producers = producersByAsset.get(`${ref.kind}\x00${ref.path}`);
|
|
96640
|
+
if (!producers)
|
|
96641
|
+
continue;
|
|
96642
|
+
for (const p3 of producers) {
|
|
96643
|
+
if (p3.kind === "script" && p3.path === memberPath)
|
|
96644
|
+
continue;
|
|
96645
|
+
const key = [p3.path, memberPath, ref.kind, ref.path].join("\x00");
|
|
96646
|
+
if (seen.has(key))
|
|
96647
|
+
continue;
|
|
96648
|
+
seen.add(key);
|
|
96649
|
+
out.push({
|
|
96650
|
+
producer_kind: p3.kind,
|
|
96651
|
+
producer_path: p3.path,
|
|
96652
|
+
runnable_kind: "script",
|
|
96653
|
+
runnable_path: memberPath,
|
|
96654
|
+
asset_kind: ref.kind,
|
|
96655
|
+
asset_path: ref.path
|
|
96656
|
+
});
|
|
96657
|
+
}
|
|
96658
|
+
}
|
|
96659
|
+
}
|
|
96660
|
+
}
|
|
96661
|
+
out.sort((a2, b2) => a2.producer_path.localeCompare(b2.producer_path) || a2.runnable_path.localeCompare(b2.runnable_path) || a2.asset_kind.localeCompare(b2.asset_kind) || a2.asset_path.localeCompare(b2.asset_path));
|
|
96662
|
+
return out;
|
|
96663
|
+
}
|
|
96602
96664
|
function collectMacroLibraries(root) {
|
|
96603
96665
|
const out = new Map;
|
|
96604
96666
|
const walk = (dir) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "windmill-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.750.0",
|
|
4
4
|
"description": "CLI for Windmill",
|
|
5
5
|
"license": "Apache 2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"esbuild": "0.28.0",
|
|
20
|
-
"windmill-parser-wasm-asset": "1.
|
|
20
|
+
"windmill-parser-wasm-asset": "1.749.0",
|
|
21
21
|
"windmill-parser-wasm-csharp": "1.510.1",
|
|
22
22
|
"windmill-parser-wasm-go": "1.510.1",
|
|
23
23
|
"windmill-parser-wasm-java": "1.510.1",
|