@shopify/cli 3.80.7 → 3.81.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 (156) hide show
  1. package/dist/assets/dev-console/extensions/dev-console/assets/index-ohOjvIJh.js +64 -0
  2. package/dist/assets/dev-console/index.html +1 -1
  3. package/dist/assets/hydrogen/starter/.cursor/rules/cookbook-recipe-subscriptions.mdc +921 -0
  4. package/dist/assets/hydrogen/starter/CHANGELOG.md +0 -35
  5. package/dist/assets/hydrogen/starter/app/components/AddToCartButton.tsx +1 -1
  6. package/dist/assets/hydrogen/starter/app/components/CartLineItem.tsx +1 -1
  7. package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +1 -1
  8. package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +1 -1
  9. package/dist/assets/hydrogen/starter/app/components/Footer.tsx +1 -1
  10. package/dist/assets/hydrogen/starter/app/components/Header.tsx +1 -1
  11. package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +1 -1
  12. package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +1 -1
  13. package/dist/assets/hydrogen/starter/app/components/ProductItem.tsx +1 -1
  14. package/dist/assets/hydrogen/starter/app/components/SearchForm.tsx +1 -1
  15. package/dist/assets/hydrogen/starter/app/components/SearchFormPredictive.tsx +6 -1
  16. package/dist/assets/hydrogen/starter/app/components/SearchResults.tsx +1 -1
  17. package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +1 -1
  18. package/dist/assets/hydrogen/starter/app/entry.client.tsx +2 -2
  19. package/dist/assets/hydrogen/starter/app/entry.server.tsx +4 -9
  20. package/dist/assets/hydrogen/starter/app/lib/variants.ts +1 -1
  21. package/dist/assets/hydrogen/starter/app/root.tsx +1 -1
  22. package/dist/assets/hydrogen/starter/app/routes/_index.tsx +1 -1
  23. package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +1 -1
  24. package/dist/assets/hydrogen/starter/app/routes/account.orders.$id.tsx +4 -4
  25. package/dist/assets/hydrogen/starter/app/routes/account.orders._index.tsx +1 -1
  26. package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +7 -1
  27. package/dist/assets/hydrogen/starter/app/routes/account.tsx +1 -1
  28. package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +1 -1
  29. package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +1 -1
  30. package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +1 -1
  31. package/dist/assets/hydrogen/starter/app/routes/cart.tsx +2 -7
  32. package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +1 -1
  33. package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +1 -1
  34. package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +2 -2
  35. package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +1 -1
  36. package/dist/assets/hydrogen/starter/app/routes/policies.$handle.tsx +1 -1
  37. package/dist/assets/hydrogen/starter/app/routes/policies._index.tsx +1 -1
  38. package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +1 -1
  39. package/dist/assets/hydrogen/starter/app/routes/search.tsx +1 -1
  40. package/dist/assets/hydrogen/starter/app/routes.ts +2 -2
  41. package/dist/assets/hydrogen/starter/env.d.ts +2 -12
  42. package/dist/assets/hydrogen/starter/eslint.config.js +0 -2
  43. package/dist/assets/hydrogen/starter/package.json +12 -11
  44. package/dist/assets/hydrogen/starter/server.ts +5 -2
  45. package/dist/assets/hydrogen/starter/tsconfig.json +6 -18
  46. package/dist/assets/hydrogen/starter/vite.config.ts +24 -3
  47. package/dist/assets/hydrogen/tailwind/package.json +1 -4
  48. package/dist/assets/hydrogen/virtual-routes/components/RequestDetails.jsx +1 -1
  49. package/dist/assets/hydrogen/virtual-routes/layout.jsx +7 -1
  50. package/dist/assets/hydrogen/virtual-routes/routes/index.jsx +1 -1
  51. package/dist/assets/hydrogen/virtual-routes/routes/subrequest-profiler.jsx +1 -1
  52. package/dist/assets/hydrogen/virtual-routes/virtual-root-with-layout.jsx +1 -1
  53. package/dist/assets/hydrogen/virtual-routes/virtual-root.jsx +1 -1
  54. package/dist/assets/hydrogen/vite/vite.config.js +1 -1
  55. package/dist/{chunk-JU6SOKDJ.js → chunk-2RTQR5PF.js} +4 -4
  56. package/dist/{chunk-5YH5HMRM.js → chunk-3TCAFLMI.js} +3 -3
  57. package/dist/{chunk-QPXAGLXJ.js → chunk-4UU24IRW.js} +5 -5
  58. package/dist/{chunk-KGZTFG3M.js → chunk-66LU5RHQ.js} +3 -3
  59. package/dist/{chunk-MQCYR4KR.js → chunk-7KHSYC7Q.js} +4 -4
  60. package/dist/{chunk-YQXBJZRZ.js → chunk-AFKRMMUK.js} +2 -2
  61. package/dist/{chunk-63DIRIVX.js → chunk-BU5YHTR3.js} +242 -216
  62. package/dist/{chunk-77RMKCKT.js → chunk-BWXOMTF4.js} +2 -2
  63. package/dist/{chunk-TJM3YBLQ.js → chunk-CTFDRWUN.js} +15 -12
  64. package/dist/{chunk-PDNRVFZE.js → chunk-EVLVUZ4W.js} +16 -11
  65. package/dist/{chunk-HWRJLLWI.js → chunk-F65YW645.js} +2 -2
  66. package/dist/{chunk-OWRPRJTD.js → chunk-FAITFLRX.js} +2 -2
  67. package/dist/{chunk-3DYG3ZWU.js → chunk-FBJAZPR7.js} +3 -3
  68. package/dist/{chunk-RFO2FC5M.js → chunk-FD2PC23V.js} +6 -6
  69. package/dist/{chunk-HYECXSZG.js → chunk-GESAFNQ7.js} +275 -76
  70. package/dist/{chunk-RJJFC36J.js → chunk-H4NXKYFX.js} +28 -28
  71. package/dist/{chunk-JDRMHPFL.js → chunk-H7RFBD5F.js} +4 -4
  72. package/dist/{chunk-5K4EFFDY.js → chunk-HL635BW4.js} +9 -8
  73. package/dist/{chunk-OQ7ZCSZM.js → chunk-HVXOXFW7.js} +8 -6
  74. package/dist/{chunk-NY2OPNXU.js → chunk-I3MFQXUO.js} +5 -5
  75. package/dist/{chunk-NSTNFY7W.js → chunk-I55SUBMN.js} +45 -23
  76. package/dist/{chunk-T6CKLCY3.js → chunk-J22RRMUV.js} +3 -3
  77. package/dist/{chunk-VYIBTTN2.js → chunk-JMLKYNLE.js} +3 -3
  78. package/dist/{chunk-ZOUELNMC.js → chunk-LJSDT5VD.js} +3 -3
  79. package/dist/{chunk-2W6OLZFD.js → chunk-LKFFDKQK.js} +3 -3
  80. package/dist/{chunk-5AFYDRV4.js → chunk-LPU2VGJR.js} +42 -507
  81. package/dist/{chunk-TNF6QFVZ.js → chunk-NVXZREWB.js} +28 -31
  82. package/dist/{chunk-JRAEVQWT.js → chunk-OCEG2LVS.js} +2 -2
  83. package/dist/{chunk-PJZWUPY4.js → chunk-PL4FBKID.js} +5 -5
  84. package/dist/{chunk-MSHN7O5N.js → chunk-PO4WPF5B.js} +2 -2
  85. package/dist/{chunk-KUZYMDX4.js → chunk-PZ532W3Q.js} +8 -8
  86. package/dist/{chunk-XZM7J5LL.js → chunk-Q5VEQZWD.js} +5 -5
  87. package/dist/{chunk-ECV2CLGW.js → chunk-R3OIVMMP.js} +4 -4
  88. package/dist/{chunk-IHC7Q4LY.js → chunk-RN6ES42P.js} +4 -4
  89. package/dist/{chunk-LQ2ZKVR6.js → chunk-UMUTXITN.js} +87 -4
  90. package/dist/chunk-V67D4V7T.js +107 -0
  91. package/dist/{chunk-W4ZWJMX2.js → chunk-VKZ4FDXJ.js} +2 -2
  92. package/dist/chunk-W5G2YPO2.js +11805 -0
  93. package/dist/{chunk-RJ4CN43L.js → chunk-XSJQXZOL.js} +4 -4
  94. package/dist/{chunk-CDBXAE2F.js → chunk-Y2JP6WFP.js} +99 -11
  95. package/dist/{chunk-TMYCLPMW.js → chunk-YQAKBVIP.js} +535 -337
  96. package/dist/cli/commands/auth/logout.js +16 -17
  97. package/dist/cli/commands/auth/logout.test.js +18 -19
  98. package/dist/cli/commands/cache/clear.js +15 -16
  99. package/dist/cli/commands/debug/command-flags.js +15 -16
  100. package/dist/cli/commands/docs/generate.js +15 -16
  101. package/dist/cli/commands/docs/generate.test.js +16 -17
  102. package/dist/cli/commands/help.js +15 -16
  103. package/dist/cli/commands/kitchen-sink/async.js +16 -17
  104. package/dist/cli/commands/kitchen-sink/async.test.js +17 -18
  105. package/dist/cli/commands/kitchen-sink/index.js +18 -19
  106. package/dist/cli/commands/kitchen-sink/index.test.js +19 -20
  107. package/dist/cli/commands/kitchen-sink/prompts.js +16 -17
  108. package/dist/cli/commands/kitchen-sink/prompts.test.js +17 -18
  109. package/dist/cli/commands/kitchen-sink/static.js +16 -17
  110. package/dist/cli/commands/kitchen-sink/static.test.js +17 -18
  111. package/dist/cli/commands/notifications/generate.js +16 -17
  112. package/dist/cli/commands/notifications/list.js +16 -17
  113. package/dist/cli/commands/search.js +16 -17
  114. package/dist/cli/commands/upgrade.js +16 -17
  115. package/dist/cli/commands/upgrade.test.js +1 -2
  116. package/dist/cli/commands/version.js +16 -17
  117. package/dist/cli/commands/version.test.js +17 -18
  118. package/dist/cli/services/commands/notifications.js +11 -12
  119. package/dist/cli/services/commands/search.js +7 -8
  120. package/dist/cli/services/commands/search.test.js +8 -9
  121. package/dist/cli/services/commands/version.js +8 -9
  122. package/dist/cli/services/commands/version.test.js +10 -11
  123. package/dist/cli/services/kitchen-sink/async.js +7 -8
  124. package/dist/cli/services/kitchen-sink/prompts.js +7 -8
  125. package/dist/cli/services/kitchen-sink/static.js +7 -8
  126. package/dist/cli/services/upgrade.js +8 -9
  127. package/dist/cli/services/upgrade.test.js +10 -11
  128. package/dist/{custom-oclif-loader-XTWWK7GM.js → custom-oclif-loader-OGNQPWLM.js} +7 -8
  129. package/dist/{del-YIU34DZ5.js → del-4JSTEFDW.js} +3 -3
  130. package/dist/{devtools-J4QAI6HR.js → devtools-LDCSRUXB.js} +4 -4
  131. package/dist/{error-handler-MIQWANES.js → error-handler-7HDPJKMS.js} +13 -14
  132. package/dist/hooks/postrun.js +11 -12
  133. package/dist/hooks/prerun.js +12 -13
  134. package/dist/{http-proxy-KGLXPNEY.js → http-proxy-LHSVRGJ5.js} +14 -10
  135. package/dist/index.js +153244 -162656
  136. package/dist/{lib-MIBR2T7P.js → lib-2ZBT3UR2.js} +5 -5
  137. package/dist/{local-OL4QQF7A.js → local-5DGEQTKE.js} +9 -14
  138. package/dist/{magic-string.es-BSVDQOZI.js → magic-string.es-UZAAPNRE.js} +42 -36
  139. package/dist/{morph-3VOLMA55.js → morph-DFRO3NRL.js} +10 -10
  140. package/dist/node-OJGXX6YN.js +164 -0
  141. package/dist/{node-package-manager-YZ7SC7JY.js → node-package-manager-QX5ULXMO.js} +8 -9
  142. package/dist/{out-5KP5WGIK.js → out-NKJPLKLB.js} +2 -2
  143. package/dist/{path-2K5HIMHZ.js → path-COZT77T2.js} +2 -3
  144. package/dist/tsconfig.tsbuildinfo +1 -1
  145. package/dist/{ui-UMSB2BWG.js → ui-ZOXO5UFK.js} +7 -10
  146. package/dist/{workerd-K4ZX64LQ.js → workerd-BW3TVO32.js} +18 -20
  147. package/oclif.manifest.json +29 -9
  148. package/package.json +10 -11
  149. package/dist/assets/dev-console/extensions/dev-console/assets/index-CqNhY1h-.js +0 -64
  150. package/dist/assets/hydrogen/starter/.cursor/rules/hydrogen-react-router.mdc +0 -52
  151. package/dist/assets/hydrogen/starter/app/routes/api.$version.[graphql.json].tsx +0 -14
  152. package/dist/assets/hydrogen/starter/react-router.config.ts +0 -7
  153. package/dist/chunk-3I3GQNEW.js +0 -95
  154. package/dist/chunk-57Q6OQG4.js +0 -111
  155. package/dist/chunk-ZEM3T4UY.js +0 -10590
  156. package/dist/toml-patch-wasm-J5VGG6WG.js +0 -140
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  renderConcurrent,
3
3
  renderTasks
