@shopify/cli 3.66.1 → 3.67.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 (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/{chunk-NLZ5VWA3.js → chunk-2A4NZDBL.js} +25 -8
  12. package/dist/{lib-CPSRXLFM.js → chunk-2HGYYNE5.js} +5 -2
  13. package/dist/{chunk-MQCE7QDZ.js → chunk-33B37WAX.js} +148 -39
  14. package/dist/{chunk-N766LDXO.js → chunk-56GJOU7U.js} +29 -5
  15. package/dist/{chunk-V7KJMBZN.js → chunk-66CAOMYB.js} +3 -3
  16. package/dist/{chunk-HJEKQ36N.js → chunk-6JA2FWML.js} +3 -3
  17. package/dist/{chunk-SVKRBSOG.js → chunk-6RGB2VE4.js} +2 -2
  18. package/dist/{chunk-YK3ZIR2O.js → chunk-7QTS6ZWN.js} +30 -90
  19. package/dist/{chunk-2J35X4IR.js → chunk-7TTWOW5T.js} +2 -2
  20. package/dist/{chunk-E5YZHXRF.js → chunk-7VVKCVPD.js} +4 -4
  21. package/dist/{chunk-GO4OU2FC.js → chunk-A3ZREYWQ.js} +4 -4
  22. package/dist/{chunk-SQPCZKX5.js → chunk-ALNQ5ENK.js} +4 -4
  23. package/dist/{chunk-6DU4BL5F.js → chunk-BFQFJ7IZ.js} +28 -17
  24. package/dist/{chunk-BPHTUL36.js → chunk-BLVJTR72.js} +2 -2
  25. package/dist/{chunk-PP4BSPLO.js → chunk-BPTBCC7K.js} +9 -4
  26. package/dist/{chunk-AUKMJHJ7.js → chunk-CLB5CEKJ.js} +3 -3
  27. package/dist/{chunk-ICYU4JKU.js → chunk-DFWU3T6T.js} +3 -3
  28. package/dist/{chunk-SCWJ5DTS.js → chunk-DQX6APZ7.js} +3 -3
  29. package/dist/{chunk-JRECCYJM.js → chunk-DZU2Z54P.js} +75 -75
  30. package/dist/{chunk-63OWMCSM.js → chunk-ETEUMLXG.js} +4 -4
  31. package/dist/{chunk-EARW2CGK.js → chunk-FCZFZS5D.js} +5 -5
  32. package/dist/{chunk-47L545SZ.js → chunk-HDUCYBDJ.js} +5 -5
  33. package/dist/{chunk-ECD63UWY.js → chunk-HH6CL4YY.js} +4 -4
  34. package/dist/{chunk-3DZ2Z5F7.js → chunk-NTY5IMTJ.js} +3 -3
  35. package/dist/{chunk-F6BSBHJJ.js → chunk-NZDBLGNM.js} +4 -3
  36. package/dist/{chunk-AV2DDU5Q.js → chunk-RG3ZCNYG.js} +2 -2
  37. package/dist/{chunk-VZ6ZDQBM.js → chunk-ROVTA24T.js} +3 -3
  38. package/dist/{chunk-ZTHIONMB.js → chunk-RZAH6V72.js} +3 -3
  39. package/dist/{chunk-74LQ7ZSW.js → chunk-SMD4PKJ4.js} +2 -2
  40. package/dist/{chunk-ONFQ5XTX.js → chunk-T5OZRID5.js} +7 -7
  41. package/dist/{chunk-44VQQ5IT.js → chunk-TLEQTJSL.js} +3 -3
  42. package/dist/{chunk-GXXQT43J.js → chunk-UNEY6YDL.js} +2 -2
  43. package/dist/{chunk-P2HC3CUV.js → chunk-UYB6BQ5X.js} +4 -4
  44. package/dist/{chunk-O5XKA735.js → chunk-V4VZ6RSC.js} +2 -2
  45. package/dist/{chunk-QPYUGCEP.js → chunk-V7FFSXYT.js} +24 -11
  46. package/dist/{chunk-3ZYNGWAE.js → chunk-W44P3FXC.js} +2 -2
  47. package/dist/{chunk-PCGPDW4N.js → chunk-X5O6SBDL.js} +3 -3
  48. package/dist/{chunk-OGVAYZHB.js → chunk-ZEKYC6RR.js} +5 -5
  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-GZT2PBX4.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-H2JO5MGI.js} +11 -10
  95. package/dist/hooks/postrun.js +9 -8
  96. package/dist/hooks/prerun.js +9 -8
  97. package/dist/index.js +4314 -1904
  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-PNRP6M3C.js} +5 -4
  101. package/dist/{morph-M726AOW6.js → morph-WDFBUXWF.js} +9 -9
  102. package/dist/{node-QK7Q2TRB.js → node-FRKV7HYW.js} +16 -15
  103. package/dist/{node-package-manager-3WV6USI6.js → node-package-manager-XKAH57SF.js} +6 -5
  104. package/dist/{system-N2OPVMOD.js → system-5YQPPSYJ.js} +7 -6
  105. package/dist/tsconfig.tsbuildinfo +1 -1
  106. package/dist/{ui-GHKHPRP2.js → ui-TWN6LBOI.js} +5 -4
  107. package/dist/{workerd-KAYMO4VM.js → workerd-EK4JHLXE.js} +15 -14
  108. package/oclif.manifest.json +86 -88
  109. package/package.json +7 -7
