@shopify/cli 3.61.2 → 3.62.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 (197) hide show
  1. package/dist/assets/dev-console/extensions/dev-console/assets/index-dfaab2a5.css +1 -0
  2. package/dist/assets/dev-console/extensions/dev-console/assets/{index-f3e60690.js → index-e3682a83.js} +1 -1
  3. package/dist/assets/dev-console/index.html +2 -2
  4. package/dist/{chokidar-RFZXZKRQ.js → chokidar-5MKSECYV.js} +4 -3
  5. package/dist/{chunk-QDZF6IG4.js → chunk-22PYIFA2.js} +112 -17
  6. package/dist/{chunk-3MBQVTEX.js → chunk-2QVJZ5TG.js} +2 -1
  7. package/dist/{chunk-KBXWK6XB.js → chunk-2ZSNH7CD.js} +4 -5
  8. package/dist/{chunk-BYFLATOA.js → chunk-5FNE3T7E.js} +5 -4
  9. package/dist/{chunk-G4EQLT5B.js → chunk-5X4QXYEZ.js} +9 -7
  10. package/dist/chunk-66NABVCG.js +73 -0
  11. package/dist/{chunk-LAY4AEXX.js → chunk-6UDFXWNE.js} +2 -1
  12. package/dist/{chunk-QQP6JS5H.js → chunk-7MXLRMOY.js} +3 -2
  13. package/dist/{chunk-EHF6FVWH.js → chunk-A5STII7T.js} +3 -2
  14. package/dist/{chunk-UPM6XNBH.js → chunk-ADESJ2KG.js} +6 -5
  15. package/dist/{chunk-BZJX2NV6.js → chunk-AMAYT2P2.js} +3 -2
  16. package/dist/{chunk-QTBH3GO6.js → chunk-B62HZLMM.js} +3 -2
  17. package/dist/{chunk-3RM5SOXY.js → chunk-BMTG2VHL.js} +4 -3
  18. package/dist/{chunk-FWGRGI4R.js → chunk-BYC3NA2Y.js} +2 -1
  19. package/dist/{chunk-NJTSDTDU.js → chunk-BZFXXFUC.js} +6 -5
  20. package/dist/{chunk-7IZTLXJ5.js → chunk-CKFE55FX.js} +4 -3
  21. package/dist/{chunk-YP5UVIUW.js → chunk-CYQRKZVM.js} +6 -5
  22. package/dist/{chunk-HTYJDJRZ.js → chunk-DL3MKXVR.js} +2 -1
  23. package/dist/{chunk-IUHH3PST.js → chunk-DLK3F3DC.js} +2 -1
  24. package/dist/{chunk-4XNS74OG.js → chunk-EARPFFS7.js} +2 -1
  25. package/dist/chunk-EQPYUHNM.js +3642 -0
  26. package/dist/{chunk-LKGDG6WW.js → chunk-FMKVOTQK.js} +2 -1
  27. package/dist/{chunk-I434ZJQI.js → chunk-GEN4RXTD.js} +7 -6
  28. package/dist/{chunk-QSO3GQEK.js → chunk-HJ4AUFE7.js} +94 -160
  29. package/dist/{chunk-FQIRJADJ.js → chunk-JIJ65JT6.js} +2 -1
  30. package/dist/{chunk-JQPQJN44.js → chunk-JKYNFUD3.js} +11 -12
  31. package/dist/{chunk-4L37JOS5.js → chunk-JL3ESOD2.js} +3 -2
  32. package/dist/{chunk-4TTAP7NN.js → chunk-JOOYCYFU.js} +6 -5
  33. package/dist/{chunk-XMJDBJPP.js → chunk-K3GG6Y3J.js} +12 -12
  34. package/dist/{chunk-VQZ2SHRY.js → chunk-K6257PKA.js} +3 -2
  35. package/dist/{chunk-5KRK4DLX.js → chunk-LC6MEJT3.js} +4 -3
  36. package/dist/{chunk-KDOLMUJB.js → chunk-LH533WG4.js} +2 -1
  37. package/dist/{chunk-FBB6KUZG.js → chunk-LSCXQWNO.js} +2 -1
  38. package/dist/{chunk-VC6CC75R.js → chunk-MG6QFKFM.js} +5 -4
  39. package/dist/{chunk-ETSILRIY.js → chunk-MQ2RGCDU.js} +5 -4
  40. package/dist/{chunk-QOHDW3X5.js → chunk-MQGV3PCJ.js} +4 -3
  41. package/dist/{chunk-PBFWVFAQ.js → chunk-NABCTJNW.js} +3 -2
  42. package/dist/{chunk-YZGLFVKK.js → chunk-NNASIYCT.js} +3 -2
  43. package/dist/chunk-PIB2FEJJ.js +4385 -0
  44. package/dist/{chunk-TXXQWILO.js → chunk-PIVNWN2P.js} +4 -3
  45. package/dist/{chunk-Q3KADKQA.js → chunk-PO6SEYU4.js} +4 -3
  46. package/dist/{chunk-FAFQQMD4.js → chunk-PRJ3U7MR.js} +2 -1
  47. package/dist/{chunk-5B2D56W6.js → chunk-Q4XGXPUG.js} +2 -1
  48. package/dist/{chunk-ZE2ZPLYI.js → chunk-QGJLRFY4.js} +19 -89
  49. package/dist/{chunk-RP2ISWQN.js → chunk-QOUOFEGO.js} +3 -2
  50. package/dist/{chunk-CWYZA7C7.js → chunk-RUSG4O2Z.js} +13464 -5175
  51. package/dist/{chunk-CKKROMZF.js → chunk-S4VBXFXP.js} +3 -2
  52. package/dist/{chunk-BE73NZXB.js → chunk-SAR5HGRG.js} +2 -1
  53. package/dist/{chunk-GXPKATXW.js → chunk-T5LLJYYS.js} +2 -1
  54. package/dist/{chunk-NBIE3DNN.js → chunk-TCRWMUKX.js} +4 -3
  55. package/dist/{chunk-4757GPBG.js → chunk-UACSLX64.js} +6 -5
  56. package/dist/{chunk-4KKFUTH7.js → chunk-UJ3QKFA5.js} +2 -1
  57. package/dist/chunk-UNPXLODI.js +121 -0
  58. package/dist/{chunk-RQ24VTW4.js → chunk-VM4POVNV.js} +2 -1
  59. package/dist/{chunk-CTETXMMM.js → chunk-VS6RWOLM.js} +8 -7
  60. package/dist/{chunk-BUWM6JUU.js → chunk-W5VEUSWG.js} +5 -4
  61. package/dist/{chunk-PCQFWMMD.js → chunk-WADS2TV5.js} +63 -5
  62. package/dist/{chunk-M73YMW2C.js → chunk-WAEWSGBK.js} +2579 -1632
  63. package/dist/{chunk-6SL33DOA.js → chunk-XQFDS44U.js} +2 -1
  64. package/dist/{chunk-WCNR75S2.js → chunk-YC4FLMDD.js} +2 -1
  65. package/dist/{chunk-OXZ2SRCK.js → chunk-YECNACSF.js} +3 -2
  66. package/dist/{chunk-QLLSCNEC.js → chunk-YX5VXHSJ.js} +4 -3
  67. package/dist/{chunk-5MODHNUE.js → chunk-ZCMXEGSE.js} +5 -4
  68. package/dist/{chunk-4VEOJ5JD.js → chunk-ZEHQN47F.js} +2 -1
  69. package/dist/{chunk-3JLUTHGR.js → chunk-ZPFJOUKZ.js} +2 -1
  70. package/dist/{chunk-M63RTPGR.js → chunk-ZPL24Y2D.js} +1 -0
  71. package/dist/cli/commands/auth/logout.js +37 -39
  72. package/dist/cli/commands/auth/logout.test.js +39 -41
  73. package/dist/cli/commands/debug/command-flags.js +33 -35
  74. package/dist/cli/commands/demo/catalog.js +36 -38
  75. package/dist/cli/commands/demo/generate-file.js +37 -39
  76. package/dist/cli/commands/demo/index.js +35 -37
  77. package/dist/cli/commands/demo/print-ai-prompt.js +37 -39
  78. package/dist/cli/commands/docs/generate.js +33 -35
  79. package/dist/cli/commands/docs/generate.test.js +34 -36
  80. package/dist/cli/commands/help.js +33 -35
  81. package/dist/cli/commands/kitchen-sink/async.js +34 -36
  82. package/dist/cli/commands/kitchen-sink/async.test.js +35 -37
  83. package/dist/cli/commands/kitchen-sink/index.js +36 -38
  84. package/dist/cli/commands/kitchen-sink/index.test.js +37 -39
  85. package/dist/cli/commands/kitchen-sink/prompts.js +34 -36
  86. package/dist/cli/commands/kitchen-sink/prompts.test.js +35 -37
  87. package/dist/cli/commands/kitchen-sink/static.js +34 -36
  88. package/dist/cli/commands/kitchen-sink/static.test.js +35 -37
  89. package/dist/cli/commands/search.js +34 -36
  90. package/dist/cli/commands/upgrade.js +33 -35
  91. package/dist/cli/commands/upgrade.test.js +5 -4
  92. package/dist/cli/commands/version.js +34 -36
  93. package/dist/cli/commands/version.test.js +35 -37
  94. package/dist/cli/services/commands/search.js +19 -21
  95. package/dist/cli/services/commands/search.test.js +20 -22
  96. package/dist/cli/services/commands/version.js +23 -25
  97. package/dist/cli/services/commands/version.test.js +25 -27
  98. package/dist/cli/services/demo.js +21 -23
  99. package/dist/cli/services/demo.test.js +22 -24
  100. package/dist/cli/services/kitchen-sink/async.js +19 -21
  101. package/dist/cli/services/kitchen-sink/prompts.js +19 -21
  102. package/dist/cli/services/kitchen-sink/static.js +19 -21
  103. package/dist/cli/services/upgrade.js +22 -24
  104. package/dist/cli/services/upgrade.test.js +30 -27
  105. package/dist/{constants-XCWOF7M7.js → constants-3CLHB4LQ.js} +5 -6
  106. package/dist/{custom-oclif-loader-4SQGUQ7D-P5C4NLSX.js → custom-oclif-loader-ZH42ZTTC.js} +25 -28
  107. package/dist/{del-DGT5RCOW.js → del-KSMMBLCD.js} +9 -8
  108. package/dist/{devtools-SJTLOVKU.js → devtools-6ZZ3EAY7.js} +3 -2
  109. package/dist/error-handler-I6WJC3U2.js +43 -0
  110. package/dist/error-handler-JFX2TIYX.js +38 -0
  111. package/dist/hooks/postrun.js +28 -30
  112. package/dist/hooks/prerun.js +23 -25
  113. package/dist/{http-proxy-WYSSUHIT.js → http-proxy-KFHAZRTT.js} +3 -2
  114. package/dist/index.js +138858 -143506
  115. package/dist/lib-E7NFRKVR.js +14 -0
  116. package/dist/{lib-RZNRJEWB.js → lib-LY6ZCPIO.js} +2 -1
  117. package/dist/{lib-AAMRQUES.js → lib-MUDJYT6A.js} +4 -3
  118. package/dist/{local-YKOG4EUR-XRRBWLSI.js → local-QXPV4RF5.js} +18 -14
  119. package/dist/{magic-string.es-6DE547FE.js → magic-string.es-ATGURXGQ.js} +2 -1
  120. package/dist/{morph-DCIZUK2Q.js → morph-WKKSW22O.js} +6 -5
  121. package/dist/{multipart-parser-ENLY4BKU.js → multipart-parser-KYOHF24X.js} +3 -2
  122. package/dist/{node-3DKQAOFU.js → node-5XXX7TNJ.js} +30 -29
  123. package/dist/{node-package-manager-HYTHPJBI.js → node-package-manager-O65VOP6W.js} +23 -23
  124. package/dist/{npa-AYOTDW63.js → npa-L2ZRSPZ2.js} +4 -3
  125. package/dist/{open-B7XFJJCK.js → open-JRS7RW22.js} +3 -2
  126. package/dist/out-AS7GH6TC.js +7 -0
  127. package/dist/{path-2NNC3QGW.js → path-JVVXOELJ.js} +10 -6
  128. package/dist/{source-map-V6UVDDPX.js → source-map-37TX6JEW.js} +2 -1
  129. package/dist/system-EEQBTJMJ.js +31 -0
  130. package/dist/tsconfig.tsbuildinfo +1 -1
  131. package/dist/{ui-5LSDG3C5.js → ui-3BAHGNCQ.js} +20 -20
  132. package/dist/{workerd-TFH7T6NI.js → workerd-WR22YQIS.js} +29 -28
  133. package/oclif.manifest.json +108 -93
  134. package/package.json +15 -5
  135. package/dist/assets/dev-console/extensions/dev-console/assets/index-792a0c8d.css +0 -1
  136. package/dist/chunk-3LWRRBH5.js +0 -75
  137. package/dist/chunk-3PIGYQSE.js +0 -36
  138. package/dist/chunk-CK7MF3LY.js +0 -28803
  139. package/dist/chunk-J4I3URIN.js +0 -893
  140. package/dist/chunk-MHMFNQE3.js +0 -76
  141. package/dist/chunk-MXHK26B3.js +0 -89
  142. package/dist/chunk-NJP5GFNN.js +0 -29224
  143. package/dist/chunk-OC4AY5G7.js +0 -11936
  144. package/dist/chunk-OQBI57X3.js +0 -22
  145. package/dist/chunk-RPRKZ6JC.js +0 -53861
  146. package/dist/chunk-RTZHOWFC.js +0 -5485
  147. package/dist/chunk-SZQX5J7X.js +0 -64
  148. package/dist/chunk-T77LT3XG.js +0 -4743
  149. package/dist/chunk-UV4APOMB.js +0 -273
  150. package/dist/chunk-VF4VWJWS.js +0 -213222
  151. package/dist/chunk-WZBNLCJ5.js +0 -13452
  152. package/dist/chunk-YWPV7MV2.js +0 -16432
  153. package/dist/chunk-ZLGRKPW3.js +0 -68
  154. package/dist/chunk-ZZGXXS5X.js +0 -819
  155. package/dist/cli/commands/auth/logout.js.map +0 -1
  156. package/dist/cli/commands/debug/command-flags.js.map +0 -1
  157. package/dist/cli/commands/demo/catalog.js.map +0 -1
  158. package/dist/cli/commands/demo/generate-file.js.map +0 -1
  159. package/dist/cli/commands/demo/index.js.map +0 -1
  160. package/dist/cli/commands/demo/print-ai-prompt.js.map +0 -1
  161. package/dist/cli/commands/docs/generate.js.map +0 -1
  162. package/dist/cli/commands/help.js.map +0 -1
  163. package/dist/cli/commands/kitchen-sink/async.js.map +0 -1
  164. package/dist/cli/commands/kitchen-sink/index.js.map +0 -1
  165. package/dist/cli/commands/kitchen-sink/prompts.js.map +0 -1
  166. package/dist/cli/commands/kitchen-sink/static.js.map +0 -1
  167. package/dist/cli/commands/search.js.map +0 -1
  168. package/dist/cli/commands/upgrade.js.map +0 -1
  169. package/dist/cli/commands/version.js.map +0 -1
  170. package/dist/cli/services/commands/search.js.map +0 -1
  171. package/dist/cli/services/commands/version.js.map +0 -1
  172. package/dist/cli/services/demo.js.map +0 -1
  173. package/dist/cli/services/kitchen-sink/async.js.map +0 -1
  174. package/dist/cli/services/kitchen-sink/prompts.js.map +0 -1
  175. package/dist/cli/services/kitchen-sink/static.js.map +0 -1
  176. package/dist/cli/services/upgrade.js.map +0 -1
  177. package/dist/custom-oclif-loader-OD47SFAU.js +0 -92
  178. package/dist/del-ICEHOC6W-GYLFYUKX.js +0 -2817
  179. package/dist/devtools-6HZ2IPFU-GLFJP63E.js +0 -3557
  180. package/dist/devtools-IHJDLLT4.js +0 -77
  181. package/dist/error-handler-EPMFPTYX.js +0 -37
  182. package/dist/error-handler-WI4YVJIS-U3BMMYNJ.js +0 -31
  183. package/dist/error-handler-WL3Q25NI.js +0 -45
  184. package/dist/hooks/postrun.js.map +0 -1
  185. package/dist/hooks/prerun.js.map +0 -1
  186. package/dist/index.js.map +0 -1
  187. package/dist/lib-76RCE6WZ-5IYGTKKK.js +0 -17
  188. package/dist/lib-UYK3ZLZK.js +0 -13
  189. package/dist/local-KISH2IRF.js +0 -67
  190. package/dist/multipart-parser-ENLY4BKU-IUS26CJU.js +0 -363
  191. package/dist/node-package-manager-S7TSAUJZ-KKDY6KSF.js +0 -70
  192. package/dist/open-B7XFJJCK-4XEFFVL7.js +0 -295
  193. package/dist/out-LRIJ35RZ.js +0 -6
  194. package/dist/out-M5MRQZP5-YHIOILKU.js +0 -14
  195. package/dist/path-HO4HBKK5-4Q2BBYUA.js +0 -33
  196. package/dist/system-LIP7AECY.js +0 -33
  197. package/dist/ui-FUZYK6S3-PVVDPVD5.js +0 -51
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  require_once
3
- } from "./chunk-LKGDG6WW.js";
3
+ } from "./chunk-FMKVOTQK.js";
4
4
  import {
5
5
  __commonJS,
6
6
  __require,
7
7
  init_cjs_shims
8
- } from "./chunk-M63RTPGR.js";
8
+ } from "./chunk-ZPL24Y2D.js";
9
9
 
