@shopify/create-app 4.6.1 → 4.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/{analytics-HXZNGNCN.js → analytics-3C6IM5OH.js} +16 -13
  2. package/dist/analytics-TKGJW4CI.js +44 -0
  3. package/dist/{chunk-TNZEM7JJ.js → chunk-3CEBU7F7.js} +18 -15
  4. package/dist/{chunk-K5UHKI43.js → chunk-3WA6JLES.js} +33 -58
  5. package/dist/{chunk-JK6PBDEW.js → chunk-7YZDH26Z.js} +17 -17
  6. package/dist/chunk-ARIPXAMF.js +179 -0
  7. package/dist/{chunk-3JSJSGAQ.js → chunk-CCB7HUXM.js} +2 -2
  8. package/dist/chunk-CM6ALOD7.js +32 -0
  9. package/dist/{chunk-K5NLRHZR.js → chunk-E43EDJOG.js} +4 -4
  10. package/dist/{chunk-ZUKA5LQU.js → chunk-EOOWFAUQ.js} +4509 -7671
  11. package/dist/chunk-HNIAZN6U.js +14 -0
  12. package/dist/{chunk-CMK3RV4O.js → chunk-KITZ5RLX.js} +9 -6
  13. package/dist/{chunk-QK2IQEBY.js → chunk-MVIZLNDV.js} +2 -2
  14. package/dist/{chunk-ZGSDAUKG.js → chunk-NTRP5UPL.js} +21809 -346
  15. package/dist/{chunk-N7J64MYF.js → chunk-OHAG6RQT.js} +27 -18
  16. package/dist/chunk-OMR2LYUV.js +301 -0
  17. package/dist/chunk-PLO3ASNN.js +1391 -0
  18. package/dist/{chunk-ZLYYWQWW.js → chunk-SBZZKBLZ.js} +3 -3
  19. package/dist/{chunk-VLCFLRJB.js → chunk-TT7YBXNU.js} +2 -2
  20. package/dist/chunk-UW2WSGNC.js +7350 -0
  21. package/dist/{conf-store-ZYB6IGB7.js → conf-store-PMOFWF3V.js} +9 -7
  22. package/dist/{custom-oclif-loader-MNCB3QFM.js → custom-oclif-loader-HTLL62HO.js} +15 -15
  23. package/dist/{deprecations-FOMUQSMA.js → deprecations-XSONJDPJ.js} +12 -9
  24. package/dist/{environments-SWXYO6KQ.js → environments-7M5VG3ZO.js} +13 -10
  25. package/dist/{error-handler-PXVIL3GI.js → error-handler-OSY5Z5EY.js} +16 -13
  26. package/dist/{fs-FVYWMVWY.js → fs-QKWQO24G.js} +4 -3
  27. package/dist/hooks/postrun.js +5 -4
  28. package/dist/hooks/prerun.js +26 -8
  29. package/dist/index.js +2007 -1818
  30. package/dist/index.test.js +8 -8
  31. package/dist/{is-global-QP5DA2PW.js → is-global-27HWUS75.js} +4 -3
  32. package/dist/{lib-SEAHPNPA.js → lib-XCYUJYSO.js} +3 -3
  33. package/dist/{local-FQ2FNAKK.js → local-ELO22BKI.js} +3 -2
  34. package/dist/{metadata-7RRKVERI.js → metadata-4DNOT3O4.js} +4 -3
  35. package/dist/{node-package-manager-7MTYEDAO.js → node-package-manager-TZ4UXLZO.js} +14 -11
  36. package/dist/{notifications-system-GHCK5E2U.js → notifications-system-I4ONBO77.js} +17 -14
  37. package/dist/os-7AHYIADA.js +19 -0
  38. package/dist/{output-7VC5AJM7.js → output-KF5RQHUT.js} +4 -3
  39. package/dist/{system-OTGPJVTA.js → system-J2KVDFSW.js} +14 -9
  40. package/dist/tsconfig.tsbuildinfo +1 -1
  41. package/dist/{ui-3H6HVYPD.js → ui-KTYAOJV5.js} +12 -9
  42. package/dist/{upgrade-AYIRDOVJ.js → upgrade-YR43DQNI.js} +23 -20
  43. package/dist/{version-CCMJSEAI.js → version-CS66ODDA.js} +13 -10
  44. package/dist/{version-OHC3XUOI.js → version-XTE3XEL6.js} +2 -2
  45. package/oclif.manifest.json +11 -7
  46. package/package.json +3 -3
  47. package/dist/analytics-GP57RR6R.js +0 -39
  48. package/dist/chunk-BPIA4T3X.js +0 -655
  49. package/dist/chunk-HNMF25KI.js +0 -5632
  50. package/dist/chunk-T446SGE5.js +0 -21746
  51. package/dist/is-wsl-63MHD6QC.js +0 -65