4
- } from "./chunk-63DIRIVX.js";
4
+ } from "./chunk-BU5YHTR3.js";
5
5
  import {
6
6
  init_cjs_shims
7
7
  } from "./chunk-PKR7KJ6P.js";
@@ -43,4 +43,4 @@ async function asyncTasks() {
43
43
  export {
44
44
  asyncTasks
45
45
  };
46
- //# sourceMappingURL=chunk-JRAEVQWT.js.map
46
+ //# sourceMappingURL=chunk-OCEG2LVS.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CLI_KIT_VERSION
3
- } from "./chunk-HWRJLLWI.js";
3
+ } from "./chunk-F65YW645.js";
4
4
  import {
5
- outputInfo
6
- } from "./chunk-63DIRIVX.js";
5
+ outputResult
6
+ } from "./chunk-BU5YHTR3.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -11,10 +11,10 @@ import {
11
11
  // src/cli/services/commands/version.ts
12
12
  init_cjs_shims();
13
13
  async function versionService() {
14
- outputInfo(CLI_KIT_VERSION);
14
+ outputResult(CLI_KIT_VERSION);
15
15
  }
16
16
 
17
17
  export {
18
18
  versionService
19
19
  };
20
- //# sourceMappingURL=chunk-PJZWUPY4.js.map
20
+ //# sourceMappingURL=chunk-PL4FBKID.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clearCollectedLogs,
3
3
  collectedLogs
