@pipelab/plugin-discord 1.0.0-beta.23 → 1.0.0-beta.26

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/dist/index.mjs CHANGED
@@ -2,9 +2,9 @@ import { a as __require, i as __reExport, n as __esmMin, o as __toESM, r as __ex
2
2
  import { hostname } from "os";
3
3
  import { basename, join, normalize } from "path";
4
4
  import { formatWithOptions, types } from "util";
5
- import path$1, { basename as basename$1, delimiter, dirname, join as join$1, sep } from "node:path";
5
+ import path$1, { basename as basename$1, delimiter, dirname, join as join$1, resolve, sep } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
7
- import { constants } from "node:os";
7
+ import { constants, homedir, platform } from "node:os";
8
8
  import { appendFileSync, createReadStream, createWriteStream, existsSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
9
9
  import { access, chmod, cp, mkdir, readFile, readdir, rename, rm, writeFile } from "node:fs/promises";
10
10
  import http from "node:http";
@@ -12,7 +12,7 @@ import { webcrypto } from "node:crypto";
12
12
  import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
13
13
  import { StringDecoder } from "node:string_decoder";
14
14
  import { aborted, callbackify, debuglog, formatWithOptions as formatWithOptions$1, inspect, promisify, stripVTControlCharacters } from "node:util";
15
- import g$1, { execArgv, execPath, hrtime, platform } from "node:process";
15
+ import g$1, { execArgv, execPath, hrtime, platform as platform$1 } from "node:process";
16
16
  import * as tty$1 from "node:tty";
17
17
  import tty from "node:tty";
18
18
  import { scheduler, setImmediate as setImmediate$1, setTimeout as setTimeout$1 } from "node:timers/promises";
@@ -45395,6 +45395,17 @@ const DEFAULT_PNPM_VERSION = "10.12.0";
45395
45395
  const metaUrl = typeof import.meta !== "undefined" ? import.meta.url : void 0;
45396
45396
  const _dirname = typeof __dirname !== "undefined" ? __dirname : metaUrl ? dirname(fileURLToPath(metaUrl)) : process.cwd();
45397
45397
  const isDev = process.env.NODE_ENV === "development";
45398
+ const getDefaultUserDataPath = (env) => {
45399
+ const base = (() => {
45400
+ switch (platform()) {
45401
+ case "win32": return process.env.APPDATA || join$1(homedir(), "AppData", "Roaming");
45402
+ case "darwin": return join$1(homedir(), "Library", "Application Support");
45403
+ default: return process.env.XDG_CONFIG_HOME || join$1(homedir(), ".config");
45404
+ }
45405
+ })();
45406
+ const mode = env ?? (isDev ? "dev" : "prod");
45407
+ return join$1(base, "@pipelab", mode === "dev" ? "app-dev" : mode === "beta" ? "app-beta" : "app");
45408
+ };
45398
45409
  /**
45399
45410
  * Finds the monorepo root by looking for pnpm-workspace.yaml.
45400
45411
  */
@@ -49161,6 +49172,71 @@ var WebSocketServer = class {
49161
49172
  };
49162
49173
  const webSocketServer = new WebSocketServer();
49163
49174
  //#endregion
49175
+ //#region ../../packages/core-node/src/fs-utils.ts
49176
+ var import_slash = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
49177
+ module.exports = (path) => {
49178
+ const isExtendedLengthPath = /^\\\\\?\\/.test(path);
49179
+ const hasNonAscii = /[^\u0000-\u0080]+/.test(path);
49180
+ if (isExtendedLengthPath || hasNonAscii) return path;
49181
+ return path.replace(/\\/g, "/");
49182
+ };
49183
+ })))(), 1);
49184
+ function removeTrailingSlash(path) {
49185
+ return path.replace(/[\\/]+$/, "");
49186
+ }
49187
+ removeTrailingSlash((0, import_slash.default)(resolve(homedir()))).toLowerCase();
49188
+ const additionalProtectedPaths = [
49189
+ getDefaultUserDataPath("dev"),
49190
+ getDefaultUserDataPath("beta"),
49191
+ getDefaultUserDataPath("prod"),
49192
+ projectRoot,
49193
+ process.cwd(),
49194
+ "/tmp",
49195
+ "/var/tmp",
49196
+ process.env.TEMP,
49197
+ process.env.TMP,
49198
+ join$1(homedir(), "AppData"),
49199
+ join$1(homedir(), "AppData", "Local"),
49200
+ join$1(homedir(), "AppData", "Roaming"),
49201
+ join$1(homedir(), "Library"),
49202
+ join$1(homedir(), "Library", "Application Support"),
49203
+ join$1(homedir(), ".config"),
49204
+ join$1(homedir(), ".local"),
49205
+ join$1(homedir(), ".local", "share"),
49206
+ join$1(homedir(), ".cache"),
49207
+ join$1(homedir(), "OneDrive"),
49208
+ join$1(homedir(), "Dropbox"),
49209
+ join$1(homedir(), ".ssh"),
49210
+ join$1(homedir(), ".gnupg"),
49211
+ join$1(homedir(), ".aws"),
49212
+ join$1(homedir(), ".docker"),
49213
+ join$1(homedir(), ".kube"),
49214
+ join$1(homedir(), ".vscode"),
49215
+ join$1(homedir(), ".vscode-insiders"),
49216
+ join$1(homedir(), ".cursor"),
49217
+ join$1(homedir(), ".npm"),
49218
+ join$1(homedir(), ".pnpm-state"),
49219
+ join$1(homedir(), ".yarn"),
49220
+ join$1(homedir(), ".cargo"),
49221
+ join$1(homedir(), ".rustup"),
49222
+ join$1(homedir(), ".m2"),
49223
+ join$1(homedir(), ".gradle")
49224
+ ].filter((p) => typeof p === "string" && p.length > 0);
49225
+ new Set([
49226
+ join$1(homedir(), "Downloads"),
49227
+ join$1(homedir(), "Documents"),
49228
+ join$1(homedir(), "Desktop"),
49229
+ join$1(homedir(), "Pictures"),
49230
+ join$1(homedir(), "Music"),
49231
+ join$1(homedir(), "Videos"),
49232
+ join$1(homedir(), "Saved Games"),
49233
+ join$1(homedir(), "Contacts"),
49234
+ join$1(homedir(), "Searches"),
49235
+ join$1(homedir(), "Links"),
49236
+ join$1(homedir(), "3D Objects"),
49237
+ ...additionalProtectedPaths
49238
+ ].map((p) => removeTrailingSlash((0, import_slash.default)(resolve(p))).toLowerCase()));
49239
+ //#endregion
49164
49240
  //#region ../../node_modules/is-plain-obj/index.js
