@shopify/cli 3.66.1 → 3.67.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 (109) hide show
  1. package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/proxy.rb +3 -7
  2. package/dist/assets/hydrogen/starter/CHANGELOG.md +105 -0
  3. package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +79 -0
  4. package/dist/assets/hydrogen/starter/app/components/Header.tsx +3 -9
  5. package/dist/assets/hydrogen/starter/app/lib/fragments.ts +6 -0
  6. package/dist/assets/hydrogen/starter/app/lib/search.ts +2 -2
  7. package/dist/assets/hydrogen/starter/app/root.tsx +5 -3
  8. package/dist/assets/hydrogen/starter/app/routes/cart.tsx +14 -0
  9. package/dist/assets/hydrogen/starter/package.json +5 -5
  10. package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +5 -0
  11. package/dist/{lib-CPSRXLFM.js → chunk-2HGYYNE5.js} +5 -2
  12. package/dist/{chunk-SVKRBSOG.js → chunk-3N2XGNSD.js} +2 -2
  13. package/dist/{chunk-3DZ2Z5F7.js → chunk-3N6HMQXE.js} +3 -3
  14. package/dist/{chunk-74LQ7ZSW.js → chunk-3SR6OJSK.js} +2 -2
  15. package/dist/{chunk-AV2DDU5Q.js → chunk-4SSP6H2B.js} +2 -2
  16. package/dist/{chunk-E5YZHXRF.js → chunk-AGVZ7LKV.js} +4 -4
  17. package/dist/{chunk-P2HC3CUV.js → chunk-BDRKGBQM.js} +4 -4
  18. package/dist/{chunk-6DU4BL5F.js → chunk-BFQFJ7IZ.js} +28 -17
  19. package/dist/{chunk-PP4BSPLO.js → chunk-CGTFVNVW.js} +9 -4
  20. package/dist/{chunk-AUKMJHJ7.js → chunk-CLB5CEKJ.js} +3 -3
  21. package/dist/{chunk-BPHTUL36.js → chunk-CQXLJ74Q.js} +2 -2
  22. package/dist/{chunk-O5XKA735.js → chunk-CQXTRP7V.js} +2 -2
  23. package/dist/{chunk-VZ6ZDQBM.js → chunk-D3PVKA4S.js} +3 -3
  24. package/dist/{chunk-ECD63UWY.js → chunk-DOGPMXVD.js} +4 -4
  25. package/dist/{chunk-JRECCYJM.js → chunk-DZ3IUP66.js} +75 -75
  26. package/dist/{chunk-47L545SZ.js → chunk-ET3FXEGV.js} +5 -5
  27. package/dist/{chunk-44VQQ5IT.js → chunk-FFJ5GS2L.js} +3 -3
  28. package/dist/{chunk-ICYU4JKU.js → chunk-GBNYQAYW.js} +3 -3
  29. package/dist/{chunk-GO4OU2FC.js → chunk-IKY4YZKM.js} +4 -4
  30. package/dist/{chunk-N766LDXO.js → chunk-JNCUUFQ2.js} +29 -5
  31. package/dist/{chunk-MQCE7QDZ.js → chunk-L7BARKPN.js} +148 -39
  32. package/dist/{chunk-SCWJ5DTS.js → chunk-LE2SHHVG.js} +3 -3
  33. package/dist/{chunk-ZTHIONMB.js → chunk-N4C6AXY7.js} +3 -3
  34. package/dist/{chunk-GXXQT43J.js → chunk-NKKQGCMU.js} +2 -2
  35. package/dist/{chunk-F6BSBHJJ.js → chunk-NZDBLGNM.js} +4 -3
  36. package/dist/{chunk-3ZYNGWAE.js → chunk-OPHICISR.js} +2 -2
  37. package/dist/{chunk-NLZ5VWA3.js → chunk-PRP4S22K.js} +25 -8
  38. package/dist/{chunk-2J35X4IR.js → chunk-RRJXIWCI.js} +2 -2
  39. package/dist/{chunk-ONFQ5XTX.js → chunk-RX32UG2K.js} +7 -7
  40. package/dist/{chunk-EARW2CGK.js → chunk-SG2SU3OS.js} +5 -5
  41. package/dist/{chunk-63OWMCSM.js → chunk-TSKLJ4DZ.js} +4 -4
  42. package/dist/{chunk-SQPCZKX5.js → chunk-TVHQ7O3U.js} +4 -4
  43. package/dist/{chunk-V7KJMBZN.js → chunk-UK3DVACO.js} +3 -3
  44. package/dist/{chunk-YK3ZIR2O.js → chunk-W4K3OTNK.js} +30 -90
  45. package/dist/{chunk-QPYUGCEP.js → chunk-WOL7YMUX.js} +24 -11
  46. package/dist/{chunk-OGVAYZHB.js → chunk-WWCONB45.js} +5 -5
  47. package/dist/{chunk-HJEKQ36N.js → chunk-XHUGASG2.js} +3 -3
  48. package/dist/{chunk-PCGPDW4N.js → chunk-XLTHVJPQ.js} +3 -3
  49. package/dist/cli/commands/auth/logout.js +13 -12
  50. package/dist/cli/commands/auth/logout.test.js +14 -13
  51. package/dist/cli/commands/debug/command-flags.js +12 -11
  52. package/dist/cli/commands/demo/catalog.js +13 -12
  53. package/dist/cli/commands/demo/generate-file.js +13 -12
  54. package/dist/cli/commands/demo/index.js +13 -12
  55. package/dist/cli/commands/demo/print-ai-prompt.js +13 -12
  56. package/dist/cli/commands/docs/generate.js +12 -11
  57. package/dist/cli/commands/docs/generate.test.js +12 -11
  58. package/dist/cli/commands/help.js +12 -11
  59. package/dist/cli/commands/kitchen-sink/async.js +13 -12
  60. package/dist/cli/commands/kitchen-sink/async.test.js +13 -12
  61. package/dist/cli/commands/kitchen-sink/index.js +15 -14
  62. package/dist/cli/commands/kitchen-sink/index.test.js +15 -14
  63. package/dist/cli/commands/kitchen-sink/prompts.js +13 -12
  64. package/dist/cli/commands/kitchen-sink/prompts.test.js +13 -12
  65. package/dist/cli/commands/kitchen-sink/static.js +13 -12
  66. package/dist/cli/commands/kitchen-sink/static.test.js +13 -12
  67. package/dist/cli/commands/search.js +13 -12
  68. package/dist/cli/commands/upgrade.js +13 -12
  69. package/dist/cli/commands/version.js +13 -12
  70. package/dist/cli/commands/version.test.js +13 -12
  71. package/dist/cli/services/commands/search.js +5 -4
  72. package/dist/cli/services/commands/search.test.js +5 -4
  73. package/dist/cli/services/commands/version.js +6 -5
  74. package/dist/cli/services/commands/version.test.js +7 -6
  75. package/dist/cli/services/demo.js +5 -4
  76. package/dist/cli/services/demo.test.js +5 -4
  77. package/dist/cli/services/kitchen-sink/async.js +5 -4
  78. package/dist/cli/services/kitchen-sink/prompts.js +5 -4
  79. package/dist/cli/services/kitchen-sink/static.js +5 -4
  80. package/dist/cli/services/upgrade.js +6 -5
  81. package/dist/cli/services/upgrade.test.js +8 -7
  82. package/dist/configs/all.yml +3 -0
  83. package/dist/configs/recommended.yml +3 -0
  84. package/dist/{constants-C6OOAW2P.js → constants-TR6ABVLJ.js} +4 -2
  85. package/dist/{custom-oclif-loader-DXBW5MGT.js → custom-oclif-loader-EPKORNJY.js} +5 -4
  86. package/dist/data/default_setting_values.json +56 -0
  87. package/dist/data/filters.json +34 -2
  88. package/dist/data/latest.json +1 -1
  89. package/dist/data/objects.json +1644 -6
  90. package/dist/data/section.json +23 -1
  91. package/dist/data/setting.json +411 -2
  92. package/dist/data/shopify_system_translations.json +17 -4
  93. package/dist/data/tags.json +37 -0
  94. package/dist/{error-handler-5G7W7NBW.js → error-handler-ZY662MJL.js} +11 -10
  95. package/dist/hooks/postrun.js +9 -8
  96. package/dist/hooks/prerun.js +9 -8
  97. package/dist/index.js +4326 -1911
  98. package/dist/{lib-6LEA5PZ7.js → lib-4WCTNKJK.js} +2 -2
  99. package/dist/lib-PPXZBVZX.js +6 -0
  100. package/dist/{local-IRPCVBNP.js → local-V2PIQZT7.js} +5 -4
  101. package/dist/{morph-M726AOW6.js → morph-WDFBUXWF.js} +9 -9
  102. package/dist/{node-QK7Q2TRB.js → node-I67G4HEQ.js} +16 -15
  103. package/dist/{node-package-manager-3WV6USI6.js → node-package-manager-FXUBXHFJ.js} +6 -5
  104. package/dist/{system-N2OPVMOD.js → system-DGKNYSEI.js} +7 -6
  105. package/dist/tsconfig.tsbuildinfo +1 -1
  106. package/dist/{ui-GHKHPRP2.js → ui-TPFQMYT2.js} +5 -4
  107. package/dist/{workerd-KAYMO4VM.js → workerd-WCFQKTR2.js} +15 -14
  108. package/oclif.manifest.json +86 -88
  109. package/package.json +7 -7