4
- } from "./chunk-63DIRIVX.js";
4
+ } from "./chunk-BU5YHTR3.js";
5
5
  import {
6
6
  init_cjs_shims
7
7
  } from "./chunk-PKR7KJ6P.js";
@@ -33,4 +33,4 @@ function mockAndCaptureOutput() {
33
33
  export {
34
34
  mockAndCaptureOutput
35
35
  };
36
- //# sourceMappingURL=chunk-MSHN7O5N.js.map
36
+ //# sourceMappingURL=chunk-PO4WPF5B.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-NSTNFY7W.js";
3
+ } from "./chunk-I55SUBMN.js";
4
4
  import {
5
5
  cacheClear
6
- } from "./chunk-HYECXSZG.js";
6
+ } from "./chunk-GESAFNQ7.js";
7
7
  import {
8
8
  environmentVariables,
9
9
  isTruthy
10
- } from "./chunk-63DIRIVX.js";
10
+ } from "./chunk-BU5YHTR3.js";
11
11
  import {
12
12
  require_lib
13
- } from "./chunk-5AFYDRV4.js";
13
+ } from "./chunk-LPU2VGJR.js";
14
14
  import {
15
15
  __toESM,
16
16
  init_cjs_shims
@@ -26,7 +26,7 @@ init_cjs_shims();
26
26
  init_cjs_shims();
27
27
  import { fileURLToPath } from "node:url";
28
28
  async function launchCLI(options) {
29
- let { errorHandler } = await import("./error-handler-MIQWANES.js"), { isDevelopment } = await import("./local-OL4QQF7A.js"), oclif = await import("./lib-MIBR2T7P.js"), { ShopifyConfig } = await import("./custom-oclif-loader-XTWWK7GM.js");
29
+ let { errorHandler } = await import("./error-handler-7HDPJKMS.js"), { isDevelopment } = await import("./local-5DGEQTKE.js"), oclif = await import("./lib-2ZBT3UR2.js"), { ShopifyConfig } = await import("./custom-oclif-loader-OGNQPWLM.js");
30
30
  isDevelopment() && (oclif.default.settings.debug = !0);
31
31
  try {
32
32
  let config = new ShopifyConfig({ root: fileURLToPath(options.moduleURL) });
@@ -41,7 +41,7 @@ var import_core = __toESM(require_lib());
41
41
  async function exitIfOldNodeVersion(versions = process.versions) {
42
42
  let nodeVersion = versions.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
43
43
  if (nodeMajorVersion < 18) {
44
- let { renderError } = await import("./ui-UMSB2BWG.js");
44
+ let { renderError } = await import("./ui-ZOXO5UFK.js");
45
45
  renderError({
46
46
  headline: "Upgrade to a supported Node version now.",
47
47
  body: [
@@ -68,7 +68,7 @@ async function runCLI(options, launchCLI2 = launchCLI, argv = process.argv, env
68
68
  return setupEnvironmentVariables(options, argv, env), options.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options, argv), forceNoColor(argv, env), await exitIfOldNodeVersion(versions), launchCLI2({ moduleURL: options.moduleURL });
69
69
  }
70
70
  async function addInitToArgvWhenRunningCreateCLI(options, argv = process.argv) {
71
- let { findUpAndReadPackageJson } = await import("./node-package-manager-YZ7SC7JY.js"), { moduleDirectory } = await import("./path-2K5HIMHZ.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
71
+ let { findUpAndReadPackageJson } = await import("./node-package-manager-QX5ULXMO.js"), { moduleDirectory } = await import("./path-COZT77T2.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
72
72
  if (argv.findIndex((arg) => arg.includes("init")) === -1) {
73
73
  let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
74
74
  argv.splice(initIndex2, 0, "init");
@@ -117,4 +117,4 @@ export {
117
117
  jsonFlag,
118
118
  ClearCache
119
119
  };
120
- //# sourceMappingURL=chunk-KUZYMDX4.js.map
120
+ //# sourceMappingURL=chunk-PZ532W3Q.js.map
@@ -2,13 +2,13 @@ import {
2
2
  fetchNotifications,
3
3
  getNotifications,
4
4
  stringifyFilters
5
- } from "./chunk-RFO2FC5M.js";
5
+ } from "./chunk-FD2PC23V.js";
6
6
  import {
7
7
  randomUUID
8
- } from "./chunk-TNF6QFVZ.js";
8
+ } from "./chunk-NVXZREWB.js";
9
9
  import {
10
10
  CLI_KIT_VERSION
11
- } from "./chunk-HWRJLLWI.js";
11
+ } from "./chunk-F65YW645.js";
12
12
  import {
13
13
  outputInfo,
14
14
  renderSelectPrompt,
@@ -16,7 +16,7 @@ import {
16
16
  renderTable,
17
17
  renderTextPrompt,
18
18
  writeFile
19
- } from "./chunk-63DIRIVX.js";
19
+ } from "./chunk-BU5YHTR3.js";
20
20
  import {
21
21
  init_cjs_shims
22
22
  } from "./chunk-PKR7KJ6P.js";
@@ -103,4 +103,4 @@ export {
103
103
  generate,
104
104
  list
105
105
  };
106
- //# sourceMappingURL=chunk-XZM7J5LL.js.map
106
+ //# sourceMappingURL=chunk-Q5VEQZWD.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  searchService
3
- } from "./chunk-77RMKCKT.js";
3
+ } from "./chunk-BWXOMTF4.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-NSTNFY7W.js";
6
+ } from "./chunk-I55SUBMN.js";
7
7
  import {
8
8
  require_lib
9
- } from "./chunk-5AFYDRV4.js";
9
+ } from "./chunk-LPU2VGJR.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-ECV2CLGW.js.map
51
+ //# sourceMappingURL=chunk-R3OIVMMP.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  logout
3
- } from "./chunk-MQCYR4KR.js";
3
+ } from "./chunk-7KHSYC7Q.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-NSTNFY7W.js";
6
+ } from "./chunk-I55SUBMN.js";
7
7
  import {
8
8
  outputSuccess
9
- } from "./chunk-63DIRIVX.js";
9
+ } from "./chunk-BU5YHTR3.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ var Logout = class extends base_command_default {
25
25
  export {
26
26
  Logout
27
27
  };
