@shopify/cli 3.84.2 → 3.85.0

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 (105) hide show
  1. package/README.md +1 -1
  2. package/dist/{chokidar-KCZH6DIC.js → chokidar-TTCYG5AA.js} +5 -5
  3. package/dist/{chokidar-XPSJ2FUJ.js → chokidar-XUA2BN3J.js} +5 -5
  4. package/dist/{chunk-QS5WPZTS.js → chunk-2IA24ROR.js} +9 -8
  5. package/dist/{chunk-T2Z26YN7.js → chunk-2IEQZDJI.js} +3 -3
  6. package/dist/{chunk-MRQXBTNU.js → chunk-47CMAYQE.js} +3 -3
  7. package/dist/{chunk-M6EH6UKK.js → chunk-4JN3JAPL.js} +3 -3
  8. package/dist/{chunk-BSKQ4RKV.js → chunk-5FNCRAPA.js} +3 -3
  9. package/dist/{chunk-L5OKA4W4.js → chunk-76S5M67J.js} +7 -7
  10. package/dist/{chunk-DZCCH5OM.js → chunk-A26YXFMX.js} +8 -8
  11. package/dist/{chunk-YNNUWX3I.js → chunk-AJOVRT5K.js} +3 -3
  12. package/dist/{chunk-7YVG6N4O.js → chunk-AJYT5DKD.js} +2 -2
  13. package/dist/{chunk-HMDWNGIV.js → chunk-AM4QB5OM.js} +206 -100
  14. package/dist/{chunk-TAA5HGRT.js → chunk-B36FYNEM.js} +664 -587
  15. package/dist/{chunk-46YOOMEM.js → chunk-BB4VAGLH.js} +2 -2
  16. package/dist/{chunk-W5G2YPO2.js → chunk-BQ3PZIHZ.js} +7 -7
  17. package/dist/{chunk-ZBPY6YL5.js → chunk-C4XAKIGB.js} +8 -8
  18. package/dist/{chunk-AQVXNWM2.js → chunk-DJVJNSKZ.js} +2 -2
  19. package/dist/{chunk-BX2C6EVM.js → chunk-DKG2TMNN.js} +2 -2
  20. package/dist/{del-SAZHGAZZ.js → chunk-EFOOQV72.js} +17 -378
  21. package/dist/{chunk-3FBDJEGD.js → chunk-F7F4BQYW.js} +1824 -762
  22. package/dist/{chunk-66VZYBID.js → chunk-F7J5CUMZ.js} +4 -4
  23. package/dist/{chunk-KHBZ52PT.js → chunk-G2VTHDI5.js} +41 -17
  24. package/dist/{chunk-Z6MEYGAG.js → chunk-HNHQAN5R.js} +3 -3
  25. package/dist/chunk-IWFYXDPH.js +109 -0
  26. package/dist/{chunk-G74IQQ6M.js → chunk-JF6OJWJV.js} +3 -3
  27. package/dist/{chunk-UOLT7THS.js → chunk-JR35C77F.js} +3 -3
  28. package/dist/{chunk-YPRC4TK6.js → chunk-K2VBTQSL.js} +187 -43
  29. package/dist/chunk-KU6FTMKN.js +87 -0
  30. package/dist/{chunk-JHLYV5K7.js → chunk-NYUWDGSK.js} +7 -7
  31. package/dist/{chunk-OCEWRJZI.js → chunk-PUO72IWW.js} +16 -20
  32. package/dist/{chunk-ZRU5CKDG.js → chunk-T3FBGLW4.js} +4 -4
  33. package/dist/{chunk-G5R6YD27.js → chunk-UATXMR5F.js} +2 -103
  34. package/dist/{chunk-6A27UWO7.js → chunk-UGBL65P2.js} +4 -4
  35. package/dist/{chunk-RTTTZZGY.js → chunk-VELVK2EZ.js} +4 -4
  36. package/dist/{chunk-TFVMB62A.js → chunk-VLSFD7SJ.js} +19 -18
  37. package/dist/{chunk-YUI23PKV.js → chunk-WRIQTRQE.js} +2 -2
  38. package/dist/{chunk-2TBGVDDK.js → chunk-XO7GQ2WG.js} +3 -3
  39. package/dist/{chunk-6JFZSZKE.js → chunk-XTCT7ABH.js} +16379 -5792
  40. package/dist/{chunk-DCU33ZNP.js → chunk-Y4DWHLHN.js} +3 -3
  41. package/dist/{chunk-XD5EFQE2.js → chunk-Y7JIZJYE.js} +5 -5
  42. package/dist/{chunk-7UHRC35E.js → chunk-Z7TXQNKI.js} +2 -2
  43. package/dist/chunk-ZAVXS5HH.js +4654 -0
  44. package/dist/{chunk-MXDBI4PG.js → chunk-ZXKNRG53.js} +5 -5
  45. package/dist/cli/commands/auth/login.d.ts +8 -0
  46. package/dist/cli/commands/auth/login.js +28 -0
  47. package/dist/cli/commands/auth/login.test.js +53 -0
  48. package/dist/cli/commands/auth/logout.js +15 -17
  49. package/dist/cli/commands/auth/logout.test.js +20 -22
  50. package/dist/cli/commands/cache/clear.js +15 -16
  51. package/dist/cli/commands/debug/command-flags.js +15 -16
  52. package/dist/cli/commands/docs/generate.js +15 -16
  53. package/dist/cli/commands/docs/generate.test.js +21 -22
  54. package/dist/cli/commands/help.js +15 -16
  55. package/dist/cli/commands/kitchen-sink/async.js +16 -17
  56. package/dist/cli/commands/kitchen-sink/async.test.js +17 -18
  57. package/dist/cli/commands/kitchen-sink/index.js +18 -19
  58. package/dist/cli/commands/kitchen-sink/index.test.js +21 -22
  59. package/dist/cli/commands/kitchen-sink/prompts.js +16 -17
  60. package/dist/cli/commands/kitchen-sink/prompts.test.js +17 -18
  61. package/dist/cli/commands/kitchen-sink/static.js +16 -17
  62. package/dist/cli/commands/kitchen-sink/static.test.js +17 -18
  63. package/dist/cli/commands/notifications/generate.js +16 -17
  64. package/dist/cli/commands/notifications/list.js +16 -17
  65. package/dist/cli/commands/search.js +16 -17
  66. package/dist/cli/commands/upgrade.js +16 -17
  67. package/dist/cli/commands/upgrade.test.js +1 -1
  68. package/dist/cli/commands/version.js +16 -17
  69. package/dist/cli/commands/version.test.js +17 -18
  70. package/dist/cli/services/commands/notifications.js +11 -12
  71. package/dist/cli/services/commands/search.js +7 -8
  72. package/dist/cli/services/commands/search.test.js +8 -9
  73. package/dist/cli/services/commands/version.js +8 -9
  74. package/dist/cli/services/commands/version.test.js +10 -11
  75. package/dist/cli/services/kitchen-sink/async.js +7 -8
  76. package/dist/cli/services/kitchen-sink/prompts.js +7 -8
  77. package/dist/cli/services/kitchen-sink/static.js +7 -8
  78. package/dist/cli/services/upgrade.js +8 -9
  79. package/dist/cli/services/upgrade.test.js +12 -13
  80. package/dist/configs/all.yml +3 -0
  81. package/dist/configs/recommended.yml +3 -0
  82. package/dist/{custom-oclif-loader-BBMEEF2H.js → custom-oclif-loader-J2DN7UTY.js} +11 -12
  83. package/dist/data/objects.json +2 -2
  84. package/dist/data/shopify_system_translations.json +69 -22
  85. package/dist/data/tags.json +10 -10
  86. package/dist/del-DNZ7X2HW.js +377 -0
  87. package/dist/{error-handler-734CUCMD.js → error-handler-JJ76ZQMC.js} +13 -14
  88. package/dist/hooks/postrun.js +13 -15
  89. package/dist/hooks/prerun.js +14 -15
  90. package/dist/index.d.ts +1 -1
  91. package/dist/index.js +7473 -5646
  92. package/dist/{lib-OSXFX3I2.js → lib-DEEC6IKU.js} +3 -4
  93. package/dist/{local-5AKZWHSS.js → local-2JWTG2IJ.js} +7 -8
  94. package/dist/{morph-TYIH255V.js → morph-5D7H6MU2.js} +13 -11
  95. package/dist/{node-package-manager-DMOU4DTB.js → node-package-manager-YCQL3774.js} +8 -9
  96. package/dist/{npa-E675GQOI.js → npa-LHT53SWR.js} +3 -5
  97. package/dist/tsconfig.tsbuildinfo +1 -1
  98. package/dist/{ui-JQXGLHMO.js → ui-HITLA3H3.js} +9 -8
  99. package/dist/{workerd-FTKMK3NR.js → workerd-KHWXFNPK.js} +22 -22
  100. package/oclif.manifest.json +79 -9
  101. package/package.json +10 -10
  102. package/dist/chunk-CP3BRHWK.js +0 -33
  103. package/dist/chunk-EZQWZ57B.js +0 -53
  104. package/dist/chunk-SJMHVGQ5.js +0 -119
  105. package/dist/chunk-SM7O6ZFJ.js +0 -1216
