@mablhq/mabl-cli 1.56.2 → 1.56.6

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/util/analytics.js CHANGED
@@ -95,6 +95,8 @@ async function trackMablTestsRunnerEvent(eventName, resultsMap) {
95
95
  }
96
96
  exports.trackMablTestsRunnerEvent = trackMablTestsRunnerEvent;
97
97
  function trackEvent(event, userId, properties) {
98
+ var _a, _b, _c;
99
+ const cpuInfo = (_a = os.cpus()) !== null && _a !== void 0 ? _a : [];
98
100
  analytics.track({
99
101
  userId,
100
102
  event,
@@ -110,6 +112,14 @@ function trackEvent(event, userId, properties) {
110
112
  },
111
113
  groupId: properties.workspaceId,
112
114
  userAgent: getUserAgent(),
115
+ userAgentData: {
116
+ cpuCount: cpuInfo.length,
117
+ cpuType: (_b = cpuInfo === null || cpuInfo === void 0 ? void 0 : cpuInfo[0]) === null || _b === void 0 ? void 0 : _b.model,
118
+ cpuSpeed: (_c = cpuInfo === null || cpuInfo === void 0 ? void 0 : cpuInfo[0]) === null || _c === void 0 ? void 0 : _c.speed,
119
+ osArch: os.arch(),
120
+ memFree: os.freemem(),
121
+ memTotal: os.totalmem(),
122
+ },
113
123
  },
114
124
  properties,
115
125
  });