28
- //# sourceMappingURL=chunk-IHC7Q4LY.js.map
28
+ //# sourceMappingURL=chunk-RN6ES42P.js.map
@@ -1,6 +1,3 @@
1
- import {
2
- require_supports_color
3
- } from "./chunk-3I3GQNEW.js";
4
1
  import {
5
2
  __commonJS,
6
3
  __require,
@@ -334,6 +331,90 @@ var require_browser = __commonJS({
334
331
  }
335
332
  });
336
333
 
334
+ // ../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
335
+ var require_has_flag = __commonJS({
336
+ "../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module) {
337
+ "use strict";
338
+ init_cjs_shims();
339
+ module.exports = (flag, argv = process.argv) => {
340
+ let prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--", position = argv.indexOf(prefix + flag), terminatorPosition = argv.indexOf("--");
341
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
342
+ };
343
+ }
344
+ });
345
+
346
+ // ../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js
347
+ var require_supports_color = __commonJS({
348
+ "../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports, module) {
349
+ "use strict";
350
+ init_cjs_shims();
351
+ var os = __require("os"), tty = __require("tty"), hasFlag = require_has_flag(), { env } = process, flagForceColor;
352
+ hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never") ? flagForceColor = 0 : (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) && (flagForceColor = 1);
353
+ function envForceColor() {
354
+ if ("FORCE_COLOR" in env)
355
+ return env.FORCE_COLOR === "true" ? 1 : env.FORCE_COLOR === "false" ? 0 : env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
356
+ }
357
+ function translateLevel(level) {
358
+ return level === 0 ? !1 : {
359
+ level,
360
+ hasBasic: !0,
361
+ has256: level >= 2,
362
+ has16m: level >= 3
363
+ };
364
+ }
365
+ function supportsColor(haveStream, { streamIsTTY, sniffFlags = !0 } = {}) {
366
+ let noFlagForceColor = envForceColor();
367
+ noFlagForceColor !== void 0 && (flagForceColor = noFlagForceColor);
368
+ let forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
369
+ if (forceColor === 0)
370
+ return 0;
371
+ if (sniffFlags) {
372
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor"))
373
+ return 3;
374
+ if (hasFlag("color=256"))
375
+ return 2;
376
+ }
377
+ if (haveStream && !streamIsTTY && forceColor === void 0)
378
+ return 0;
379
+ let min = forceColor || 0;
380
+ if (env.TERM === "dumb")
381
+ return min;
382
+ if (process.platform === "win32") {
383
+ let osRelease = os.release().split(".");
384
+ return Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586 ? Number(osRelease[2]) >= 14931 ? 3 : 2 : 1;
385
+ }
386
+ if ("CI" in env)
387
+ return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship" ? 1 : min;
388
+ if ("TEAMCITY_VERSION" in env)
389
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
390
+ if (env.COLORTERM === "truecolor")
391
+ return 3;
392
+ if ("TERM_PROGRAM" in env) {
393
+ let version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
394
+ switch (env.TERM_PROGRAM) {
395
+ case "iTerm.app":
396
+ return version >= 3 ? 3 : 2;
397
+ case "Apple_Terminal":
398
+ return 2;
399
+ }
400
+ }
401
+ return /-256(color)?$/i.test(env.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM) || "COLORTERM" in env ? 1 : min;
402
+ }
403
+ function getSupportLevel(stream, options = {}) {
404
+ let level = supportsColor(stream, {
405
+ streamIsTTY: stream && stream.isTTY,
406
+ ...options
407
+ });
408
+ return translateLevel(level);
409
+ }
410
+ module.exports = {
411
+ supportsColor: getSupportLevel,
412
+ stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
413
+ stderr: getSupportLevel({ isTTY: tty.isatty(2) })
414
+ };
415
+ }
416
+ });
417
+
337
418
  // ../../node_modules/.pnpm/debug@4.4.0_supports-color@8.1.1/node_modules/debug/src/node.js
