@coana-tech/cli 14.12.172 → 14.12.174

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/cli.mjs CHANGED
@@ -13839,7 +13839,7 @@ var require_has_flag = __commonJS({
13839
13839
  var require_supports_color = __commonJS({
13840
13840
  "../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports2, module2) {
13841
13841
  "use strict";
13842
- var os2 = __require("os");
13842
+ var os3 = __require("os");
13843
13843
  var tty2 = __require("tty");
13844
13844
  var hasFlag = require_has_flag();
13845
13845
  var { env } = process;
@@ -13896,7 +13896,7 @@ var require_supports_color = __commonJS({
13896
13896
  return min;
13897
13897
  }
13898
13898
  if (process.platform === "win32") {
13899
- const osRelease = os2.release().split(".");
13899
+ const osRelease = os3.release().split(".");
13900
13900
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
13901
13901
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
13902
13902
  }
@@ -14563,8 +14563,8 @@ var require_follow_redirects = __commonJS({
14563
14563
  }
14564
14564
  return parsed;
14565
14565
  }
14566
- function resolveUrl(relative21, base) {
14567
- return useNativeURL ? new URL3(relative21, base) : parseUrl(url2.resolve(base, relative21));
14566
+ function resolveUrl(relative22, base) {
14567
+ return useNativeURL ? new URL3(relative22, base) : parseUrl(url2.resolve(base, relative22));
14568
14568
  }
14569
14569
  function validateUrl(input) {
14570
14570
  if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
@@ -16282,7 +16282,7 @@ var require_has_flag2 = __commonJS({
16282
16282
  var require_supports_colors = __commonJS({
16283
16283
  "../../node_modules/.pnpm/@colors+colors@1.6.0/node_modules/@colors/colors/lib/system/supports-colors.js"(exports2, module2) {
16284
16284
  "use strict";
16285
- var os2 = __require("os");
16285
+ var os3 = __require("os");
16286
16286
  var hasFlag = require_has_flag2();
16287
16287
  var env = process.env;
16288
16288
  var forceColor = void 0;
@@ -16320,7 +16320,7 @@ var require_supports_colors = __commonJS({
16320
16320
  }
16321
16321
  var min = forceColor ? 1 : 0;
16322
16322
  if (process.platform === "win32") {
16323
- var osRelease = os2.release().split(".");
16323
+ var osRelease = os3.release().split(".");
16324
16324
  if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
16325
16325
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
16326
16326
  }
@@ -21554,7 +21554,7 @@ var require_winston_transport = __commonJS({
21554
21554
  var require_console = __commonJS({
21555
21555
  "../../node_modules/.pnpm/winston@3.16.0/node_modules/winston/lib/winston/transports/console.js"(exports2, module2) {
21556
21556
  "use strict";
21557
- var os2 = __require("os");
21557
+ var os3 = __require("os");
21558
21558
  var { LEVEL, MESSAGE } = require_triple_beam();
21559
21559
  var TransportStream = require_winston_transport();
21560
21560
  module2.exports = class Console extends TransportStream {
@@ -21568,7 +21568,7 @@ var require_console = __commonJS({
21568
21568
  this.name = options.name || "console";
21569
21569
  this.stderrLevels = this._stringArrayToSet(options.stderrLevels);
21570
21570
  this.consoleWarnLevels = this._stringArrayToSet(options.consoleWarnLevels);
21571
- this.eol = typeof options.eol === "string" ? options.eol : os2.EOL;
21571
+ this.eol = typeof options.eol === "string" ? options.eol : os3.EOL;
21572
21572
  this.forceConsole = options.forceConsole || false;
21573
21573
  this._consoleLog = console.log.bind(console);
21574
21574
  this._consoleWarn = console.warn.bind(console);
@@ -24582,7 +24582,7 @@ var require_file = __commonJS({
24582
24582
  var { Stream: Stream2, PassThrough } = require_readable();
24583
24583
  var TransportStream = require_winston_transport();
24584
24584
  var debug = require_node3()("winston:file");
24585
- var os2 = __require("os");
24585
+ var os3 = __require("os");
24586
24586
  var tailFile = require_tail_file();
24587
24587
  module2.exports = class File extends TransportStream {
24588
24588
  /**
@@ -24620,7 +24620,7 @@ var require_file = __commonJS({
24620
24620
  this.rotationFormat = options.rotationFormat || false;
24621
24621
  this.zippedArchive = options.zippedArchive || false;
24622
24622
  this.maxFiles = options.maxFiles || null;
24623
- this.eol = typeof options.eol === "string" ? options.eol : os2.EOL;
24623
+ this.eol = typeof options.eol === "string" ? options.eol : os3.EOL;
24624
24624
  this.tailable = options.tailable || false;
24625
24625
  this.lazy = options.lazy || false;
24626
24626
  this._size = 0;
@@ -25401,7 +25401,7 @@ var require_stream2 = __commonJS({
25401
25401
  "use strict";
25402
25402
  var isStream3 = require_is_stream();
25403
25403
  var { MESSAGE } = require_triple_beam();
25404
- var os2 = __require("os");
25404
+ var os3 = __require("os");
25405
25405
  var TransportStream = require_winston_transport();
25406
25406
  module2.exports = class Stream extends TransportStream {
25407
25407
  /**
@@ -25417,7 +25417,7 @@ var require_stream2 = __commonJS({
25417
25417
  this._stream = options.stream;
25418
25418
  this._stream.setMaxListeners(Infinity);
25419
25419
  this.isObjectMode = options.stream._writableState.objectMode;
25420
- this.eol = typeof options.eol === "string" ? options.eol : os2.EOL;
25420
+ this.eol = typeof options.eol === "string" ? options.eol : os3.EOL;
25421
25421
  }
25422
25422
  /**
25423
25423
  * Core logging method exposed to Winston.
@@ -25800,7 +25800,7 @@ var require_exception_stream = __commonJS({
25800
25800
  var require_exception_handler = __commonJS({
25801
25801
  "../../node_modules/.pnpm/winston@3.16.0/node_modules/winston/lib/winston/exception-handler.js"(exports2, module2) {
25802
25802
  "use strict";
25803
- var os2 = __require("os");
25803
+ var os3 = __require("os");
25804
25804
  var asyncForEach2 = require_forEach();
25805
25805
  var debug = require_node3()("winston:exception");
25806
25806
  var once9 = require_one_time();
@@ -25895,8 +25895,8 @@ var require_exception_handler = __commonJS({
25895
25895
  */
25896
25896
  getOsInfo() {
25897
25897
  return {
25898
- loadavg: os2.loadavg(),
25899
- uptime: os2.uptime()
25898
+ loadavg: os3.loadavg(),
25899
+ uptime: os3.uptime()
25900
25900
  };
25901
25901
  }
25902
25902
  /**
@@ -26038,7 +26038,7 @@ var require_rejection_stream = __commonJS({
26038
26038
  var require_rejection_handler = __commonJS({
26039
26039
  "../../node_modules/.pnpm/winston@3.16.0/node_modules/winston/lib/winston/rejection-handler.js"(exports2, module2) {
26040
26040
  "use strict";
26041
- var os2 = __require("os");
26041
+ var os3 = __require("os");
26042
26042
  var asyncForEach2 = require_forEach();
26043
26043
  var debug = require_node3()("winston:rejection");
26044
26044
  var once9 = require_one_time();
@@ -26135,8 +26135,8 @@ var require_rejection_handler = __commonJS({
26135
26135
  */
26136
26136
  getOsInfo() {
26137
26137
  return {
26138
- loadavg: os2.loadavg(),
26139
- uptime: os2.uptime()
26138
+ loadavg: os3.loadavg(),
26139
+ uptime: os3.uptime()
26140
26140
  };
26141
26141
  }
26142
26142
  /**
@@ -33617,7 +33617,7 @@ var require_ansi_styles = __commonJS({
33617
33617
  var require_supports_color2 = __commonJS({
33618
33618
  "../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports2, module2) {
33619
33619
  "use strict";
33620
- var os2 = __require("os");
33620
+ var os3 = __require("os");
33621
33621
  var tty2 = __require("tty");
33622
33622
  var hasFlag = require_has_flag();
33623
33623
  var { env } = process;
@@ -33665,7 +33665,7 @@ var require_supports_color2 = __commonJS({
33665
33665
  return min;
33666
33666
  }
33667
33667
  if (process.platform === "win32") {
33668
- const osRelease = os2.release().split(".");
33668
+ const osRelease = os3.release().split(".");
33669
33669
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
33670
33670
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
33671
33671
  }
@@ -55383,15 +55383,15 @@ var require_bole = __commonJS({
55383
55383
  var individual = require_individual()("$$bole", { fastTime: false });
55384
55384
  var format6 = require_format2();
55385
55385
  var levels = "debug info warn error".split(" ");
55386
- var os2 = __require("os");
55386
+ var os3 = __require("os");
55387
55387
  var pid = process.pid;
55388
55388
  var hasObjMode = false;
55389
55389
  var scache = [];
55390
55390
  var hostname;
55391
55391
  try {
55392
- hostname = os2.hostname();
55392
+ hostname = os3.hostname();
55393
55393
  } catch (e) {
55394
- hostname = os2.version().indexOf("Windows 7 ") === 0 ? "windows7" : "hostname-unknown";
55394
+ hostname = os3.version().indexOf("Windows 7 ") === 0 ? "windows7" : "hostname-unknown";
55395
55395
  }
55396
55396
  var hostnameSt = _stringify(hostname);
55397
55397
  for (const level of levels) {
@@ -57273,7 +57273,7 @@ var require_stdio = __commonJS({
57273
57273
  var require_kill = __commonJS({
57274
57274
  "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports2, module2) {
57275
57275
  "use strict";
57276
- var os2 = __require("os");
57276
+ var os3 = __require("os");
57277
57277
  var onExit = require_signal_exit();
57278
57278
  var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
57279
57279
  var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
@@ -57297,7 +57297,7 @@ var require_kill = __commonJS({
57297
57297
  return isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
57298
57298
  };
57299
57299
  var isSigterm = (signal) => {
57300
- return signal === os2.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
57300
+ return signal === os3.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
57301
57301
  };
57302
57302
  var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
57303
57303
  if (forceKillAfterTimeout === true) {
@@ -63205,7 +63205,7 @@ var require_ip = __commonJS({
63205
63205
  "../../node_modules/.pnpm/ip@2.0.0/node_modules/ip/lib/ip.js"(exports2) {
63206
63206
  var ip = exports2;
63207
63207
  var { Buffer: Buffer3 } = __require("buffer");
63208
- var os2 = __require("os");
63208
+ var os3 = __require("os");
63209
63209
  ip.toBuffer = function(ip2, buff, offset) {
63210
63210
  offset = ~~offset;
63211
63211
  let result;
@@ -63455,7 +63455,7 @@ var require_ip = __commonJS({
63455
63455
  return family === "ipv4" ? "127.0.0.1" : "fe80::1";
63456
63456
  };
63457
63457
  ip.address = function(name2, family) {
63458
- const interfaces = os2.networkInterfaces();
63458
+ const interfaces = os3.networkInterfaces();
63459
63459
  family = _normalizeFamily(family);
63460
63460
  if (name2 && name2 !== "private" && name2 !== "public") {
63461
63461
  const res = interfaces[name2].filter((details) => {
@@ -69980,16 +69980,16 @@ var require_lockfile = __commonJS({
69980
69980
  if (process.platform === "win32") {
69981
69981
  yield fsSymlink(src, dest, "junction");
69982
69982
  } else {
69983
- let relative21;
69983
+ let relative22;
69984
69984
  try {
69985
- relative21 = (_path2 || _load_path()).default.relative((_fs || _load_fs()).default.realpathSync((_path2 || _load_path()).default.dirname(dest)), (_fs || _load_fs()).default.realpathSync(src));
69985
+ relative22 = (_path2 || _load_path()).default.relative((_fs || _load_fs()).default.realpathSync((_path2 || _load_path()).default.dirname(dest)), (_fs || _load_fs()).default.realpathSync(src));
69986
69986
  } catch (err) {
69987
69987
  if (err.code !== "ENOENT") {
69988
69988
  throw err;
69989
69989
  }
69990
- relative21 = (_path2 || _load_path()).default.relative((_path2 || _load_path()).default.dirname(dest), src);
69990
+ relative22 = (_path2 || _load_path()).default.relative((_path2 || _load_path()).default.dirname(dest), src);
69991
69991
  }
69992
- yield fsSymlink(relative21 || ".", dest);
69992
+ yield fsSymlink(relative22 || ".", dest);
69993
69993
  }
69994
69994
  });
69995
69995
  return function symlink2(_x24, _x25) {
@@ -70016,17 +70016,17 @@ var require_lockfile = __commonJS({
70016
70016
  _ref28 = _i14.value;
70017
70017
  }
70018
70018
  const name2 = _ref28;
70019
- const relative21 = relativeDir ? (_path2 || _load_path()).default.join(relativeDir, name2) : name2;
70019
+ const relative22 = relativeDir ? (_path2 || _load_path()).default.join(relativeDir, name2) : name2;
70020
70020
  const loc = (_path2 || _load_path()).default.join(dir, name2);
70021
70021
  const stat6 = yield lstat3(loc);
70022
70022
  files.push({
70023
- relative: relative21,
70023
+ relative: relative22,
70024
70024
  basename: name2,
70025
70025
  absolute: loc,
70026
70026
  mtime: +stat6.mtime
70027
70027
  });
70028
70028
  if (stat6.isDirectory()) {
70029
- files = files.concat(yield walk(loc, relative21, ignoreBasenames));
70029
+ files = files.concat(yield walk(loc, relative22, ignoreBasenames));
70030
70030
  }
70031
70031
  }
70032
70032
  return files;
@@ -70287,7 +70287,7 @@ var require_lockfile = __commonJS({
70287
70287
  value: true
70288
70288
  });
70289
70289
  exports3.getPathKey = getPathKey;
70290
- const os2 = __webpack_require__(36);
70290
+ const os3 = __webpack_require__(36);
70291
70291
  const path9 = __webpack_require__(0);
70292
70292
  const userHome = __webpack_require__(45).default;
70293
70293
  var _require = __webpack_require__(171);
@@ -70311,9 +70311,9 @@ var require_lockfile = __commonJS({
70311
70311
  function getPreferredCacheDirectories() {
70312
70312
  const preferredCacheDirectories = [getCacheDir()];
70313
70313
  if (process.getuid) {
70314
- preferredCacheDirectories.push(path9.join(os2.tmpdir(), `.yarn-cache-${process.getuid()}`));
70314
+ preferredCacheDirectories.push(path9.join(os3.tmpdir(), `.yarn-cache-${process.getuid()}`));
70315
70315
  }
70316
- preferredCacheDirectories.push(path9.join(os2.tmpdir(), `.yarn-cache`));
70316
+ preferredCacheDirectories.push(path9.join(os3.tmpdir(), `.yarn-cache`));
70317
70317
  return preferredCacheDirectories;
70318
70318
  }
70319
70319
  const PREFERRED_MODULE_CACHE_DIRECTORIES = exports3.PREFERRED_MODULE_CACHE_DIRECTORIES = getPreferredCacheDirectories();
@@ -99844,11 +99844,11 @@ var require_command3 = __commonJS({
99844
99844
  };
99845
99845
  Object.defineProperty(exports2, "__esModule", { value: true });
99846
99846
  exports2.issue = exports2.issueCommand = void 0;
99847
- var os2 = __importStar(__require("os"));
99847
+ var os3 = __importStar(__require("os"));
99848
99848
  var utils_1 = require_utils6();
99849
99849
  function issueCommand(command, properties, message2) {
99850
99850
  const cmd = new Command2(command, properties, message2);
99851
- process.stdout.write(cmd.toString() + os2.EOL);
99851
+ process.stdout.write(cmd.toString() + os3.EOL);
99852
99852
  }
99853
99853
  exports2.issueCommand = issueCommand;
99854
99854
  function issue(name2, message2 = "") {
@@ -100260,7 +100260,7 @@ var require_file_command = __commonJS({
100260
100260
  Object.defineProperty(exports2, "__esModule", { value: true });
100261
100261
  exports2.prepareKeyValueMessage = exports2.issueFileCommand = void 0;
100262
100262
  var fs11 = __importStar(__require("fs"));
100263
- var os2 = __importStar(__require("os"));
100263
+ var os3 = __importStar(__require("os"));
100264
100264
  var uuid_1 = (init_esm_node(), __toCommonJS(esm_node_exports));
100265
100265
  var utils_1 = require_utils6();
100266
100266
  function issueFileCommand(command, message2) {
@@ -100271,7 +100271,7 @@ var require_file_command = __commonJS({
100271
100271
  if (!fs11.existsSync(filePath)) {
100272
100272
  throw new Error(`Missing file at path: ${filePath}`);
100273
100273
  }
100274
- fs11.appendFileSync(filePath, `${utils_1.toCommandValue(message2)}${os2.EOL}`, {
100274
+ fs11.appendFileSync(filePath, `${utils_1.toCommandValue(message2)}${os3.EOL}`, {
100275
100275
  encoding: "utf8"
100276
100276
  });
100277
100277
  }
@@ -100285,7 +100285,7 @@ var require_file_command = __commonJS({
100285
100285
  if (convertedValue.includes(delimiter)) {
100286
100286
  throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`);
100287
100287
  }
100288
- return `${key}<<${delimiter}${os2.EOL}${convertedValue}${os2.EOL}${delimiter}`;
100288
+ return `${key}<<${delimiter}${os3.EOL}${convertedValue}${os3.EOL}${delimiter}`;
100289
100289
  }
100290
100290
  exports2.prepareKeyValueMessage = prepareKeyValueMessage;
100291
100291
  }
@@ -118575,7 +118575,7 @@ var require_core4 = __commonJS({
118575
118575
  var command_1 = require_command3();
118576
118576
  var file_command_1 = require_file_command();
118577
118577
  var utils_1 = require_utils6();
118578
- var os2 = __importStar(__require("os"));
118578
+ var os3 = __importStar(__require("os"));
118579
118579
  var path9 = __importStar(__require("path"));
118580
118580
  var oidc_utils_1 = require_oidc_utils();
118581
118581
  var ExitCode;
@@ -118643,7 +118643,7 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
118643
118643
  if (filePath) {
118644
118644
  return file_command_1.issueFileCommand("OUTPUT", file_command_1.prepareKeyValueMessage(name2, value2));
118645
118645
  }
118646
- process.stdout.write(os2.EOL);
118646
+ process.stdout.write(os3.EOL);
118647
118647
  command_1.issueCommand("set-output", { name: name2 }, utils_1.toCommandValue(value2));
118648
118648
  }
118649
118649
  exports2.setOutput = setOutput;
@@ -118677,7 +118677,7 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
118677
118677
  }
118678
118678
  exports2.notice = notice;
118679
118679
  function info(message2) {
118680
- process.stdout.write(message2 + os2.EOL);
118680
+ process.stdout.write(message2 + os3.EOL);
118681
118681
  }
118682
118682
  exports2.info = info;
118683
118683
  function startGroup(name2) {
@@ -121394,16 +121394,16 @@ var require_rimraf2 = __commonJS({
121394
121394
  var require_tmp = __commonJS({
121395
121395
  "../../node_modules/.pnpm/tmp@0.2.1/node_modules/tmp/lib/tmp.js"(exports2, module2) {
121396
121396
  var fs11 = __require("fs");
121397
- var os2 = __require("os");
121397
+ var os3 = __require("os");
121398
121398
  var path9 = __require("path");
121399
121399
  var crypto7 = __require("crypto");
121400
- var _c = { fs: fs11.constants, os: os2.constants };
121400
+ var _c = { fs: fs11.constants, os: os3.constants };
121401
121401
  var rimraf = require_rimraf2();
121402
121402
  var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
121403
121403
  var TEMPLATE_PATTERN = /XXXXXX/;
121404
121404
  var DEFAULT_TRIES = 3;
121405
121405
  var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR);
121406
- var IS_WIN32 = os2.platform() === "win32";
121406
+ var IS_WIN32 = os3.platform() === "win32";
121407
121407
  var EBADF = _c.EBADF || _c.os.errno.EBADF;
121408
121408
  var ENOENT2 = _c.ENOENT || _c.os.errno.ENOENT;
121409
121409
  var DIR_MODE = 448;
@@ -121687,7 +121687,7 @@ var require_tmp = __commonJS({
121687
121687
  _gracefulCleanup = true;
121688
121688
  }
121689
121689
  function _getTmpDir(options) {
121690
- return path9.resolve(_sanitizeName(options && options.tmpdir || os2.tmpdir()));
121690
+ return path9.resolve(_sanitizeName(options && options.tmpdir || os3.tmpdir()));
121691
121691
  }
121692
121692
  process.addListener(EXIT, _garbageCollector);
121693
121693
  Object.defineProperty(module2.exports, "tmpdir", {
@@ -155022,9 +155022,9 @@ var require_path = __commonJS({
155022
155022
  "use strict";
155023
155023
  Object.defineProperty(exports2, "__esModule", { value: true });
155024
155024
  exports2.convertPosixPathToPattern = exports2.convertWindowsPathToPattern = exports2.convertPathToPattern = exports2.escapePosixPath = exports2.escapeWindowsPath = exports2.escape = exports2.removeLeadingDotSegment = exports2.makeAbsolute = exports2.unixify = void 0;
155025
- var os2 = __require("os");
155025
+ var os3 = __require("os");
155026
155026
  var path9 = __require("path");
155027
- var IS_WINDOWS_PLATFORM = os2.platform() === "win32";
155027
+ var IS_WINDOWS_PLATFORM = os3.platform() === "win32";
155028
155028
  var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
155029
155029
  var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
155030
155030
  var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g;
@@ -157494,8 +157494,8 @@ var require_settings4 = __commonJS({
157494
157494
  Object.defineProperty(exports2, "__esModule", { value: true });
157495
157495
  exports2.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
157496
157496
  var fs11 = __require("fs");
157497
- var os2 = __require("os");
157498
- var CPU_COUNT = Math.max(os2.cpus().length, 1);
157497
+ var os3 = __require("os");
157498
+ var CPU_COUNT = Math.max(os3.cpus().length, 1);
157499
157499
  exports2.DEFAULT_FILE_SYSTEM_ADAPTER = {
157500
157500
  lstat: fs11.lstat,
157501
157501
  lstatSync: fs11.lstatSync,
@@ -176205,7 +176205,7 @@ var require_client_metadata = __commonJS({
176205
176205
  "use strict";
176206
176206
  Object.defineProperty(exports2, "__esModule", { value: true });
176207
176207
  exports2.getFAASEnv = exports2.makeClientMetadata = exports2.LimitedSizeDocument = void 0;
176208
- var os2 = __require("os");
176208
+ var os3 = __require("os");
176209
176209
  var process2 = __require("process");
176210
176210
  var bson_1 = require_bson2();
176211
176211
  var error_1 = require_error5();
@@ -176258,7 +176258,7 @@ var require_client_metadata = __commonJS({
176258
176258
  if (!metadataDocument.ifItFitsItSits("platform", runtimeInfo)) {
176259
176259
  throw new error_1.MongoInvalidArgumentError("Unable to include driverInfo platform, metadata cannot exceed 512 bytes");
176260
176260
  }
176261
- const osInfo = (/* @__PURE__ */ new Map()).set("name", process2.platform).set("architecture", process2.arch).set("version", os2.release()).set("type", os2.type());
176261
+ const osInfo = (/* @__PURE__ */ new Map()).set("name", process2.platform).set("architecture", process2.arch).set("version", os3.release()).set("type", os3.type());
176262
176262
  if (!metadataDocument.ifItFitsItSits("os", osInfo)) {
176263
176263
  for (const key of osInfo.keys()) {
176264
176264
  osInfo.delete(key);
@@ -176330,13 +176330,13 @@ var require_client_metadata = __commonJS({
176330
176330
  function getRuntimeInfo() {
176331
176331
  if ("Deno" in globalThis) {
176332
176332
  const version4 = typeof Deno?.version?.deno === "string" ? Deno?.version?.deno : "0.0.0-unknown";
176333
- return `Deno v${version4}, ${os2.endianness()}`;
176333
+ return `Deno v${version4}, ${os3.endianness()}`;
176334
176334
  }
176335
176335
  if ("Bun" in globalThis) {
176336
176336
  const version4 = typeof Bun?.version === "string" ? Bun?.version : "0.0.0-unknown";
176337
- return `Bun v${version4}, ${os2.endianness()}`;
176337
+ return `Bun v${version4}, ${os3.endianness()}`;
176338
176338
  }
176339
- return `Node.js ${process2.version}, ${os2.endianness()}`;
176339
+ return `Node.js ${process2.version}, ${os3.endianness()}`;
176340
176340
  }
176341
176341
  }
176342
176342
  });
@@ -192261,10 +192261,10 @@ var require_indent_string = __commonJS({
192261
192261
  var require_clean_stack = __commonJS({
192262
192262
  "../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js"(exports2, module2) {
192263
192263
  "use strict";
192264
- var os2 = __require("os");
192264
+ var os3 = __require("os");
192265
192265
  var extractPathRegex = /\s+at.*(?:\(|\s)(.*)\)?/;
192266
192266
  var pathRegex = /^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/;
192267
- var homeDir = typeof os2.homedir === "undefined" ? "" : os2.homedir();
192267
+ var homeDir = typeof os3.homedir === "undefined" ? "" : os3.homedir();
192268
192268
  module2.exports = (stack2, options) => {
192269
192269
  options = Object.assign({ pretty: false }, options);
192270
192270
  return stack2.replace(/\\/g, "/").split("\n").filter((line) => {
@@ -198721,13 +198721,13 @@ var require_instrument = __commonJS({
198721
198721
  };
198722
198722
  Object.defineProperty(exports2, "__esModule", { value: true });
198723
198723
  exports2.getUserAgent = exports2.addAppMetadata = void 0;
198724
- var os2 = __importStar(__require("os"));
198724
+ var os3 = __importStar(__require("os"));
198725
198725
  var path_1 = __require("path");
198726
198726
  var packageJson = require_package4();
198727
198727
  function replaceSlashes(s6) {
198728
198728
  return s6.replace("/", ":");
198729
198729
  }
198730
- var baseUserAgent = `${replaceSlashes(packageJson.name)}/${packageJson.version} ${(0, path_1.basename)(process.title)}/${process.version.replace("v", "")} ${os2.platform()}/${os2.release()}`;
198730
+ var baseUserAgent = `${replaceSlashes(packageJson.name)}/${packageJson.version} ${(0, path_1.basename)(process.title)}/${process.version.replace("v", "")} ${os3.platform()}/${os3.release()}`;
198731
198731
  var appMetadata = {};
198732
198732
  function addAppMetadata({ name: name2, version: version4 }) {
198733
198733
  appMetadata[replaceSlashes(name2)] = version4;
@@ -204418,13 +204418,14 @@ function parseComputeArtifactsResponse(responseData) {
204418
204418
  // There should always only be one metadata object
204419
204419
  };
204420
204420
  }
204421
- async function createSocketTier1Scan(cliOptions, coanaCliVersion) {
204421
+ async function createSocketTier1Scan(cliOptions, coanaCliVersion, systemInformation) {
204422
204422
  try {
204423
204423
  const url2 = getSocketApiUrl("tier1-reachability-scan");
204424
204424
  const data2 = {
204425
204425
  cli_options: cliOptions,
204426
204426
  coana_cli_version: coanaCliVersion,
204427
- socket_cli_version: process.env.SOCKET_CLI_VERSION
204427
+ socket_cli_version: process.env.SOCKET_CLI_VERSION,
204428
+ system_information: systemInformation
204428
204429
  };
204429
204430
  return (await axios2.put(url2, data2, { headers: getAuthHeaders() })).data;
204430
204431
  } catch (error) {
@@ -223546,10 +223547,10 @@ var Ignore = class {
223546
223547
  ignored(p3) {
223547
223548
  const fullpath = p3.fullpath();
223548
223549
  const fullpaths = `${fullpath}/`;
223549
- const relative21 = p3.relative() || ".";
223550
- const relatives = `${relative21}/`;
223550
+ const relative22 = p3.relative() || ".";
223551
+ const relatives = `${relative22}/`;
223551
223552
  for (const m4 of this.relative) {
223552
- if (m4.match(relative21) || m4.match(relatives))
223553
+ if (m4.match(relative22) || m4.match(relatives))
223553
223554
  return true;
223554
223555
  }
223555
223556
  for (const m4 of this.absolute) {
@@ -223560,9 +223561,9 @@ var Ignore = class {
223560
223561
  }
223561
223562
  childrenIgnored(p3) {
223562
223563
  const fullpath = p3.fullpath() + "/";
223563
- const relative21 = (p3.relative() || ".") + "/";
223564
+ const relative22 = (p3.relative() || ".") + "/";
223564
223565
  for (const m4 of this.relativeChildren) {
223565
- if (m4.match(relative21))
223566
+ if (m4.match(relative22))
223566
223567
  return true;
223567
223568
  }
223568
223569
  for (const m4 of this.absoluteChildren) {
@@ -226244,7 +226245,7 @@ var CargoFixingManager = class {
226244
226245
 
226245
226246
  // ../fixing-management/src/fixing-management/nuget/nuget-socket-upgrade-manager.ts
226246
226247
  var import_picomatch4 = __toESM(require_picomatch2(), 1);
226247
- import { dirname as dirname16, resolve as resolve26 } from "node:path";
226248
+ import { dirname as dirname16, relative as relative11, resolve as resolve26 } from "node:path";
226248
226249
 
226249
226250
  // ../utils/src/nuget-project-utils.ts
226250
226251
  var import_parse_xml3 = __toESM(require_dist(), 1);
@@ -228317,7 +228318,10 @@ var NuGetSocketUpgradeManager = class {
228317
228318
  await applyPatches("NUGET", this.rootDir, updatePatches, ctxt);
228318
228319
  const recomputedArtifacts = updatePatches.length ? await Spinner.instance().wrap(
228319
228320
  "Computing remaining upgrades",
228320
- async () => computeSocketFactArtifacts(this.rootDir, Array.from(caseInsensitiveManifestFileMap.values()))
228321
+ async () => computeSocketFactArtifacts(
228322
+ this.rootDir,
228323
+ Array.from(caseInsensitiveManifestFileMap.values()).map((p3) => relative11(this.rootDir, p3))
228324
+ )
228321
228325
  ) : ctxt.artifacts;
228322
228326
  if (!recomputedArtifacts) {
228323
228327
  ctxt.statusUpdater?.({
@@ -228696,7 +228700,7 @@ var NuGetSocketUpgradeManager = class {
228696
228700
  };
228697
228701
 
228698
228702
  // ../fixing-management/src/fixing-management/rust/cargo-socket-upgrade-manager.ts
228699
- import { dirname as dirname18, relative as relative11, resolve as resolve28 } from "node:path";
228703
+ import { dirname as dirname18, relative as relative12, resolve as resolve28 } from "node:path";
228700
228704
  var import_picomatch6 = __toESM(require_picomatch2(), 1);
228701
228705
  var import_semver4 = __toESM(require_semver2(), 1);
228702
228706
  import assert12 from "node:assert";
@@ -228848,14 +228852,14 @@ var CargoSocketUpgradeManager = class {
228848
228852
  await writeFile10(path9, content);
228849
228853
  ctxt.statusUpdater?.({
228850
228854
  status: "success",
228851
- file: relative11(this.rootDir, path9),
228855
+ file: relative12(this.rootDir, path9),
228852
228856
  message: "File restored",
228853
228857
  artifacts: i3(artifacts)
228854
228858
  });
228855
228859
  } catch (e) {
228856
228860
  ctxt.statusUpdater?.({
228857
228861
  status: "error",
228858
- file: relative11(this.rootDir, path9),
228862
+ file: relative12(this.rootDir, path9),
228859
228863
  message: "Could not restore file",
228860
228864
  artifacts: i3(artifacts)
228861
228865
  });
@@ -230252,14 +230256,14 @@ function satisfiestVersionSpecs(version4, versionSpec) {
230252
230256
  }
230253
230257
 
230254
230258
  // ../fixing-management/src/fixing-management/rubygems/rubygems-socket-upgrade-manager.ts
230255
- import { dirname as dirname22, relative as relative13, resolve as resolve33 } from "node:path";
230259
+ import { dirname as dirname22, relative as relative14, resolve as resolve33 } from "node:path";
230256
230260
  var import_picomatch9 = __toESM(require_picomatch2(), 1);
230257
230261
  import assert14 from "node:assert";
230258
230262
 
230259
230263
  // ../fixing-management/src/fixing-management/rubygems/gemfile-utils.ts
230260
230264
  var import_good_enough_parser4 = __toESM(require_cjs(), 1);
230261
230265
  init_ruby_lang();
230262
- import { resolve as resolve32, dirname as dirname21, relative as relative12 } from "node:path";
230266
+ import { resolve as resolve32, dirname as dirname21, relative as relative13 } from "node:path";
230263
230267
  import { existsSync as existsSync18, readFileSync as readFileSync6, readdirSync as readdirSync4 } from "node:fs";
230264
230268
  init_gemspec_utils();
230265
230269
  var booleanQuery2 = import_good_enough_parser4.query.alt(
@@ -230368,13 +230372,13 @@ var evalGemfileQuery = import_good_enough_parser4.query.sym("eval_gemfile").join
230368
230372
  ctx.exprEndOffset = void 0;
230369
230373
  if (ctx.depth > 50) {
230370
230374
  logger.warn(
230371
- `Recursion limit hit while evaluating gemfile: ${relative12(ctx.gemfile.rootDir, resolve32(ctx.gemfile.rootDir, ctx.gemfile.file))}`
230375
+ `Recursion limit hit while evaluating gemfile: ${relative13(ctx.gemfile.rootDir, resolve32(ctx.gemfile.rootDir, ctx.gemfile.file))}`
230372
230376
  );
230373
230377
  return ctx;
230374
230378
  }
230375
230379
  if (pathEvaluated === void 0) return ctx;
230376
230380
  const rootDir = ctx.gemfile.rootDir;
230377
- const file = relative12(rootDir, resolve32(rootDir, dirname21(ctx.gemfile.file), pathEvaluated));
230381
+ const file = relative13(rootDir, resolve32(rootDir, dirname21(ctx.gemfile.file), pathEvaluated));
230378
230382
  if (!existsSync18(resolve32(rootDir, file))) return ctx;
230379
230383
  const sourceText = readFileSync6(resolve32(rootDir, file), "utf-8");
230380
230384
  const parser2 = import_good_enough_parser4.lang.createLang(lang3);
@@ -230427,7 +230431,7 @@ var gemspecQuery = import_good_enough_parser4.query.sym("gemspec").opt(
230427
230431
  ).handler((ctx) => {
230428
230432
  if (ctx.depth > 50) {
230429
230433
  logger.warn(
230430
- `Recursion limit hit while evaluating gemspec: ${relative12(ctx.gemfile.rootDir, resolve32(ctx.gemfile.rootDir, ctx.gemfile.file))}`
230434
+ `Recursion limit hit while evaluating gemspec: ${relative13(ctx.gemfile.rootDir, resolve32(ctx.gemfile.rootDir, ctx.gemfile.file))}`
230431
230435
  );
230432
230436
  ctx.currentGem = void 0;
230433
230437
  return ctx;
@@ -230466,7 +230470,7 @@ var gemspecQuery = import_good_enough_parser4.query.sym("gemspec").opt(
230466
230470
  if (gemspecFiles.length === 0) return ctx;
230467
230471
  const gemspecFile = gemspecFiles[0];
230468
230472
  const gemspecFullPath = resolve32(searchDir, gemspecFile);
230469
- const gemspecRelativePath = relative12(rootDir, gemspecFullPath);
230473
+ const gemspecRelativePath = relative13(rootDir, gemspecFullPath);
230470
230474
  try {
230471
230475
  const sourceText = readFileSync6(gemspecFullPath, "utf-8");
230472
230476
  const gemspec = parseGemspec(rootDir, gemspecRelativePath, sourceText);
@@ -230842,7 +230846,7 @@ var RubygemsSocketUpgradeManager = class {
230842
230846
  });
230843
230847
  continue;
230844
230848
  }
230845
- const gemfileName = relative13(this.rootDir, resolve33(this.rootDir, dirname22(mf.file), "Gemfile"));
230849
+ const gemfileName = relative14(this.rootDir, resolve33(this.rootDir, dirname22(mf.file), "Gemfile"));
230846
230850
  gemfileToLockfile.set(gemfileName, mf.file);
230847
230851
  if (pathGems.length > 0) {
230848
230852
  const { gemspecPatches, gemfilePatches } = await this.handleGemspecDependency(
@@ -230921,14 +230925,14 @@ var RubygemsSocketUpgradeManager = class {
230921
230925
  await writeFile11(path9, content);
230922
230926
  ctxt.statusUpdater?.({
230923
230927
  status: "success",
230924
- file: relative13(this.rootDir, path9),
230928
+ file: relative14(this.rootDir, path9),
230925
230929
  message: "File restored",
230926
230930
  artifacts: i3(artifacts)
230927
230931
  });
230928
230932
  } catch (e) {
230929
230933
  ctxt.statusUpdater?.({
230930
230934
  status: "error",
230931
- file: relative13(this.rootDir, path9),
230935
+ file: relative14(this.rootDir, path9),
230932
230936
  message: "Could not restore file",
230933
230937
  artifacts: i3(artifacts)
230934
230938
  });
@@ -231193,7 +231197,7 @@ var import_lodash7 = __toESM(require_lodash(), 1);
231193
231197
  var import_micromatch2 = __toESM(require_micromatch(), 1);
231194
231198
  import { existsSync as existsSync19 } from "fs";
231195
231199
  import { access as access4, cp as cp3, readdir as readdir4, stat as stat4 } from "fs/promises";
231196
- import { basename as basename9, join as join20, relative as relative14, resolve as resolve34 } from "path";
231200
+ import { basename as basename9, join as join20, relative as relative15, resolve as resolve34 } from "path";
231197
231201
  var { uniq: uniq2 } = import_lodash7.default;
231198
231202
  var { isMatch: isMatch2 } = import_micromatch2.default;
231199
231203
  function* parents2(dir) {
@@ -231766,12 +231770,12 @@ import { rmSync } from "fs";
231766
231770
  import { mkdir as mkdir5, readFile as readFile32, writeFile as writeFile12 } from "fs/promises";
231767
231771
  import assert15 from "node:assert";
231768
231772
  import { platform as platform8 } from "os";
231769
- import { join as join27, posix as posix2, relative as relative16, sep as sep3 } from "path";
231773
+ import { join as join27, posix as posix2, relative as relative17, sep as sep3 } from "path";
231770
231774
 
231771
231775
  // ../utils/src/tmp-file.ts
231772
231776
  import { rm, mkdtemp, cp as cp4, lstat as lstat2 } from "fs/promises";
231773
231777
  import { tmpdir as tmpdir4 } from "os";
231774
- import { join as join25, relative as relative15, sep as sep2, extname as extname2 } from "path";
231778
+ import { join as join25, relative as relative16, sep as sep2, extname as extname2 } from "path";
231775
231779
  async function createTmpDirectory(prefix) {
231776
231780
  try {
231777
231781
  const tmpDir = await mkdtemp(join25(tmpdir4(), prefix));
@@ -231808,7 +231812,7 @@ async function copyForNpmAnalysis(srcDir, prefix) {
231808
231812
  verbatimSymlinks: true,
231809
231813
  // Preserve symlinks as symlinks instead of dereferencing them
231810
231814
  filter: async (src) => {
231811
- const relativePath = relative15(srcDir, src);
231815
+ const relativePath = relative16(srcDir, src);
231812
231816
  if (relativePath === "") return true;
231813
231817
  const pathSegments = relativePath.split(sep2);
231814
231818
  if (pathSegments.some((segment) => EXCLUDED_DIRECTORIES.has(segment))) {
@@ -232189,7 +232193,7 @@ var OtherModulesCommunicator = class {
232189
232193
  }
232190
232194
  if (cmd === "getWorkspacePathsMultipleSubprojects")
232191
232195
  return `${_cmdStr()}: (${packageManagerName}) ${abbreviateList(subprojects, 10)}`;
232192
- return `${_cmdStr()}: (${packageManagerName}) ${relative16(this.rootWorkingDir, subprojectPath) || "."}`;
232196
+ return `${_cmdStr()}: (${packageManagerName}) ${relative17(this.rootWorkingDir, subprojectPath) || "."}`;
232193
232197
  }
232194
232198
  getSpinnerTextForReachabilityAnalyzerCommand(cmd, ecosystem, subprojectPath, workspacePath) {
232195
232199
  function _cmdStr() {
@@ -232202,10 +232206,10 @@ var OtherModulesCommunicator = class {
232202
232206
  return "Running reachability analysis on package registry package";
232203
232207
  }
232204
232208
  }
232205
- return `${_cmdStr()}: (${ecosystem}) ${relative16(this.rootWorkingDir, join27(subprojectPath, workspacePath)) || "."}`;
232209
+ return `${_cmdStr()}: (${ecosystem}) ${relative17(this.rootWorkingDir, join27(subprojectPath, workspacePath)) || "."}`;
232206
232210
  }
232207
232211
  getProjectPath(subprojectPath) {
232208
- return this.options.runWithoutDocker ? subprojectPath : posix2.resolve("/project", relative16(this.rootWorkingDir, subprojectPath).replaceAll(sep3, posix2.sep));
232212
+ return this.options.runWithoutDocker ? subprojectPath : posix2.resolve("/project", relative17(this.rootWorkingDir, subprojectPath).replaceAll(sep3, posix2.sep));
232209
232213
  }
232210
232214
  // options shared between package-management and reachability-analyzers
232211
232215
  commonOptions = once7(
@@ -232358,7 +232362,7 @@ var OtherModulesCommunicator = class {
232358
232362
  "getWorkspacePathsMultipleSubprojects",
232359
232363
  packageManagerName,
232360
232364
  this.rootWorkingDir,
232361
- subprojectPaths.map((subprojectPath) => relative16(this.rootWorkingDir, subprojectPath) || ".")
232365
+ subprojectPaths.map((subprojectPath) => relative17(this.rootWorkingDir, subprojectPath) || ".")
232362
232366
  );
232363
232367
  }
232364
232368
  async getProvidedArgsForSubproject(subprojectPath, providedOptions) {
@@ -233708,16 +233712,16 @@ function getVulnerabilitiesFromReport(report) {
233708
233712
  var import_packageurl_js = __toESM(require_packageurl_js(), 1);
233709
233713
 
233710
233714
  // dist/cli-upgrade-purl.js
233711
- import { join as join30, relative as relative19, resolve as resolve40 } from "node:path";
233715
+ import { join as join30, relative as relative20, resolve as resolve40 } from "node:path";
233712
233716
  var import_picomatch10 = __toESM(require_picomatch2(), 1);
233713
233717
 
233714
233718
  // ../project-management/src/project-management/project-manager.ts
233715
- import { relative as relative18, resolve as resolve39 } from "path";
233719
+ import { relative as relative19, resolve as resolve39 } from "path";
233716
233720
 
233717
233721
  // ../project-management/src/project-management/ecosystem-management/ecosystem-manager.ts
233718
233722
  var import_micromatch3 = __toESM(require_micromatch2(), 1);
233719
233723
  import { readdir as readdir6 } from "fs/promises";
233720
- import { join as join29, relative as relative17, resolve as resolve38 } from "path";
233724
+ import { join as join29, relative as relative18, resolve as resolve38 } from "path";
233721
233725
 
233722
233726
  // ../project-management/src/project-management/ecosystem-management/ecosystem-specs.ts
233723
233727
  import { existsSync as existsSync23 } from "fs";
@@ -233855,7 +233859,7 @@ var EcosystemManager = class _EcosystemManager {
233855
233859
  const resolvedProjectDir = resolve38(mainProjectDir, relativeProjectDir);
233856
233860
  if (config3.includeDirs.length > 0)
233857
233861
  workspacePaths = workspacePaths.filter(
233858
- (workspacePath) => isMatch3(relative17(mainProjectDir, join29(resolvedProjectDir, workspacePath)), config3.includeDirs)
233862
+ (workspacePath) => isMatch3(relative18(mainProjectDir, join29(resolvedProjectDir, workspacePath)), config3.includeDirs)
233859
233863
  );
233860
233864
  workspacePaths.filter((workspacePath) => workspacePath !== ".").forEach((workspacePath) => projectDirsAlreadyCovered.push(resolve38(resolvedProjectDir, workspacePath)));
233861
233865
  if (workspacePaths.length > 0)
@@ -233896,7 +233900,7 @@ var EcosystemManager = class _EcosystemManager {
233896
233900
  return typeof packageManagerNameProvider === "function" ? await packageManagerNameProvider(projectDir) : packageManagerNameProvider;
233897
233901
  } catch (e) {
233898
233902
  if (e instanceof InvalidProjectFileError) {
233899
- const projectDirRelative = relative17(mainProjectDir, projectDir) || ".";
233903
+ const projectDirRelative = relative18(mainProjectDir, projectDir) || ".";
233900
233904
  logger.error(
233901
233905
  `Invalid ${e.fileName} file in ${projectDirRelative}. If the project is intentionally invalid, and you want Coana to skip it in the scan, then add "--exclude-dirs ${projectDirRelative}" to the Coana command.`
233902
233906
  );
@@ -233988,7 +233992,7 @@ function shouldIgnoreDir(dir) {
233988
233992
  return dirsToIgnore.includes(dir);
233989
233993
  }
233990
233994
  function shouldIgnoreDueToExcludeDirsOrChangedFiles({ mainProjectDir, excludeDirs, changedFiles }, fullPath) {
233991
- const relativeToProjectDir = relative17(mainProjectDir, fullPath) || ".";
233995
+ const relativeToProjectDir = relative18(mainProjectDir, fullPath) || ".";
233992
233996
  return !!(isMatch3(relativeToProjectDir, excludeDirs) || changedFiles && !changedFiles.some((changedFile) => changedFile.startsWith(relativeToProjectDir)));
233993
233997
  }
233994
233998
 
@@ -234036,7 +234040,7 @@ var ProjectManager = class _ProjectManager {
234036
234040
  if (subprojects.length === 0) return void 0;
234037
234041
  return ` ${ecosystem}:
234038
234042
  ${subprojects.map(
234039
- ({ subprojectPath, workspacePaths }) => ` ${relative18(this.projectDir, subprojectPath) || ". (Root)"}${workspacePaths.length > 1 || workspacePaths[0] !== "." ? ` (${workspacePaths.length} ${ecosystem === "MAVEN" ? "modules" : "workspaces"})` : ""}`
234043
+ ({ subprojectPath, workspacePaths }) => ` ${relative19(this.projectDir, subprojectPath) || ". (Root)"}${workspacePaths.length > 1 || workspacePaths[0] !== "." ? ` (${workspacePaths.length} ${ecosystem === "MAVEN" ? "modules" : "workspaces"})` : ""}`
234040
234044
  ).join("\n")}`;
234041
234045
  }).filter((line) => line).join("\n");
234042
234046
  const detailsString = Object.entries(this.ecosystemToEcosystemManager).map(([ecosystem, manager]) => {
@@ -234044,7 +234048,7 @@ ${subprojects.map(
234044
234048
  if (subprojects.length === 0) return void 0;
234045
234049
  const subprojectsString = subprojects.map(({ subprojectPath, workspacePaths, packageManagerName }) => {
234046
234050
  if (workspacePaths.length === 1 && workspacePaths[0] === ".") return void 0;
234047
- return ` ${relative18(this.projectDir, subprojectPath) || ". (Root)"}
234051
+ return ` ${relative19(this.projectDir, subprojectPath) || ". (Root)"}
234048
234052
  ${workspacePaths.map((ws) => ` ${ws === "." ? ". (Root)" : ws} - ${packageManagerName}`).join("\n")}`;
234049
234053
  }).filter((line) => line).join("\n");
234050
234054
  if (!subprojectsString) return void 0;
@@ -234200,7 +234204,7 @@ ${Array.from(upgrades).map(([idx, upgradeVersion]) => ` ${prettyPrintPurlUpgrade
234200
234204
  warn: "\u26A0\uFE0F",
234201
234205
  error: "\u274C"
234202
234206
  };
234203
- logger.info(`${statusIcons[update3.status]} ${update3.message} \u2500 ${relative19(rootDir, resolve40(rootDir, update3.file))}`);
234207
+ logger.info(`${statusIcons[update3.status]} ${update3.message} \u2500 ${relative20(rootDir, resolve40(rootDir, update3.file))}`);
234204
234208
  update3.artifacts.forEach((idx, i7) => {
234205
234209
  logger.info(`${" ".repeat(3)}${i7 === update3.artifacts.length - 1 ? "\u2514\u2500" : "\u251C\u2500"} ${prettyPrintSocketFactArtifactUpgrade(artifacts[idx], upgrades2.get(idx))}`);
234206
234210
  });
@@ -234254,7 +234258,7 @@ ${Array.from(upgrades).map(([idx, upgradeVersion]) => ` ${prettyPrintPurlUpgrade
234254
234258
  const subprojectPromiseQueue = new PromiseQueue(Number(options.concurrency));
234255
234259
  supportedSubprojects.forEach((subproject) => {
234256
234260
  subprojectPromiseQueue.enqueueTask(async () => {
234257
- const workspacePathsMatchingGlob = subproject.workspacePaths.filter((wsPath) => wsFilter(relative19(rootDir, resolve40(rootDir, subproject.subprojectPath, wsPath)) || "."));
234261
+ const workspacePathsMatchingGlob = subproject.workspacePaths.filter((wsPath) => wsFilter(relative20(rootDir, resolve40(rootDir, subproject.subprojectPath, wsPath)) || "."));
234258
234262
  if (workspacePathsMatchingGlob.length === 0)
234259
234263
  return;
234260
234264
  const filterDescription = options.include !== void 0 || options.exclude !== void 0 ? `matching filters ${options.include ? `include: [${options.include.join(", ")}]` : ""}${options.include && options.exclude ? " " : ""}${options.exclude ? `exclude: [${options.exclude.join(", ")}]` : ""}` : "";
@@ -234296,7 +234300,7 @@ ${workspacePathsMatchingGlob.map((wsPath) => ` ${wsPath}`).join("\n")}`);
234296
234300
  logger.info(`No dependencies matching upgrade specs found for subproject ${subproject.subprojectPath}`);
234297
234301
  return;
234298
234302
  }
234299
- await applySecurityFixes(subproject.packageManagerName, rootDir, relative19(rootDir, subproject.subprojectPath) || ".", otherModulesCommunicator, workspaceToFixes, fixingData, signalFixApplied);
234303
+ await applySecurityFixes(subproject.packageManagerName, rootDir, relative20(rootDir, subproject.subprojectPath) || ".", otherModulesCommunicator, workspaceToFixes, fixingData, signalFixApplied);
234300
234304
  });
234301
234305
  });
234302
234306
  await subprojectPromiseQueue.onIdle();
@@ -234623,8 +234627,8 @@ var kleur_default = $;
234623
234627
 
234624
234628
  // dist/cli-core.js
234625
234629
  var import_lodash15 = __toESM(require_lodash(), 1);
234626
- import os from "os";
234627
- import { join as join34, relative as relative20, resolve as resolve42 } from "path";
234630
+ import os2 from "os";
234631
+ import { join as join34, relative as relative21, resolve as resolve42 } from "path";
234628
234632
 
234629
234633
  // ../utils/src/dashboard-api/shared-api.ts
234630
234634
  var DashboardAPI = class {
@@ -234638,12 +234642,12 @@ var DashboardAPI = class {
234638
234642
  this.coanaAPI = getCoanaAPI();
234639
234643
  this.socketAPI = getSocketAPI();
234640
234644
  }
234641
- async createReport(repoUrl, projectName, cliVersion2, commitSha, branchName, cliOptions, apiKey, cliRunEnv) {
234645
+ async createReport(repoUrl, projectName, cliVersion2, commitSha, branchName, cliOptions, apiKey, cliRunEnv, systemInformation) {
234642
234646
  if (this.disableAnalyticsSharing) {
234643
234647
  return;
234644
234648
  }
234645
234649
  if (this.socketMode) {
234646
- return (await this.socketAPI.createSocketTier1Scan(cliOptions, cliVersion2)).tier1_reachability_scan_id;
234650
+ return (await this.socketAPI.createSocketTier1Scan(cliOptions, cliVersion2, systemInformation)).tier1_reachability_scan_id;
234647
234651
  } else {
234648
234652
  return await this.coanaAPI.createCoanaReport(
234649
234653
  repoUrl,
@@ -234782,6 +234786,31 @@ var DashboardAPI = class {
234782
234786
  }
234783
234787
  };
234784
234788
 
234789
+ // ../utils/src/system-info.ts
234790
+ import os from "os";
234791
+ function getSystemInformation() {
234792
+ const platform10 = process.platform;
234793
+ const info = {
234794
+ operatingSystem: platform10,
234795
+ nodeVersion: process.versions.node,
234796
+ osVersion: os.version(),
234797
+ totalMemory: os.totalmem()
234798
+ };
234799
+ if (platform10 === "linux") {
234800
+ info.kernelVersion = os.release();
234801
+ }
234802
+ if (typeof process.constrainedMemory === "function") {
234803
+ const constrained = process.constrainedMemory();
234804
+ if (constrained === 0) {
234805
+ info.constrainedMemory = "unlimited";
234806
+ }
234807
+ if (constrained > 0) {
234808
+ info.constrainedMemory = constrained;
234809
+ }
234810
+ }
234811
+ return info;
234812
+ }
234813
+
234785
234814
  // ../utils/src/dashboard-api/batched-http-log-streamer.ts
234786
234815
  var BatchedHttpLogStreamer = class {
234787
234816
  reportId;
@@ -238159,10 +238188,10 @@ function compareDocumentPosition(nodeA, nodeB) {
238159
238188
  function uniqueSort(nodes) {
238160
238189
  nodes = nodes.filter((node, i7, arr) => !arr.includes(node, i7 + 1));
238161
238190
  nodes.sort((a4, b) => {
238162
- const relative21 = compareDocumentPosition(a4, b);
238163
- if (relative21 & DocumentPosition.PRECEDING) {
238191
+ const relative22 = compareDocumentPosition(a4, b);
238192
+ if (relative22 & DocumentPosition.PRECEDING) {
238164
238193
  return -1;
238165
- } else if (relative21 & DocumentPosition.FOLLOWING) {
238194
+ } else if (relative22 & DocumentPosition.FOLLOWING) {
238166
238195
  return 1;
238167
238196
  }
238168
238197
  return 0;
@@ -251392,7 +251421,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
251392
251421
  }
251393
251422
 
251394
251423
  // dist/version.js
251395
- var version3 = "14.12.172";
251424
+ var version3 = "14.12.174";
251396
251425
 
251397
251426
  // dist/cli-core.js
251398
251427
  var { mapValues, omit, partition, pickBy: pickBy2 } = import_lodash15.default;
@@ -251533,7 +251562,7 @@ var CliCore = class {
251533
251562
  try {
251534
251563
  if (this.shareWithDashboard && this.apiKey.type === "present" || this.options.socketMode) {
251535
251564
  const gitData = await getGitDataToMetadataIfAvailable(this.rootWorkingDirectory);
251536
- this.reportId = await this.dashboardAPI.createReport(this.options.repoUrl, this.options.projectName, version3, gitData?.sha, gitData?.branchName, omit(this.options, "apiKey", "print-report", "repoUrl", "projectName", "writeReportToFile"), this.apiKey, this.options.runEnv);
251565
+ this.reportId = await this.dashboardAPI.createReport(this.options.repoUrl, this.options.projectName, version3, gitData?.sha, gitData?.branchName, omit(this.options, "apiKey", "print-report", "repoUrl", "projectName", "writeReportToFile"), this.apiKey, this.options.runEnv, getSystemInformation());
251537
251566
  if (this.options.socketMode && this.reportId) {
251538
251567
  const batchedLogStreamer = new BatchedHttpLogStreamer({
251539
251568
  reportId: this.reportId,
@@ -251744,7 +251773,7 @@ var CliCore = class {
251744
251773
  const { reachabilitySupport, traditionalScaSupport, noSupport } = manager.getSubprojectsWithWorkspacePaths();
251745
251774
  await this.dashboardAPI.registerSubprojects([...reachabilitySupport, ...traditionalScaSupport, ...noSupport].map((sp) => ({
251746
251775
  ...sp,
251747
- subprojectPath: relative20(this.rootWorkingDirectory, sp.subprojectPath) || "."
251776
+ subprojectPath: relative21(this.rootWorkingDirectory, sp.subprojectPath) || "."
251748
251777
  })), this.reportId, this.apiKey);
251749
251778
  for (const unsupported of noSupport)
251750
251779
  logger.warn(unsupported.unsupportedMsg);
@@ -251773,7 +251802,7 @@ var CliCore = class {
251773
251802
  await this.spinner.succeed();
251774
251803
  } catch (error) {
251775
251804
  if (this.options.ignoreFailingWorkspaces) {
251776
- const relativeSubprojectPath = relative20(this.rootWorkingDirectory, subprojectAndWsPath.subprojectPath) || ".";
251805
+ const relativeSubprojectPath = relative21(this.rootWorkingDirectory, subprojectAndWsPath.subprojectPath) || ".";
251777
251806
  this.failedSubprojects.push({
251778
251807
  subproject: relativeSubprojectPath,
251779
251808
  error: error.message || "Unknown error"
@@ -251832,7 +251861,7 @@ Subproject: ${subproject}`);
251832
251861
  }
251833
251862
  async updateSpinnerTextOnNewSubproject(subprojectAndWsPath, numberSubprojects, index2) {
251834
251863
  this.spinner.start();
251835
- const relativeSubprojectPath = relative20(this.rootWorkingDirectory, subprojectAndWsPath.subprojectPath) || ".";
251864
+ const relativeSubprojectPath = relative21(this.rootWorkingDirectory, subprojectAndWsPath.subprojectPath) || ".";
251836
251865
  await this.spinner.setText(numberSubprojects > 1 ? `Processing subproject ${relativeSubprojectPath} (${index2 + 1}/${numberSubprojects})${+this.options.concurrency > 1 ? `. May process up to ${+this.options.concurrency - 1} other workspaces in parallel` : ""}` : `Processing ${relativeSubprojectPath}`);
251837
251866
  }
251838
251867
  async initialize() {
@@ -251856,7 +251885,7 @@ Subproject: ${subproject}`);
251856
251885
  "useOnlyPregeneratedSboms"
251857
251886
  ].includes(key) && value2 !== void 0 && value2 !== false;
251858
251887
  }), null, 2));
251859
- logger.debug("available memory: %i MiB", os.freemem() / (1024 * 1024));
251888
+ logger.debug("available memory: %i MiB", os2.freemem() / (1024 * 1024));
251860
251889
  try {
251861
251890
  const limits = await Promise.all([
251862
251891
  ["stack", "-s"],
@@ -251915,7 +251944,7 @@ Subproject: ${subproject}`);
251915
251944
  return workspaceToAugmentedVulnerabilities[workspacePath] !== void 0;
251916
251945
  }).map((workspacePath) => {
251917
251946
  return {
251918
- subprojectPath: relative20(this.rootWorkingDirectory, subprojectPath) || ".",
251947
+ subprojectPath: relative21(this.rootWorkingDirectory, subprojectPath) || ".",
251919
251948
  workspacePath,
251920
251949
  directDependencies: projectInfo[workspacePath].dataForAnalysis.directDependenciesMap ?? {},
251921
251950
  vulnerabilities: workspaceToAugmentedVulnerabilities[workspacePath],
@@ -252148,7 +252177,7 @@ Subproject: ${subproject}`);
252148
252177
  async sendProgress(type, isStartEvent, subprojectPath, workspacePath) {
252149
252178
  await this.dashboardAPI.registerCLIProgress({
252150
252179
  type,
252151
- ...subprojectPath ? { subprojectPath: relative20(this.rootWorkingDirectory, subprojectPath) || "." } : {},
252180
+ ...subprojectPath ? { subprojectPath: relative21(this.rootWorkingDirectory, subprojectPath) || "." } : {},
252152
252181
  ...workspacePath ? { workspacePath } : {}
252153
252182
  }, isStartEvent, this.reportId, this.apiKey);
252154
252183
  }
@@ -252204,7 +252233,7 @@ Subproject: ${subproject}`);
252204
252233
  dependencyTree: workspaceToPlainDependencyTree[workspacePath],
252205
252234
  ecosystem: workspaceToPlainDependencyTree[workspacePath].ecosystem ?? "NPM",
252206
252235
  workspacePath,
252207
- subprojectPath: relative20(rootWorkingDirectory, subprojectPath) || "."
252236
+ subprojectPath: relative21(rootWorkingDirectory, subprojectPath) || "."
252208
252237
  }));
252209
252238
  if (this.options.socketMode) {
252210
252239
  this.reportDependencyTrees = workspacePaths.map((workspacePath) => ({
@@ -252212,7 +252241,7 @@ Subproject: ${subproject}`);
252212
252241
  dependencyTree: projectInfo[workspacePath].dataForAnalysis.data.dependencyTree,
252213
252242
  ecosystem: projectInfo[workspacePath].dataForAnalysis.data.dependencyTree.ecosystem ?? "NPM",
252214
252243
  workspacePath,
252215
- subprojectPath: relative20(rootWorkingDirectory, subprojectPath) || "."
252244
+ subprojectPath: relative21(rootWorkingDirectory, subprojectPath) || "."
252216
252245
  }));
252217
252246
  }
252218
252247
  if (this.shareWithDashboard)
@@ -252228,7 +252257,7 @@ Subproject: ${subproject}`);
252228
252257
  } catch (e) {
252229
252258
  logger.error(`Scanning for vulnerabilities failed for subproject ${subprojectPath} in workspace ${workspacePath}`);
252230
252259
  if (this.options.ignoreFailingWorkspaces) {
252231
- const relativeSubprojectPath = relative20(this.rootWorkingDirectory, subprojectPath) || ".";
252260
+ const relativeSubprojectPath = relative21(this.rootWorkingDirectory, subprojectPath) || ".";
252232
252261
  this.failedWorkspaces.push({
252233
252262
  subproject: relativeSubprojectPath,
252234
252263
  workspace: workspacePath,
@@ -252247,7 +252276,7 @@ Subproject: ${subproject}`);
252247
252276
  }
252248
252277
  };
252249
252278
  function getRelativeSubprojectPath(subprojectPath, projectDir) {
252250
- return relative20(projectDir, subprojectPath) || ".";
252279
+ return relative21(projectDir, subprojectPath) || ".";
252251
252280
  }
252252
252281
  function getDependencyType(vulnChainDetails, codeAwareScanResults, directDependencies, reachability) {
252253
252282
  if (reachability === "UNREACHABLE" || reachability === "UNKNOWN") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.12.172",
3
+ "version": "14.12.174",
4
4
  "description": "Coana CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -80432,13 +80432,14 @@ function getAuthHeaders() {
80432
80432
  Authorization: `Basic ${Buffer.from(`${process.env.SOCKET_CLI_API_TOKEN}:`).toString("base64")}`
80433
80433
  };
80434
80434
  }
80435
- async function createSocketTier1Scan(cliOptions, coanaCliVersion) {
80435
+ async function createSocketTier1Scan(cliOptions, coanaCliVersion, systemInformation) {
80436
80436
  try {
80437
80437
  const url2 = getSocketApiUrl("tier1-reachability-scan");
80438
80438
  const data2 = {
80439
80439
  cli_options: cliOptions,
80440
80440
  coana_cli_version: coanaCliVersion,
80441
- socket_cli_version: process.env.SOCKET_CLI_VERSION
80441
+ socket_cli_version: process.env.SOCKET_CLI_VERSION,
80442
+ system_information: systemInformation
80442
80443
  };
80443
80444
  return (await axios2.put(url2, data2, { headers: getAuthHeaders() })).data;
80444
80445
  } catch (error) {
@@ -80727,12 +80728,12 @@ var DashboardAPI = class {
80727
80728
  this.coanaAPI = getCoanaAPI();
80728
80729
  this.socketAPI = getSocketAPI();
80729
80730
  }
80730
- async createReport(repoUrl, projectName, cliVersion2, commitSha, branchName, cliOptions, apiKey3, cliRunEnv) {
80731
+ async createReport(repoUrl, projectName, cliVersion2, commitSha, branchName, cliOptions, apiKey3, cliRunEnv, systemInformation) {
80731
80732
  if (this.disableAnalyticsSharing) {
80732
80733
  return;
80733
80734
  }
80734
80735
  if (this.socketMode) {
80735
- return (await this.socketAPI.createSocketTier1Scan(cliOptions, cliVersion2)).tier1_reachability_scan_id;
80736
+ return (await this.socketAPI.createSocketTier1Scan(cliOptions, cliVersion2, systemInformation)).tier1_reachability_scan_id;
80736
80737
  } else {
80737
80738
  return await this.coanaAPI.createCoanaReport(
80738
80739
  repoUrl,