10
10
  // ../../node_modules/.pnpm/stackframe@1.3.4/node_modules/stackframe/stackframe.js
11
11
  var require_stackframe = __commonJS({
@@ -2976,3 +2976,4 @@ export {
2976
2976
  require_byline,
2977
2977
  require_notifier
2978
2978
  };
2979
+ //# sourceMappingURL=chunk-S4VBXFXP.js.map
@@ -2,7 +2,7 @@ import {
2
2
  __commonJS,
3
3
  __require,
4
4
  init_cjs_shims
5
- } from "./chunk-M63RTPGR.js";
5
+ } from "./chunk-ZPL24Y2D.js";
6
6
 
7
7
  // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
8
8
  var require_windows = __commonJS({
@@ -138,3 +138,4 @@ var require_isexe = __commonJS({
138
138
  export {
139
139
  require_isexe
140
140
  };
141
+ //# sourceMappingURL=chunk-SAR5HGRG.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_cjs_shims
3
- } from "./chunk-M63RTPGR.js";
3
+ } from "./chunk-ZPL24Y2D.js";
4
4
 
5
5
  // ../../node_modules/.pnpm/pathe@1.1.1/node_modules/pathe/dist/shared/pathe.92c04245.mjs
6
6
  init_cjs_shims();
@@ -192,3 +192,4 @@ export {
192
192
  dirname,
193
193
  basename
194
194
  };
195
+ //# sourceMappingURL=chunk-T5LLJYYS.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-G4EQLT5B.js";
3
+ } from "./chunk-5X4QXYEZ.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-I434ZJQI.js";
6
+ } from "./chunk-GEN4RXTD.js";
7
7
  import {
8
8
  __toESM,
9
9
  init_cjs_shims
10
- } from "./chunk-M63RTPGR.js";
10
+ } from "./chunk-ZPL24Y2D.js";
11
11
 