338
419
  var require_node = __commonJS({
339
420
  "../../node_modules/.pnpm/debug@4.4.0_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module) {
@@ -490,7 +571,9 @@ var require_src = __commonJS({
490
571
  });
491
572
 
492
573
  export {
574
+ require_has_flag,
493
575
  require_ms,
576
+ require_supports_color,
494
577
  require_src
495
578
  };
496
- //# sourceMappingURL=chunk-LQ2ZKVR6.js.map
579
+ //# sourceMappingURL=chunk-UMUTXITN.js.map
@@ -0,0 +1,107 @@
1
+ import {
2
+ init_cjs_shims
3
+ } from "./chunk-PKR7KJ6P.js";
4
+
5
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
6
+ init_cjs_shims();
7
+
8
+ // ../../node_modules/.pnpm/get-port@7.1.0/node_modules/get-port/index.js
9
+ init_cjs_shims();
10
+ import net from "node:net";
11
+ import os from "node:os";
12
+ var Locked = class extends Error {
13
+ constructor(port) {
14
+ super(`${port} is locked`);
15
+ }
16
+ }, lockedPorts = {
17
+ old: /* @__PURE__ */ new Set(),
18
+ young: /* @__PURE__ */ new Set()
19
+ }, releaseOldLockedPortsIntervalMs = 1e3 * 15, minPort = 1024, maxPort = 65535, timeout, getLocalHosts = () => {
20
+ let interfaces = os.networkInterfaces(), results = /* @__PURE__ */ new Set([void 0, "0.0.0.0"]);
21
+ for (let _interface of Object.values(interfaces))
22
+ for (let config of _interface)
23
+ results.add(config.address);
24
+ return results;
25
+ }, checkAvailablePort = (options) => new Promise((resolve, reject) => {
26
+ let server = net.createServer();
27
+ server.unref(), server.on("error", reject), server.listen(options, () => {
28
+ let { port } = server.address();
29
+ server.close(() => {
30
+ resolve(port);
31
+ });
32
+ });
33
+ }), getAvailablePort = async (options, hosts) => {
34
+ if (options.host || options.port === 0)
35
+ return checkAvailablePort(options);
36
+ for (let host of hosts)
37
+ try {
38
+ await checkAvailablePort({ port: options.port, host });
39
+ } catch (error) {
40
+ if (!["EADDRNOTAVAIL", "EINVAL"].includes(error.code))
41
+ throw error;
42
+ }
43
+ return options.port;
44
+ }, portCheckSequence = function* (ports) {
45
+ ports && (yield* ports), yield 0;
46
+ };
47
+ async function getPorts(options) {
48
+ let ports, exclude = /* @__PURE__ */ new Set();
49
+ if (options && (options.port && (ports = typeof options.port == "number" ? [options.port] : options.port), options.exclude)) {
50
+ let excludeIterable = options.exclude;
51
+ if (typeof excludeIterable[Symbol.iterator] != "function")
52
+ throw new TypeError("The `exclude` option must be an iterable.");
53
+ for (let element of excludeIterable) {
54
+ if (typeof element != "number")
55
+ throw new TypeError("Each item in the `exclude` option must be a number corresponding to the port you want excluded.");
56
+ if (!Number.isSafeInteger(element))
57
+ throw new TypeError(`Number ${element} in the exclude option is not a safe integer and can't be used`);
58
+ }
59
+ exclude = new Set(excludeIterable);
60
+ }
61
+ timeout === void 0 && (timeout = setTimeout(() => {
62
+ timeout = void 0, lockedPorts.old = lockedPorts.young, lockedPorts.young = /* @__PURE__ */ new Set();
63
+ }, releaseOldLockedPortsIntervalMs), timeout.unref && timeout.unref());
64
+ let hosts = getLocalHosts();
65
+ for (let port of portCheckSequence(ports))
66
+ try {
67
+ if (exclude.has(port))
68
+ continue;
69
+ let availablePort = await getAvailablePort({ ...options, port }, hosts);
70
+ for (; lockedPorts.old.has(availablePort) || lockedPorts.young.has(availablePort); ) {
71
+ if (port !== 0)
72
+ throw new Locked(port);
73
+ availablePort = await getAvailablePort({ ...options, port }, hosts);
74
+ }
75
+ return lockedPorts.young.add(availablePort), availablePort;
76
+ } catch (error) {
77
+ if (!["EADDRINUSE", "EACCES"].includes(error.code) && !(error instanceof Locked))
78
+ throw error;
79
+ }
80
+ throw new Error("No available ports found");
81
+ }
82
+ function portNumbers(from, to) {
83
+ if (!Number.isInteger(from) || !Number.isInteger(to))
84
+ throw new TypeError("`from` and `to` must be integer numbers");
85
+ if (from < minPort || from > maxPort)
86
+ throw new RangeError(`'from' must be between ${minPort} and ${maxPort}`);
87
+ if (to < minPort || to > maxPort)
88
+ throw new RangeError(`'to' must be between ${minPort} and ${maxPort}`);
89
+ if (from > to)
90
+ throw new RangeError("`to` must be greater than or equal to `from`");
91
+ return function* (from2, to2) {
92
+ for (let port = from2; port <= to2; port++)
93
+ yield port;
94
+ }(from, to);
95
+ }
96
+
97
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
98
+ function findPort(portPreference, range = 100) {
99
+ return getPorts({
100
+ port: portNumbers(portPreference, portPreference + range)
101
+ });
102
+ }
103
+
104
+ export {
105
+ findPort
106
+ };
107
+ //# sourceMappingURL=chunk-V67D4V7T.js.map
@@ -5,7 +5,7 @@ import {
5
5
  renderDangerousConfirmationPrompt,
6
6
  renderSelectPrompt,
7
7
  renderTextPrompt
8
- } from "./chunk-63DIRIVX.js";
8
+ } from "./chunk-BU5YHTR3.js";
9
9
  import {
10
10
  init_cjs_shims
11
11
  } from "./chunk-PKR7KJ6P.js";
@@ -175,4 +175,4 @@ async function prompts() {
175
175
  export {
176
176
  prompts
177
177
  };
178
- //# sourceMappingURL=chunk-W4ZWJMX2.js.map
178
+ //# sourceMappingURL=chunk-VKZ4FDXJ.js.map