@@ -0,0 +1,87 @@
1
+ import {
2
+ base_command_default
3
+ } from "./chunk-2IA24ROR.js";
4
+ import {
5
+ ensureAuthenticatedUser,
6
+ fetch,
7
+ findSessionByAlias,
8
+ getSessionAlias,
9
+ identityFqdn
10
+ } from "./chunk-ZAVXS5HH.js";
11
+ import {
12
+ setCurrentSessionId
13
+ } from "./chunk-G2VTHDI5.js";
14
+ import {
15
+ outputCompleted,
16
+ renderSelectPrompt
17
+ } from "./chunk-B36FYNEM.js";
18
+ import {
19
+ require_lib
20
+ } from "./chunk-F7F4BQYW.js";
21
+ import {
22
+ __toESM,
23
+ init_cjs_shims
24
+ } from "./chunk-PKR7KJ6P.js";
25
+
26
+ // src/cli/commands/auth/login.ts
27
+ init_cjs_shims();
28
+
29
+ // ../cli-kit/dist/public/node/session-prompt.js
30
+ init_cjs_shims();
31
+ var NEW_LOGIN_VALUE = "NEW_LOGIN";
32
+ function buildSessionChoices(sessions, fqdn) {
33
+ let choices = [], fqdnSessions = sessions[fqdn];
34
+ if (fqdnSessions)
35
+ for (let [userId, session] of Object.entries(fqdnSessions))
36
+ choices.push({
37
+ label: session.identity.alias ?? userId,
38
+ value: userId
39
+ });
40
+ return choices;
41
+ }
42
+ async function handleNewLogin() {
43
+ let result = await ensureAuthenticatedUser({}, { forceNewSession: !0 });
44
+ return await getSessionAlias(result.userId) ?? result.userId;
45
+ }
46
+ async function getAllChoices() {
47
+ let sessions = await fetch(), fqdn = await identityFqdn(), choices = [];
48
+ return sessions && choices.push(...buildSessionChoices(sessions, fqdn)), choices.length > 0 && choices.push({
49
+ label: "Log in with a different account",
50
+ value: NEW_LOGIN_VALUE
51
+ }), choices;
52
+ }
53
+ async function promptSessionSelect(alias) {
54
+ if (alias) {
55
+ let userId = await findSessionByAlias(alias);
56
+ if (userId)
57
+ return setCurrentSessionId(userId), alias;
58
+ }
59
+ let choices = await getAllChoices(), selectedValue = NEW_LOGIN_VALUE;
60
+ return choices.length > 0 && (selectedValue = await renderSelectPrompt({ message: "Which account would you like to use?", choices })), selectedValue === NEW_LOGIN_VALUE ? handleNewLogin() : (setCurrentSessionId(selectedValue), choices.find((choice) => choice.value === selectedValue)?.label ?? selectedValue);
61
+ }
62
+
63
+ // src/cli/commands/auth/login.ts
64
+ var import_core = __toESM(require_lib(), 1);
65
+ var Login = class _Login extends base_command_default {
66
+ static {
67
+ this.description = "Logs you in to your Shopify account.";
68
+ }
69
+ static {
70
+ this.flags = {
71
+ alias: import_core.Flags.string({
72
+ description: "Alias of the session you want to login to.",
73
+ env: "SHOPIFY_FLAG_AUTH_ALIAS"
74
+ })
75
+ };
76
+ }
77
+ async run() {
78
+ let { flags } = await this.parse(_Login), result = await promptSessionSelect(flags.alias);
79
+ outputCompleted(`Current account: ${result}.`);
80
+ }
81
+ };
82
+
83
+ export {
84
+ promptSessionSelect,
85
+ Login
86
+ };
87
+ //# sourceMappingURL=chunk-KU6FTMKN.js.map
@@ -1,12 +1,12 @@
1
- import {
2
- logout
3
- } from "./chunk-SJMHVGQ5.js";
4
1
  import {
5
2
  base_command_default
6
- } from "./chunk-QS5WPZTS.js";
3
+ } from "./chunk-2IA24ROR.js";
4
+ import {
5
+ logout
6
+ } from "./chunk-ZAVXS5HH.js";
7
7
  import {
8
8
  outputSuccess
9
- } from "./chunk-TAA5HGRT.js";
9
+ } from "./chunk-B36FYNEM.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-PKR7KJ6P.js";
@@ -18,11 +18,11 @@ var Logout = class extends base_command_default {
18
18
  this.description = "Logs you out of the Shopify account or Partner account and store.";
19
19
  }