12
12
  // src/cli/commands/help.ts
13
13
  init_cjs_shims();
@@ -45,3 +45,4 @@ var HelpCommand = class _HelpCommand extends base_command_default {
45
45
  export {
46
46
  HelpCommand
47
47
  };
48
+ //# sourceMappingURL=chunk-TCRWMUKX.js.map
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  require_zod_to_json_schema
3
- } from "./chunk-IUHH3PST.js";
3
+ } from "./chunk-DLK3F3DC.js";
4
4
  import {
5
5
  demoStepsSchema
6
- } from "./chunk-3RM5SOXY.js";
6
+ } from "./chunk-BMTG2VHL.js";
7
7
  import {
8
8
  base_command_default
9
- } from "./chunk-G4EQLT5B.js";
9
+ } from "./chunk-5X4QXYEZ.js";
10
10
  import {
11
11
  outputInfo,
12
12
  renderInfo
13
- } from "./chunk-CK7MF3LY.js";
13
+ } from "./chunk-WAEWSGBK.js";
14
14
  import {
15
15
  __toESM,
16
16
  init_cjs_shims
17
- } from "./chunk-M63RTPGR.js";
17
+ } from "./chunk-ZPL24Y2D.js";
18
18
 
19
19
  // src/cli/commands/demo/print-ai-prompt.ts
