windmill-cli 1.775.1 → 1.775.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 (2) hide show
  1. package/esm/main.js +111 -76
  2. package/package.json +1 -1
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.775.1",
16787
+ VERSION: "1.775.2",
16788
16788
  WITH_CREDENTIALS: true,
16789
16789
  interceptors: {
16790
16790
  request: new Interceptors,
@@ -27187,7 +27187,7 @@ var init_auth = __esm(async () => {
27187
27187
  });
27188
27188
 
27189
27189
  // src/core/constants.ts
27190
- var WM_FORK_PREFIX = "wm-fork", VERSION = "1.775.1";
27190
+ var WM_FORK_PREFIX = "wm-fork", VERSION = "1.775.2";
27191
27191
 
27192
27192
  // src/utils/git.ts
27193
27193
  var exports_git = {};
@@ -38825,6 +38825,8 @@ import * as fs9 from "node:fs";
38825
38825
  import * as path6 from "node:path";
38826
38826
  import process14 from "node:process";
38827
38827
  import { spawn } from "node:child_process";
38828
+ import { createRequire as createRequire2 } from "node:module";
38829
+ import { pathToFileURL as pathToFileURL2 } from "node:url";
38828
38830
  function conditionsFor(svelte) {
38829
38831
  return svelte ? [...DEFAULT_BUILD_OPTIONS.conditions, "svelte"] : DEFAULT_BUILD_OPTIONS.conditions;
38830
38832
  }
@@ -38847,29 +38849,41 @@ function detectFrameworks(appDir) {
38847
38849
  return { svelte: false, vue: false };
38848
38850
  }
38849
38851
  }