@@ -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.66.1";
7
+ var CLI_KIT_VERSION = "3.67.1";
8
8
 
9
9
  export {
10
10
  CLI_KIT_VERSION
11
11
  };
12
- //# sourceMappingURL=chunk-2J35X4IR.js.map
12
+ //# sourceMappingURL=chunk-RRJXIWCI.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  errorHandler,
3
3
  registerCleanBugsnagErrorsFromWithinPlugins
4
- } from "./chunk-QPYUGCEP.js";
4
+ } from "./chunk-WOL7YMUX.js";
5
5
  import {
6
6
  hashString
7
- } from "./chunk-PP4BSPLO.js";
7
+ } from "./chunk-CGTFVNVW.js";
8
8
  import {
9
9
  AbortError,
10
10
  addPublicMetadata,
@@ -18,12 +18,12 @@ import {
18
18
  readFile,
19
19
  renderInfo,
20
20
  renderWarning,
21
- terminalSupportsRawMode,
21
+ terminalSupportsPrompting,
22
22
  underscore
23
- } from "./chunk-YK3ZIR2O.js";
23
+ } from "./chunk-W4K3OTNK.js";
24
24
  import {
25
25
  require_lib
26
- } from "./chunk-6DU4BL5F.js";
26
+ } from "./chunk-BFQFJ7IZ.js";
27
27
  import {
28
28
  cwd
29
29
  } from "./chunk-T2GATXSP.js";