20
20
  init_cjs_shims();
@@ -59,3 +59,4 @@ The demo should perform the following steps:
59
59
  export {
60
60
  PrintAIPrompt
61
61
  };
62
+ //# sourceMappingURL=chunk-UACSLX64.js.map
@@ -2,7 +2,7 @@ import {
2
2
  __commonJS,
3
3
  __require,
4
4
  init_cjs_shims
5
- } from "./chunk-M63RTPGR.js";
5
+ } from "./chunk-ZPL24Y2D.js";
6
6
 
7
7
  // ../../node_modules/.pnpm/validate-npm-package-name@5.0.1/node_modules/validate-npm-package-name/lib/index.js
8
8
  var require_lib = __commonJS({
@@ -94,3 +94,4 @@ var require_lib = __commonJS({
94
94
  export {
95
95
  require_lib
96
96
  };
97
+ //# sourceMappingURL=chunk-UJ3QKFA5.js.map
@@ -0,0 +1,121 @@
1
+ import {
2
+ basename,
3
+ dirname,
4
+ extname,
5
+ isAbsolute,
6
+ join,
7
+ normalize,
8
+ relative,
9
+ resolve
10
+ } from "./chunk-T5LLJYYS.js";
11
+ import {
12
+ __commonJS,
13
+ __require,
14
+ __toESM,
15
+ init_cjs_shims
16
+ } from "./chunk-ZPL24Y2D.js";
17
+
18
+ // ../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js
19
+ var require_commondir = __commonJS({
20
+ "../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js"(exports, module) {
21
+ init_cjs_shims();
22
+ var path = __require("path");
23
+ module.exports = function(basedir, relfiles) {
24
+ if (relfiles) {
25
+ var files = relfiles.map(function(r) {
26
+ return path.resolve(basedir, r);
27
+ });
28
+ } else {
29
+ var files = basedir;
30
+ }
31
+ var res = files.slice(1).reduce(function(ps, file) {
32
+ if (!file.match(/^([A-Za-z]:)?\/|\\/)) {
33
+ throw new Error("relative path without a basedir");
34
+ }
35
+ var xs = file.split(/\/+|\\+/);
36
+ for (var i = 0; ps[i] === xs[i] && i < Math.min(ps.length, xs.length); i++)
37
+ ;
38
+ return ps.slice(0, i);
39
+ }, files[0].split(/\/+|\\+/));
40
+ return res.length > 1 ? res.join("/") : "/";
41
+ };
42
+ }
43
+ });
44
+
45
+ // ../cli-kit/src/public/node/path.ts
46
+ init_cjs_shims();
47
+ var import_commondir = __toESM(require_commondir(), 1);
48
+ import { fileURLToPath } from "url";
49
+ function joinPath(...paths) {
50
+ return join(...paths);
51
+ }
52
+ function normalizePath(path) {
53
+ return normalize(path);
54
+ }
55
+ function resolvePath(...paths) {
56
+ return resolve(...paths);
57
+ }
58
+ function relativePath(from, to) {
59
+ return relative(from, to);
60
+ }
61
+ function isAbsolutePath(path) {
62
+ return isAbsolute(path);
63
+ }
64
+ function dirname2(path) {
65
+ return dirname(path);
66
+ }
67
+ function basename2(path, ext) {
68
+ return basename(path, ext);
69
+ }
70
+ function extname2(path) {
71
+ return extname(path);
72
+ }
73
+ function relativizePath(path, dir = cwd()) {
74
+ const result = (0, import_commondir.default)([path, dir]);
75
+ const relativePath2 = relative(dir, path);
76
+ const relativeComponents = relativePath2.split("/").filter((component) => component === "..").length;
77
+ if (result === "/" || relativePath2 === "" || relativeComponents > 2) {
78
+ return path;
79
+ } else {
80
+ return relativePath2;
81
+ }
82
+ }
83
+ function moduleDirectory(moduleURL) {
84
+ return dirname2(fileURLToPath(moduleURL));
85
+ }
86
+ function cwd() {
87
+ return normalize(process.env.INIT_CWD ? process.env.INIT_CWD : process.cwd());
88
+ }
89
+ function sniffForPath(argv = process.argv) {
90
+ const pathFlagIndex = argv.indexOf("--path");
91
+ if (pathFlagIndex === -1) {
92
+ const pathArg = argv.find((arg) => arg.startsWith("--path="));
93
+ return pathArg?.split("=")[1];
94
+ }
95
+ const pathFlag = argv[pathFlagIndex + 1];
96
+ if (!pathFlag || pathFlag.startsWith("-"))
97
+ return;
98
+ return pathFlag;
99
+ }
100
+ function sniffForJson(argv = process.argv) {
101
+ const jsonFlagIndex = argv.indexOf("--json");
102
+ return jsonFlagIndex !== -1;
103
+ }
104
+
105
+ export {
106
+ require_commondir,
107
+ joinPath,
108
+ normalizePath,
109
+ resolvePath,
110
+ relativePath,
111
+ isAbsolutePath,
112
+ dirname2 as dirname,
113
+ basename2 as basename,
114
+ extname2 as extname,
115
+ relativizePath,
116
+ moduleDirectory,
117
+ cwd,
118
+ sniffForPath,
119
+ sniffForJson
120
+ };
121
+ //# sourceMappingURL=chunk-UNPXLODI.js.map
@@ -2,7 +2,7 @@ import {
2
2
  __commonJS,
3
3
  __require,
4
4
  init_cjs_shims
5
- } from "./chunk-M63RTPGR.js";
5
+ } from "./chunk-ZPL24Y2D.js";
6
6
 
7
7
  // ../../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js
8
8
  var require_is_extglob = __commonJS({
@@ -2881,3 +2881,4 @@ fill-range/index.js:
2881
2881
  * Licensed under the MIT License.
2882
2882
  *)
2883
2883
  */
2884
+ //# sourceMappingURL=chunk-VM4POVNV.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  require_zod_to_json_schema
3
- } from "./chunk-IUHH3PST.js";
3
+ } from "./chunk-DLK3F3DC.js";
4
4
  import {
5
5
  demoStepsSchema
6
- } from "./chunk-3RM5SOXY.js";
6
+ } from "./chunk-BMTG2VHL.js";
7
7
  import {
8
8
  base_command_default
9
- } from "./chunk-G4EQLT5B.js";
9
+ } from "./chunk-5X4QXYEZ.js";
10
10
  import {
11
11
  AbortError,
12
12
  fileExists,
@@ -17,19 +17,19 @@ import {
17
17
  readFile,
18
18
  renderAutocompletePrompt,
19
19
  writeFile
20
- } from "./chunk-CK7MF3LY.js";
20
+ } from "./chunk-WAEWSGBK.js";
21
21
  import {
22
22
  require_lib
23
- } from "./chunk-I434ZJQI.js";
23
+ } from "./chunk-GEN4RXTD.js";
24
24
  import {
25
25
  cwd,
26
26
  joinPath,
27
27
  resolvePath
28
- } from "./chunk-MHMFNQE3.js";
28
+ } from "./chunk-UNPXLODI.js";
29
29
  import {
30
30
  __toESM,
31
31
  init_cjs_shims
32
- } from "./chunk-M63RTPGR.js";
32
+ } from "./chunk-ZPL24Y2D.js";
33
33
 