38852
+ async function loadSvelteCompiler(appDir) {
38853
+ try {
38854
+ const requireFromApp = createRequire2(path6.join(path6.resolve(appDir), "package.json"));
38855
+ const entry = requireFromApp.resolve("svelte/compiler");
38856
+ return await import(pathToFileURL2(entry).href);
38857
+ } catch {
38858
+ return await import("svelte/compiler");
38859
+ }
38860
+ }
38850
38861
  function createSveltePlugin(appDir) {
38862
+ let compilerPromise;
38863
+ const svelteCompiler = () => compilerPromise ??= loadSvelteCompiler(appDir);
38864
+ const messageConverter = (source, filename) => ({ message, start, end }) => {
38865
+ let location;
38866
+ if (start && end) {
38867
+ const lineText = source.split(/\r\n|\r|\n/g)[start.line - 1];
38868
+ const lineEnd = start.line === end.line ? end.column : lineText.length;
38869
+ location = {
38870
+ file: filename,
38871
+ line: start.line,
38872
+ column: start.column,
38873
+ length: lineEnd - start.column,
38874
+ lineText
38875
+ };
38876
+ }
38877
+ return { text: message, location };
38878
+ };
38851
38879
  return {
38852
38880
  name: "svelte",
38853
38881
  setup(build) {
38854
38882
  build.onLoad({ filter: /\.svelte$/ }, async (args) => {
38855
- const svelte = await import("svelte/compiler");
38883
+ const svelte = await svelteCompiler();
38856
38884
  const source = await readTextFile(args.path);
38857
38885
  const filename = path6.relative(process14.cwd(), args.path);
38858
- const convertMessage = ({ message, start, end }) => {
38859
- let location;
38860
- if (start && end) {
38861
- const lineText = source.split(/\r\n|\r|\n/g)[start.line - 1];
38862
- const lineEnd = start.line === end.line ? end.column : lineText.length;
38863
- location = {
38864
- file: filename,
38865
- line: start.line,
38866
- column: start.column,
38867
- length: lineEnd - start.column,
38868
- lineText
38869
- };
38870
- }
38871
- return { text: message, location };
38872
- };
38886
+ const convertMessage = messageConverter(source, filename);
38873
38887
  try {
38874
38888
  const { js, warnings } = svelte.compile(source, { filename });
38875
38889
  const contents = js.code + `//# sourceMappingURL=` + js.map.toUrl();
@@ -38878,6 +38892,27 @@ function createSveltePlugin(appDir) {
38878
38892
  return { errors: [convertMessage(e)] };
38879
38893
  }
38880
38894
  });
38895
+ build.onLoad({ filter: /\.svelte\.[jt]s$/ }, async (args) => {
38896
+ const svelte = await svelteCompiler();
38897
+ const source = await readTextFile(args.path);
38898
+ const filename = path6.relative(process14.cwd(), args.path);
38899
+ const convertMessage = messageConverter(source, filename);
38900
+ try {
38901
+ const code2 = filename.endsWith(".ts") ? (await build.esbuild.transform(source, {
38902
+ loader: "ts",
38903
+ sourcefile: filename
38904
+ })).code : source;
38905
+ const { js, warnings } = svelte.compileModule(code2, { filename });
38906
+ const contents = js.code + `//# sourceMappingURL=` + js.map.toUrl();
38907
+ return {
38908
+ contents,
38909
+ loader: "js",
38910
+ warnings: warnings.map(convertMessage)
38911
+ };
38912
+ } catch (e) {
38913
+ return { errors: [convertMessage(e)] };
38914
+ }
38915
+ });
38881
38916
  }
38882
38917
  };
38883
38918
  }
@@ -38899,13 +38934,13 @@ async function ensureNodeModules(appDir) {
38899
38934
  const nodeModulesPath = path6.join(targetDir, "node_modules");
38900
38935
  if (!fs9.existsSync(nodeModulesPath)) {
38901
38936
  info(colors.yellow("\uD83D\uDCE6 node_modules not found, running npm install..."));
38902
- const code2 = await new Promise((resolve7, reject) => {
38937
+ const code2 = await new Promise((resolve8, reject) => {
38903
38938
  const npmInstall = spawn("npm", ["install"], {
38904
38939
  cwd: targetDir,
38905
38940
  stdio: "inherit",
38906
38941
  shell: true
38907
38942
  });
38908
- npmInstall.on("close", (code3) => resolve7(code3 ?? 0));
38943
+ npmInstall.on("close", (code3) => resolve8(code3 ?? 0));
38909
38944
  npmInstall.on("error", reject);
38910
38945
  });
38911
38946
  if (code2 !== 0) {
@@ -39266,7 +39301,7 @@ async function pollJobWithQueueLogging(workspace, jobId, options) {
39266
39301
  info(colors.gray(`${label}${jobId}: still polling, queue status unavailable...`));
39267
39302
  }
39268
39303
  const delayMs = Date.now() - startedAt < fastPollDurationMs ? fastPollIntervalMs : slowPollIntervalMs;
39269
- await new Promise((resolve7) => setTimeout(resolve7, delayMs));
39304
+ await new Promise((resolve8) => setTimeout(resolve8, delayMs));
39270
39305
  }
39271
39306
  }
39272
39307
  var DEFAULT_FAST_POLL_INTERVAL_MS = 100, DEFAULT_FAST_POLL_DURATION_MS = 2000, DEFAULT_SLOW_POLL_INTERVAL_MS = 2000, QUEUE_LOG_INTERVAL_MS = 5000, HEARTBEAT_INTERVAL_MS = 60000, MAX_CONSECUTIVE_POLL_ERRORS = 10;
@@ -43224,8 +43259,8 @@ var require_lib2 = __commonJS((exports, module) => {
43224
43259
  return this;
43225
43260
  }
43226
43261
  var p = this.constructor;
43227
- return this.then(resolve8, reject2);
43228
- function resolve8(value) {
43262
+ return this.then(resolve9, reject2);
43263
+ function resolve9(value) {
43229
43264
  function yes() {
43230
43265
  return value;
43231
43266
  }
@@ -43378,8 +43413,8 @@ var require_lib2 = __commonJS((exports, module) => {
43378
43413
  }
43379
43414
  return out;
43380
43415
  }
43381
- Promise2.resolve = resolve7;
43382
- function resolve7(value) {
43416
+ Promise2.resolve = resolve8;
43417
+ function resolve8(value) {
43383
43418
  if (value instanceof this) {
43384
43419
  return value;
43385
43420
  }
@@ -43733,10 +43768,10 @@ var require_utils = __commonJS((exports) => {
43733
43768
  var promise = external.Promise.resolve(inputData).then(function(data3) {
43734
43769
  var isBlob2 = support.blob && (data3 instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(data3)) !== -1);
43735
43770
  if (isBlob2 && typeof FileReader !== "undefined") {
43736
- return new external.Promise(function(resolve7, reject) {
43771
+ return new external.Promise(function(resolve8, reject) {
43737
43772
  var reader = new FileReader;
43738
43773
  reader.onload = function(e) {
43739
- resolve7(e.target.result);
43774
+ resolve8(e.target.result);
43740
43775
  };
43741
43776
  reader.onerror = function(e) {
43742
43777
  reject(e.target.error);
@@ -44200,7 +44235,7 @@ var require_StreamHelper = __commonJS((exports, module) => {
44200
44235
  }
44201
44236
  }
44202
44237
  function accumulate(helper, updateCallback) {
44203
- return new external.Promise(function(resolve7, reject) {
44238
+ return new external.Promise(function(resolve8, reject) {
44204
44239
  var dataArray = [];
44205
44240
  var { _internalType: chunkType, _outputType: resultType, _mimeType: mimeType } = helper;
44206
44241
  helper.on("data", function(data3, meta) {
@@ -44214,7 +44249,7 @@ var require_StreamHelper = __commonJS((exports, module) => {
44214
44249
  }).on("end", function() {
44215
44250
  try {
44216
44251
  var result = transformZipOutput(resultType, concat(chunkType, dataArray), mimeType);
44217
- resolve7(result);
44252
+ resolve8(result);
44218
44253
  } catch (e) {
44219
44254
  reject(e);
44220
44255
  }
@@ -49791,7 +49826,7 @@ var require_load = __commonJS((exports, module) => {
49791
49826
  var Crc32Probe = require_Crc32Probe();
49792
49827
  var nodejsUtils = require_nodejsUtils();
49793
49828
  function checkEntryCRC32(zipEntry) {
49794
- return new external.Promise(function(resolve7, reject) {
49829
+ return new external.Promise(function(resolve8, reject) {
49795
49830
  var worker = zipEntry.decompressed.getContentWorker().pipe(new Crc32Probe);
49796
49831
  worker.on("error", function(e) {
49797
49832
  reject(e);
@@ -49799,7 +49834,7 @@ var require_load = __commonJS((exports, module) => {
49799
49834
  if (worker.streamInfo.crc32 !== zipEntry.decompressed.crc32) {
49800
49835
  reject(new Error("Corrupted zip : CRC32 mismatch"));
49801
49836
  } else {
49802
- resolve7();
49837
+ resolve8();
49803
49838
  }
49804
49839
  }).resume();
49805
49840
  });
@@ -49927,7 +49962,7 @@ async function parseTarResponse(response) {
49927
49962
  const buffer = Buffer.from(await response.arrayBuffer());
49928
49963
  const entries = new Map;
49929
49964
  const ex = $extract();
49930
- return new Promise((resolve7, reject) => {
49965
+ return new Promise((resolve8, reject) => {
49931
49966
  ex.on("entry", (header, stream, next) => {
49932
49967
  const chunks = [];
49933
49968
  stream.on("data", (chunk) => chunks.push(chunk));
@@ -49941,7 +49976,7 @@ async function parseTarResponse(response) {
49941
49976
  stream.on("error", reject);
49942
49977
  stream.resume();
49943
49978
  });
49944
- ex.on("finish", () => resolve7(new TarAsZip(entries)));
49979
+ ex.on("finish", () => resolve8(new TarAsZip(entries)));
49945
49980
  ex.on("error", reject);
49946
49981
  Readable2.from(buffer).pipe(ex);
49947
49982
  });
@@ -52893,7 +52928,7 @@ var require_compile = __commonJS((exports) => {
52893
52928
  const schOrFunc = root.refs[ref];
52894
52929
  if (schOrFunc)
52895
52930
  return schOrFunc;
52896
- let _sch = resolve7.call(this, root, ref);
52931
+ let _sch = resolve8.call(this, root, ref);
52897
52932
  if (_sch === undefined) {
52898
52933
  const schema = (_a = root.localRefs) === null || _a === undefined ? undefined : _a[ref];
52899
52934
  const { schemaId } = this.opts;
@@ -52920,7 +52955,7 @@ var require_compile = __commonJS((exports) => {
52920
52955
  function sameSchemaEnv(s1, s2) {
52921
52956
  return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
52922
52957
  }
52923
- function resolve7(root, ref) {
52958
+ function resolve8(root, ref) {
52924
52959
  let sch;
52925
52960
  while (typeof (sch = this.refs[ref]) == "string")
52926
52961
  ref = sch;
@@ -53450,7 +53485,7 @@ var require_fast_uri = __commonJS((exports, module) => {
53450
53485
  }
53451
53486
  return uri;
53452
53487
  }
53453
- function resolve7(baseURI, relativeURI, options) {
53488
+ function resolve8(baseURI, relativeURI, options) {
53454
53489
  const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
53455
53490
  const resolved = resolveComponent(parse7(baseURI, schemelessOptions), parse7(relativeURI, schemelessOptions), schemelessOptions, true);
53456
53491
  schemelessOptions.skipEscape = true;
@@ -53678,7 +53713,7 @@ var require_fast_uri = __commonJS((exports, module) => {
53678
53713
  var fastUri = {
53679
53714
  SCHEMES,
53680
53715
  normalize: normalize5,
53681
- resolve: resolve7,
53716
+ resolve: resolve8,
53682
53717
  resolveComponent,
53683
53718
  equal: equal2,
53684
53719
  serialize,
@@ -56369,11 +56404,11 @@ var require_tslib = __commonJS((exports, module) => {
56369
56404
  };
56370
56405
  __awaiter2 = function(thisArg, _arguments, P, generator) {
56371
56406
  function adopt(value) {
56372
- return value instanceof P ? value : new P(function(resolve7) {
56373
- resolve7(value);
56407
+ return value instanceof P ? value : new P(function(resolve8) {
56408
+ resolve8(value);
56374
56409
  });
56375
56410
  }
56376
- return new (P || (P = Promise))(function(resolve7, reject) {
56411
+ return new (P || (P = Promise))(function(resolve8, reject) {
56377
56412
  function fulfilled(value) {
56378
56413
  try {
56379
56414
  step(generator.next(value));
@@ -56389,7 +56424,7 @@ var require_tslib = __commonJS((exports, module) => {
56389
56424
  }
56390
56425
  }
56391
56426
  function step(result) {
56392
- result.done ? resolve7(result.value) : adopt(result.value).then(fulfilled, rejected);
56427
+ result.done ? resolve8(result.value) : adopt(result.value).then(fulfilled, rejected);
56393
56428
  }
56394
56429
  step((generator = generator.apply(thisArg, _arguments || [])).next());
56395
56430
  });
@@ -56618,14 +56653,14 @@ var require_tslib = __commonJS((exports, module) => {
56618
56653
  }, i);
56619
56654
  function verb(n) {
56620
56655
  i[n] = o[n] && function(v) {
56621
- return new Promise(function(resolve7, reject) {
56622
- v = o[n](v), settle(resolve7, reject, v.done, v.value);
56656
+ return new Promise(function(resolve8, reject) {
56657
+ v = o[n](v), settle(resolve8, reject, v.done, v.value);
56623
56658
  });
56624
56659
  };
56625
56660
  }
56626
- function settle(resolve7, reject, d, v) {
56661
+ function settle(resolve8, reject, d, v) {
56627
56662
  Promise.resolve(v).then(function(v2) {
56628
- resolve7({ value: v2, done: d });
56663
+ resolve8({ value: v2, done: d });
56629
56664
  }, reject);
56630
56665
  }
56631
56666
  };
@@ -64781,11 +64816,11 @@ var init_specific_items = __esm(async () => {
64781
64816
 
64782
64817
  // src/utils/tar.ts
64783
64818
  function createTarBlob(entries) {
64784
- return new Promise((resolve7, reject) => {
64819
+ return new Promise((resolve8, reject) => {
64785
64820
  const p = $pack();
64786
64821
  const chunks = [];
64787
64822
  p.on("data", (chunk) => chunks.push(new Uint8Array(chunk)));
64788
- p.on("end", () => resolve7(new Blob(chunks)));
64823
+ p.on("end", () => resolve8(new Blob(chunks)));
64789
64824
  p.on("error", reject);
64790
64825
  for (const entry of entries) {
64791
64826
  p.entry({ name: entry.name }, Buffer.from(entry.content));
@@ -66772,7 +66807,7 @@ async function list4(opts) {
66772
66807
  new Table2().header(["path", "summary", "language", "created by"]).padding(2).border(true).body(total.map((x) => [x.path, x.summary, x.language, x.created_by])).render();
66773
66808
  }
66774
66809
  }
66775
- async function resolve7(input) {
66810
+ async function resolve8(input) {
66776
66811
  if (!input) {
66777
66812
  throw new Error("No data given");
66778
66813
  }
@@ -66798,7 +66833,7 @@ async function run2(opts, path10) {
66798
66833
  }
66799
66834
  const workspace = await resolveWorkspace(opts);
66800
66835
  await requireLogin(opts);
66801
- const input = opts.data ? await resolve7(opts.data) : {};
66836
+ const input = opts.data ? await resolve8(opts.data) : {};
66802
66837
  if (!opts.data) {
66803
66838
  try {
66804
66839
  const script = await getScriptByPath({
@@ -66864,7 +66899,7 @@ ${script.lock_error_logs}`);
66864
66899
  break;
66865
66900
  } catch {
66866
66901
  retries++;
66867
- await new Promise((resolve8) => setTimeout(resolve8, 100));
66902
+ await new Promise((resolve9) => setTimeout(resolve9, 100));
66868
66903
  }
66869
66904
  }
66870
66905
  if (retries >= MAX_RETRIES) {
@@ -66901,7 +66936,7 @@ async function track_job(workspace, id) {
66901
66936
  info("failed to get job updated. skipping log streaming.");
66902
66937
  break;
66903
66938
  }
66904
- await new Promise((resolve8) => setTimeout(resolve8, 500));
66939
+ await new Promise((resolve9) => setTimeout(resolve9, 500));
66905
66940
  continue;
66906
66941
  }
66907
66942
  if (!running && updates.running === true) {
@@ -66921,7 +66956,7 @@ async function track_job(workspace, id) {
66921
66956
  info(colors.yellow("Job suspended. Waiting for it to continue..."));
66922
66957
  }
66923
66958
  }
66924
- await new Promise((resolve8, _) => setTimeout(() => resolve8(undefined), 1000));
66959
+ await new Promise((resolve9, _) => setTimeout(() => resolve9(undefined), 1000));
66925
66960
  try {
66926
66961
  const final_job = await getCompletedJob({ workspace, id });
66927
66962
  if ((final_job.logs?.length ?? -1) > logOffset) {
@@ -67106,7 +67141,7 @@ async function preview(opts, filePath) {
67106
67141
  const codebases = await listSyncCodebases(opts);
67107
67142
  const language = inferContentTypeFromFilePath(filePath, opts?.defaultTs);
67108
67143
  const content = await readTextFile(filePath);
67109
- const input = opts.data ? await resolve7(opts.data) : {};
67144
+ const input = opts.data ? await resolve8(opts.data) : {};
67110
67145
  const isFolderLayout = isModuleEntryPoint(filePath);
67111
67146
  const moduleFolderPath = isFolderLayout ? path9.dirname(filePath) : filePath.substring(0, filePath.indexOf(".")) + getModuleFolderSuffix();
67112
67147
  const modules = await readModulesFromDisk(moduleFolderPath, opts?.defaultTs, isFolderLayout);
@@ -67237,7 +67272,7 @@ async function preview(opts, filePath) {
67237
67272
  }
67238
67273
  break;
67239
67274
  } catch {
67240
- await new Promise((resolve8) => setTimeout(resolve8, 100));
67275
+ await new Promise((resolve9) => setTimeout(resolve9, 100));
67241
67276
  }
67242
67277
  }
67243
67278
  } else {
@@ -71812,7 +71847,7 @@ import { sep as SEP10 } from "node:path";
71812
71847
  import { writeFile as writeFile8, stat as stat8, rm as rm3, readdir as readdir5 } from "node:fs/promises";
71813
71848
  import { readFileSync as readFileSync2, existsSync as existsSync8, readdirSync as readdirSync2, statSync as statSync2, writeFileSync as writeFileSync5 } from "node:fs";
71814
71849
  import * as path13 from "node:path";
71815
- import { createRequire as createRequire2 } from "node:module";
71850
+ import { createRequire as createRequire3 } from "node:module";
71816
71851
  function loadParser(pkgName) {
71817
71852
  let p = _parserCache.get(pkgName);
71818
71853
  if (!p) {
@@ -72683,7 +72718,7 @@ var init_metadata = __esm(async () => {
72683
72718
  init_relative_imports()
72684
72719
  ]);
72685
72720
  import_yaml13 = __toESM(require_dist(), 1);
72686
- _require = createRequire2(import.meta.url);
72721
+ _require = createRequire3(import.meta.url);
72687
72722
  _parserCache = new Map;
72688
72723
  LockfileGenerationError = class LockfileGenerationError extends Error {
72689
72724
  constructor(message) {
@@ -74558,7 +74593,7 @@ async function waitForJob(workspace, jobId) {
74558
74593
  }
74559
74594
  let syncIteration = 0;
74560
74595
  let lastQueueLogAt = Date.now();
74561
- return new Promise((resolve9, reject) => {
74596
+ return new Promise((resolve10, reject) => {
74562
74597
  async function checkJob() {
74563
74598
  try {
74564
74599
  const maybeJob = await getCompletedJobResultMaybe({
@@ -74570,7 +74605,7 @@ async function waitForJob(workspace, jobId) {
74570
74605
  if (!maybeJob.success && typeof maybeJob.result === "object" && maybeJob.result !== null && "error" in maybeJob.result) {
74571
74606
  reject(maybeJob.result.error);
74572
74607
  } else {
74573
- resolve9(maybeJob.result);
74608
+ resolve10(maybeJob.result);
74574
74609
  }
74575
74610
  return;
74576
74611
  }
@@ -75561,8 +75596,8 @@ This folder is for SQL migration files that will be applied to datatables during
75561
75596
  process.stdout.write(`\r${colors.gray(`${frames[i++ % frames.length]} Creating Claude session...`)}`);
75562
75597
  }, 80);
75563
75598
  try {
75564
- await new Promise((resolve9, reject) => {
75565
- exec(`claude --session-id "${sessionId}" -p "Say: Your app is ready, click on preview to test it!"`, { cwd: absAppDir }, (error2) => error2 ? reject(error2) : resolve9());
75599
+ await new Promise((resolve10, reject) => {
75600
+ exec(`claude --session-id "${sessionId}" -p "Say: Your app is ready, click on preview to test it!"`, { cwd: absAppDir }, (error2) => error2 ? reject(error2) : resolve10());
75566
75601
  });
75567
75602
  } finally {
75568
75603
  clearInterval(spinner);
@@ -79512,7 +79547,7 @@ async function run3(opts, path22) {
79512
79547
  }
79513
79548
  const workspace = await resolveWorkspace(opts);
79514
79549
  await requireLogin(opts);
79515
- const input = opts.data ? await resolve7(opts.data) : {};
79550
+ const input = opts.data ? await resolve8(opts.data) : {};
79516
79551
  if (!opts.data) {
79517
79552
  try {
79518
79553
  const flow = await getFlowByPath({
@@ -79593,7 +79628,7 @@ async function run3(opts, path22) {
79593
79628
  forLoopFailed = refreshedModule.type === "Failure";
79594
79629
  break;
79595
79630
  }
79596
- await new Promise((resolve9) => setTimeout(resolve9, 200));
79631
+ await new Promise((resolve10) => setTimeout(resolve10, 200));
79597
79632
  }
79598
79633
  if (forLoopFailed)
79599
79634
  break;
@@ -79609,7 +79644,7 @@ async function run3(opts, path22) {
79609
79644
  info(colors.dim(status));
79610
79645
  lastStatus = status;
79611
79646
  }
79612
- await new Promise((resolve9, _) => setTimeout(() => resolve9(undefined), 100));
79647
+ await new Promise((resolve10, _) => setTimeout(() => resolve10(undefined), 100));
79613
79648
  if (isCompleted)
79614
79649
  break;
79615
79650
  continue;
@@ -79645,7 +79680,7 @@ async function run3(opts, path22) {
79645
79680
  break;
79646
79681
  } catch {
79647
79682
  retries++;
79648
- await new Promise((resolve9) => setTimeout(resolve9, 100));
79683
+ await new Promise((resolve10) => setTimeout(resolve10, 100));
79649
79684
  }
79650
79685
  }
79651
79686
  if (retries >= MAX_RETRIES) {
@@ -79708,7 +79743,7 @@ async function preview2(opts, flowPath) {
79708
79743
  const resolvedCodebases = await Promise.resolve(codebases);
79709
79744
  tempScriptRefs = await buildPreviewTempScriptRefs2(workspace, opts, resolvedCodebases, { kind: "flow", folder: flowPath });
79710
79745
  }
79711
- const input = opts.data ? await resolve7(opts.data) : {};
79746
+ const input = opts.data ? await resolve8(opts.data) : {};
79712
79747
  debug(`Flow value: ${JSON.stringify(localFlow.value, null, 2)}`);
79713
79748
  const flowWmPath = stripFlowSuffix(flowPath).replaceAll(SEP20, "/");
79714
79749
  if (opts.step) {
@@ -93352,7 +93387,7 @@ async function dev2(opts) {
93352
93387
  }
93353
93388
  socket.destroy();
93354
93389
  });
93355
- return new Promise((resolve9) => {
93390
+ return new Promise((resolve10) => {
93356
93391
  proxyServer.listen(proxyPort, BIND_HOST, () => {
93357
93392
  console.log(`Dev proxy listening on http://localhost:${proxyPort}`);
93358
93393
  if (opts.path) {
@@ -93362,7 +93397,7 @@ async function dev2(opts) {
93362
93397
  console.log("(pass --path <path> to skip the picker)");
93363
93398
  }
93364
93399
  maybeOpenBrowser(`http://localhost:${proxyPort}/`);
93365
- resolve9();
93400
+ resolve10();
93366
93401
  });
93367
93402
  });
93368
93403
  }
@@ -93468,9 +93503,9 @@ class NpmProvider extends Provider {
93468
93503
  if (verbose)
93469
93504
  process.stderr.write(d);
93470
93505
  });
93471
- const exitCode = await new Promise((resolve9, reject) => {
93506
+ const exitCode = await new Promise((resolve10, reject) => {
93472
93507
  proc.on("error", reject);
93473
- proc.on("close", resolve9);
93508
+ proc.on("close", resolve10);
93474
93509
  }).catch((e) => {
93475
93510
  throw new Error(`failed to run npm: ${e instanceof Error ? e.message : e}
93476
93511
 
@@ -96957,16 +96992,16 @@ async function startServe(opts) {
96957
96992
  error(`server error: ${err.message}`);
96958
96993
  process.exitCode = 1;
96959
96994
  });
96960
- await new Promise((resolve9) => server.listen(port, host, () => resolve9()));
96995
+ await new Promise((resolve10) => server.listen(port, host, () => resolve10()));
96961
96996
  return {
96962
96997
  host,
96963
96998
  port,
96964
96999
  user: DEFAULT_USER,
96965
97000
  password,
96966
97001
  connectionString: (datatableName) => `postgresql://${DEFAULT_USER}:${encodeURIComponent(password)}@${host}:${port}/${encodeURIComponent(datatableName)}`,
96967
- close: () => new Promise((resolve9) => {
96968
- server.close(() => resolve9());
96969
- setTimeout(resolve9, 1000).unref();
97002
+ close: () => new Promise((resolve10) => {
97003
+ server.close(() => resolve10());
97004
+ setTimeout(resolve10, 1000).unref();
96970
97005
  })
96971
97006
  };
96972
97007
  }
@@ -97475,13 +97510,13 @@ async function psql(opts) {
97475
97510
  }
97476
97511
  handle.close().finally(() => process.exit(1));
97477
97512
  });
97478
- const exitCode = await new Promise((resolve9) => {
97513
+ const exitCode = await new Promise((resolve10) => {
97479
97514
  child.on("exit", (code2, signal) => {
97480
97515
  if (signal && typeof signal === "string") {
97481
97516
  const num = signalToNumber(signal);
97482
- resolve9(num !== undefined ? 128 + num : 1);
97517
+ resolve10(num !== undefined ? 128 + num : 1);
97483
97518
  } else {
97484
- resolve9(code2 ?? 0);
97519
+ resolve10(code2 ?? 0);
97485
97520
  }
97486
97521
  });
97487
97522
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.775.1",
3
+ "version": "1.775.2",
4
4
  "description": "CLI for Windmill",
5
5
  "license": "Apache 2.0",
6
6
  "type": "module",