@@ -2,32 +2,32 @@ import {
2
2
  external_exports,
3
3
  fetch,
4
4
  jsonOutputEnabled
5
- } from "./chunk-ZGSDAUKG.js";
6
- import {
7
- versionSatisfies
8
- } from "./chunk-K5UHKI43.js";
5
+ } from "./chunk-NTRP5UPL.js";
9
6
  import {
10
7
  CLI_KIT_VERSION
11
- } from "./chunk-VLCFLRJB.js";
8
+ } from "./chunk-TT7YBXNU.js";
9
+ import {
10
+ versionSatisfies
11
+ } from "./chunk-3WA6JLES.js";
12
12
  import {
13
13
  cacheRetrieve,
14
14
  cacheStore
15
- } from "./chunk-CMK3RV4O.js";
15
+ } from "./chunk-KITZ5RLX.js";
16
16
  import {
17
17
  exec,
18
18
  renderError,
19
19
  renderInfo,
20
20
  renderWarning
21
- } from "./chunk-HNMF25KI.js";
21
+ } from "./chunk-EOOWFAUQ.js";
22
22
  import {
23
23
  AbortSilentError
24
- } from "./chunk-T446SGE5.js";
24
+ } from "./chunk-ARIPXAMF.js";
25
25
  import {
26
26
  outputDebug
27
- } from "./chunk-ZUKA5LQU.js";
27
+ } from "./chunk-UW2WSGNC.js";
28
28
  import {
29
29
  isTruthy
30
- } from "./chunk-BPIA4T3X.js";
30
+ } from "./chunk-HNIAZN6U.js";
31
31
  import {
32
32
  init_cjs_shims
33
33
  } from "./chunk-3XNI6LP4.js";
@@ -39,7 +39,7 @@ init_cjs_shims();
39
39
  init_cjs_shims();
40
40
  var _globalContext;
41
41
  function getGlobalContext() {
42
- return _globalContext ?? (_globalContext = { currentCommandId: "" }), _globalContext;
42
+ return _globalContext ??= { currentCommandId: "" }, _globalContext;
43
43
  }
44
44
  function getCurrentCommandId() {
45
45
  return getGlobalContext().currentCommandId;
@@ -56,10 +56,20 @@ var URL = "https://cdn.shopify.com/static/cli/notifications.json", EMPTY_CACHE_M
56
56
  "app:init",
57
57
  "theme:init",
58
58
  "hydrogen:init",
59
- "cache:clear"
59
+ "cache:clear",
60
+ "send-analytics"
60
61
  ];
61
62
  function url() {
62
- return process.env.SHOPIFY_CLI_NOTIFICATIONS_URL ?? URL;
63
+ let envUrl = process.env.SHOPIFY_CLI_NOTIFICATIONS_URL;
64
+ if (envUrl)
65
+ try {
66
+ if (new globalThis.URL(envUrl).protocol === "https:")
67
+ return envUrl;
68
+ outputDebug(`The notifications URL provided via SHOPIFY_CLI_NOTIFICATIONS_URL (${envUrl}) is not secure (https). Falling back to default.`);
69
+ } catch {
70
+ outputDebug(`The notifications URL provided via SHOPIFY_CLI_NOTIFICATIONS_URL (${envUrl}) is not a valid URL. Falling back to default.`);
71
+ }
72
+ return URL;
63
73
  }