34
34
  // src/cli/commands/demo/generate-file.ts
35
35
  init_cjs_shims();
@@ -127,3 +127,4 @@ async function selectSteps() {
127
127
  export {
128
128
  GenerateFile
129
129
  };
130
+ //# sourceMappingURL=chunk-VS6RWOLM.js.map
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-G4EQLT5B.js";
3
+ } from "./chunk-5X4QXYEZ.js";
4
4
  import {
5
5
  mkdir,
6
6
  outputInfo,
7
7
  rmdir,
8
8
  writeFile
9
- } from "./chunk-CK7MF3LY.js";
9
+ } from "./chunk-WAEWSGBK.js";
10
10
  import {
11
11
  cwd,
12
12
  joinPath
13
- } from "./chunk-MHMFNQE3.js";
13
+ } from "./chunk-UNPXLODI.js";
14
14
  import {
15
15
  init_cjs_shims
16
- } from "./chunk-M63RTPGR.js";
16
+ } from "./chunk-ZPL24Y2D.js";
17
17
 
18
18
  // src/cli/commands/docs/generate.ts
19
19
  init_cjs_shims();
@@ -154,3 +154,4 @@ export {
154
154
  writeCommandFlagInterface,
155
155
  writeCommandUsageExampleFile
156
156
  };