49165
49241
  function isPlainObject$2(value) {
49166
49242
  if (typeof value !== "object" || value === null) return false;
@@ -49442,7 +49518,7 @@ const COMMON_ESCAPES = {
49442
49518
  const ASTRAL_START = 65535;
49443
49519
  const quoteString = (escapedArgument) => {
49444
49520
  if (NO_ESCAPE_REGEXP.test(escapedArgument)) return escapedArgument;
49445
- return platform === "win32" ? `"${escapedArgument.replaceAll("\"", "\"\"")}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
49521
+ return platform$1 === "win32" ? `"${escapedArgument.replaceAll("\"", "\"\"")}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
49446
49522
  };
49447
49523
  const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
49448
49524
  //#endregion
@@ -59551,13 +59627,13 @@ var require_opts_arg = /* @__PURE__ */ __commonJSMin(((exports, module) => {
59551
59627
  //#region ../../node_modules/mkdirp/lib/path-arg.js
59552
59628
  var require_path_arg = /* @__PURE__ */ __commonJSMin(((exports, module) => {
59553
59629
  const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
59554
- const { resolve: resolve$12, parse: parse$2 } = __require("path");
59630
+ const { resolve: resolve$13, parse: parse$2 } = __require("path");
59555
59631
  const pathArg = (path) => {
59556
59632
  if (/\0/.test(path)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
59557
59633
  path,
59558
59634
  code: "ERR_INVALID_ARG_VALUE"
59559
59635
  });
59560
- path = resolve$12(path);
59636
+ path = resolve$13(path);
59561
59637
  if (platform === "win32") {
59562
59638
  const badWinChars = /[*|"<>?:]/;
59563
59639
  const { root } = parse$2(path);
@@ -62602,7 +62678,7 @@ var require_readdir_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
62602
62678
  const fs$20 = __require("fs");
62603
62679
  const { EventEmitter: EventEmitter$1 } = __require("events");
62604
62680
  const { Minimatch } = require_minimatch$1();
62605
- const { resolve: resolve$11 } = __require("path");
62681
+ const { resolve: resolve$12 } = __require("path");
62606
62682
  function readdir(dir, strict) {
62607
62683
  return new Promise((resolve, reject) => {
62608
62684
  fs$20.readdir(dir, { withFileTypes: true }, (err, files) => {
@@ -62711,7 +62787,7 @@ var require_readdir_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
62711
62787
  if (this.options.ignore) this.ignoreMatchers = (Array.isArray(this.options.ignore) ? this.options.ignore : [this.options.ignore]).map((ignore) => new Minimatch(ignore, { dot: true }));
62712
62788
  this.skipMatchers = [];
62713
62789
  if (this.options.skip) this.skipMatchers = (Array.isArray(this.options.skip) ? this.options.skip : [this.options.skip]).map((skip) => new Minimatch(skip, { dot: true }));
62714
- this.iterator = explore(resolve$11(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
62790
+ this.iterator = explore(resolve$12(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
62715
62791
  this.paused = false;
62716
62792
  this.inactive = false;
62717
62793
  this.aborted = false;
@@ -98025,7 +98101,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
98025
98101
  const isWindows = process.platform === "win32";
98026
98102
  const { URL: URL$6 } = __require("node:url");
98027
98103
  const path$17 = isWindows ? __require("node:path/win32") : __require("node:path");
98028
- const { homedir: homedir$1 } = __require("node:os");
98104
+ const { homedir: homedir$2 } = __require("node:os");
98029
98105
  const HostedGit = require_lib$28();
98030
98106
  const semver = require_semver$2();
98031
98107
  const validatePackageName = require_lib$23();
@@ -98230,7 +98306,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
98230
98306
  }
98231
98307
  if (/^\/~(\/|$)/.test(specPath)) {
98232
98308
  res.saveSpec = `file:${specPath.substr(1)}`;
98233
- resolvedPath = path$17.resolve(homedir$1(), specPath.substr(3));
98309
+ resolvedPath = path$17.resolve(homedir$2(), specPath.substr(3));
98234
98310
  } else if (!path$17.isAbsolute(rawSpec.slice(5))) res.saveSpec = `file:${path$17.relative(where, resolvedPath)}`;
98235
98311
  else res.saveSpec = `file:${path$17.resolve(resolvedPath)}`;
98236
98312
  res.fetchSpec = path$17.resolve(where, resolvedPath);
@@ -99377,7 +99453,7 @@ var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
99377
99453
  //#region ../../node_modules/@npmcli/package-json/lib/index.js
99378
99454
  var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
99379
99455
  const { readFile: readFile$5, writeFile: writeFile$3 } = __require("node:fs/promises");
99380
- const { resolve: resolve$10 } = __require("node:path");
99456
+ const { resolve: resolve$11 } = __require("node:path");
99381
99457
  const parseJSON = require_lib$30();
99382
99458
  const updateDeps = require_update_dependencies();
99383
99459
  const updateScripts = require_update_scripts();
@@ -99480,7 +99556,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
99480
99556
  parseErr = err;
99481
99557
  }
99482
99558
  if (parseErr) {
99483
- const indexFile = resolve$10(this.path, "index.js");
99559
+ const indexFile = resolve$11(this.path, "index.js");
99484
99560
  let indexFileContent;
99485
99561
  try {
99486
99562
  indexFileContent = await readFile$5(indexFile, "utf8");
@@ -99525,7 +99601,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
99525
99601
  return this.#path;
99526
99602
  }
99527
99603
  get filename() {
99528
- if (this.path) return resolve$10(this.path, "package.json");
99604
+ if (this.path) return resolve$11(this.path, "package.json");
99529
99605
  }
99530
99606
  create(path) {
99531
99607
  this.#path = path;
@@ -100648,7 +100724,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100648
100724
  const { ERR_FS_CP_DIR_TO_NON_DIR, ERR_FS_CP_EEXIST, ERR_FS_CP_EINVAL, ERR_FS_CP_FIFO_PIPE, ERR_FS_CP_NON_DIR_TO_DIR, ERR_FS_CP_SOCKET, ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY, ERR_FS_CP_UNKNOWN, ERR_FS_EISDIR, ERR_INVALID_ARG_TYPE } = require_errors$3();
100649
100725
  const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = __require("os");
100650
100726
  const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$5, readdir: readdir$5, readlink, stat: stat$4, symlink, unlink, utimes } = __require("fs/promises");
100651
- const { dirname: dirname$6, isAbsolute: isAbsolute$1, join: join$7, parse, resolve: resolve$9, sep: sep$3, toNamespacedPath } = __require("path");
100727
+ const { dirname: dirname$6, isAbsolute: isAbsolute$1, join: join$7, parse, resolve: resolve$10, sep: sep$3, toNamespacedPath } = __require("path");
100652
100728
  const { fileURLToPath: fileURLToPath$1 } = __require("url");
100653
100729
  const defaultOptions = {
100654
100730
  dereference: false,
@@ -100735,8 +100811,8 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100735
100811
  );
100736
100812
  }
100737
100813
  async function checkParentPaths(src, srcStat, dest) {
100738
- const srcParent = resolve$9(dirname$6(src));
100739
- const destParent = resolve$9(dirname$6(dest));
100814
+ const srcParent = resolve$10(dirname$6(src));
100815
+ const destParent = resolve$10(dirname$6(dest));
100740
100816
  if (destParent === srcParent || destParent === parse(destParent).root) return;
100741
100817
  let destStat;
100742
100818
  try {
@@ -100755,7 +100831,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100755
100831
  });
100756
100832
  return checkParentPaths(src, srcStat, destParent);
100757
100833
  }
100758
- const normalizePathToArray = (path) => resolve$9(path).split(sep$3).filter(Boolean);
100834
+ const normalizePathToArray = (path) => resolve$10(path).split(sep$3).filter(Boolean);
100759
100835
  function isSrcSubdir(src, dest) {
100760
100836
  const srcArr = normalizePathToArray(src);
100761
100837
  const destArr = normalizePathToArray(dest);
@@ -100865,7 +100941,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100865
100941
  }
100866
100942
  async function onLink(destStat, src, dest) {
100867
100943
  let resolvedSrc = await readlink(src);
100868
- if (!isAbsolute$1(resolvedSrc)) resolvedSrc = resolve$9(dirname$6(src), resolvedSrc);
100944
+ if (!isAbsolute$1(resolvedSrc)) resolvedSrc = resolve$10(dirname$6(src), resolvedSrc);
100869
100945
  if (!destStat) return symlink(resolvedSrc, dest);
100870
100946
  let resolvedDest;
100871
100947
  try {
@@ -100876,7 +100952,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100876
100952
  // istanbul ignore next: should not be possible
100877
100953
  throw err;
100878
100954
  }
100879
- if (!isAbsolute$1(resolvedDest)) resolvedDest = resolve$9(dirname$6(dest), resolvedDest);
100955
+ if (!isAbsolute$1(resolvedDest)) resolvedDest = resolve$10(dirname$6(dest), resolvedDest);
100880
100956
  if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
100881
100957
  message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
100882
100958
  path: dest,
@@ -100963,7 +101039,7 @@ var require_readdir_scoped = /* @__PURE__ */ __commonJSMin(((exports, module) =>
100963
101039
  //#endregion
100964
101040
  //#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
100965
101041
  var require_move_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100966
- const { dirname: dirname$5, join: join$4, resolve: resolve$8, relative: relative$1, isAbsolute } = __require("path");
101042
+ const { dirname: dirname$5, join: join$4, resolve: resolve$9, relative: relative$1, isAbsolute } = __require("path");
100967
101043
  const fs$12 = __require("fs/promises");
100968
101044
  const pathExists = async (path) => {
100969
101045
  try {
@@ -100999,10 +101075,10 @@ var require_move_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100999
101075
  if (root) {
101000
101076
  await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
101001
101077
  let target = await fs$12.readlink(symSource);
101002
- if (isAbsolute(target)) target = resolve$8(symDestination, relative$1(symSource, target));
101078
+ if (isAbsolute(target)) target = resolve$9(symDestination, relative$1(symSource, target));
101003
101079
  let targetStat = "file";
101004
101080
  try {
101005
- targetStat = await fs$12.stat(resolve$8(dirname$5(symSource), target));
101081
+ targetStat = await fs$12.stat(resolve$9(dirname$5(symSource), target));
101006
101082
  if (targetStat.isDirectory()) targetStat = "junction";
101007
101083
  } catch {}
101008
101084
  await fs$12.symlink(target, symDestination, targetStat);
@@ -106819,7 +106895,7 @@ var require_lib$12 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106819
106895
  var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106820
106896
  const bundled = require_lib$12();
106821
106897
  const { readFile: readFile$2, readdir: readdir$2, stat: stat$2 } = __require("fs/promises");
106822
- const { resolve: resolve$7, basename: basename$5, dirname: dirname$4 } = __require("path");
106898
+ const { resolve: resolve$8, basename: basename$5, dirname: dirname$4 } = __require("path");
106823
106899
  const normalizePackageBin = require_lib$21();
106824
106900
  const readPackage = ({ path, packageJsonCache }) => packageJsonCache.has(path) ? Promise.resolve(packageJsonCache.get(path)) : readFile$2(path).then((json) => {
106825
106901
  const pkg = normalizePackageBin(JSON.parse(json));
@@ -106863,7 +106939,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106863
106939
  const nm = /^@.+/.test(scope) ? dirname$4(dir) : dir;
106864
106940
  const binFiles = [];
106865
106941
  Object.keys(pkg.bin).forEach((b) => {
106866
- const base = resolve$7(nm, ".bin", b);
106942
+ const base = resolve$8(nm, ".bin", b);
106867
106943
  binFiles.push(base, base + ".cmd", base + ".ps1");
106868
106944
  });
106869
106945
  (await Promise.all(binFiles.map((b) => stat$2(b).then(() => b).catch(() => null)))).filter((b) => b).forEach((b) => result.add(b));
@@ -106884,7 +106960,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106884
106960
  }
106885
106961
  const recursePromises = [];
106886
106962
  for (const entry of dirEntries) {
106887
- const p = resolve$7(path, entry.name);
106963
+ const p = resolve$8(path, entry.name);
106888
106964
  if (entry.isDirectory() === false) {
106889
106965
  result.add(p);
106890
106966
  continue;
@@ -106903,7 +106979,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106903
106979
  }
106904
106980
  if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
106905
106981
  return pkgContents({
106906
- path: resolve$7(path, "node_modules", dep),
106982
+ path: resolve$8(path, "node_modules", dep),
106907
106983
  packageJsonCache,
106908
106984
  pkg: true,
106909
106985
  depth,
@@ -106915,7 +106991,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106915
106991
  return result;
106916
106992
  };
106917
106993
  module.exports = ({ path, ...opts }) => pkgContents({
106918
- path: resolve$7(path),
106994
+ path: resolve$8(path),
106919
106995
  ...opts,
106920
106996
  pkg: true
106921
106997
  }).then((results) => [...results]);
@@ -110526,18 +110602,18 @@ var require_protected = /* @__PURE__ */ __commonJSMin(((exports, module) => {
110526
110602
  //#endregion
110527
110603
  //#region ../../node_modules/pacote/lib/util/cache-dir.js
110528
110604
  var require_cache_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
110529
- const { resolve: resolve$6 } = __require("node:path");
110530
- const { tmpdir: tmpdir$1, homedir } = __require("node:os");
110605
+ const { resolve: resolve$7 } = __require("node:path");
110606
+ const { tmpdir: tmpdir$1, homedir: homedir$1 } = __require("node:os");
110531
110607
  module.exports = (fakePlatform = false) => {
110532
110608
  const temp = tmpdir$1();
110533
110609
  const uidOrPid = process.getuid ? process.getuid() : process.pid;
110534
- const home = homedir() || resolve$6(temp, "npm-" + uidOrPid);
110610
+ const home = homedir$1() || resolve$7(temp, "npm-" + uidOrPid);
110535
110611
  const platform = fakePlatform || process.platform;
110536
110612
  const cacheExtra = platform === "win32" ? "npm-cache" : ".npm";
110537
110613
  const cacheRoot = platform === "win32" && process.env.LOCALAPPDATA || home;
110538
110614
  return {
110539
- cacache: resolve$6(cacheRoot, cacheExtra, "_cacache"),
110540
- tufcache: resolve$6(cacheRoot, cacheExtra, "_tuf")
110615
+ cacache: resolve$7(cacheRoot, cacheExtra, "_cacache"),
110616
+ tufcache: resolve$7(cacheRoot, cacheExtra, "_tuf")
110541
110617
  };
110542
110618
  };
110543
110619
  }));
@@ -112351,7 +112427,7 @@ var require_lib$10 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112351
112427
  var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112352
112428
  const { Walker: IgnoreWalker } = require_lib$10();
112353
112429
  const { lstatSync: lstat$1, readFileSync: readFile$1 } = __require("fs");
112354
- const { basename: basename$4, dirname: dirname$3, extname: extname$1, join: join$3, relative, resolve: resolve$5, sep: sep$1 } = __require("path");
112430
+ const { basename: basename$4, dirname: dirname$3, extname: extname$1, join: join$3, relative, resolve: resolve$6, sep: sep$1 } = __require("path");
112355
112431
  const { log } = require_lib$29();
112356
112432
  const defaultRules = Symbol("npm-packlist.rules.default");
112357
112433
  const strictRules = Symbol("npm-packlist.rules.strict");
@@ -112402,7 +112478,7 @@ var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112402
112478
  ...opts,
112403
112479
  includeEmpty: false,
112404
112480
  follow: false,
112405
- path: resolve$5(opts?.path || tree.path).replace(/\\/g, "/"),
112481
+ path: resolve$6(opts?.path || tree.path).replace(/\\/g, "/"),
112406
112482
  ignoreFiles: opts?.ignoreFiles || [
112407
112483
  defaultRules,
112408
112484
  "package.json",
@@ -112603,8 +112679,8 @@ var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112603
112679
  var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112604
112680
  init_esm_shims();
112605
112681
  const { log } = require_lib$29();
112606
- const { resolve: resolve$4, dirname: dirname$2, delimiter: delimiter$1 } = __require("path");
112607
- const nodeGypPath = resolve$4(__dirname, "../lib/node-gyp-bin");
112682
+ const { resolve: resolve$5, dirname: dirname$2, delimiter: delimiter$1 } = __require("path");
112683
+ const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
112608
112684
  const setPATH = (projectPath, binPaths, env) => {
112609
112685
  const PATH = Object.keys(env).filter((p) => /^path$/i.test(p) && env[p]).map((p) => env[p].split(delimiter$1)).reduce((set, p) => set.concat(p.filter((concatted) => !set.includes(concatted))), []).join(delimiter$1);
112610
112686
  const pathArr = [];
@@ -112619,7 +112695,7 @@ var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112619
112695
  let p = projectPath;
112620
112696
  let pp;
112621
112697
  do {
112622
- pathArr.push(resolve$4(p, "node_modules", ".bin"));
112698
+ pathArr.push(resolve$5(p, "node_modules", ".bin"));
112623
112699
  pp = p;
112624
112700
  p = dirname$2(p);
112625
112701
  } while (p !== pp);
@@ -112634,7 +112710,7 @@ var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112634
112710
  //#region ../../node_modules/@npmcli/run-script/lib/make-spawn-args.js
112635
112711
  var require_make_spawn_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112636
112712
  const setPATH = require_set_path();
112637
- const { resolve: resolve$3 } = __require("path");
112713
+ const { resolve: resolve$4 } = __require("path");
112638
112714
  let npm_config_node_gyp;
112639
112715
  const makeSpawnArgs = (options) => {
112640
112716
  const { args, binPaths, cmd, env, event, nodeGyp, path, scriptShell = true, stdio, stdioString } = options;
@@ -112648,7 +112724,7 @@ var require_make_spawn_args = /* @__PURE__ */ __commonJSMin(((exports, module) =
112648
112724
  env: setPATH(path, binPaths, {
112649
112725
  ...process.env,
112650
112726
  ...env,
112651
- npm_package_json: resolve$3(path, "package.json"),
112727
+ npm_package_json: resolve$4(path, "package.json"),
112652
112728
  npm_lifecycle_event: event,
112653
112729
  npm_lifecycle_script: cmd,
112654
112730
  npm_config_node_gyp
@@ -112736,10 +112812,10 @@ var require_signal_manager = /* @__PURE__ */ __commonJSMin(((exports, module) =>
112736
112812
  //#region ../../node_modules/@npmcli/run-script/lib/is-server-package.js
112737
112813
  var require_is_server_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112738
112814
  const { stat: stat$1 } = __require("node:fs/promises");
112739
- const { resolve: resolve$2 } = __require("node:path");
112815
+ const { resolve: resolve$3 } = __require("node:path");
112740
112816
  module.exports = async (path) => {
112741
112817
  try {
112742
- return (await stat$1(resolve$2(path, "server.js"))).isFile();
112818
+ return (await stat$1(resolve$3(path, "server.js"))).isFile();
112743
112819
  } catch (er) {
112744
112820
  return false;
112745
112821
  }
@@ -112849,7 +112925,7 @@ var require_run_script = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112849
112925
  //#endregion
112850
112926
  //#region ../../node_modules/pacote/lib/file.js
112851
112927
  var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112852
- const { resolve: resolve$1 } = __require("node:path");
112928
+ const { resolve: resolve$2 } = __require("node:path");
112853
112929
  const { stat, chmod: chmod$1 } = __require("node:fs/promises");
112854
112930
  const cacache = require_lib$14();
112855
112931
  const fsm = require_lib$13();
@@ -112875,7 +112951,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112875
112951
  #exeBins(pkg, dest) {
112876
112952
  if (!pkg.bin) return Promise.resolve();
112877
112953
  return Promise.all(Object.keys(pkg.bin).map(async (k) => {
112878
- const script = resolve$1(dest, pkg.bin[k]);
112954
+ const script = resolve$2(dest, pkg.bin[k]);
112879
112955
  try {
112880
112956
  const st = await stat(script);
112881
112957
  const mode = st.mode | 73;
@@ -112926,7 +113002,7 @@ var require_tar_create_options = /* @__PURE__ */ __commonJSMin(((exports, module
112926
113002
  //#endregion
112927
113003
  //#region ../../node_modules/pacote/lib/dir.js
112928
113004
  var require_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112929
- const { resolve } = __require("node:path");
113005
+ const { resolve: resolve$1 } = __require("node:path");
112930
113006
  const packlist = require_lib$9();
112931
113007
  const runScript = require_run_script();
112932
113008
  const tar = require_index_min();
@@ -112962,7 +113038,7 @@ var require_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112962
113038
  env: {
112963
113039
  npm_package_resolved: this.resolved,
112964
113040
  npm_package_integrity: this.integrity,
112965
- npm_package_json: resolve(this.resolved, "package.json")
113041
+ npm_package_json: resolve$1(this.resolved, "package.json")
112966
113042
  }
112967
113043
  });
112968
113044
  });
@@ -152077,10 +152153,10 @@ ${indent}`);
152077
152153
  };
152078
152154
  //#endregion
152079
152155
  //#region ../../node_modules/consola/dist/shared/consola.DXBYu-KD.mjs
152080
- const { env = {}, argv = [], platform: platform$1 = "" } = typeof process === "undefined" ? {} : process;
152156
+ const { env = {}, argv = [], platform: platform$2 = "" } = typeof process === "undefined" ? {} : process;
152081
152157
  const isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
152082
152158
  const isForced = "FORCE_COLOR" in env || argv.includes("--color");
152083
- const isWindows = platform$1 === "win32";
152159
+ const isWindows = platform$2 === "win32";
152084
152160
  const isDumbTerminal = env.TERM === "dumb";
152085
152161
  const isCompatibleTerminal = tty$1 && tty$1.isatty && tty$1.isatty(1) && env.TERM && !isDumbTerminal;
152086
152162
  const isCI = "CI" in env && ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
@@ -152581,7 +152657,7 @@ const consola = createConsola();
152581
152657
  //#endregion
152582
152658
  //#region ../../node_modules/untun/dist/index.mjs
152583
152659
  async function startTunnel(opts) {
152584
- const { installCloudflared, startCloudflaredTunnel, cloudflaredBinPath, cloudflaredNotice } = await import("./chunks-CfRneOgh.mjs");
152660
+ const { installCloudflared, startCloudflaredTunnel, cloudflaredBinPath, cloudflaredNotice } = await import("./chunks-GrMn87xJ.mjs");
152585
152661
  const url = opts.url || `${opts.protocol || "http"}://${opts.hostname ?? "localhost"}:${opts.port ?? 3e3}`;
152586
152662
  consola.start(`Starting cloudflared tunnel to ${url}`);
152587
152663
  if (!existsSync(cloudflaredBinPath)) {