64
74
  var NotificationSchema = external_exports.object({
65
75
  id: external_exports.string(),
@@ -95,7 +105,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
95
105
  throw new AbortSilentError();
96
106
  let errorMessage = `Error showing notifications: ${error.message}`;
97
107
  outputDebug(errorMessage);
98
- let { sendErrorToBugsnag } = await import("./error-handler-PXVIL3GI.js");
108
+ let { sendErrorToBugsnag } = await import("./error-handler-OSY5Z5EY.js");
99
109
  await sendErrorToBugsnag(errorMessage, "unexpected_error");
100
110
  }
101
111
  }
@@ -148,9 +158,9 @@ async function cacheNotifications(notifications) {
148
158
  cacheStore(`notifications-${url()}`, notifications), outputDebug(`Notifications from ${url()} stored in the cache`);
149
159
  }
150
160
  function fetchNotificationsInBackground(currentCommand, argv = process.argv, environment = process.env) {
151
- if (skipNotifications(currentCommand, environment) || !argv[0] || !argv[1])
161
+ if (skipNotifications(currentCommand, environment) || !argv[1])
152
162
  return;
153
- let nodeBinary = argv[0], args = [argv[1], "notifications", "list", "--ignore-errors"];
163
+ let nodeBinary = process.execPath, args = [argv[1], "notifications", "list", "--ignore-errors"];
154
164
  exec(nodeBinary, args, {
155
165
  background: !0,
156
166
  env: { ...process.env, SHOPIFY_CLI_NO_ANALYTICS: "1" },
@@ -201,7 +211,6 @@ function stringifyFilters(notification) {
201
211
  }
202
212
 
203
213
  export {
204
- getCurrentCommandId,
205
214
  setCurrentCommandId,
206
215
  showNotificationsIfNeeded,
207
216
  getNotifications,
@@ -210,4 +219,4 @@ export {
210
219
  filterNotifications,
211
220
  stringifyFilters
212
221
  };
213
- //# sourceMappingURL=chunk-N7J64MYF.js.map
222
+ //# sourceMappingURL=chunk-OHAG6RQT.js.map
@@ -0,0 +1,301 @@
1
+ import {
2
+ isTruthy
3
+ } from "./chunk-HNIAZN6U.js";
4
+ import {
5
+ joinPath
6
+ } from "./chunk-C3J4HVUN.js";
7
+ import {
8
+ init_cjs_shims
9
+ } from "./chunk-3XNI6LP4.js";
10
+
11
+ // ../cli-kit/dist/public/node/context/local.js
12
+ init_cjs_shims();
13
+
14
+ // ../cli-kit/dist/private/node/context/utilities.js
15
+ init_cjs_shims();
16
+ function isSet(variable) {
17
+ return !(variable === void 0 || variable.trim() === "");
18
+ }
19
+ function getCIMetadata(envName, envs) {
20
+ switch (envName) {
21
+ case "bitbucket":
22
+ return {
23
+ branch: envs.BITBUCKET_BRANCH,
24
+ build: envs.BITBUCKET_BUILD_NUMBER,
25
+ commitSha: envs.BITBUCKET_COMMIT,
26
+ run: envs.BITBUCKET_BUILD_NUMBER,
27
+ url: `https://bitbucket.org/${envs.BITBUCKET_WORKSPACE}/${envs.BITBUCKET_REPO_SLUG}/pipelines/results/${envs.BITBUCKET_BUILD_NUMBER}`
28
+ };
29
+ case "circleci":
30
+ return {
31
+ actor: envs.CIRCLE_USERNAME,
32
+ branch: envs.CIRCLE_BRANCH,
33
+ build: envs.CIRCLE_BUILD_NUM,
34
+ commitSha: envs.CIRCLE_SHA1,
35
+ run: envs.CIRCLE_WORKFLOW_ID,
36
+ url: envs.CIRCLE_BUILD_URL
37
+ };
38
+ case "github":
39
+ return {
40
+ actor: envs.GITHUB_ACTOR,
41
+ attempt: envs.GITHUB_RUN_ATTEMPT,
42
+ branch: envs.GITHUB_REF_NAME,
43
+ build: envs.GITHUB_RUN_ID,
44
+ commitSha: envs.GITHUB_SHA,
45
+ run: envs.GITHUB_RUN_ID,
46
+ runNumber: envs.GITHUB_RUN_NUMBER,
47
+ url: `${envs.GITHUB_SERVER_URL}/${envs.GITHUB_REPOSITORY}/actions/runs/${envs.GITHUB_RUN_ID}`
48
+ };
49
+ case "gitlab":
50
+ return {
51
+ actor: envs.GITLAB_USER_LOGIN,
52
+ branch: envs.CI_COMMIT_REF_NAME,
53
+ build: envs.CI_PIPELINE_ID,
54
+ commitSha: envs.CI_COMMIT_SHA,
55
+ commitMessage: envs.CI_COMMIT_MESSAGE,
56
+ run: envs.CI_RUNNER_ID,
57
+ url: envs.CI_PIPELINE_URL
58
+ };
59
+ case "buildkite":
60
+ return {
61
+ branch: envs.BUILDKITE_BRANCH,
62
+ build: envs.BUILDKITE_BUILD_NUMBER,
63
+ commitSha: envs.BUILDKITE_COMMIT,
64
+ commitMessage: envs.BUILDKITE_MESSAGE,
65
+ run: envs.BUILDKITE_BUILD_NUMBER,
66
+ url: envs.BUILDKITE_BUILD_URL
67
+ };
68
+ default:
69
+ return {};
70
+ }
71
+ }
72
+
73
+ // ../cli-kit/dist/private/node/constants.js
74
+ init_cjs_shims();
75
+
76
+ // ../../node_modules/.pnpm/env-paths@3.0.0/node_modules/env-paths/index.js
77
+ init_cjs_shims();
78
+ import path from "node:path";
79
+ import os from "node:os";
80
+ import process2 from "node:process";
81
+ var homedir = os.homedir(), tmpdir = os.tmpdir(), { env } = process2, macos = (name) => {
82
+ let library = path.join(homedir, "Library");
83
+ return {
84
+ data: path.join(library, "Application Support", name),
85
+ config: path.join(library, "Preferences", name),
86
+ cache: path.join(library, "Caches", name),
87
+ log: path.join(library, "Logs", name),
88
+ temp: path.join(tmpdir, name)
89
+ };
90
+ }, windows = (name) => {
91
+ let appData = env.APPDATA || path.join(homedir, "AppData", "Roaming"), localAppData = env.LOCALAPPDATA || path.join(homedir, "AppData", "Local");
92
+ return {
93
+ // Data/config/cache/log are invented by me as Windows isn't opinionated about this
94
+ data: path.join(localAppData, name, "Data"),
95
+ config: path.join(appData, name, "Config"),
96
+ cache: path.join(localAppData, name, "Cache"),
97
+ log: path.join(localAppData, name, "Log"),
98
+ temp: path.join(tmpdir, name)
99
+ };
100
+ }, linux = (name) => {
101
+ let username = path.basename(homedir);
102
+ return {
103
+ data: path.join(env.XDG_DATA_HOME || path.join(homedir, ".local", "share"), name),
104
+ config: path.join(env.XDG_CONFIG_HOME || path.join(homedir, ".config"), name),
105
+ cache: path.join(env.XDG_CACHE_HOME || path.join(homedir, ".cache"), name),
106
+ // https://wiki.debian.org/XDGBaseDirectorySpecification#state
107
+ log: path.join(env.XDG_STATE_HOME || path.join(homedir, ".local", "state"), name),
108
+ temp: path.join(tmpdir, username, name)
109
+ };
110
+ };
111
+ function envPaths(name, { suffix = "nodejs" } = {}) {
112
+ if (typeof name != "string")
113
+ throw new TypeError(`Expected a string, got ${typeof name}`);
114
+ return suffix && (name += `-${suffix}`), process2.platform === "darwin" ? macos(name) : process2.platform === "win32" ? windows(name) : linux(name);
115
+ }
116
+
117
+ // ../cli-kit/dist/private/node/constants.js
118
+ var identifier = "shopify-cli", cacheFolder = () => process.env.XDG_CACHE_HOME ? process.env.XDG_CACHE_HOME : envPaths(identifier).cache;
119
+ var environmentVariables = {
120
+ alwaysLogAnalytics: "SHOPIFY_CLI_ALWAYS_LOG_ANALYTICS",
121
+ alwaysLogMetrics: "SHOPIFY_CLI_ALWAYS_LOG_METRICS",
122
+ deviceAuth: "SHOPIFY_CLI_DEVICE_AUTH",
123
+ doctor: "SHOPIFY_CLI_DOCTOR",
124
+ enableCliRedirect: "SHOPIFY_CLI_ENABLE_CLI_REDIRECT",
125
+ env: "SHOPIFY_CLI_ENV",
126
+ noAnalytics: "SHOPIFY_CLI_NO_ANALYTICS",
127
+ optOutInstrumentation: "OPT_OUT_INSTRUMENTATION",
128
+ appAutomationToken: "SHOPIFY_APP_AUTOMATION_TOKEN",
129
+ partnersToken: "SHOPIFY_CLI_PARTNERS_TOKEN",
130
+ runAsUser: "SHOPIFY_RUN_AS_USER",
131
+ serviceEnv: "SHOPIFY_SERVICE_ENV",
132
+ skipCliRedirect: "SHOPIFY_CLI_SKIP_CLI_REDIRECT",
133
+ spinInstance: "SPIN_INSTANCE",
134
+ themeToken: "SHOPIFY_CLI_THEME_TOKEN",
135
+ unitTest: "SHOPIFY_UNIT_TEST",
136
+ verbose: "SHOPIFY_FLAG_VERBOSE",
137
+ // Variables to detect if the CLI is running in a cloud environment
138
+ codespaces: "CODESPACES",
139
+ codespaceName: "CODESPACE_NAME",
140
+ codespacePortForwardingDomain: "GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN",
141
+ gitpod: "GITPOD_WORKSPACE_URL",
142
+ cloudShell: "CLOUD_SHELL",
143
+ spinAppPort: "SERVER_PORT",
144
+ spinAppHost: "SPIN_APP_HOST",
145
+ organization: "SHOPIFY_CLI_ORGANIZATION",
146
+ identityToken: "SHOPIFY_CLI_IDENTITY_TOKEN",
147
+ refreshToken: "SHOPIFY_CLI_REFRESH_TOKEN",
148
+ otelURL: "SHOPIFY_CLI_OTEL_EXPORTER_OTLP_ENDPOINT",
149
+ themeKitAccessDomain: "SHOPIFY_CLI_THEME_KIT_ACCESS_DOMAIN",
150
+ json: "SHOPIFY_FLAG_JSON",
151
+ skipNetworkLevelRetry: "SHOPIFY_CLI_SKIP_NETWORK_LEVEL_RETRY",
152
+ maxRequestTimeForNetworkCalls: "SHOPIFY_CLI_MAX_REQUEST_TIME_FOR_NETWORK_CALLS",
153
+ disableImportScanning: "SHOPIFY_CLI_DISABLE_IMPORT_SCANNING"
154
+ }, defaultThemeKitAccessDomain = "theme-kit-access.shopifyapps.com", systemEnvironmentVariables = {
155
+ backendPort: "BACKEND_PORT"
156
+ }, pathConstants = {
157
+ executables: {
158
+ dev: "/opt/dev/bin/dev"
159
+ },
160
+ directories: {
161
+ cache: {
162
+ path: () => cacheFolder(),
163
+ vendor: {
164
+ path: () => joinPath(cacheFolder(), "vendor"),
165
+ binaries: () => joinPath(cacheFolder(), "vendor", "binaries")
166
+ }
167
+ }
168
+ }
169
+ }, sessionConstants = {
170
+ expirationTimeMarginInMinutes: 4
171
+ }, bugsnagApiKey = "9e1e6889176fd0c795d5c659225e0fae", reportingRateLimit = { limit: 300, timeout: { days: 1 } }, themeKitAccessDomain = process.env[environmentVariables.themeKitAccessDomain] ?? defaultThemeKitAccessDomain;
172
+
173
+ // ../cli-kit/dist/public/node/context/local.js
174
+ import { randomUUID } from "crypto";
175
+ import { homedir as homedir2, networkInterfaces } from "os";
176
+ async function lazyFileExists(path2) {
177
+ let { fileExists } = await import("./fs-QKWQO24G.js");
178
+ return fileExists(path2);
179
+ }
180
+ async function lazyExec(command, args) {
181
+ let { exec } = await import("./system-J2KVDFSW.js");
182
+ await exec(command, args);
183
+ }
184
+ function isTerminalInteractive() {
185
+ return !!(process.stdout.isTTY && process.env.TERM !== "dumb" && !("CI" in process.env));
186
+ }
187
+ function homeDirectory() {
188
+ return homedir2();
189
+ }
190
+ var memoizedIsVerbose, memoizedIsUnitTest;
191
+ function isDevelopment(env2 = process.env) {
192
+ return env2[environmentVariables.env] === "development";
193
+ }
194
+ function isVerbose(env2 = process.env) {
195
+ return env2 === process.env ? memoizedIsVerbose ??= isTruthy(env2[environmentVariables.verbose]) || process.argv.includes("--verbose") : isTruthy(env2[environmentVariables.verbose]) || process.argv.includes("--verbose");
196
+ }
197
+ async function isShopify(env2 = process.env) {
198
+ return Object.prototype.hasOwnProperty.call(env2, environmentVariables.runAsUser) ? !isTruthy(env2[environmentVariables.runAsUser]) : await lazyFileExists(pathConstants.executables.dev);
199
+ }
200
+ function isUnitTest(env2 = process.env) {
201
+ return env2 === process.env ? memoizedIsUnitTest ??= isTruthy(env2[environmentVariables.unitTest]) : isTruthy(env2[environmentVariables.unitTest]);
202
+ }
203
+ function analyticsDisabled(env2 = process.env) {
204
+ return isTruthy(env2[environmentVariables.noAnalytics]) || isTruthy(env2[environmentVariables.optOutInstrumentation]) || isDevelopment(env2);
205
+ }
206
+ function alwaysLogAnalytics(env2 = process.env) {
207
+ return isTruthy(env2[environmentVariables.alwaysLogAnalytics]);
208
+ }
209
+ function alwaysLogMetrics(env2 = process.env) {
210
+ return isTruthy(env2[environmentVariables.alwaysLogMetrics]);
211
+ }
212
+ function canRunDoctorRelease(env2 = process.env) {
213
+ return isTruthy(env2[environmentVariables.doctor]);
214
+ }
215
+ function gitpodURL(env2 = process.env) {
216
+ return env2[environmentVariables.gitpod];
217
+ }
218
+ function codespaceURL(env2 = process.env) {
219
+ return env2[environmentVariables.codespaceName];
220
+ }
221
+ function codespacePortForwardingDomain(env2 = process.env) {
222
+ return env2[environmentVariables.codespacePortForwardingDomain];
223
+ }
224
+ function isCloudEnvironment(env2 = process.env) {
225
+ return cloudEnvironment(env2).platform !== "localhost";
226
+ }
227
+ function themeToken(env2 = process.env) {
228
+ return env2[environmentVariables.themeToken];
229
+ }
230
+ function cloudEnvironment(env2 = process.env) {
231
+ return isSet(env2[environmentVariables.codespaces]) ? { platform: "codespaces", editor: !0 } : isSet(env2[environmentVariables.gitpod]) ? { platform: "gitpod", editor: !0 } : isSet(env2[environmentVariables.cloudShell]) ? { platform: "cloudShell", editor: !0 } : { platform: "localhost", editor: !1 };
232
+ }
233
+ async function hasGit() {
234
+ try {
235
+ return await lazyExec("git", ["--version"]), !0;
236
+ } catch {
237
+ return !1;
238
+ }
239
+ }
240
+ function ciPlatform(env2 = process.env) {
241
+ if (isTruthy(env2.CI)) {
242
+ let name = "unknown";
243
+ return isSet(env2.BITBUCKET_BUILD_NUMBER) ? name = "bitbucket" : isTruthy(env2.CIRCLECI) ? name = "circleci" : isSet(env2.GITHUB_ACTION) ? name = "github" : isTruthy(env2.GITLAB_CI) ? name = "gitlab" : isSet(env2.BUILDKITE) && (name = "buildkite"), {
244
+ isCI: !0,
245
+ name,
246
+ metadata: getCIMetadata(name, env2)
247
+ };
248
+ } else if (isTruthy(env2.TF_BUILD))
249
+ return {
250
+ isCI: !0,
251
+ name: "azure",
252
+ metadata: getCIMetadata("azure", env2)
253
+ };
254
+ return {
255
+ isCI: !1
256
+ };
257
+ }
258
+ async function macAddress() {
259
+ let emptyMac = "00:00:00:00:00:00", interfacesWithMac = Object.values(networkInterfaces()).flat().filter((iface) => !!(iface && iface.mac !== emptyMac));
260
+ return (interfacesWithMac.find((iface) => !iface.internal) ?? interfacesWithMac[0])?.mac ?? randomUUID();
261
+ }
262
+ function getThemeKitAccessDomain(env2 = process.env) {
263
+ let domain = env2[environmentVariables.themeKitAccessDomain];
264
+ return isSet(domain) ? domain : defaultThemeKitAccessDomain;
265
+ }
266
+ function opentelemetryDomain(env2 = process.env) {
267
+ let domain = env2[environmentVariables.otelURL];
268
+ return isSet(domain) ? domain : "https://otlp-http-production-cli.shopifysvc.com";
269
+ }
270
+
271
+ export {
272
+ envPaths,
273
+ environmentVariables,
274
+ systemEnvironmentVariables,
275
+ sessionConstants,
276
+ bugsnagApiKey,
277
+ reportingRateLimit,
278
+ themeKitAccessDomain,
279
+ isTerminalInteractive,
280
+ homeDirectory,
281
+ isDevelopment,
282
+ isVerbose,
283
+ isShopify,
284
+ isUnitTest,
285
+ analyticsDisabled,
286
+ alwaysLogAnalytics,
287
+ alwaysLogMetrics,
288
+ canRunDoctorRelease,
289
+ gitpodURL,
290
+ codespaceURL,
291
+ codespacePortForwardingDomain,
292
+ isCloudEnvironment,
293
+ themeToken,
294
+ cloudEnvironment,
295
+ hasGit,
296
+ ciPlatform,
297
+ macAddress,
298
+ getThemeKitAccessDomain,
299
+ opentelemetryDomain
300
+ };
301
+ //# sourceMappingURL=chunk-OMR2LYUV.js.map