157
+ //# sourceMappingURL=chunk-W5VEUSWG.js.map
@@ -1,15 +1,71 @@
1
- import {
2
- envPaths
3
- } from "./chunk-SZQX5J7X.js";
4
1
  import {
5
2
  joinPath
6
- } from "./chunk-MHMFNQE3.js";
3
+ } from "./chunk-UNPXLODI.js";
7
4
  import {
8
5
  init_cjs_shims
9
- } from "./chunk-M63RTPGR.js";
6
+ } from "./chunk-ZPL24Y2D.js";
10
7
 
11
8
  // ../cli-kit/src/private/node/constants.ts
12
9
  init_cjs_shims();
10
+
11
+ // ../../node_modules/.pnpm/env-paths@3.0.0/node_modules/env-paths/index.js
12
+ init_cjs_shims();
13
+ import path from "node:path";
14
+ import os from "node:os";
15
+ import process2 from "node:process";
16
+ var homedir = os.homedir();
17
+ var tmpdir = os.tmpdir();
18
+ var { env } = process2;
19
+ var macos = (name) => {
20
+ const library = path.join(homedir, "Library");
21
+ return {
22
+ data: path.join(library, "Application Support", name),
23
+ config: path.join(library, "Preferences", name),
24
+ cache: path.join(library, "Caches", name),
25
+ log: path.join(library, "Logs", name),
26
+ temp: path.join(tmpdir, name)
27
+ };
28
+ };
29
+ var windows = (name) => {
30
+ const appData = env.APPDATA || path.join(homedir, "AppData", "Roaming");
31
+ const localAppData = env.LOCALAPPDATA || path.join(homedir, "AppData", "Local");
32
+ return {
33
+ // Data/config/cache/log are invented by me as Windows isn't opinionated about this
34
+ data: path.join(localAppData, name, "Data"),
35
+ config: path.join(appData, name, "Config"),
36
+ cache: path.join(localAppData, name, "Cache"),
37
+ log: path.join(localAppData, name, "Log"),
38
+ temp: path.join(tmpdir, name)
39
+ };
40
+ };
41
+ var linux = (name) => {
42
+ const username = path.basename(homedir);
43
+ return {
44
+ data: path.join(env.XDG_DATA_HOME || path.join(homedir, ".local", "share"), name),
45
+ config: path.join(env.XDG_CONFIG_HOME || path.join(homedir, ".config"), name),
46
+ cache: path.join(env.XDG_CACHE_HOME || path.join(homedir, ".cache"), name),
47
+ // https://wiki.debian.org/XDGBaseDirectorySpecification#state
48
+ log: path.join(env.XDG_STATE_HOME || path.join(homedir, ".local", "state"), name),
49
+ temp: path.join(tmpdir, username, name)
50
+ };
51
+ };
52
+ function envPaths(name, { suffix = "nodejs" } = {}) {
53
+ if (typeof name !== "string") {
54
+ throw new TypeError(`Expected a string, got ${typeof name}`);
55
+ }
56
+ if (suffix) {
57
+ name += `-${suffix}`;
58
+ }
59
+ if (process2.platform === "darwin") {
60
+ return macos(name);
61
+ }
62
+ if (process2.platform === "win32") {
63
+ return windows(name);
64
+ }
65
+ return linux(name);
66
+ }
67
+
68
+ // ../cli-kit/src/private/node/constants.ts
13
69
  var identifier = "shopify-cli";
14
70
  var cacheFolder = () => {
15
71
  if (process.env.XDG_CACHE_HOME)
@@ -82,6 +138,7 @@ var sessionConstants = {
82
138
  var bugsnagApiKey = "9e1e6889176fd0c795d5c659225e0fae";
83
139
 
84
140
  export {
141
+ envPaths,
85
142
  logsFolder,
86
143
  environmentVariables,
87
144
  defaultThemeKitAccessDomain,
@@ -90,3 +147,4 @@ export {
90
147
  sessionConstants,
91
148
  bugsnagApiKey
92
149
  };
150
+ //# sourceMappingURL=chunk-WADS2TV5.js.map