@pipelab/cli 2.0.0-beta.26 → 2.0.0-beta.27

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.
@@ -1,4 +1,4 @@
1
1
  import "./src-PqA91tjF.mjs";
2
2
  import "./dist-BC_B45iu.mjs";
3
- import { c as setupSettingsConfigFile } from "./config-Crzou2fs.mjs";
3
+ import { c as setupSettingsConfigFile } from "./config-DJaqZVxZ.mjs";
4
4
  export { setupSettingsConfigFile };
@@ -8,7 +8,7 @@ import fs$1, { mkdir, readdir, stat, writeFile } from "node:fs/promises";
8
8
  import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
9
9
  import { StringDecoder } from "node:string_decoder";
10
10
  import { aborted, callbackify, debuglog, inspect, promisify, stripVTControlCharacters } from "node:util";
11
- import process$1, { execArgv, execPath, hrtime, platform as platform$1 } from "node:process";
11
+ import P, { execArgv, execPath, hrtime, platform as platform$1 } from "node:process";
12
12
  import tty from "node:tty";
13
13
  import { scheduler, setImmediate as setImmediate$1, setTimeout as setTimeout$1 } from "node:timers/promises";
14
14
  import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
@@ -180,9 +180,9 @@ const getSubprocessResult = ({ stdout }) => {
180
180
  //#region ../../packages/core-node/node_modules/execa/lib/utils/standard-stream.js
181
181
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
182
182
  const STANDARD_STREAMS = [
183
- process$1.stdin,
184
- process$1.stdout,
185
- process$1.stderr
183
+ P.stdin,
184
+ P.stdout,
185
+ P.stderr
186
186
  ];
187
187
  const STANDARD_STREAMS_ALIASES = [
188
188
  "stdin",
@@ -303,9 +303,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
303
303
  //#endregion
304
304
  //#region ../../node_modules/figures/node_modules/is-unicode-supported/index.js
305
305
  function isUnicodeSupported() {
306
- const { env } = process$1;
306
+ const { env } = P;
307
307
  const { TERM, TERM_PROGRAM } = env;
308
- if (process$1.platform !== "win32") return TERM !== "linux";
308
+ if (P.platform !== "win32") return TERM !== "linux";
309
309
  return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
310
310
  }
311
311
  //#endregion
@@ -1201,7 +1201,7 @@ function traversePathUp(startPath) {
1201
1201
  }
1202
1202
  //#endregion
1203
1203
  //#region ../../node_modules/npm-run-path/index.js
1204
- const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
1204
+ const npmRunPath = ({ cwd = P.cwd(), path: pathOption = P.env[pathKey()], preferLocal = true, execPath = P.execPath, addExecPath = true } = {}) => {
1205
1205
  const cwdPath = path.resolve(toPath(cwd));
1206
1206
  const result = [];
1207
1207
  const pathParts = pathOption.split(path.delimiter);
@@ -1219,7 +1219,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
1219
1219
  const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
1220
1220
  if (!pathParts.includes(pathPart)) result.push(pathPart);
1221
1221
  };
1222
- const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
1222
+ const npmRunPathEnv = ({ env = P.env, ...options } = {}) => {
1223
1223
  env = { ...env };
1224
1224
  const pathName = pathKey({ env });
1225
1225
  options.path = env[pathName];
@@ -2326,7 +2326,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
2326
2326
  };
2327
2327
  const getDefaultCwd = () => {
2328
2328
  try {
2329
- return process$1.cwd();
2329
+ return P.cwd();
2330
2330
  } catch (error) {
2331
2331
  error.message = `The current directory does not exist.\n${error.message}`;
2332
2332
  throw error;
@@ -2361,7 +2361,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
2361
2361
  options.killSignal = normalizeKillSignal(options.killSignal);
2362
2362
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
2363
2363
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
2364
- if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
2364
+ if (P.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
2365
2365
  return {
2366
2366
  file,
2367
2367
  commandArguments,
@@ -2388,7 +2388,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
2388
2388
  });
2389
2389
  const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
2390
2390
  const env = extendEnv ? {
2391
- ...process$1.env,
2391
+ ...P.env,
2392
2392
  ...envOption
2393
2393
  } : envOption;
2394
2394
  if (preferLocal || node) return npmRunPathEnv({
@@ -3355,12 +3355,12 @@ const guessStreamDirection = {
3355
3355
  }
3356
3356
  };
3357
3357
  const getStandardStreamDirection = (value) => {
3358
- if ([0, process$1.stdin].includes(value)) return "input";
3358
+ if ([0, P.stdin].includes(value)) return "input";
3359
3359
  if ([
3360
3360
  1,
3361
3361
  2,
3362
- process$1.stdout,
3363
- process$1.stderr
3362
+ P.stdout,
3363
+ P.stderr
3364
3364
  ].includes(value)) return "output";
3365
3365
  };
3366
3366
  const DEFAULT_DIRECTION = "output";
@@ -4400,9 +4400,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
4400
4400
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
4401
4401
  };
4402
4402
  const getIpcExport = () => {
4403
- const anyProcess = process$1;
4403
+ const anyProcess = P;
4404
4404
  const isSubprocess = true;
4405
- const ipc = process$1.channel !== void 0;
4405
+ const ipc = P.channel !== void 0;
4406
4406
  return {
4407
4407
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
4408
4408
  getCancelSignal: getCancelSignal$1.bind(void 0, {
@@ -4872,7 +4872,7 @@ var SignalExitFallback = class extends SignalExitBase {
4872
4872
  };
4873
4873
  var SignalExit = class extends SignalExitBase {
4874
4874
  /* c8 ignore start */
4875
- #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
4875
+ #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
4876
4876
  /* c8 ignore stop */
4877
4877
  #emitter = new Emitter();
4878
4878
  #process;
@@ -4967,8 +4967,8 @@ var SignalExit = class extends SignalExitBase {
4967
4967
  } else return og.call(this.#process, ev, ...args);
4968
4968
  }
4969
4969
  };
4970
- const process$2 = globalThis.process;
4971
- const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
4970
+ const process$1 = globalThis.process;
4971
+ const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
4972
4972
  //#endregion
4973
4973
  //#region ../../packages/core-node/node_modules/execa/lib/terminate/cleanup.js
4974
4974
  const cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
package/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import { a as __require, n as __esmMin, s as __toESM, t as __commonJSMin } from "./chunk-M2dkpuaD.mjs";
3
3
  import { a as WebSocketError, c as transformUrl, d as SubscriptionRequiredError, f as usePlugins, i as savedFileMigrator, l as isSupabaseAvailable, n as connectionsMigrator, o as isWebSocketRequestMessage, r as fileRepoMigrations, s as isRequired, t as appSettingsMigrator, u as supabase, v as processGraph, w as useLogger } from "./src-PqA91tjF.mjs";
4
4
  import "./dist-BC_B45iu.mjs";
5
- import { a as setupPipelineConfigFileByName, c as setupSettingsConfigFile, d as extractTarGz, f as extractZip, g as execa, h as require_balanced_match, i as setupConnectionsConfigFile, l as downloadFile, m as require_commonjs$8, n as deletePipelineConfigFileByPath, o as setupPipelineConfigFileByPath, p as getFolderSize, s as setupProjectsConfigFile, t as deletePipelineConfigFileByName } from "./config-Crzou2fs.mjs";
5
+ import { a as setupPipelineConfigFileByName, c as setupSettingsConfigFile, d as extractTarGz, f as extractZip, g as execa, h as require_balanced_match, i as setupConnectionsConfigFile, l as downloadFile, m as require_commonjs$8, n as deletePipelineConfigFileByPath, o as setupPipelineConfigFileByPath, p as getFolderSize, s as setupProjectsConfigFile, t as deletePipelineConfigFileByName } from "./config-DJaqZVxZ.mjs";
6
6
  import path, { delimiter, dirname, isAbsolute, join, normalize, resolve, sep } from "node:path";
7
7
  import { fileURLToPath, pathToFileURL } from "node:url";
8
8
  import { homedir, platform, release } from "node:os";
@@ -14,12 +14,12 @@ import { webcrypto } from "node:crypto";
14
14
  import { dirname as dirname$1, isAbsolute as isAbsolute$1, posix, relative, sep as sep$1 } from "path";
15
15
  import { execFile } from "node:child_process";
16
16
  import { promisify, stripVTControlCharacters, styleText } from "node:util";
17
- import process$1, { platform as platform$1, stdin, stdout } from "node:process";
17
+ import P, { platform as platform$1, stdin, stdout } from "node:process";
18
18
  import { ReadStream } from "node:tty";
19
19
  import { setTimeout as setTimeout$1 } from "node:timers/promises";
20
20
  import dns from "node:dns/promises";
21
21
  import * as _ from "node:readline";
22
- import P, { createInterface } from "node:readline";
22
+ import P$1, { createInterface } from "node:readline";
23
23
  import { AsyncLocalStorage } from "node:async_hooks";
24
24
  //#region ../../node_modules/tsdown/esm-shims.js
25
25
  var getFilename, getDirname, __dirname$1;
@@ -14144,17 +14144,17 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14144
14144
  //#endregion
14145
14145
  //#region ../../node_modules/npm-install-checks/lib/current-env.js
14146
14146
  var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14147
- const process$3 = __require("node:process");
14147
+ const process$2 = __require("node:process");
14148
14148
  const nodeOs = __require("node:os");
14149
14149
  const fs$19 = __require("node:fs");
14150
14150
  function isMusl(file) {
14151
14151
  return file.includes("libc.musl-") || file.includes("ld-musl-");
14152
14152
  }
14153
14153
  function os() {
14154
- return process$3.platform;
14154
+ return process$2.platform;
14155
14155
  }
14156
14156
  function cpu() {
14157
- return process$3.arch;
14157
+ return process$2.arch;
14158
14158
  }
14159
14159
  const LDD_PATH = "/usr/bin/ldd";
14160
14160
  function getFamilyFromFilesystem() {
@@ -14168,10 +14168,10 @@ var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14168
14168
  }
14169
14169
  }
14170
14170
  function getFamilyFromReport() {
14171
- const originalExclude = process$3.report.excludeNetwork;
14172
- process$3.report.excludeNetwork = true;
14173
- const report = process$3.report.getReport();
14174
- process$3.report.excludeNetwork = originalExclude;
14171
+ const originalExclude = process$2.report.excludeNetwork;
14172
+ process$2.report.excludeNetwork = true;
14173
+ const report = process$2.report.getReport();
14174
+ process$2.report.excludeNetwork = originalExclude;
14175
14175
  if (report.header?.glibcVersionRuntime) family = "glibc";
14176
14176
  else if (Array.isArray(report.sharedObjects) && report.sharedObjects.some(isMusl)) family = "musl";
14177
14177
  else family = null;
@@ -14201,7 +14201,7 @@ var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14201
14201
  },
14202
14202
  runtime: {
14203
14203
  name: "node",
14204
- version: env.nodeVersion || process$3.version
14204
+ version: env.nodeVersion || process$2.version
14205
14205
  }
14206
14206
  };
14207
14207
  }
@@ -67232,35 +67232,24 @@ async function installDependencies(packageDir, packageName, options) {
67232
67232
  console.log(`[Fetcher] ${packageName}: Dependencies already installed, skipping.`);
67233
67233
  return;
67234
67234
  }
67235
- const tempDir = `${packageDir}.tmp-deps-${Math.random().toString(36).slice(2)}`;
67236
- await mkdir(tempDir, { recursive: true });
67237
67235
  try {
67238
- await cp(join(packageDir, "package.json"), join(tempDir, "package.json"));
67239
67236
  console.log(`[Fetcher] ${packageName}: Ensuring dependencies are installed...`);
67240
67237
  const pnpmStart = Date.now();
67241
- const { all } = await runPnpm(tempDir, {
67238
+ const { all } = await runPnpm(packageDir, {
67242
67239
  signal: options.signal,
67243
67240
  context: options.context
67244
67241
  });
67245
67242
  console.log(`[Fetcher] ${packageName}: pnpm install command took ${Date.now() - pnpmStart}ms`);
67246
67243
  if (all) console.log(`[Fetcher] ${packageName}: Installation trace:\n${all}`);
67247
- const tempNodeModules = join(tempDir, "node_modules");
67248
- if (existsSync(nodeModulesPath)) await rm(nodeModulesPath, {
67249
- recursive: true,
67250
- force: true
67251
- }).catch(() => {});
67252
- const renameStart = Date.now();
67253
- await rename(tempNodeModules, nodeModulesPath);
67254
- console.log(`[Fetcher] ${packageName}: Dependencies installed successfully (rename took ${Date.now() - renameStart}ms, total installDependencies took ${Date.now() - start}ms).`);
67244
+ console.log(`[Fetcher] ${packageName}: Dependencies installed successfully (total installDependencies took ${Date.now() - start}ms).`);
67255
67245
  } catch (err) {
67256
67246
  console.error(`[Fetcher] ${packageName}: CRITICAL ERROR during dependency installation: ${err.message}`);
67257
67247
  if (err.all) console.error(`[Fetcher] ${packageName}: Error details:\n${err.all}`);
67258
- throw new Error(`Failed to install dependencies for ${packageName}. See logs for details.`);
67259
- } finally {
67260
- await rm(tempDir, {
67248
+ await rm(nodeModulesPath, {
67261
67249
  recursive: true,
67262
67250
  force: true
67263
67251
  }).catch(() => {});
67252
+ throw new Error(`Failed to install dependencies for ${packageName}. See logs for details.`);
67264
67253
  }
67265
67254
  }
67266
67255
  async function fetchPipelabAsset(packageName, versionOrRange, options) {
@@ -67563,7 +67552,7 @@ const builtInPlugins = async (options) => {
67563
67552
  console.log(`[Plugins] Environment preparation took ${Date.now() - envStart}ms`);
67564
67553
  const { usePlugins } = await import("./src-BiFlFfFL.mjs");
67565
67554
  const { registerPlugins } = usePlugins();
67566
- const { webSocketServer } = await import("./src-C5nYOcma.mjs");
67555
+ const { webSocketServer } = await import("./src-B_k6ITjY.mjs");
67567
67556
  webSocketServer.broadcast("startup:progress", { type: "ready" });
67568
67557
  (async () => {
67569
67558
  const totalStart = Date.now();
@@ -67583,7 +67572,7 @@ const builtInPlugins = async (options) => {
67583
67572
  "@pipelab/plugin-netlify"
67584
67573
  ]) pluginsToLoad.set(name, "latest");
67585
67574
  try {
67586
- const { setupSettingsConfigFile } = await import("./config-DWSqA648.mjs");
67575
+ const { setupSettingsConfigFile } = await import("./config-CzJC4vJj.mjs");
67587
67576
  const settingsPlugins = (await (await setupSettingsConfigFile(options.context)).getConfig())?.plugins || [];
67588
67577
  for (const plugin of settingsPlugins) if (plugin.name) if (plugin.enabled) {
67589
67578
  if (!pluginsToLoad.has(plugin.name)) pluginsToLoad.set(plugin.name, "latest");
@@ -69316,7 +69305,7 @@ async function runPipelineCommand(file, options, version) {
69316
69305
  }
69317
69306
  //#endregion
69318
69307
  //#region package.json
69319
- var version$2 = "2.0.0-beta.26";
69308
+ var version$2 = "2.0.0-beta.27";
69320
69309
  //#endregion
69321
69310
  //#region src/paths.ts
69322
69311
  const getDefaultUserDataPath = () => {
@@ -70082,7 +70071,7 @@ let p = class {
70082
70071
  this.state = "cancel", this.close();
70083
70072
  }, { once: !0 });
70084
70073
  }
70085
- this.rl = P.createInterface({
70074
+ this.rl = P$1.createInterface({
70086
70075
  input: this.input,
70087
70076
  tabSize: 2,
70088
70077
  prompt: "",
@@ -70279,7 +70268,7 @@ var nt = class extends p {
70279
70268
  //#endregion
70280
70269
  //#region ../../node_modules/@clack/prompts/dist/index.mjs
70281
70270
  function Ze() {
70282
- return process$1.platform !== "win32" ? process$1.env.TERM !== "linux" : !!process$1.env.CI || !!process$1.env.WT_SESSION || !!process$1.env.TERMINUS_SUBLIME || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
70271
+ return P.platform !== "win32" ? P.env.TERM !== "linux" : !!P.env.CI || !!P.env.WT_SESSION || !!P.env.TERMINUS_SUBLIME || P.env.ConEmuTask === "{cmd::Cmder}" || P.env.TERM_PROGRAM === "Terminus-Sublime" || P.env.TERM_PROGRAM === "vscode" || P.env.TERM === "xterm-256color" || P.env.TERM === "alacritty" || P.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
70283
70272
  }
70284
70273
  const ee = Ze(), ae = () => process.env.CI === "true", w = (e, i) => ee ? e : i, _e = w("◆", "*"), oe = w("■", "x"), ue = w("▲", "x"), F = w("◇", "o"), le = w("┌", "T"), d = w("│", "|"), E = w("└", "—");
70285
70274
  w("┐", "T");
@@ -70503,7 +70492,7 @@ ${r ? styleText("cyan", E) : ""}
70503
70492
  `), n = u.reduce((a, l) => Math.max(fastStringWidth(l), a), 0);
70504
70493
  return wrapAnsi(e, i - (u.map(s).reduce((a, l) => Math.max(fastStringWidth(l), a), 0) - n), r);
70505
70494
  }, wt = (e = "", i = "", s) => {
70506
- const r = s?.output ?? process$1.stdout, u$9 = s?.withGuide ?? u.withGuide, n = s?.format ?? ft, o = [
70495
+ const r = s?.output ?? P.stdout, u$9 = s?.withGuide ?? u.withGuide, n = s?.format ?? ft, o = [
70507
70496
  "",
70508
70497
  ...vt(e, O$1(r) - 6, n).split(`
70509
70498
  `).map(n),
@@ -75460,7 +75449,7 @@ var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
75460
75449
  const childProcess = __require("node:child_process");
75461
75450
  const path$1 = __require("node:path");
75462
75451
  const fs$2 = __require("node:fs");
75463
- const process$2 = __require("node:process");
75452
+ const process$1 = __require("node:process");
75464
75453
  const { Argument, humanReadableArgName } = require_argument();
75465
75454
  const { CommanderError } = require_error();
75466
75455
  const { Help } = require_help();
@@ -75511,10 +75500,10 @@ var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
75511
75500
  this._showHelpAfterError = false;
75512
75501
  this._showSuggestionAfterError = true;
75513
75502
  this._outputConfiguration = {
75514
- writeOut: (str) => process$2.stdout.write(str),
75515
- writeErr: (str) => process$2.stderr.write(str),
75516
- getOutHelpWidth: () => process$2.stdout.isTTY ? process$2.stdout.columns : void 0,
75517
- getErrHelpWidth: () => process$2.stderr.isTTY ? process$2.stderr.columns : void 0,
75503
+ writeOut: (str) => process$1.stdout.write(str),
75504
+ writeErr: (str) => process$1.stderr.write(str),
75505
+ getOutHelpWidth: () => process$1.stdout.isTTY ? process$1.stdout.columns : void 0,
75506
+ getErrHelpWidth: () => process$1.stderr.isTTY ? process$1.stderr.columns : void 0,
75518
75507
  outputError: (str, write) => write(str)
75519
75508
  };
75520
75509
  this._hidden = false;
@@ -75868,7 +75857,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
75868
75857
  */
75869
75858
  _exit(exitCode, code, message) {
75870
75859
  if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
75871
- process$2.exit(exitCode);
75860
+ process$1.exit(exitCode);
75872
75861
  }
75873
75862
  /**
75874
75863
  * Register callback `fn` for the command.
@@ -76207,11 +76196,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
76207
76196
  if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
76208
76197
  parseOptions = parseOptions || {};
76209
76198
  if (argv === void 0 && parseOptions.from === void 0) {
76210
- if (process$2.versions?.electron) parseOptions.from = "electron";
76211
- const execArgv = process$2.execArgv ?? [];
76199
+ if (process$1.versions?.electron) parseOptions.from = "electron";
76200
+ const execArgv = process$1.execArgv ?? [];
76212
76201
  if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
76213
76202
  }
76214
- if (argv === void 0) argv = process$2.argv;
76203
+ if (argv === void 0) argv = process$1.argv;
76215
76204
  this.rawArgs = argv.slice();
76216
76205
  let userArgs;
76217
76206
  switch (parseOptions.from) {
@@ -76221,7 +76210,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
76221
76210
  userArgs = argv.slice(2);
76222
76211
  break;
76223
76212
  case "electron":
76224
- if (process$2.defaultApp) {
76213
+ if (process$1.defaultApp) {
76225
76214
  this._scriptPath = argv[1];
76226
76215
  userArgs = argv.slice(2);
76227
76216
  } else userArgs = argv.slice(1);
@@ -76335,15 +76324,15 @@ Expecting one of '${allowedValues.join("', '")}'`);
76335
76324
  }
76336
76325
  launchWithNode = sourceExt.includes(path$1.extname(executableFile));
76337
76326
  let proc;
76338
- if (process$2.platform !== "win32") if (launchWithNode) {
76327
+ if (process$1.platform !== "win32") if (launchWithNode) {
76339
76328
  args.unshift(executableFile);
76340
- args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
76341
- proc = childProcess.spawn(process$2.argv[0], args, { stdio: "inherit" });
76329
+ args = incrementNodeInspectorPort(process$1.execArgv).concat(args);
76330
+ proc = childProcess.spawn(process$1.argv[0], args, { stdio: "inherit" });
76342
76331
  } else proc = childProcess.spawn(executableFile, args, { stdio: "inherit" });
76343
76332
  else {
76344
76333
  args.unshift(executableFile);
76345
- args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
76346
- proc = childProcess.spawn(process$2.execPath, args, { stdio: "inherit" });
76334
+ args = incrementNodeInspectorPort(process$1.execArgv).concat(args);
76335
+ proc = childProcess.spawn(process$1.execPath, args, { stdio: "inherit" });
76347
76336
  }
76348
76337
  if (!proc.killed) [
76349
76338
  "SIGUSR1",
@@ -76352,14 +76341,14 @@ Expecting one of '${allowedValues.join("', '")}'`);
76352
76341
  "SIGINT",
76353
76342
  "SIGHUP"
76354
76343
  ].forEach((signal) => {
76355
- process$2.on(signal, () => {
76344
+ process$1.on(signal, () => {
76356
76345
  if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
76357
76346
  });
76358
76347
  });
76359
76348
  const exitCallback = this._exitCallback;
76360
76349
  proc.on("close", (code) => {
76361
76350
  code = code ?? 1;
76362
- if (!exitCallback) process$2.exit(code);
76351
+ if (!exitCallback) process$1.exit(code);
76363
76352
  else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
76364
76353
  });
76365
76354
  proc.on("error", (err) => {
@@ -76371,7 +76360,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
76371
76360
  - ${executableDirMessage}`;
76372
76361
  throw new Error(executableMissing);
76373
76362
  } else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
76374
- if (!exitCallback) process$2.exit(1);
76363
+ if (!exitCallback) process$1.exit(1);
76375
76364
  else {
76376
76365
  const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
76377
76366
  wrappedError.nestedError = err;
@@ -76777,13 +76766,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
76777
76766
  */
76778
76767
  _parseOptionsEnv() {
76779
76768
  this.options.forEach((option) => {
76780
- if (option.envVar && option.envVar in process$2.env) {
76769
+ if (option.envVar && option.envVar in process$1.env) {
76781
76770
  const optionKey = option.attributeName();
76782
76771
  if (this.getOptionValue(optionKey) === void 0 || [
76783
76772
  "default",
76784
76773
  "config",
76785
76774
  "env"
76786
- ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$2.env[option.envVar]);
76775
+ ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$1.env[option.envVar]);
76787
76776
  else this.emit(`optionEnv:${option.name()}`);
76788
76777
  }
76789
76778
  });
@@ -77162,7 +77151,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
77162
77151
  */
77163
77152
  help(contextOptions) {
77164
77153
  this.outputHelp(contextOptions);
77165
- let exitCode = process$2.exitCode || 0;
77154
+ let exitCode = process$1.exitCode || 0;
77166
77155
  if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
77167
77156
  this._exit(exitCode, "commander.help", "(outputHelp)");
77168
77157
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipelab/cli",
3
- "version": "2.0.0-beta.26",
3
+ "version": "2.0.0-beta.27",
4
4
  "description": "The command line interface for Pipelab",
5
5
  "license": "FSL-1.1-MIT",
6
6
  "author": "CynToolkit",
@@ -1,5 +1,5 @@
1
1
  import "./src-PqA91tjF.mjs";
2
2
  import "./dist-BC_B45iu.mjs";
3
- import "./config-Crzou2fs.mjs";
3
+ import "./config-DJaqZVxZ.mjs";
4
4
  import { k as webSocketServer } from "./index.mjs";
5
5
  export { webSocketServer };