20
20
  async run() {
21
- await logout(), outputSuccess("Logged out from Shopify");
21
+ await logout(), outputSuccess("Logged out from all the accounts");
22
22
  }
23
23
  };
24
24
 
25
25
  export {
26
26
  Logout
27
27
  };
28
- //# sourceMappingURL=chunk-JHLYV5K7.js.map
28
+ //# sourceMappingURL=chunk-NYUWDGSK.js.map
@@ -5,20 +5,18 @@ import {
5
5
  } from "./chunk-25IMI7TH.js";
6
6
  import {
7
7
  CLI_KIT_VERSION
8
- } from "./chunk-YUI23PKV.js";
8
+ } from "./chunk-WRIQTRQE.js";
9
9
  import {
10
- Environment,
10
+ AbortError,
11
11
  environmentVariables,
12
12
  firstPartyDev,
13
- import_ts_error,
14
13
  isTruthy,
15
14
  outputContent,
16
15
  outputDebug,
17
16
  runWithTimer,
18
- serviceEnvironment,
19
17
  sleep,
20
18
  systemEnvironmentVariables
21
- } from "./chunk-TAA5HGRT.js";
19
+ } from "./chunk-B36FYNEM.js";
22
20
  import {
23
21
  sniffForJson
24
22
  } from "./chunk-EG6MBBEN.js";