@@ -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-H2JO5MGI.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-7QTS6ZWN.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.66.1";
7
+ var CLI_KIT_VERSION = "3.67.0";
8
8
 
9
9
  export {
10
10
  CLI_KIT_VERSION
11
11
  };
12
- //# sourceMappingURL=chunk-2J35X4IR.js.map
12
+ //# sourceMappingURL=chunk-7TTWOW5T.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  demo
3
- } from "./chunk-3ZYNGWAE.js";
3
+ } from "./chunk-W44P3FXC.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-ONFQ5XTX.js";
6
+ } from "./chunk-T5OZRID5.js";
7
7
  import {
8
8
  outputInfo,
9
9
  readFile,
10
10
  renderAutocompletePrompt
11
- } from "./chunk-YK3ZIR2O.js";
11
+ } from "./chunk-7QTS6ZWN.js";
12
12
  import {
13
13
  joinPath
14
14
  } from "./chunk-T2GATXSP.js";
@@ -42,4 +42,4 @@ var Catalog = class extends base_command_default {
42
42
  export {
43
43
  Catalog
44
44
  };
45
- //# sourceMappingURL=chunk-E5YZHXRF.js.map
45
+ //# sourceMappingURL=chunk-7VVKCVPD.js.map
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-QSUS3GJF.js";
4
4
  import {
5
5
  demoStepsSchema
6
- } from "./chunk-3ZYNGWAE.js";
6
+ } from "./chunk-W44P3FXC.js";
7
7
  import {
8
8
  base_command_default
9
- } from "./chunk-ONFQ5XTX.js";
9
+ } from "./chunk-T5OZRID5.js";
10
10
  import {
11
11
  outputInfo,
12
12
  renderInfo
13
- } from "./chunk-YK3ZIR2O.js";
13
+ } from "./chunk-7QTS6ZWN.js";
14
14
  import {
15
15
  __toESM,
16
16
  init_cjs_shims
@@ -55,4 +55,4 @@ The demo should perform the following steps:
55
55
  export {
56
56
  PrintAIPrompt
57
57
  };
58
- //# sourceMappingURL=chunk-GO4OU2FC.js.map
58
+ //# sourceMappingURL=chunk-A3ZREYWQ.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  logout
3
- } from "./chunk-MQCE7QDZ.js";
3
+ } from "./chunk-33B37WAX.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-ONFQ5XTX.js";
6
+ } from "./chunk-T5OZRID5.js";
7
7
  import {
8
8
  outputSuccess
9
- } from "./chunk-YK3ZIR2O.js";
9
+ } from "./chunk-7QTS6ZWN.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-ALNQ5ENK.js.map
@@ -148256,15 +148256,15 @@ var require_hyperlinker = __commonJS({
148256
148256
  }
148257
148257
  });
148258
148258
 
