@hot-updater/cli-tools 0.25.1 → 0.25.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/dist/index.js +69 -69
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from "node:module";
2
- import process$1, { execArgv, execPath, hrtime, platform, stdin, stdout } from "node:process";
2
+ import y, { execArgv, execPath, hrtime, platform, stdin, stdout } from "node:process";
3
3
  import os, { constants } from "node:os";
4
4
  import tty from "node:tty";
5
5
  import fs from "fs/promises";
@@ -307,13 +307,13 @@ var ansi_styles_default$1 = ansiStyles$1;
307
307
 
308
308
  //#endregion
309
309
  //#region ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/supports-color/index.js
310
- function hasFlag(flag, argv$1 = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
310
+ function hasFlag(flag, argv$1 = globalThis.Deno ? globalThis.Deno.args : y.argv) {
311
311
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
312
312
  const position = argv$1.indexOf(prefix + flag);
313
313
  const terminatorPosition = argv$1.indexOf("--");
314
314
  return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
315
315
  }
316
- const { env: env$2 } = process$1;
316
+ const { env: env$2 } = y;
317
317
  let flagForceColor;
318
318
  if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
319
319
  else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
@@ -346,7 +346,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
346
346
  if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
347
347
  const min = forceColor || 0;
348
348
  if (env$2.TERM === "dumb") return min;
349
- if (process$1.platform === "win32") {
349
+ if (y.platform === "win32") {
350
350
  const osRelease = os.release().split(".");
351
351
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
352
352
  return 1;
@@ -1128,7 +1128,7 @@ const NEWLINE$2 = "\n";
1128
1128
  const PAD = " ";
1129
1129
  const NONE = "none";
1130
1130
  const terminalColumns = () => {
1131
- const { env: env$3, stdout: stdout$1, stderr } = process$1;
1131
+ const { env: env$3, stdout: stdout$1, stderr } = y;
1132
1132
  if (stdout$1?.columns) return stdout$1.columns;
1133
1133
  if (stderr?.columns) return stderr.columns;
1134
1134
  if (env$3.COLUMNS) return Number.parseInt(env$3.COLUMNS, 10);
@@ -1271,8 +1271,8 @@ const boxContent = (content, contentWidth, options) => {
1271
1271
  return result;
1272
1272
  };
1273
1273
  const sanitizeOptions = (options) => {
1274
- if (options.fullscreen && process$1?.stdout) {
1275
- let newDimensions = [process$1.stdout.columns, process$1.stdout.rows];
1274
+ if (options.fullscreen && y?.stdout) {
1275
+ let newDimensions = [y.stdout.columns, y.stdout.rows];
1276
1276
  if (typeof options.fullscreen === "function") newDimensions = options.fullscreen(...newDimensions);
1277
1277
  options.width ||= newDimensions[0];
1278
1278
  options.height ||= newDimensions[1];
@@ -12762,9 +12762,9 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
12762
12762
  }
12763
12763
  exports$1.MessageError = MessageError;
12764
12764
  class ProcessSpawnError extends MessageError {
12765
- constructor(msg$3, code$1, process$3) {
12765
+ constructor(msg$3, code$1, process$2) {
12766
12766
  super(msg$3, code$1);
12767
- this.process = process$3;
12767
+ this.process = process$2;
12768
12768
  }
12769
12769
  }
12770
12770
  exports$1.ProcessSpawnError = ProcessSpawnError;
@@ -16326,7 +16326,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
16326
16326
  var html = __webpack_require__(102);
16327
16327
  var cel = __webpack_require__(68);
16328
16328
  var global$2 = __webpack_require__(11);
16329
- var process$3 = global$2.process;
16329
+ var process$2 = global$2.process;
16330
16330
  var setTask = global$2.setImmediate;
16331
16331
  var clearTask = global$2.clearImmediate;
16332
16332
  var MessageChannel$1 = global$2.MessageChannel;
@@ -16360,8 +16360,8 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
16360
16360
  clearTask = function clearImmediate(id) {
16361
16361
  delete queue$1[id];
16362
16362
  };
16363
- if (__webpack_require__(47)(process$3) == "process") defer$1 = function(id) {
16364
- process$3.nextTick(ctx(run, id, 1));
16363
+ if (__webpack_require__(47)(process$2) == "process") defer$1 = function(id) {
16364
+ process$2.nextTick(ctx(run, id, 1));
16365
16365
  };
16366
16366
  else if (Dispatch && Dispatch.now) defer$1 = function(id) {
16367
16367
  Dispatch.now(ctx(run, id, 1));
@@ -17391,11 +17391,11 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
17391
17391
  function isPadded(el) {
17392
17392
  return /^-?0\d/.test(el);
17393
17393
  }
17394
- function lte(i$4, y$1) {
17395
- return i$4 <= y$1;
17394
+ function lte(i$4, y$2) {
17395
+ return i$4 <= y$2;
17396
17396
  }
17397
- function gte(i$4, y$1) {
17398
- return i$4 >= y$1;
17397
+ function gte(i$4, y$2) {
17398
+ return i$4 >= y$2;
17399
17399
  }
17400
17400
  function expand$2(str, isTop) {
17401
17401
  var expansions = [];
@@ -17431,17 +17431,17 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
17431
17431
  var N$1;
17432
17432
  if (isSequence) {
17433
17433
  var x$2 = numeric$1(n$1[0]);
17434
- var y$1 = numeric$1(n$1[1]);
17434
+ var y$2 = numeric$1(n$1[1]);
17435
17435
  var width = Math.max(n$1[0].length, n$1[1].length);
17436
17436
  var incr = n$1.length == 3 ? Math.abs(numeric$1(n$1[2])) : 1;
17437
17437
  var test = lte;
17438
- if (y$1 < x$2) {
17438
+ if (y$2 < x$2) {
17439
17439
  incr *= -1;
17440
17440
  test = gte;
17441
17441
  }
17442
17442
  var pad$1 = n$1.some(isPadded);
17443
17443
  N$1 = [];
17444
- for (var i$4 = x$2; test(i$4, y$1); i$4 += incr) {
17444
+ for (var i$4 = x$2; test(i$4, y$2); i$4 += incr) {
17445
17445
  var c$2;
17446
17446
  if (isAlphaSequence) {
17447
17447
  c$2 = String.fromCharCode(i$4);
@@ -17682,14 +17682,14 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
17682
17682
  var global$2 = __webpack_require__(11);
17683
17683
  var macrotask = __webpack_require__(109).set;
17684
17684
  var Observer = global$2.MutationObserver || global$2.WebKitMutationObserver;
17685
- var process$3 = global$2.process;
17685
+ var process$2 = global$2.process;
17686
17686
  var Promise$2 = global$2.Promise;
17687
- var isNode = __webpack_require__(47)(process$3) == "process";
17687
+ var isNode = __webpack_require__(47)(process$2) == "process";
17688
17688
  module$1.exports = function() {
17689
17689
  var head, last, notify;
17690
17690
  var flush = function() {
17691
17691
  var parent, fn;
17692
- if (isNode && (parent = process$3.domain)) parent.exit();
17692
+ if (isNode && (parent = process$2.domain)) parent.exit();
17693
17693
  while (head) {
17694
17694
  fn = head.fn;
17695
17695
  head = head.next;
@@ -17705,7 +17705,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
17705
17705
  if (parent) parent.enter();
17706
17706
  };
17707
17707
  if (isNode) notify = function() {
17708
- process$3.nextTick(flush);
17708
+ process$2.nextTick(flush);
17709
17709
  };
17710
17710
  else if (Observer && !(global$2.navigator && global$2.navigator.standalone)) {
17711
17711
  var toggle = true;
@@ -17932,11 +17932,11 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
17932
17932
  var promiseResolve = __webpack_require__(105);
17933
17933
  var PROMISE = "Promise";
17934
17934
  var TypeError$1 = global$2.TypeError;
17935
- var process$3 = global$2.process;
17936
- var versions = process$3 && process$3.versions;
17935
+ var process$2 = global$2.process;
17936
+ var versions = process$2 && process$2.versions;
17937
17937
  var v8 = versions && versions.v8 || "";
17938
17938
  var $Promise = global$2[PROMISE];
17939
- var isNode = classof(process$3) == "process";
17939
+ var isNode = classof(process$2) == "process";
17940
17940
  var empty = function() {};
17941
17941
  var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
17942
17942
  var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;
@@ -18004,7 +18004,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
18004
18004
  var result, handler, console$1;
18005
18005
  if (unhandled) {
18006
18006
  result = perform(function() {
18007
- if (isNode) process$3.emit("unhandledRejection", value$1, promise$1);
18007
+ if (isNode) process$2.emit("unhandledRejection", value$1, promise$1);
18008
18008
  else if (handler = global$2.onunhandledrejection) handler({
18009
18009
  promise: promise$1,
18010
18010
  reason: value$1
@@ -18023,7 +18023,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
18023
18023
  var onHandleUnhandled = function(promise$1) {
18024
18024
  task.call(global$2, function() {
18025
18025
  var handler;
18026
- if (isNode) process$3.emit("rejectionHandled", promise$1);
18026
+ if (isNode) process$2.emit("rejectionHandled", promise$1);
18027
18027
  else if (handler = global$2.onrejectionhandled) handler({
18028
18028
  promise: promise$1,
18029
18029
  reason: promise$1._v
@@ -18096,7 +18096,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
18096
18096
  var reaction = newPromiseCapability(speciesConstructor(this, $Promise));
18097
18097
  reaction.ok = typeof onFulfilled == "function" ? onFulfilled : true;
18098
18098
  reaction.fail = typeof onRejected == "function" && onRejected;
18099
- reaction.domain = isNode ? process$3.domain : void 0;
18099
+ reaction.domain = isNode ? process$2.domain : void 0;
18100
18100
  this._c.push(reaction);
18101
18101
  if (this._a) this._a.push(reaction);
18102
18102
  if (this._s) notify(this, false);
@@ -19171,7 +19171,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
19171
19171
  var m$1 = s * 60;
19172
19172
  var h$2 = m$1 * 60;
19173
19173
  var d$2 = h$2 * 24;
19174
- var y$1 = d$2 * 365.25;
19174
+ var y$2 = d$2 * 365.25;
19175
19175
  /**
19176
19176
  * Parse or format the given `val`.
19177
19177
  *
@@ -19210,7 +19210,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
19210
19210
  case "year":
19211
19211
  case "yrs":
19212
19212
  case "yr":
19213
- case "y": return n$1 * y$1;
19213
+ case "y": return n$1 * y$2;
19214
19214
  case "days":
19215
19215
  case "day":
19216
19216
  case "d": return n$1 * d$2;
@@ -34130,9 +34130,9 @@ const getSubprocessResult = ({ stdout: stdout$1 }) => {
34130
34130
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/standard-stream.js
34131
34131
  const isStandardStream = (stream$1) => STANDARD_STREAMS.includes(stream$1);
34132
34132
  const STANDARD_STREAMS = [
34133
- process$1.stdin,
34134
- process$1.stdout,
34135
- process$1.stderr
34133
+ y.stdin,
34134
+ y.stdout,
34135
+ y.stderr
34136
34136
  ];
34137
34137
  const STANDARD_STREAMS_ALIASES = [
34138
34138
  "stdin",
@@ -34257,9 +34257,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
34257
34257
  //#endregion
34258
34258
  //#region ../../node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
34259
34259
  function isUnicodeSupported() {
34260
- const { env: env$3 } = process$1;
34260
+ const { env: env$3 } = y;
34261
34261
  const { TERM, TERM_PROGRAM } = env$3;
34262
- if (process$1.platform !== "win32") return TERM !== "linux";
34262
+ if (y.platform !== "win32") return TERM !== "linux";
34263
34263
  return Boolean(env$3.WT_SESSION) || Boolean(env$3.TERMINUS_SUBLIME) || env$3.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env$3.TERMINAL_EMULATOR === "JetBrains-JediTerm";
34264
34264
  }
34265
34265
 
@@ -35185,7 +35185,7 @@ const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
35185
35185
 
35186
35186
  //#endregion
35187
35187
  //#region ../../node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
35188
- const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath: execPath$1 = process$1.execPath, addExecPath = true } = {}) => {
35188
+ const npmRunPath = ({ cwd = y.cwd(), path: pathOption = y.env[pathKey()], preferLocal = true, execPath: execPath$1 = y.execPath, addExecPath = true } = {}) => {
35189
35189
  const cwdPath = path$1.resolve(toPath$2(cwd));
35190
35190
  const result = [];
35191
35191
  const pathParts = pathOption.split(path$1.delimiter);
@@ -35203,7 +35203,7 @@ const applyExecPath = (result, pathParts, execPath$1, cwdPath) => {
35203
35203
  const pathPart = path$1.resolve(cwdPath, toPath$2(execPath$1), "..");
35204
35204
  if (!pathParts.includes(pathPart)) result.push(pathPart);
35205
35205
  };
35206
- const npmRunPathEnv = ({ env: env$3 = process$1.env,...options } = {}) => {
35206
+ const npmRunPathEnv = ({ env: env$3 = y.env,...options } = {}) => {
35207
35207
  env$3 = { ...env$3 };
35208
35208
  const pathName = pathKey({ env: env$3 });
35209
35209
  options.path = env$3[pathName];
@@ -36338,7 +36338,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
36338
36338
  };
36339
36339
  const getDefaultCwd = () => {
36340
36340
  try {
36341
- return process$1.cwd();
36341
+ return y.cwd();
36342
36342
  } catch (error) {
36343
36343
  error.message = `The current directory does not exist.\n${error.message}`;
36344
36344
  throw error;
@@ -36373,7 +36373,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
36373
36373
  options.killSignal = normalizeKillSignal(options.killSignal);
36374
36374
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
36375
36375
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
36376
- if (process$1.platform === "win32" && path$1.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
36376
+ if (y.platform === "win32" && path$1.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
36377
36377
  return {
36378
36378
  file,
36379
36379
  commandArguments,
@@ -36400,7 +36400,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
36400
36400
  });
36401
36401
  const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
36402
36402
  const env$3 = extendEnv ? {
36403
- ...process$1.env,
36403
+ ...y.env,
36404
36404
  ...envOption
36405
36405
  } : envOption;
36406
36406
  if (preferLocal || node) return npmRunPathEnv({
@@ -37388,12 +37388,12 @@ const guessStreamDirection = {
37388
37388
  }
37389
37389
  };
37390
37390
  const getStandardStreamDirection = (value$1) => {
37391
- if ([0, process$1.stdin].includes(value$1)) return "input";
37391
+ if ([0, y.stdin].includes(value$1)) return "input";
37392
37392
  if ([
37393
37393
  1,
37394
37394
  2,
37395
- process$1.stdout,
37396
- process$1.stderr
37395
+ y.stdout,
37396
+ y.stderr
37397
37397
  ].includes(value$1)) return "output";
37398
37398
  };
37399
37399
  const DEFAULT_DIRECTION = "output";
@@ -38457,9 +38457,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
38457
38457
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
38458
38458
  };
38459
38459
  const getIpcExport = () => {
38460
- const anyProcess = process$1;
38460
+ const anyProcess = y;
38461
38461
  const isSubprocess = true;
38462
- const ipc = process$1.channel !== void 0;
38462
+ const ipc = y.channel !== void 0;
38463
38463
  return {
38464
38464
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
38465
38465
  getCancelSignal: getCancelSignal$1.bind(void 0, {
@@ -38868,7 +38868,7 @@ if (process.platform === "linux") signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SI
38868
38868
 
38869
38869
  //#endregion
38870
38870
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
38871
- const processOk = (process$3) => !!process$3 && typeof process$3 === "object" && typeof process$3.removeListener === "function" && typeof process$3.emit === "function" && typeof process$3.reallyExit === "function" && typeof process$3.listeners === "function" && typeof process$3.kill === "function" && typeof process$3.pid === "number" && typeof process$3.on === "function";
38871
+ const processOk = (process$2) => !!process$2 && typeof process$2 === "object" && typeof process$2.removeListener === "function" && typeof process$2.emit === "function" && typeof process$2.reallyExit === "function" && typeof process$2.listeners === "function" && typeof process$2.kill === "function" && typeof process$2.pid === "number" && typeof process$2.on === "function";
38872
38872
  const kExitEmitter = Symbol.for("signal-exit emitter");
38873
38873
  const global$1 = globalThis;
38874
38874
  const ObjectDefineProperty = Object.defineProperty.bind(Object);
@@ -38936,7 +38936,7 @@ var SignalExitFallback = class extends SignalExitBase {
38936
38936
  };
38937
38937
  var SignalExit = class extends SignalExitBase {
38938
38938
  /* c8 ignore start */
38939
- #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
38939
+ #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
38940
38940
  /* c8 ignore stop */
38941
38941
  #emitter = new Emitter();
38942
38942
  #process;
@@ -38944,15 +38944,15 @@ var SignalExit = class extends SignalExitBase {
38944
38944
  #originalProcessReallyExit;
38945
38945
  #sigListeners = {};
38946
38946
  #loaded = false;
38947
- constructor(process$3) {
38947
+ constructor(process$2) {
38948
38948
  super();
38949
- this.#process = process$3;
38949
+ this.#process = process$2;
38950
38950
  this.#sigListeners = {};
38951
38951
  for (const sig$1 of signals) this.#sigListeners[sig$1] = () => {
38952
38952
  const listeners = this.#process.listeners(sig$1);
38953
38953
  let { count: count$1 } = this.#emitter;
38954
38954
  /* c8 ignore start */
38955
- const p$2 = process$3;
38955
+ const p$2 = process$2;
38956
38956
  if (typeof p$2.__signal_exit_emitter__ === "object" && typeof p$2.__signal_exit_emitter__.count === "number") count$1 += p$2.__signal_exit_emitter__.count;
38957
38957
  /* c8 ignore stop */
38958
38958
  if (listeners.length === count$1) {
@@ -38960,11 +38960,11 @@ var SignalExit = class extends SignalExitBase {
38960
38960
  const ret = this.#emitter.emit("exit", null, sig$1);
38961
38961
  /* c8 ignore start */
38962
38962
  const s = sig$1 === "SIGHUP" ? this.#hupSig : sig$1;
38963
- if (!ret) process$3.kill(process$3.pid, s);
38963
+ if (!ret) process$2.kill(process$2.pid, s);
38964
38964
  }
38965
38965
  };
38966
- this.#originalProcessReallyExit = process$3.reallyExit;
38967
- this.#originalProcessEmit = process$3.emit;
38966
+ this.#originalProcessReallyExit = process$2.reallyExit;
38967
+ this.#originalProcessEmit = process$2.emit;
38968
38968
  }
38969
38969
  onExit(cb, opts) {
38970
38970
  /* c8 ignore start */
@@ -39031,8 +39031,8 @@ var SignalExit = class extends SignalExitBase {
39031
39031
  } else return og.call(this.#process, ev, ...args);
39032
39032
  }
39033
39033
  };
39034
- const process$2 = globalThis.process;
39035
- const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
39034
+ const process$1 = globalThis.process;
39035
+ const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
39036
39036
 
39037
39037
  //#endregion
39038
39038
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/cleanup.js
@@ -40274,7 +40274,7 @@ const { sendMessage, getOneMessage, getEachMessage, getCancelSignal } = getIpcEx
40274
40274
  //#endregion
40275
40275
  //#region ../../node_modules/.pnpm/find-up-simple@1.0.1/node_modules/find-up-simple/index.js
40276
40276
  const toPath$1 = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
40277
- async function findUp(name$1, { cwd = process$1.cwd(), type = "file", stopAt } = {}) {
40277
+ async function findUp(name$1, { cwd = y.cwd(), type = "file", stopAt } = {}) {
40278
40278
  let directory = path$1.resolve(toPath$1(cwd) ?? "");
40279
40279
  const { root } = path$1.parse(directory);
40280
40280
  stopAt = path$1.resolve(directory, toPath$1(stopAt ?? root));
@@ -45372,16 +45372,16 @@ var require_src = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/sistera
45372
45372
  const CSI = `${ESC}[`;
45373
45373
  const beep = "\x07";
45374
45374
  const cursor = {
45375
- to(x$2, y$1) {
45376
- if (!y$1) return `${CSI}${x$2 + 1}G`;
45377
- return `${CSI}${y$1 + 1};${x$2 + 1}H`;
45375
+ to(x$2, y$2) {
45376
+ if (!y$2) return `${CSI}${x$2 + 1}G`;
45377
+ return `${CSI}${y$2 + 1};${x$2 + 1}H`;
45378
45378
  },
45379
- move(x$2, y$1) {
45379
+ move(x$2, y$2) {
45380
45380
  let ret = "";
45381
45381
  if (x$2 < 0) ret += `${CSI}${-x$2}D`;
45382
45382
  else if (x$2 > 0) ret += `${CSI}${x$2}C`;
45383
- if (y$1 < 0) ret += `${CSI}${-y$1}A`;
45384
- else if (y$1 > 0) ret += `${CSI}${y$1}B`;
45383
+ if (y$2 < 0) ret += `${CSI}${-y$2}A`;
45384
+ else if (y$2 > 0) ret += `${CSI}${y$2}B`;
45385
45385
  return ret;
45386
45386
  },
45387
45387
  up: (count$1 = 1) => `${CSI}${count$1}A`,
@@ -45622,13 +45622,13 @@ function rD() {
45622
45622
  }
45623
45623
  }), r;
45624
45624
  }
45625
- const ED = rD(), d$1 = new Set(["\x1B", "›"]), oD = 39, y = "\x07", V$1 = "[", nD = "]", G$1 = "m", _$1 = `${nD}8;;`, z = (e$1) => `${d$1.values().next().value}${V$1}${e$1}${G$1}`, K$1 = (e$1) => `${d$1.values().next().value}${_$1}${e$1}${y}`, aD = (e$1) => e$1.split(" ").map((u$2) => p(u$2)), k$1 = (e$1, u$2, t$2) => {
45625
+ const ED = rD(), d$1 = new Set(["\x1B", "›"]), oD = 39, y$1 = "\x07", V$1 = "[", nD = "]", G$1 = "m", _$1 = `${nD}8;;`, z = (e$1) => `${d$1.values().next().value}${V$1}${e$1}${G$1}`, K$1 = (e$1) => `${d$1.values().next().value}${_$1}${e$1}${y$1}`, aD = (e$1) => e$1.split(" ").map((u$2) => p(u$2)), k$1 = (e$1, u$2, t$2) => {
45626
45626
  const F$1 = [...u$2];
45627
45627
  let s = !1, i$4 = !1, D$1 = p(P$1(e$1[e$1.length - 1]));
45628
45628
  for (const [C$1, n$1] of F$1.entries()) {
45629
45629
  const E = p(n$1);
45630
45630
  if (D$1 + E <= t$2 ? e$1[e$1.length - 1] += n$1 : (e$1.push(n$1), D$1 = 0), d$1.has(n$1) && (s = !0, i$4 = F$1.slice(C$1 + 1).join("").startsWith(_$1)), s) {
45631
- i$4 ? n$1 === y && (s = !1, i$4 = !1) : n$1 === G$1 && (s = !1);
45631
+ i$4 ? n$1 === y$1 && (s = !1, i$4 = !1) : n$1 === G$1 && (s = !1);
45632
45632
  continue;
45633
45633
  }
45634
45634
  D$1 += E, D$1 === t$2 && C$1 < F$1.length - 1 && (e$1.push(""), D$1 = 0);
@@ -45670,7 +45670,7 @@ const ED = rD(), d$1 = new Set(["\x1B", "›"]), oD = 39, y = "\x07", V$1 = "[",
45670
45670
  `)];
45671
45671
  for (const [E, a$1] of n$1.entries()) {
45672
45672
  if (F$1 += a$1, d$1.has(a$1)) {
45673
- const { groups: c$2 } = (/* @__PURE__ */ new RegExp(`(?:\\${V$1}(?<code>\\d+)m|\\${_$1}(?<uri>.*)${y})`)).exec(n$1.slice(E).join("")) || { groups: {} };
45673
+ const { groups: c$2 } = (/* @__PURE__ */ new RegExp(`(?:\\${V$1}(?<code>\\d+)m|\\${_$1}(?<uri>.*)${y$1})`)).exec(n$1.slice(E).join("")) || { groups: {} };
45674
45674
  if (c$2.code !== void 0) {
45675
45675
  const f = Number.parseFloat(c$2.code);
45676
45676
  s = f === oD ? void 0 : f;
@@ -46105,7 +46105,7 @@ var dist_exports = /* @__PURE__ */ __export({
46105
46105
  var import_picocolors$1 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
46106
46106
  var import_src = /* @__PURE__ */ __toESM(require_src(), 1);
46107
46107
  function ce() {
46108
- 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";
46108
+ return y.platform !== "win32" ? y.env.TERM !== "linux" : !!y.env.CI || !!y.env.WT_SESSION || !!y.env.TERMINUS_SUBLIME || y.env.ConEmuTask === "{cmd::Cmder}" || y.env.TERM_PROGRAM === "Terminus-Sublime" || y.env.TERM_PROGRAM === "vscode" || y.env.TERM === "xterm-256color" || y.env.TERM === "alacritty" || y.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
46109
46109
  }
46110
46110
  const V = ce(), u = (t$2, n$1) => V ? t$2 : n$1, le = u("◆", "*"), L = u("■", "x"), W = u("▲", "x"), C = u("◇", "o"), ue = u("┌", "T"), o = u("│", "|"), d = u("└", "—"), k = u("●", ">"), P = u("○", " "), A = u("◻", "[•]"), T = u("◼", "[+]"), F = u("◻", "[ ]"), $e = u("▪", "•"), _ = u("─", "-"), me = u("╮", "+"), de = u("├", "+"), pe = u("╯", "+"), q = u("●", "•"), D = u("◆", "*"), U = u("▲", "!"), K = u("■", "x"), b = (t$2) => {
46111
46111
  switch (t$2) {
@@ -54812,7 +54812,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/jiti@
54812
54812
  jsesc.version = "2.5.2", module$1.exports = jsesc;
54813
54813
  },
54814
54814
  "./node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js": (module$1) => {
54815
- var s = 1e3, m$1 = 60 * s, h$2 = 60 * m$1, d$2 = 24 * h$2, w$1 = 7 * d$2, y$1 = 365.25 * d$2;
54815
+ var s = 1e3, m$1 = 60 * s, h$2 = 60 * m$1, d$2 = 24 * h$2, w$1 = 7 * d$2, y$2 = 365.25 * d$2;
54816
54816
  function plural(ms, msAbs, n$1, name$1) {
54817
54817
  var isPlural = msAbs >= 1.5 * n$1;
54818
54818
  return Math.round(ms / n$1) + " " + name$1 + (isPlural ? "s" : "");
@@ -54830,7 +54830,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/jiti@
54830
54830
  case "year":
54831
54831
  case "yrs":
54832
54832
  case "yr":
54833
- case "y": return n$1 * y$1;
54833
+ case "y": return n$1 * y$2;
54834
54834
  case "weeks":
54835
54835
  case "week":
54836
54836
  case "w": return n$1 * w$1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/cli-tools",
3
- "version": "0.25.1",
3
+ "version": "0.25.2",
4
4
  "type": "module",
5
5
  "description": "CLI utilities for Hot Updater",
6
6
  "sideEffects": false,
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "oxc-transform": "0.82.1",
43
- "@hot-updater/plugin-core": "0.25.1"
43
+ "@hot-updater/plugin-core": "0.25.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@clack/prompts": "0.11.0",
@@ -57,7 +57,7 @@
57
57
  "workspace-tools": "^0.36.4",
58
58
  "@types/node": "^20",
59
59
  "typescript": "5.8.2",
60
- "@hot-updater/test-utils": "0.25.1"
60
+ "@hot-updater/test-utils": "0.25.2"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "typescript": "*"