@coana-tech/cli 14.12.172 → 14.12.173

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
  }
@@ -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) => {
@@ -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) {
@@ -234623,7 +234624,7 @@ var kleur_default = $;
234623
234624
 
234624
234625
  // dist/cli-core.js
234625
234626
  var import_lodash15 = __toESM(require_lodash(), 1);
234626
- import os from "os";
234627
+ import os2 from "os";
234627
234628
  import { join as join34, relative as relative20, resolve as resolve42 } from "path";
234628
234629
 
234629
234630
  // ../utils/src/dashboard-api/shared-api.ts
@@ -234638,12 +234639,12 @@ var DashboardAPI = class {
234638
234639
  this.coanaAPI = getCoanaAPI();
234639
234640
  this.socketAPI = getSocketAPI();
234640
234641
  }
234641
- async createReport(repoUrl, projectName, cliVersion2, commitSha, branchName, cliOptions, apiKey, cliRunEnv) {
234642
+ async createReport(repoUrl, projectName, cliVersion2, commitSha, branchName, cliOptions, apiKey, cliRunEnv, systemInformation) {
234642
234643
  if (this.disableAnalyticsSharing) {
234643
234644
  return;
234644
234645
  }
234645
234646
  if (this.socketMode) {
234646
- return (await this.socketAPI.createSocketTier1Scan(cliOptions, cliVersion2)).tier1_reachability_scan_id;
234647
+ return (await this.socketAPI.createSocketTier1Scan(cliOptions, cliVersion2, systemInformation)).tier1_reachability_scan_id;
234647
234648
  } else {
234648
234649
  return await this.coanaAPI.createCoanaReport(
234649
234650
  repoUrl,
@@ -234782,6 +234783,31 @@ var DashboardAPI = class {
234782
234783
  }
234783
234784
  };
234784
234785
 
234786
+ // ../utils/src/system-info.ts
234787
+ import os from "os";
234788
+ function getSystemInformation() {
234789
+ const platform10 = process.platform;
234790
+ const info = {
234791
+ operatingSystem: platform10,
234792
+ nodeVersion: process.versions.node,
234793
+ osVersion: os.version(),
234794
+ totalMemory: os.totalmem()
234795
+ };
234796
+ if (platform10 === "linux") {
234797
+ info.kernelVersion = os.release();
234798
+ }
234799
+ if (typeof process.constrainedMemory === "function") {
234800
+ const constrained = process.constrainedMemory();
234801
+ if (constrained === 0) {
234802
+ info.constrainedMemory = "unlimited";
234803
+ }
234804
+ if (constrained > 0) {
234805
+ info.constrainedMemory = constrained;
234806
+ }
234807
+ }
234808
+ return info;
234809
+ }
234810
+
234785
234811
  // ../utils/src/dashboard-api/batched-http-log-streamer.ts
234786
234812
  var BatchedHttpLogStreamer = class {
234787
234813
  reportId;
@@ -251392,7 +251418,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
251392
251418
  }
251393
251419
 
251394
251420
  // dist/version.js
251395
- var version3 = "14.12.172";
251421
+ var version3 = "14.12.173";
251396
251422
 
251397
251423
  // dist/cli-core.js
251398
251424
  var { mapValues, omit, partition, pickBy: pickBy2 } = import_lodash15.default;
@@ -251533,7 +251559,7 @@ var CliCore = class {
251533
251559
  try {
251534
251560
  if (this.shareWithDashboard && this.apiKey.type === "present" || this.options.socketMode) {
251535
251561
  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);
251562
+ 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
251563
  if (this.options.socketMode && this.reportId) {
251538
251564
  const batchedLogStreamer = new BatchedHttpLogStreamer({
251539
251565
  reportId: this.reportId,
@@ -251856,7 +251882,7 @@ Subproject: ${subproject}`);
251856
251882
  "useOnlyPregeneratedSboms"
251857
251883
  ].includes(key) && value2 !== void 0 && value2 !== false;
251858
251884
  }), null, 2));
251859
- logger.debug("available memory: %i MiB", os.freemem() / (1024 * 1024));
251885
+ logger.debug("available memory: %i MiB", os2.freemem() / (1024 * 1024));
251860
251886
  try {
251861
251887
  const limits = await Promise.all([
251862
251888
  ["stack", "-s"],
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.173",
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,