148259
- // ../../node_modules/.pnpm/supports-hyperlinks@2.3.0/node_modules/supports-hyperlinks/index.js
148259
+ // ../../node_modules/.pnpm/supports-hyperlinks@3.1.0/node_modules/supports-hyperlinks/index.js
148260
148260
  var require_supports_hyperlinks = __commonJS({
148261
- "../../node_modules/.pnpm/supports-hyperlinks@2.3.0/node_modules/supports-hyperlinks/index.js"(exports, module) {
148261
+ "../../node_modules/.pnpm/supports-hyperlinks@3.1.0/node_modules/supports-hyperlinks/index.js"(exports, module) {
148262
148262
  "use strict";
148263
148263
  init_cjs_shims();
148264
148264
  var supportsColor = require_supports_color2(), hasFlag = require_has_flag();
148265
148265
  function parseVersion(versionString) {
148266
148266
  if (/^\d{3,4}$/.test(versionString)) {
148267
- let m = /(\d{1,2})(\d{2})/.exec(versionString);
148267
+ let m = /(\d{1,2})(\d{2})/.exec(versionString) || [];
148268
148268
  return {
148269
148269
  major: 0,
148270
148270
  minor: parseInt(m[1], 10),
@@ -148279,18 +148279,30 @@ var require_supports_hyperlinks = __commonJS({
148279
148279
  };
148280
148280
  }
148281
148281
  function supportsHyperlink(stream) {
148282
- let { env } = process;
148283
- if ("FORCE_HYPERLINK" in env)
148284
- return !(env.FORCE_HYPERLINK.length > 0 && parseInt(env.FORCE_HYPERLINK, 10) === 0);
148282
+ let {
148283
+ CI,
148284
+ FORCE_HYPERLINK,
148285
+ NETLIFY,
148286
+ TEAMCITY_VERSION,
148287
+ TERM_PROGRAM,
148288
+ TERM_PROGRAM_VERSION,
148289
+ VTE_VERSION
148290
+ } = process.env;
148291
+ if (FORCE_HYPERLINK)
148292
+ return !(FORCE_HYPERLINK.length > 0 && parseInt(FORCE_HYPERLINK, 10) === 0);
148285
148293
  if (hasFlag("no-hyperlink") || hasFlag("no-hyperlinks") || hasFlag("hyperlink=false") || hasFlag("hyperlink=never"))
148286
148294
  return !1;
148287
- if (hasFlag("hyperlink=true") || hasFlag("hyperlink=always") || "NETLIFY" in env)
148295
+ if (hasFlag("hyperlink=true") || hasFlag("hyperlink=always") || NETLIFY)
148288
148296
  return !0;
148289
- if (!supportsColor.supportsColor(stream) || stream && !stream.isTTY || process.platform === "win32" || "CI" in env || "TEAMCITY_VERSION" in env)
148297
+ if (!supportsColor.supportsColor(stream) || stream && !stream.isTTY)
148290
148298
  return !1;
148291
- if ("TERM_PROGRAM" in env) {
148292
- let version = parseVersion(env.TERM_PROGRAM_VERSION);
148293
- switch (env.TERM_PROGRAM) {
148299
+ if ("WT_SESSION" in process.env)
148300
+ return !0;
148301
+ if (process.platform === "win32" || CI || TEAMCITY_VERSION)
148302
+ return !1;
148303
+ if (TERM_PROGRAM) {
148304
+ let version = parseVersion(TERM_PROGRAM_VERSION || "");
148305
+ switch (TERM_PROGRAM) {
148294
148306
  case "iTerm.app":
148295
148307
  return version.major === 3 ? version.minor >= 1 : version.major > 3;
148296
148308
  case "WezTerm":
@@ -148299,10 +148311,10 @@ var require_supports_hyperlinks = __commonJS({
148299
148311
  return version.major > 1 || version.major === 1 && version.minor >= 72;
148300
148312
  }
148301
148313
  }
148302
- if ("VTE_VERSION" in env) {
148303
- if (env.VTE_VERSION === "0.50.0")
148314
+ if (VTE_VERSION) {
148315
+ if (VTE_VERSION === "0.50.0")
148304
148316
  return !1;
148305
- let version = parseVersion(env.VTE_VERSION);
148317
+ let version = parseVersion(VTE_VERSION);
148306
148318
  return version.major > 0 || version.minor >= 50;
148307
148319
  }
148308
148320
  return !1;
@@ -156383,10 +156395,9 @@ var require_lib2 = __commonJS({
156383
156395
  });
156384
156396
 
156385
156397
  export {
156386
- require_supports_color2 as require_supports_color,
156398
+ require_supports_hyperlinks,
156387
156399
  require_source,
156388
156400
  require_cross_spawn,
156389
- require_supports_hyperlinks,
156390
156401
  require_lib2 as require_lib
156391
156402
  };
156392
156403
  /*! Bundled license information:
@@ -156416,4 +156427,4 @@ ejs/lib/ejs.js:
156416
156427
  * @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
156417
156428
  *)
156418
156429
  */
156419
- //# sourceMappingURL=chunk-6DU4BL5F.js.map
156430
+ //# sourceMappingURL=chunk-BFQFJ7IZ.js.map
@@ -2,7 +2,7 @@ import {
2
2
  execa,
3
3
  outputContent,
4
4
  outputDebug
5
- } from "./chunk-YK3ZIR2O.js";
5
+ } from "./chunk-7QTS6ZWN.js";
6
6
  import {
7
7
  init_cjs_shims
8
8
  } from "./chunk-POZ5MGPT.js";
@@ -60,4 +60,4 @@ export {
60
60
  username,
61
61
  platformAndArch
62
62
  };
63
- //# sourceMappingURL=chunk-BPHTUL36.js.map
63
+ //# sourceMappingURL=chunk-BLVJTR72.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  platformAndArch
3
- } from "./chunk-BPHTUL36.js";
3
+ } from "./chunk-BLVJTR72.js";
4
4
  import {
5
5
  getPackageManager,
6
6
  packageManagerFromUserAgent
7
- } from "./chunk-N766LDXO.js";
7
+ } from "./chunk-56GJOU7U.js";
8
8
  import {
9
9
  addPublicMetadata,
10
10
  addSensitiveMetadata,
@@ -12,7 +12,7 @@ import {
12
12
  cloudEnvironment,
13
13
  currentProcessIsGlobal,
14
14
  macAddress
15
- } from "./chunk-YK3ZIR2O.js";
15
+ } from "./chunk-7QTS6ZWN.js";
16
16
  import {
17
17
  cwd
18
18
  } from "./chunk-T2GATXSP.js";
@@ -47,6 +47,10 @@ function randomBytes(size) {
47
47
  function randomUUID() {
48
48
  return crypto.randomUUID();
49
49
  }
50
+ function nonRandomUUID(subject) {
51
+ let namespace = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
52
+ return crypto.createHash("sha1").update(Buffer.from(namespace.replace(/-/g, ""), "hex")).update(subject).digest().toString("hex").replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, "$1-$2-$3-$4-$5");
53
+ }
50
54
 
51
55
  // ../cli-kit/dist/private/node/analytics.js
52
56
  async function startAnalytics({ commandContent, args, currentTime = (/* @__PURE__ */ new Date()).getTime(), commandClass }) {
@@ -106,8 +110,9 @@ export {
106
110
  fileHash,
107
111
  randomBytes,
108
112
  randomUUID,
113
+ nonRandomUUID,
109
114
  startAnalytics,
110
115
  getEnvironmentData,
111
116
  getSensitiveEnvironmentData
112
117
  };
113
- //# sourceMappingURL=chunk-PP4BSPLO.js.map
118
+ //# sourceMappingURL=chunk-BPTBCC7K.js.map
@@ -2,7 +2,7 @@ import {
2
2
  init_cjs_shims
3
3
  } from "./chunk-POZ5MGPT.js";
4
4
 
5
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
5
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.4_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
6
6
  init_cjs_shims();
7
7
 
8
8
  // ../../node_modules/.pnpm/get-port@7.1.0/node_modules/get-port/index.js
@@ -94,7 +94,7 @@ function portNumbers(from, to) {
94
94
  }(from, to);
95
95
  }
96
96
 
97
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
97
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.4_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
98
98
  function findPort(portPreference, range = 100) {
99
99
  return getPorts({
100
100
  port: portNumbers(portPreference, portPreference + range)
@@ -104,4 +104,4 @@ function findPort(portPreference, range = 100) {
104
104
  export {
105
105
  findPort
106
106
  };
107
- //# sourceMappingURL=chunk-AUKMJHJ7.js.map
107
+ //# sourceMappingURL=chunk-CLB5CEKJ.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-ONFQ5XTX.js";
3
+ } from "./chunk-T5OZRID5.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-6DU4BL5F.js";
6
+ } from "./chunk-BFQFJ7IZ.js";
7
7
  import {
8
8
  __toESM,
9
9
  init_cjs_shims
@@ -43,4 +43,4 @@ var HelpCommand = class _HelpCommand extends base_command_default {
43
43
  export {
44
44
  HelpCommand
45
45
  };
46
- //# sourceMappingURL=chunk-ICYU4JKU.js.map
46
+ //# sourceMappingURL=chunk-DFWU3T6T.js.map
@@ -4,7 +4,7 @@ import {
4
4
  findUpAndReadPackageJson,
5
5
  getPackageManager,
6
6
  usesWorkspaces
7
- } from "./chunk-N766LDXO.js";
7
+ } from "./chunk-56GJOU7U.js";
8
8
  import {
9
9
  AbortError,
10
10
  exec,
@@ -15,7 +15,7 @@ import {
15
15
  outputSuccess,
16
16
  outputToken,
17
17
  outputWarn
18
- } from "./chunk-YK3ZIR2O.js";
18
+ } from "./chunk-7QTS6ZWN.js";
19
19
  import {
20
20
  dirname,
21
21
  joinPath,
@@ -140,4 +140,4 @@ function usingPackageManager({ env } = { env: process.env }) {
140
140
  export {
141
141
  upgrade
142
142
  };
143
- //# sourceMappingURL=chunk-SCWJ5DTS.js.map
143
+ //# sourceMappingURL=chunk-DQX6APZ7.js.map