@@ -17554,12 +17552,12 @@ var require_lib2 = __commonJS({
17554
17552
  agent
17555
17553
  });
17556
17554
  }
17557
- function AbortError2(message) {
17555
+ function AbortError3(message) {
17558
17556
  Error.call(this, message), this.type = "aborted", this.message = message, Error.captureStackTrace(this, this.constructor);
17559
17557
  }
17560
- AbortError2.prototype = Object.create(Error.prototype);
17561
- AbortError2.prototype.constructor = AbortError2;
17562
- AbortError2.prototype.name = "AbortError";
17558
+ AbortError3.prototype = Object.create(Error.prototype);
17559
+ AbortError3.prototype.constructor = AbortError3;
17560
+ AbortError3.prototype.name = "AbortError";
17563
17561
  var URL$1 = Url.URL || whatwgUrl.URL, PassThrough$1 = Stream3.PassThrough, isDomainOrSubdomain2 = function(destination, original) {
17564
17562
  let orig = new URL$1(original).hostname, dest = new URL$1(destination).hostname;
17565
17563
  return orig === dest || orig[orig.length - dest.length - 1] === "." && orig.endsWith(dest);
@@ -17572,7 +17570,7 @@ var require_lib2 = __commonJS({
17572
17570
  throw new Error("native promise missing, set fetch.Promise to your favorite alternative");
17573
17571
  return Body2.Promise = fetch3.Promise, new fetch3.Promise(function(resolve, reject) {
17574
17572
  let request = new Request2(url, opts), options = getNodeRequestOptions2(request), send = (options.protocol === "https:" ? https3 : http3).request, signal = request.signal, response = null, abort = function() {
17575
- let error = new AbortError2("The user aborted a request.");
17573
+ let error = new AbortError3("The user aborted a request.");
17576
17574
  reject(error), request.body && request.body instanceof Stream3.Readable && destroyStream(request.body, error), !(!response || !response.body) && response.body.emit("error", error);
17577
17575
  };
17578
17576
  if (signal && signal.aborted) {
@@ -17726,7 +17724,7 @@ var require_lib2 = __commonJS({
17726
17724
  exports.Request = Request2;
17727
17725
  exports.Response = Response2;
17728
17726
  exports.FetchError = FetchError2;
17729
- exports.AbortError = AbortError2;
17727
+ exports.AbortError = AbortError3;
17730
17728
  }
17731
17729
  });
17732
17730
 
@@ -27624,9 +27622,10 @@ init_cjs_shims();
27624
27622
  // ../cli-kit/dist/private/node/api/headers.js
27625
27623
  init_cjs_shims();
27626
27624
  import https from "https";
27627
- var RequestClientError = class extends import_ts_error.ExtendableError {
27625
+ var RequestClientError = class extends AbortError {
27628
27626
  constructor(message, statusCode) {
27629
- super(message), this.statusCode = statusCode;
27627
+ let tryMessage = statusCode === 403 ? "Ensure you are using the correct account. You can switch with `shopify auth login`" : void 0;
27628
+ super(message, tryMessage), this.statusCode = statusCode;
27630
27629
  }
27631
27630
  }, GraphQLClientError = class extends RequestClientError {
27632
27631
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -27658,13 +27657,10 @@ function buildHeaders(token) {
27658
27657
  }
27659
27658
  async function httpsAgent() {
27660
27659
  return new https.Agent({
27661
- rejectUnauthorized: await shouldRejectUnauthorizedRequests(),
27660
+ rejectUnauthorized: !0,
27662
27661
  keepAlive: !0
27663
27662
  });
27664
27663
  }
27665
- async function shouldRejectUnauthorizedRequests() {
27666
- return await serviceEnvironment() !== Environment.Spin;
27667
- }
27668
27664
 
27669
27665
  // ../cli-kit/dist/private/node/api/urls.js
27670
27666
  init_cjs_shims();
@@ -28907,7 +28903,7 @@ var getNodeRequestOptions = (request) => {
28907
28903
 
28908
28904
  // ../../node_modules/.pnpm/node-fetch@3.3.2/node_modules/node-fetch/src/errors/abort-error.js
28909
28905
  init_cjs_shims();
28910
- var AbortError = class extends FetchBaseError {
28906
+ var AbortError2 = class extends FetchBaseError {
28911
28907
  constructor(message, type = "aborted") {
28912
28908
  super(message, type);
28913
28909
  }
@@ -28926,7 +28922,7 @@ async function fetch(url, options_) {
28926
28922
  return;
28927
28923
  }
28928
28924
  let send = (parsedURL.protocol === "https:" ? https2 : http2).request, { signal } = request, response = null, abort = () => {
28929
- let error = new AbortError("The operation was aborted.");
28925
+ let error = new AbortError2("The operation was aborted.");
28930
28926
  reject(error), request.body && request.body instanceof Stream2.Readable && request.body.destroy(error), !(!response || !response.body) && response.body.emit("error", error);
28931
28927
  };
28932
28928
  if (signal && signal.aborted) {
@@ -32159,4 +32155,4 @@ mime-types/index.js:
32159
32155
  * MIT Licensed
32160
32156
  *)
32161
32157
  */
32162
- //# sourceMappingURL=chunk-OCEWRJZI.js.map
32158
+ //# sourceMappingURL=chunk-PUO72IWW.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-QS5WPZTS.js";
3
+ } from "./chunk-2IA24ROR.js";
4
4
  import {
5
5
  outputResult,
6
6
  renderTable
7
- } from "./chunk-TAA5HGRT.js";
7
+ } from "./chunk-B36FYNEM.js";
8
8
  import {
9
9
  require_lib
10
- } from "./chunk-3FBDJEGD.js";
10
+ } from "./chunk-F7F4BQYW.js";
11
11
  import {
12
12
  __toESM,
13
13
  init_cjs_shims
@@ -84,4 +84,4 @@ var import_core = __toESM(require_lib(), 1), CommandFlags = class _CommandFlags
84
84
  export {
85
85
  CommandFlags
86
86
  };
87
- //# sourceMappingURL=chunk-ZRU5CKDG.js.map
87
+ //# sourceMappingURL=chunk-T3FBGLW4.js.map
@@ -1,6 +1,3 @@
1
- import {
2
- require_balanced_match
3
- } from "./chunk-XE5EOEBL.js";
4
1
  import {
5
2
  __commonJS,
6
3
  __require,
@@ -1336,107 +1333,9 @@ var require_source_map_support = __commonJS({
1336
1333
  }
1337
1334
  });
1338
1335
 
1339
- // ../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js
1340
- var require_brace_expansion = __commonJS({
1341
- "../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(exports, module) {
1342
- init_cjs_shims();
1343
- var balanced = require_balanced_match();
1344
- module.exports = expandTop;
1345
- var escSlash = "\0SLASH" + Math.random() + "\0", escOpen = "\0OPEN" + Math.random() + "\0", escClose = "\0CLOSE" + Math.random() + "\0", escComma = "\0COMMA" + Math.random() + "\0", escPeriod = "\0PERIOD" + Math.random() + "\0";
1346
- function numeric(str) {
1347
- return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
1348
- }
1349
- function escapeBraces(str) {
1350
- return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
1351
- }
1352
- function unescapeBraces(str) {
1353
- return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
1354
- }
1355
- function parseCommaParts(str) {
1356
- if (!str)
1357
- return [""];
1358
- var parts = [], m = balanced("{", "}", str);
1359
- if (!m)
1360
- return str.split(",");
1361
- var pre = m.pre, body = m.body, post = m.post, p = pre.split(",");
1362
- p[p.length - 1] += "{" + body + "}";
1363
- var postParts = parseCommaParts(post);
1364
- return post.length && (p[p.length - 1] += postParts.shift(), p.push.apply(p, postParts)), parts.push.apply(parts, p), parts;
1365
- }
1366
- function expandTop(str) {
1367
- return str ? (str.substr(0, 2) === "{}" && (str = "\\{\\}" + str.substr(2)), expand(escapeBraces(str), !0).map(unescapeBraces)) : [];
1368
- }
1369
- function embrace(str) {
1370
- return "{" + str + "}";
1371
- }
1372
- function isPadded(el) {
1373
- return /^-?0\d/.test(el);
1374
- }
1375
- function lte(i, y) {
1376
- return i <= y;
1377
- }
1378
- function gte(i, y) {
1379
- return i >= y;
1380
- }
1381
- function expand(str, isTop) {
1382
- var expansions = [], m = balanced("{", "}", str);
1383
- if (!m) return [str];
1384
- var pre = m.pre, post = m.post.length ? expand(m.post, !1) : [""];
1385
- if (/\$$/.test(m.pre))
1386
- for (var k = 0; k < post.length; k++) {
1387
- var expansion = pre + "{" + m.body + "}" + post[k];
1388
- expansions.push(expansion);
1389
- }
1390
- else {
1391
- var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body), isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body), isSequence = isNumericSequence || isAlphaSequence, isOptions = m.body.indexOf(",") >= 0;
1392
- if (!isSequence && !isOptions)
1393
- return m.post.match(/,.*\}/) ? (str = m.pre + "{" + m.body + escClose + m.post, expand(str)) : [str];
1394
- var n;
1395
- if (isSequence)
1396
- n = m.body.split(/\.\./);
1397
- else if (n = parseCommaParts(m.body), n.length === 1 && (n = expand(n[0], !1).map(embrace), n.length === 1))
1398
- return post.map(function(p) {
1399
- return m.pre + n[0] + p;
1400
- });
1401
- var N;
1402
- if (isSequence) {
1403
- var x = numeric(n[0]), y = numeric(n[1]), width = Math.max(n[0].length, n[1].length), incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1, test = lte, reverse = y < x;
1404
- reverse && (incr *= -1, test = gte);
1405
- var pad = n.some(isPadded);
1406
- N = [];
1407
- for (var i = x; test(i, y); i += incr) {
1408
- var c;
1409
- if (isAlphaSequence)
1410
- c = String.fromCharCode(i), c === "\\" && (c = "");
1411
- else if (c = String(i), pad) {
1412
- var need = width - c.length;
1413
- if (need > 0) {
1414
- var z = new Array(need + 1).join("0");
1415
- i < 0 ? c = "-" + z + c.slice(1) : c = z + c;
1416
- }
1417
- }
1418
- N.push(c);
1419
- }
1420
- } else {
1421
- N = [];
1422
- for (var j = 0; j < n.length; j++)
1423
- N.push.apply(N, expand(n[j], !1));
1424
- }
1425
- for (var j = 0; j < N.length; j++)
1426
- for (var k = 0; k < post.length; k++) {
1427
- var expansion = pre + N[j] + post[k];
1428
- (!isTop || isSequence || expansion) && expansions.push(expansion);
1429
- }
1430
- }
1431
- return expansions;
1432
- }
1433
- }
1434
- });
1435
-
1436
1336
  export {
1437
1337
  require_source_map,
1438
1338
  require_buffer_from,
1439
- require_source_map_support,
1440
- require_brace_expansion
1339
+ require_source_map_support
1441
1340
  };
1442
- //# sourceMappingURL=chunk-G5R6YD27.js.map
1341
+ //# sourceMappingURL=chunk-UATXMR5F.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  cliInstallCommand
3
- } from "./chunk-2TBGVDDK.js";
3
+ } from "./chunk-XO7GQ2WG.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-QS5WPZTS.js";
6
+ } from "./chunk-2IA24ROR.js";
7
7
  import {
8
8
  renderInfo
9
- } from "./chunk-TAA5HGRT.js";
9
+ } from "./chunk-B36FYNEM.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-PKR7KJ6P.js";
@@ -34,4 +34,4 @@ var Upgrade = class extends base_command_default {
34
34
  export {
35
35
  Upgrade
36
36
  };
37
- //# sourceMappingURL=chunk-6A27UWO7.js.map
37
+ //# sourceMappingURL=chunk-UGBL65P2.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  searchService
3
- } from "./chunk-46YOOMEM.js";
3
+ } from "./chunk-BB4VAGLH.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-QS5WPZTS.js";
6
+ } from "./chunk-2IA24ROR.js";
7
7
  import {
8
8
  require_lib
9
- } from "./chunk-3FBDJEGD.js";
9
+ } from "./chunk-F7F4BQYW.js";
10
10
  import {
11
11
  __toESM,
12
12
  init_cjs_shims
@@ -48,4 +48,4 @@ var import_core = __toESM(require_lib(), 1), Search = class _Search extends base
48
48
  export {
49
49
  Search
50
50
  };
51
- //# sourceMappingURL=chunk-RTTTZZGY.js.map
51
+ //# sourceMappingURL=chunk-VELVK2EZ.js.map
@@ -4,16 +4,17 @@ import {
4
4
  import {
5
5
  fanoutHooks,
6
6
  reportAnalyticsEvent
7
- } from "./chunk-YPRC4TK6.js";
7
+ } from "./chunk-K2VBTQSL.js";
8
8
  import {
9
- getEnvironmentData
10
- } from "./chunk-SM7O6ZFJ.js";
11
- import {
12
- CLI_KIT_VERSION
13
- } from "./chunk-YUI23PKV.js";
9
+ getEnvironmentData,
10
+ isLocalEnvironment
11
+ } from "./chunk-ZAVXS5HH.js";
14
12
  import {
15
13
  runWithRateLimit
16
- } from "./chunk-KHBZ52PT.js";
14
+ } from "./chunk-G2VTHDI5.js";
15
+ import {
16
+ CLI_KIT_VERSION
17
+ } from "./chunk-WRIQTRQE.js";
17
18
  import {
18
19
  AbortSilentError,
19
20
  CancelExecution,
@@ -28,7 +29,10 @@ import {
28
29
  reportingRateLimit,
29
30
  require_stacktracey,
30
31
  shouldReportErrorAsUnexpected
31
- } from "./chunk-TAA5HGRT.js";
32
+ } from "./chunk-B36FYNEM.js";
33
+ import {
34
+ require_lib
35
+ } from "./chunk-F7F4BQYW.js";
32
36
  import {
33
37
  cwd,
34
38
  isAbsolutePath,
@@ -36,9 +40,6 @@ import {
36
40
  normalizePath,
37
41
  relativePath
38
42
  } from "./chunk-EG6MBBEN.js";
39
- import {
40
- require_lib
41
- } from "./chunk-3FBDJEGD.js";
42
43
  import {
43
44
  __commonJS,
44
45
  __require,
@@ -312,12 +313,12 @@ var require_stack_generator = __commonJS({
312
313
  }
313
314
  });
314
315
 
315
- // ../../node_modules/.pnpm/end-of-stream@1.4.4/node_modules/end-of-stream/index.js
316
+ // ../../node_modules/.pnpm/end-of-stream@1.4.5/node_modules/end-of-stream/index.js
316
317
  var require_end_of_stream = __commonJS({
317
- "../../node_modules/.pnpm/end-of-stream@1.4.4/node_modules/end-of-stream/index.js"(exports, module) {
318
+ "../../node_modules/.pnpm/end-of-stream@1.4.5/node_modules/end-of-stream/index.js"(exports, module) {
318
319
  init_cjs_shims();
319
320
  var once = require_once(), noop = function() {
320
- }, isRequest = function(stream) {
321
+ }, qnt = global.Bare ? queueMicrotask : process.nextTick.bind(process), isRequest = function(stream) {
321
322
  return stream.setHeader && typeof stream.abort == "function";
322
323
  }, isChildProcess = function(stream) {
323
324
  return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3;
@@ -335,7 +336,7 @@ var require_end_of_stream = __commonJS({
335
336
  }, onerror = function(err) {
336
337
  callback.call(stream, err);
337
338
  }, onclose = function() {
338
- process.nextTick(onclosenexttick);
339
+ qnt(onclosenexttick);
339
340
  }, onclosenexttick = function() {
340
341
  if (!cancelled) {
341
342
  if (readable && !(rs && rs.ended && !rs.destroyed)) return callback.call(stream, new Error("premature close"));
@@ -2034,7 +2035,7 @@ var require_notifier = __commonJS({
2034
2035
 
2035
2036
  // ../cli-kit/dist/public/node/error-handler.js
2036
2037
  init_cjs_shims();
2037
- var import_core = __toESM(require_lib(), 1), import_stacktracey = __toESM(require_stacktracey(), 1), import_js = __toESM(require_notifier(), 1);
2038
+ var import_core = __toESM(require_lib()), import_stacktracey = __toESM(require_stacktracey()), import_js = __toESM(require_notifier());
2038
2039
  import { realpath } from "fs/promises";
2039
2040
  async function errorHandler(error, config) {
2040
2041
  if (error instanceof CancelExecution)
@@ -2048,7 +2049,7 @@ var reportError = async (error, config) => {
2048
2049
  };
2049
2050
  async function sendErrorToBugsnag(error, exitMode) {
2050
2051
  try {
2051
- if (import_core.settings.debug)
2052
+ if (isLocalEnvironment() || import_core.settings.debug)
2052
2053
  return outputDebug("Skipping Bugsnag report"), { reported: !1, error, unhandled: void 0 };
2053
2054
  let unhandled = exitMode === "unexpected_error", reportableError, stacktrace, report = !1;
2054
2055
  error instanceof Error ? (report = !0, reportableError = new Error(error.message), stacktrace = error.stack) : typeof error == "string" && error.trim().length !== 0 ? (report = !0, reportableError = new Error(error), stacktrace = reportableError.stack) : (report = !1, reportableError = new Error("Unknown error"));
@@ -2149,4 +2150,4 @@ export {
2149
2150
  registerCleanBugsnagErrorsFromWithinPlugins,
2150
2151
  addBugsnagMetadata
2151
2152
  };
2152
- //# sourceMappingURL=chunk-TFVMB62A.js.map
2153
+ //# sourceMappingURL=chunk-VLSFD7SJ.js.map
@@ -4,9 +4,9 @@ import {
4
4
 
5
5
  // ../cli-kit/dist/public/common/version.js
6
6
  init_cjs_shims();
7
- var CLI_KIT_VERSION = "3.84.2";
7
+ var CLI_KIT_VERSION = "3.85.0";
8
8
 
9
9
  export {
10
10
  CLI_KIT_VERSION
11
11
  };
12
- //# sourceMappingURL=chunk-YUI23PKV.js.map
12
+ //# sourceMappingURL=chunk-WRIQTRQE.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  packageManagerFromUserAgent
3
- } from "./chunk-KHBZ52PT.js";
3
+ } from "./chunk-G2VTHDI5.js";
4
4
  import {
5
5
  currentProcessIsGlobal,
6
6
  inferPackageManagerForGlobalCLI,
7
7
  outputContent,
8
8
  outputToken
9
- } from "./chunk-TAA5HGRT.js";
9
+ } from "./chunk-B36FYNEM.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ export {
25
25
  cliInstallCommand,
26
26
  getOutputUpdateCLIReminder
27
27
  };
28
- //# sourceMappingURL=chunk-2TBGVDDK.js.map
28
+ //# sourceMappingURL=chunk-XO7GQ2WG.js.map