@@ -1602,7 +1602,7 @@ var import_core = __toESM(require_lib()), BaseCommand = class extends import_cor
1602
1602
  environmentsFilename() {
1603
1603
  }
1604
1604
  failMissingNonTTYFlags(flags, requiredFlags) {
1605
- terminalSupportsRawMode() || requiredFlags.forEach((name) => {
1605
+ terminalSupportsPrompting() || requiredFlags.forEach((name) => {
1606
1606
  if (!(name in flags))
1607
1607
  throw new AbortError(outputContent`Flag not specified:
1608
1608
 
@@ -1682,4 +1682,4 @@ export {
1682
1682
  encodeToml,
1683
1683
  base_command_default
1684
1684
  };
1685
- //# sourceMappingURL=chunk-ONFQ5XTX.js.map
1685
+ //# sourceMappingURL=chunk-RX32UG2K.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  staticService
3
- } from "./chunk-SVKRBSOG.js";
3
+ } from "./chunk-3N2XGNSD.js";
4
4
  import {
5
5
  asyncTasks
6
- } from "./chunk-AV2DDU5Q.js";
6
+ } from "./chunk-4SSP6H2B.js";
7
7
  import {
8
8
  prompts
9
- } from "./chunk-GXXQT43J.js";
9
+ } from "./chunk-NKKQGCMU.js";
10
10
  import {
11
11
  base_command_default
12
- } from "./chunk-ONFQ5XTX.js";
12
+ } from "./chunk-RX32UG2K.js";
13
13
  import {
14
14
  init_cjs_shims
15
15
  } from "./chunk-POZ5MGPT.js";
@@ -34,4 +34,4 @@ var KitchenSinkAll = class extends base_command_default {
34
34
  export {
35
35
  KitchenSinkAll
36
36
  };
37
- //# sourceMappingURL=chunk-EARW2CGK.js.map
37
+ //# sourceMappingURL=chunk-SG2SU3OS.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-ONFQ5XTX.js";
3
+ } from "./chunk-RX32UG2K.js";
4
4
  import {
5
5
  renderTable,
6
6
  renderText
7
- } from "./chunk-YK3ZIR2O.js";
7
+ } from "./chunk-W4K3OTNK.js";
8
8
  import {
9
9
  require_lib
10
- } from "./chunk-6DU4BL5F.js";
10
+ } from "./chunk-BFQFJ7IZ.js";
11
11
  import {
12
12
  __toESM,
13
13
  init_cjs_shims
@@ -83,4 +83,4 @@ var import_core = __toESM(require_lib(), 1), CommandFlags = class _CommandFlags
83
83
  export {
84
84
  CommandFlags
85
85
  };
86
- //# sourceMappingURL=chunk-63OWMCSM.js.map
86
+ //# sourceMappingURL=chunk-TSKLJ4DZ.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  logout
3
- } from "./chunk-MQCE7QDZ.js";
3
+ } from "./chunk-L7BARKPN.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-ONFQ5XTX.js";
6
+ } from "./chunk-RX32UG2K.js";
7
7
  import {
8
8
  outputSuccess
9
- } from "./chunk-YK3ZIR2O.js";
9
+ } from "./chunk-W4K3OTNK.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-POZ5MGPT.js";
@@ -25,4 +25,4 @@ var Logout = class extends base_command_default {
25
25
  export {
26
26
  Logout
27
27
  };
28
- //# sourceMappingURL=chunk-SQPCZKX5.js.map
28
+ //# sourceMappingURL=chunk-TVHQ7O3U.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-ONFQ5XTX.js";
3
+ } from "./chunk-RX32UG2K.js";
4
4
  import {
5
5
  mkdir,
6
6
  outputInfo,
7
7
  rmdir,
8
8
  writeFile
9
- } from "./chunk-YK3ZIR2O.js";
9
+ } from "./chunk-W4K3OTNK.js";
10
10
  import {
11
11
  cwd,
12
12
  joinPath
@@ -116,4 +116,4 @@ export {
116
116
  writeCommandFlagInterface,
117
117
  writeCommandUsageExampleFile
118
118
  };
119
- //# sourceMappingURL=chunk-V7KJMBZN.js.map
119
+ //# sourceMappingURL=chunk-UK3DVACO.js.map
@@ -4,23 +4,23 @@ import {
4
4
  import {
5
5
  environmentVariables,
6
6
  pathConstants
7
- } from "./chunk-F6BSBHJJ.js";
7
+ } from "./chunk-NZDBLGNM.js";
8
8
  import {
9
9
  require_cross_spawn,
10
10
  require_lib,
11
11
  require_source,
12
- require_supports_color,
13
12
  require_supports_hyperlinks
14
- } from "./chunk-6DU4BL5F.js";
15
- import {
16
- require_has_flag
17
- } from "./chunk-SNOECVP4.js";
13
+ } from "./chunk-BFQFJ7IZ.js";
18
14
  import {
19
15
  require_brace_expansion,
20
16
  require_source_map
21
17
  } from "./chunk-6XKWVDB6.js";
18
+ import {
19
+ require_lib as require_lib2
20
+ } from "./chunk-2HGYYNE5.js";
22
21
  import {
23
22
  cwd,
23
+ dirname,
24
24
  joinPath,
25
25
  normalizePath,
26
26
  relativizePath,
@@ -20742,73 +20742,6 @@ var require_dist16 = __commonJS({
20742
20742
  }
20743
20743
  });
20744
20744
 
20745
- // ../../node_modules/.pnpm/supports-hyperlinks@3.0.0/node_modules/supports-hyperlinks/index.js
20746
- var require_supports_hyperlinks2 = __commonJS({
20747
- "../../node_modules/.pnpm/supports-hyperlinks@3.0.0/node_modules/supports-hyperlinks/index.js"(exports, module) {
20748
- "use strict";
20749
- init_cjs_shims();
20750
- var supportsColor3 = require_supports_color(), hasFlag2 = require_has_flag();
20751
- function parseVersion(versionString) {
20752
- if (/^\d{3,4}$/.test(versionString)) {
20753
- let m = /(\d{1,2})(\d{2})/.exec(versionString) || [];
20754
- return {
20755
- major: 0,
20756
- minor: parseInt(m[1], 10),
20757
- patch: parseInt(m[2], 10)
20758
- };
20759
- }
20760
- let versions = (versionString || "").split(".").map((n) => parseInt(n, 10));
20761
- return {
20762
- major: versions[0],
20763
- minor: versions[1],
20764
- patch: versions[2]
20765
- };
20766
- }
20767
- function supportsHyperlink(stream2) {
20768
- let {
20769
- CI,
20770
- FORCE_HYPERLINK,
20771
- NETLIFY,
20772
- TEAMCITY_VERSION,
20773
- TERM_PROGRAM,
20774
- TERM_PROGRAM_VERSION,
20775
- VTE_VERSION
20776
- } = process.env;
20777
- if (FORCE_HYPERLINK)
20778
- return !(FORCE_HYPERLINK.length > 0 && parseInt(FORCE_HYPERLINK, 10) === 0);
20779
- if (hasFlag2("no-hyperlink") || hasFlag2("no-hyperlinks") || hasFlag2("hyperlink=false") || hasFlag2("hyperlink=never"))
20780
- return !1;
20781
- if (hasFlag2("hyperlink=true") || hasFlag2("hyperlink=always") || NETLIFY)
20782
- return !0;
20783
- if (!supportsColor3.supportsColor(stream2) || stream2 && !stream2.isTTY || process.platform === "win32" || CI || TEAMCITY_VERSION)
20784
- return !1;
20785
- if (TERM_PROGRAM) {
20786
- let version = parseVersion(TERM_PROGRAM_VERSION || "");
20787
- switch (TERM_PROGRAM) {
20788
- case "iTerm.app":
20789
- return version.major === 3 ? version.minor >= 1 : version.major > 3;
20790
- case "WezTerm":
20791
- return version.major >= 20200620;
20792
- case "vscode":
20793
- return version.major > 1 || version.major === 1 && version.minor >= 72;
20794
- }
20795
- }
20796
- if (VTE_VERSION) {
20797
- if (VTE_VERSION === "0.50.0")
20798
- return !1;
20799
- let version = parseVersion(VTE_VERSION);
20800
- return version.major > 0 || version.minor >= 50;
20801
- }
20802
- return !1;
20803
- }
20804
- module.exports = {
20805
- supportsHyperlink,
20806
- stdout: supportsHyperlink(process.stdout),
20807
- stderr: supportsHyperlink(process.stderr)
20808
- };
20809
- }
20810
- });
20811
-
20812
20745
  // ../../node_modules/.pnpm/ts-error@1.0.6/node_modules/ts-error/lib/helpers.js
20813
20746
  var require_helpers = __commonJS({
20814
20747
  "../../node_modules/.pnpm/ts-error@1.0.6/node_modules/ts-error/lib/helpers.js"(exports) {
@@ -23911,22 +23844,22 @@ var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/, regExpEscape2 = (s) => s.replace(/[-[
23911
23844
  return globParts.filter((gs) => gs.length);
23912
23845
  }
23913
23846
  partsMatch(a, b, emptyGSMatch = !1) {
23914
- let ai = 0, bi = 0, result = [], which = "";
23847
+ let ai = 0, bi = 0, result = [], which2 = "";
23915
23848
  for (; ai < a.length && bi < b.length; )
23916
23849
  if (a[ai] === b[bi])
23917
- result.push(which === "b" ? b[bi] : a[ai]), ai++, bi++;
23850
+ result.push(which2 === "b" ? b[bi] : a[ai]), ai++, bi++;
23918
23851
  else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1])
23919
23852
  result.push(a[ai]), ai++;
23920
23853
  else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1])
23921
23854
  result.push(b[bi]), bi++;
23922
23855
  else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
23923
- if (which === "b")
23856
+ if (which2 === "b")
23924
23857
  return !1;
23925
- which = "a", result.push(a[ai]), ai++, bi++;
23858
+ which2 = "a", result.push(a[ai]), ai++, bi++;
23926
23859
  } else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
23927
- if (which === "a")
23860
+ if (which2 === "a")
23928
23861
  return !1;
23929
- which = "b", result.push(b[bi]), ai++, bi++;
23862
+ which2 = "b", result.push(b[bi]), ai++, bi++;
23930
23863
  } else
23931
23864
  return !1;
23932
23865
  return a.length === b.length && result;
@@ -25206,6 +25139,7 @@ function create$(options) {
25206
25139
  var $ = create$();
25207
25140
 
25208
25141
  // ../cli-kit/dist/public/node/system.js
25142
+ var import_which = __toESM(require_lib2());
25209
25143
  async function openURL(url) {
25210
25144
  await (await import("./open-MZGVNFZO.js")).default(url);
25211
25145
  }
@@ -25235,7 +25169,7 @@ async function exec2(command, args, options) {
25235
25169
  }
25236
25170
  function buildExec(command, args, options) {
25237
25171
  let env2 = options?.env ?? process.env;
25238
- shouldDisplayColors() && (env2.FORCE_COLOR = "1");
25172
+ shouldDisplayColors() && (env2.FORCE_COLOR = "1"), checkCommandSafety(command);
25239
25173
  let commandProcess = execa(command, args, {
25240
25174
  env: env2,
25241
25175
  cwd: options?.cwd,
@@ -25254,13 +25188,19 @@ Running system process:
25254
25188
  \xB7 Working directory: ${options?.cwd ?? cwd()}
25255
25189
  `), commandProcess;
25256
25190
  }
25191
+ function checkCommandSafety(command) {
25192
+ if (dirname(import_which.default.sync(command)) === cwd()) {
25193
+ let headline = ["Skipped run of unsecure binary", { command }, "found in the current directory."], body = "Please remove that file or review your current PATH.";
25194
+ throw renderWarning({ headline, body }), new AbortError(headline, body);
25195
+ }
25196
+ }
25257
25197
  async function sleep(seconds) {
25258
25198
  return new Promise((resolve) => {
25259
25199
  setTimeout(resolve, 1e3 * seconds);
25260
25200
  });
25261
25201
  }
25262
- function terminalSupportsRawMode(stdin, env2 = process.env) {
25263
- return isTruthy(env2.CI) ? !1 : stdin ? !!stdin.isTTY : process.stdin.isTTY;
25202
+ function terminalSupportsPrompting() {
25203
+ return isTruthy(process.env.CI) ? !1 : !!(process.stdin.isTTY && process.stdout.isTTY);
25264
25204
  }
25265
25205
 
25266
25206
  // ../cli-kit/dist/private/node/context/spin-cache.js
@@ -25525,7 +25465,7 @@ async function installGlobalShopifyCLI(packageManager) {
25525
25465
  outputInfo(`Running ${packageManager} ${args.join(" ")}...`), await exec2(packageManager, args, { stdio: "inherit" });
25526
25466
  }
25527
25467
  async function installGlobalCLIPrompt() {
25528
- return terminalSupportsRawMode() ? await isGlobalCLIInstalled() ? { install: !1, alreadyInstalled: !0 } : { install: await renderSelectPrompt({
25468
+ return terminalSupportsPrompting() ? await isGlobalCLIInstalled() ? { install: !1, alreadyInstalled: !0 } : { install: await renderSelectPrompt({
25529
25469
  message: "We recommend installing Shopify CLI globally in your system. Would you like to install it now?",
25530
25470
  choices: [
25531
25471
  { value: "yes", label: "Yes" },
@@ -29451,7 +29391,7 @@ var import_react23 = __toESM(require_react(), 1), LinksContext = import_react23.
29451
29391
 
29452
29392
  // ../cli-kit/dist/private/node/ui/components/Link.js
29453
29393
  var import_react24 = __toESM(require_react(), 1);
29454
- var import_supports_hyperlinks2 = __toESM(require_supports_hyperlinks2(), 1);
29394
+ var import_supports_hyperlinks2 = __toESM(require_supports_hyperlinks(), 1);
29455
29395
  function link(label, url, linksContext) {
29456
29396
  if (!import_supports_hyperlinks2.default.stdout) {
29457
29397
  if (linksContext === null)
@@ -29845,7 +29785,7 @@ function cleanSingleStackTracePath(filePath) {
29845
29785
 
29846
29786
  // ../cli-kit/dist/public/node/abort.js
29847
29787
  init_cjs_shims();
29848
- var import_node_abort_controller = __toESM(require_node_abort_controller()), AbortController = class extends import_node_abort_controller.AbortController {
29788
+ var import_node_abort_controller = __toESM(require_node_abort_controller(), 1), AbortController = class extends import_node_abort_controller.AbortController {
29849
29789
  }, AbortSignal = class extends import_node_abort_controller.AbortSignal {
29850
29790
  };
29851
29791
 
@@ -29876,7 +29816,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
29876
29816
  try {
29877
29817
  await getAndSet();
29878
29818
  } catch (error) {
29879
- let { sendErrorToBugsnag } = await import("./error-handler-5G7W7NBW.js");
29819
+ let { sendErrorToBugsnag } = await import("./error-handler-ZY662MJL.js");
29880
29820
  await sendErrorToBugsnag(error, "unexpected_error");
29881
29821
  }
29882
29822
  }, durationStack = [];
@@ -31521,7 +31461,7 @@ var keypress = async (stdin = process.stdin, uiDebugOptions = defaultUIDebugOpti
31521
31461
  stdin.setRawMode(!0), stdin.once("data", handler2), stdin.ref();
31522
31462
  })));
31523
31463
  function isTTY({ stdin = void 0, uiDebugOptions = defaultUIDebugOptions } = {}) {
31524
- return !!(uiDebugOptions.skipTTYCheck || stdin || terminalSupportsRawMode());
31464
+ return !!(uiDebugOptions.skipTTYCheck || stdin || terminalSupportsPrompting());
31525
31465
  }
31526
31466
  function throwInNonTTY({ message, stdin = void 0 }, uiDebugOptions) {
31527
31467
  if (isTTY({ stdin, uiDebugOptions }))
@@ -31530,7 +31470,7 @@ function throwInNonTTY({ message, stdin = void 0 }, uiDebugOptions) {
31530
31470
 
31531
31471
  ${outputContent`${outputToken.cyan(promptText)}`.value}
31532
31472
 
31533
- This usually happens when running a command non-interactively, for example in a CI environment, or when piping input from another process.`;
31473
+ This usually happens when running a command non-interactively, for example in a CI environment, or when piping to or from another process.`;
31534
31474
  throw new AbortError(errorMessage, "To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal.");
31535
31475
  }
31536
31476
 
@@ -31687,7 +31627,7 @@ export {
31687
31627
  captureOutput,
31688
31628
  exec2 as exec,
31689
31629
  sleep,
31690
- terminalSupportsRawMode,
31630
+ terminalSupportsPrompting,
31691
31631
  Environment,
31692
31632
  serviceEnvironment,
31693
31633
  spinFqdn,
@@ -31833,4 +31773,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
31833
31773
  * LICENSE file in the root directory of this source tree.
31834
31774
  *)
31835
31775
  */
31836
- //# sourceMappingURL=chunk-YK3ZIR2O.js.map
31776
+ //# sourceMappingURL=chunk-W4K3OTNK.js.map
@@ -1,16 +1,19 @@
1
1
  import {
2
2
  fanoutHooks,
3
3
  reportAnalyticsEvent
4
- } from "./chunk-NLZ5VWA3.js";
4
+ } from "./chunk-PRP4S22K.js";
5
5
  import {
6
6
  getEnvironmentData
7
- } from "./chunk-PP4BSPLO.js";
7
+ } from "./chunk-CGTFVNVW.js";
8
+ import {
9
+ runWithRateLimit
10
+ } from "./chunk-JNCUUFQ2.js";
8
11
  import {
9
12
  require_once
10
13
  } from "./chunk-O5K4AU7Q.js";
11
14
  import {
12
15
  CLI_KIT_VERSION
13
- } from "./chunk-2J35X4IR.js";
16
+ } from "./chunk-RRJXIWCI.js";
14
17
  import {
15
18
  AbortSilentError,
16
19
  CancelExecution,
@@ -24,13 +27,14 @@ import {
24
27
  printEventsJson,
25
28
  require_stacktracey,
26
29
  shouldReportError
27
- } from "./chunk-YK3ZIR2O.js";
30
+ } from "./chunk-W4K3OTNK.js";
28
31
  import {
29
- bugsnagApiKey
30
- } from "./chunk-F6BSBHJJ.js";
32
+ bugsnagApiKey,
33
+ reportingRateLimit
34
+ } from "./chunk-NZDBLGNM.js";
31
35
  import {
32
36
  require_lib
33
- } from "./chunk-6DU4BL5F.js";
37
+ } from "./chunk-BFQFJ7IZ.js";
34
38
  import {
35
39
  cwd,
36
40
  isAbsolutePath,
@@ -2063,8 +2067,16 @@ async function sendErrorToBugsnag(error, exitMode) {
2063
2067
  return ` at ${item.callee} (${filePath}:${item.line}:${item.column})`;
2064
2068
  }).join(`
2065
2069
  `);
2066
- return reportableError.stack = `Error: ${reportableError.message}
2067
- ${formattedStacktrace}`, report && (initializeBugsnag(), await new Promise((resolve, reject) => {
2070
+ reportableError.stack = `Error: ${reportableError.message}
2071
+ ${formattedStacktrace}`;
2072
+ let withinRateLimit = !1;
2073
+ return await runWithRateLimit({
2074
+ key: "send-error-to-bugsnag",
2075
+ ...reportingRateLimit,
2076
+ task: async () => {
2077
+ withinRateLimit = !0;
2078
+ }
2079
+ }), withinRateLimit || (outputDebug("Skipping Bugsnag report due to rate limiting"), report = !1), report && (initializeBugsnag(), await new Promise((resolve, reject) => {
2068
2080
  outputDebug(`Reporting ${unhandled ? "unhandled" : "handled"} error to Bugsnag: ${reportableError.message}`);
2069
2081
  let eventHandler = (event) => {
2070
2082
  event.severity = "error", event.unhandled = unhandled;
@@ -2122,7 +2134,8 @@ function initializeBugsnag() {
2122
2134
  logger: null,
2123
2135
  appVersion: CLI_KIT_VERSION,
2124
2136
  autoTrackSessions: !1,
2125
- autoDetectErrors: !1
2137
+ autoDetectErrors: !1,
2138
+ enabledReleaseStages: ["production"]
2126
2139
  });
2127
2140
  }
2128
2141
 
@@ -2139,4 +2152,4 @@ export {
2139
2152
  registerCleanBugsnagErrorsFromWithinPlugins,
2140
2153
  addBugsnagMetadata
2141
2154
  };
2142
- //# sourceMappingURL=chunk-QPYUGCEP.js.map
2155
+ //# sourceMappingURL=chunk-WOL7YMUX.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  demo
3
- } from "./chunk-3ZYNGWAE.js";
3
+ } from "./chunk-OPHICISR.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-ONFQ5XTX.js";
6
+ } from "./chunk-RX32UG2K.js";
7
7
  import {
8
8
  readFile
9
- } from "./chunk-YK3ZIR2O.js";
9
+ } from "./chunk-W4K3OTNK.js";
10
10
  import {
11
11
  require_lib
12
- } from "./chunk-6DU4BL5F.js";
12
+ } from "./chunk-BFQFJ7IZ.js";
13
13
  import {
14
14
  cwd,
15
15
  resolvePath
@@ -56,4 +56,4 @@ var Demo = class _Demo extends base_command_default {
56
56
  export {
57
57
  Demo
58
58
  };
59
- //# sourceMappingURL=chunk-OGVAYZHB.js.map
59
+ //# sourceMappingURL=chunk-WWCONB45.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  prompts
3
- } from "./chunk-GXXQT43J.js";
3
+ } from "./chunk-NKKQGCMU.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-ONFQ5XTX.js";
6
+ } from "./chunk-RX32UG2K.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-POZ5MGPT.js";
@@ -25,4 +25,4 @@ var KitchenSinkPrompts = class extends base_command_default {
25
25
  export {
26
26
  KitchenSinkPrompts
27
27
  };
28
- //# sourceMappingURL=chunk-HJEKQ36N.js.map
28
+ //# sourceMappingURL=chunk-XHUGASG2.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CLI_KIT_VERSION
3
- } from "./chunk-2J35X4IR.js";
3
+ } from "./chunk-RRJXIWCI.js";
4
4
  import {
5
5
  outputInfo
6
- } from "./chunk-YK3ZIR2O.js";
6
+ } from "./chunk-W4K3OTNK.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-POZ5MGPT.js";
@@ -17,4 +17,4 @@ async function versionService() {
17
17
  export {
18
18
  versionService
19
19
  };
20
- //# sourceMappingURL=chunk-PCGPDW4N.js.map
20
+ //# sourceMappingURL=chunk-XLTHVJPQ.js.map
@@ -1,26 +1,27 @@
1
1
  import {
2
2
  Logout
3
- } from "../../../chunk-SQPCZKX5.js";
4
- import "../../../chunk-MQCE7QDZ.js";
3
+ } from "../../../chunk-TVHQ7O3U.js";
4
+ import "../../../chunk-L7BARKPN.js";
5
5
  import "../../../chunk-LCWH3FW5.js";
6
6
  import "../../../chunk-NLUGD7PZ.js";
7
- import "../../../chunk-ONFQ5XTX.js";
8
- import "../../../chunk-QPYUGCEP.js";
9
- import "../../../chunk-NLZ5VWA3.js";
7
+ import "../../../chunk-RX32UG2K.js";
8
+ import "../../../chunk-WOL7YMUX.js";
9
+ import "../../../chunk-PRP4S22K.js";
10
10
  import "../../../chunk-VSLR7ET4.js";
11
- import "../../../chunk-PP4BSPLO.js";
12
- import "../../../chunk-BPHTUL36.js";
13
- import "../../../chunk-N766LDXO.js";
11
+ import "../../../chunk-CGTFVNVW.js";
12
+ import "../../../chunk-CQXLJ74Q.js";
13
+ import "../../../chunk-JNCUUFQ2.js";
14
14
  import "../../../chunk-BYPQXSAL.js";
15
15
  import "../../../chunk-O5K4AU7Q.js";
16
- import "../../../chunk-2J35X4IR.js";
17
- import "../../../chunk-YK3ZIR2O.js";
16
+ import "../../../chunk-RRJXIWCI.js";
17
+ import "../../../chunk-W4K3OTNK.js";
18
18
  import "../../../chunk-QETDXAFX.js";
19
- import "../../../chunk-F6BSBHJJ.js";
20
- import "../../../chunk-6DU4BL5F.js";
19
+ import "../../../chunk-NZDBLGNM.js";
20
+ import "../../../chunk-BFQFJ7IZ.js";
21
21
  import "../../../chunk-SNOECVP4.js";
22
22
  import "../../../chunk-2AW6NZQ5.js";
23
23
  import "../../../chunk-6XKWVDB6.js";
24
+ import "../../../chunk-2HGYYNE5.js";
24
25
  import "../../../chunk-UBB7JKND.js";
25
26
  import "../../../chunk-T2GATXSP.js";
26
27
  import "../../../chunk-XVNW332R.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  mockAndCaptureOutput
3
- } from "../../../chunk-O5XKA735.js";
3
+ } from "../../../chunk-CQXTRP7V.js";
4
4
  import {
5
5
  Logout
6
- } from "../../../chunk-SQPCZKX5.js";
6
+ } from "../../../chunk-TVHQ7O3U.js";
7
7
  import {
8
8
  logout
9
- } from "../../../chunk-MQCE7QDZ.js";
9
+ } from "../../../chunk-L7BARKPN.js";
10
10
  import "../../../chunk-LCWH3FW5.js";
11
11
  import "../../../chunk-NLUGD7PZ.js";
12
12
  import {
@@ -15,23 +15,24 @@ import {
15
15
  test,
16
16
  vi
17
17
  } from "../../../chunk-ZGHNMRBX.js";
18
- import "../../../chunk-ONFQ5XTX.js";
19
- import "../../../chunk-QPYUGCEP.js";
20
- import "../../../chunk-NLZ5VWA3.js";
18
+ import "../../../chunk-RX32UG2K.js";
19
+ import "../../../chunk-WOL7YMUX.js";
20
+ import "../../../chunk-PRP4S22K.js";
21
21
  import "../../../chunk-VSLR7ET4.js";
22
- import "../../../chunk-PP4BSPLO.js";
23
- import "../../../chunk-BPHTUL36.js";
24
- import "../../../chunk-N766LDXO.js";
22
+ import "../../../chunk-CGTFVNVW.js";
23
+ import "../../../chunk-CQXLJ74Q.js";
24
+ import "../../../chunk-JNCUUFQ2.js";
25
25
  import "../../../chunk-BYPQXSAL.js";
26
26
  import "../../../chunk-O5K4AU7Q.js";
27
- import "../../../chunk-2J35X4IR.js";
28
- import "../../../chunk-YK3ZIR2O.js";
27
+ import "../../../chunk-RRJXIWCI.js";
28
+ import "../../../chunk-W4K3OTNK.js";
29
29
  import "../../../chunk-QETDXAFX.js";
30
- import "../../../chunk-F6BSBHJJ.js";
31
- import "../../../chunk-6DU4BL5F.js";
30
+ import "../../../chunk-NZDBLGNM.js";
31
+ import "../../../chunk-BFQFJ7IZ.js";
32
32
  import "../../../chunk-SNOECVP4.js";
33
33
  import "../../../chunk-2AW6NZQ5.js";
34
34
  import "../../../chunk-6XKWVDB6.js";
35
+ import "../../../chunk-2HGYYNE5.js";
35
36
  import "../../../chunk-UBB7JKND.js";
36
37
  import "../../../chunk-T2GATXSP.js";
37
38
  import "../../../chunk-XVNW332R.js";
@@ -1,23 +1,24 @@
1
1
  import {
2
2
  CommandFlags
3
- } from "../../../chunk-63OWMCSM.js";
4
- import "../../../chunk-ONFQ5XTX.js";
5
- import "../../../chunk-QPYUGCEP.js";
6
- import "../../../chunk-NLZ5VWA3.js";
3
+ } from "../../../chunk-TSKLJ4DZ.js";
4
+ import "../../../chunk-RX32UG2K.js";
5
+ import "../../../chunk-WOL7YMUX.js";
6
+ import "../../../chunk-PRP4S22K.js";
7
7
  import "../../../chunk-VSLR7ET4.js";
8
- import "../../../chunk-PP4BSPLO.js";
9
- import "../../../chunk-BPHTUL36.js";
10
- import "../../../chunk-N766LDXO.js";
8
+ import "../../../chunk-CGTFVNVW.js";
9
+ import "../../../chunk-CQXLJ74Q.js";
10
+ import "../../../chunk-JNCUUFQ2.js";
11
11
  import "../../../chunk-BYPQXSAL.js";
12
12
  import "../../../chunk-O5K4AU7Q.js";
13
- import "../../../chunk-2J35X4IR.js";
14
- import "../../../chunk-YK3ZIR2O.js";
13
+ import "../../../chunk-RRJXIWCI.js";
14
+ import "../../../chunk-W4K3OTNK.js";
15
15
  import "../../../chunk-QETDXAFX.js";
16
- import "../../../chunk-F6BSBHJJ.js";
17
- import "../../../chunk-6DU4BL5F.js";
16
+ import "../../../chunk-NZDBLGNM.js";
17
+ import "../../../chunk-BFQFJ7IZ.js";
18
18
  import "../../../chunk-SNOECVP4.js";
19
19
  import "../../../chunk-2AW6NZQ5.js";
20
20
  import "../../../chunk-6XKWVDB6.js";
21
+ import "../../../chunk-2HGYYNE5.js";
21
22
  import "../../../chunk-UBB7JKND.js";
22
23
  import "../../../chunk-T2GATXSP.js";
23
24
  import "../../../chunk-XVNW332R.js";