shopify 4.2.0 → 4.4.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 (440) hide show
  1. package/dist/{acorn-QBS5IYTX.js → acorn-7M27BPGP.js} +1 -1
  2. package/dist/analytics-DWUYMFHO.js +1 -0
  3. package/dist/analytics-SOXP4UBD.js +1 -0
  4. package/dist/{angular-UTTM4Y4S.js → angular-DW5TQVCM.js} +1 -1
  5. package/dist/assets/hydrogen/routes/locale-check.ts +3 -3
  6. package/dist/assets/hydrogen/starter/CHANGELOG.md +106 -0
  7. package/dist/assets/hydrogen/starter/app/components/Aside.tsx +4 -2
  8. package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +8 -5
  9. package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +117 -23
  10. package/dist/assets/hydrogen/starter/app/components/Header.tsx +3 -3
  11. package/dist/assets/hydrogen/starter/app/components/PaginatedResourceSection.tsx +24 -4
  12. package/dist/assets/hydrogen/starter/app/components/ProductPrice.tsx +1 -1
  13. package/dist/assets/hydrogen/starter/app/lib/context.ts +5 -0
  14. package/dist/assets/hydrogen/starter/app/routes/[robots.txt].tsx +14 -53
  15. package/dist/assets/hydrogen/starter/app/routes/_index.tsx +11 -4
  16. package/dist/assets/hydrogen/starter/app/routes/account.$.tsx +1 -1
  17. package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +2 -2
  18. package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +1 -1
  19. package/dist/assets/hydrogen/starter/package.json +9 -10
  20. package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +0 -11
  21. package/dist/assets/hydrogen/starter/vite.config.ts +10 -4
  22. package/dist/assets/hydrogen/vite/package.json +1 -2
  23. package/dist/assets/hydrogen/vite/vite.config.js +4 -3
  24. package/dist/{babel-JS32NLHY.js → babel-I2RLWM7N.js} +1 -1
  25. package/dist/bootstrap.js +1 -1
  26. package/dist/{chokidar-G4ONJSK4.js → chokidar-VDIVGBZH.js} +1 -1
  27. package/dist/chunk-2EROVVCL.js +1 -0
  28. package/dist/{chunk-DCBYHVKW.js → chunk-2MMGFZDP.js} +1 -1
  29. package/dist/{chunk-X2TC7S57.js → chunk-2NWWMNU5.js} +8 -8
  30. package/dist/{chunk-PRVQAHWI.js → chunk-2O22LZKV.js} +1 -1
  31. package/dist/{chunk-MFLBTJO7.js → chunk-3CYHS4W2.js} +1 -1
  32. package/dist/{chunk-2EJCY4CE.js → chunk-3FBSBMSQ.js} +1 -1
  33. package/dist/chunk-3OZ6ZZ4T.js +5 -0
  34. package/dist/{chunk-VICNWPLQ.js → chunk-442S5SDM.js} +12 -12
  35. package/dist/{chunk-MKE434RB.js → chunk-45MEVWH5.js} +1 -1
  36. package/dist/{chunk-A5SQCM63.js → chunk-47MGPVED.js} +1 -1
  37. package/dist/chunk-4N6YTHFD.js +1 -0
  38. package/dist/chunk-4TST2MNC.js +1 -0
  39. package/dist/{chunk-JUVAGMIH.js → chunk-5C7HDTHJ.js} +1 -1
  40. package/dist/{chunk-GVITHCQJ.js → chunk-5GVXMNC4.js} +1 -1
  41. package/dist/{chunk-YGMVL6NZ.js → chunk-5JNEWYD5.js} +2 -2
  42. package/dist/{chunk-KU5OPV7U.js → chunk-5QQN3SKH.js} +1 -1
  43. package/dist/{chunk-OKNBZSGN.js → chunk-5QWYIBE6.js} +1 -1
  44. package/dist/chunk-5W443CKL.js +836 -0
  45. package/dist/{chunk-PD5ZHJWI.js → chunk-636CTEW7.js} +1 -1
  46. package/dist/{chunk-L2VSSINY.js → chunk-67KMRBSZ.js} +1 -1
  47. package/dist/{chunk-HJSYHK4S.js → chunk-6DIHOMCB.js} +1 -1
  48. package/dist/{chunk-MGL4YM3S.js → chunk-6EZ7JWBK.js} +5 -5
  49. package/dist/{chunk-NBYS6YQ2.js → chunk-6RL7FUPD.js} +1 -1
  50. package/dist/chunk-6YPEONHB.js +46 -0
  51. package/dist/{chunk-C6ABJCRG.js → chunk-733R5OKQ.js} +1 -1
  52. package/dist/chunk-73W5BGAZ.js +1 -0
  53. package/dist/{chunk-XDAOLCPN.js → chunk-75LJTY7F.js} +1 -1
  54. package/dist/{chunk-IU2ZQ6TE.js → chunk-773TIA5M.js} +1 -1
  55. package/dist/{chunk-TQGTEVSR.js → chunk-7EJ4UVYI.js} +1 -1
  56. package/dist/{chunk-FQDRVPCY.js → chunk-7LATYPLU.js} +1 -1
  57. package/dist/{chunk-XXE7667M.js → chunk-7SVMAJTR.js} +1 -1
  58. package/dist/{chunk-QUTQDXSL.js → chunk-7UNQOKZW.js} +1 -1
  59. package/dist/{chunk-CE6FKJFS.js → chunk-7UOPCYMV.js} +1 -1
  60. package/dist/{chunk-7JESXDF2.js → chunk-A4SBXDZB.js} +1 -1
  61. package/dist/{chunk-Z35BTAM6.js → chunk-AAK376RT.js} +1 -1
  62. package/dist/chunk-APN3VWN4.js +3 -0
  63. package/dist/{chunk-7DVOSOEP.js → chunk-AT2GDXN7.js} +1 -1
  64. package/dist/chunk-ATXODH6C.js +283 -0
  65. package/dist/chunk-AY4GIVME.js +4 -0
  66. package/dist/{chunk-PS25FEBF.js → chunk-B7BUEEBR.js} +1 -1
  67. package/dist/{chunk-6YHJ554P.js → chunk-B7S23DLF.js} +1 -1
  68. package/dist/chunk-BCD4KTLJ.js +1 -0
  69. package/dist/{chunk-C3LZPAAH.js → chunk-BIMOHK2P.js} +1 -1
  70. package/dist/chunk-C3CVLSLS.js +6 -0
  71. package/dist/{chunk-57N2DFIF.js → chunk-CD5O2BIT.js} +1 -1
  72. package/dist/chunk-CPE7XCC6.js +593 -0
  73. package/dist/{chunk-PIBY5DDZ.js → chunk-CRALWNNO.js} +1 -1
  74. package/dist/{chunk-H4W4DFKK.js → chunk-CX5CC6P5.js} +1 -1
  75. package/dist/{chunk-2KH2S7PI.js → chunk-CZXGQ53M.js} +1 -1
  76. package/dist/chunk-D6YDSGR4.js +3 -0
  77. package/dist/{chunk-J6VTZEE2.js → chunk-DHBYYHBT.js} +1 -1
  78. package/dist/chunk-DLNBTHKL.js +5 -0
  79. package/dist/chunk-DO2SHYFU.js +1 -0
  80. package/dist/{chunk-VPL2NDH6.js → chunk-DONEJHDG.js} +35 -35
  81. package/dist/{chunk-5TIJLYZU.js → chunk-DQ4HA72R.js} +1 -1
  82. package/dist/{chunk-NO5KVFTV.js → chunk-DZLA2RJP.js} +3 -3
  83. package/dist/{chunk-YS6VOQ7I.js → chunk-EJDWYASP.js} +1 -1
  84. package/dist/{chunk-N3YWHJMB.js → chunk-EKHWL542.js} +46 -46
  85. package/dist/{chunk-6M3ZYNGO.js → chunk-ET2CGROE.js} +1 -1
  86. package/dist/{chunk-QSTEVZFQ.js → chunk-F3TMLDLC.js} +1 -1
  87. package/dist/{chunk-M4LOKANA.js → chunk-F5QG42MA.js} +1 -1
  88. package/dist/{chunk-FTN7Y6HD.js → chunk-FA4K3JRN.js} +1 -1
  89. package/dist/{chunk-WDC3KIZT.js → chunk-FKIVKNOV.js} +1 -1
  90. package/dist/{chunk-4EXYYBQ6.js → chunk-FPLUMESQ.js} +1 -1
  91. package/dist/chunk-FU232KQ7.js +1 -0
  92. package/dist/{chunk-HLMFVORT.js → chunk-FZKKKGUJ.js} +1 -1
  93. package/dist/chunk-G24L7MB3.js +1 -0
  94. package/dist/{chunk-LQMSF3F7.js → chunk-G2I2ZUBV.js} +1 -1
  95. package/dist/{chunk-FFYYJKF7.js → chunk-G2S346IS.js} +1 -1
  96. package/dist/{chunk-KLMDWDT2.js → chunk-GB3YC4TI.js} +1 -1
  97. package/dist/{chunk-VA5IUGZV.js → chunk-GBZL4TTY.js} +1 -1
  98. package/dist/{chunk-OCOY5MV2.js → chunk-GCN4O7HM.js} +1 -1
  99. package/dist/{chunk-2N4O33VM.js → chunk-GDHD3TGC.js} +1 -1
  100. package/dist/{chunk-TLSAQ6FG.js → chunk-GFCLUGAG.js} +1 -1
  101. package/dist/{chunk-C2FFA4O4.js → chunk-GKRCTMWY.js} +1 -1
  102. package/dist/{chunk-TGACBJIY.js → chunk-GTUKM3ZW.js} +1 -1
  103. package/dist/{chunk-RGNAWKD7.js → chunk-GUO7S4NW.js} +1 -1
  104. package/dist/{chunk-WUK5NQSX.js → chunk-GW3VY3FZ.js} +2 -2
  105. package/dist/{chunk-4KRT35A2.js → chunk-H5C3QTOO.js} +1 -1
  106. package/dist/{chunk-LKS47US7.js → chunk-H6WN7GP4.js} +1 -1
  107. package/dist/{chunk-2WNODIWJ.js → chunk-HA6NISOZ.js} +1 -1
  108. package/dist/{chunk-FBVBO5YQ.js → chunk-HCN6HXA5.js} +1 -1
  109. package/dist/chunk-HM5H7WBE.js +1 -0
  110. package/dist/chunk-HZMP62GK.js +21 -0
  111. package/dist/{chunk-QLQGHMVU.js → chunk-HZSAUZBX.js} +1 -1
  112. package/dist/chunk-HZYRCG4R.js +9 -0
  113. package/dist/{chunk-EENHXSWU.js → chunk-I5A6BPCP.js} +1 -1
  114. package/dist/chunk-I73E3BD5.js +1 -0
  115. package/dist/{chunk-UURFVUAH.js → chunk-IG6LPVS4.js} +1 -1
  116. package/dist/{chunk-BECEP46I.js → chunk-IIOIDMG3.js} +1 -1
  117. package/dist/{chunk-D656BV5Z.js → chunk-IPQH2RHD.js} +1 -1
  118. package/dist/{chunk-TNQXTZAX.js → chunk-IWOTLFOY.js} +1 -1
  119. package/dist/chunk-IX4KP6E3.js +2 -0
  120. package/dist/{chunk-AP3RFOPL.js → chunk-J2WCMQZZ.js} +1 -1
  121. package/dist/chunk-J3HXFQ2L.js +1 -0
  122. package/dist/{chunk-OYP7DKPU.js → chunk-J3JPJCWP.js} +1 -1
  123. package/dist/chunk-J5TNYNR5.js +1 -0
  124. package/dist/{chunk-UBKVCI7A.js → chunk-J7UQBC45.js} +1 -1
  125. package/dist/{chunk-M2TJICTB.js → chunk-JAW32T6G.js} +1 -1
  126. package/dist/{chunk-LCCMXY6N.js → chunk-JOZXRV5K.js} +1 -1
  127. package/dist/{chunk-UARVYVLN.js → chunk-KKUDXLK2.js} +2 -2
  128. package/dist/{chunk-LITB5QQX.js → chunk-KN3FTJDU.js} +1 -1
  129. package/dist/{chunk-3VZEETAV.js → chunk-KRZABRYT.js} +1 -1
  130. package/dist/{chunk-DNLOSMHL.js → chunk-KSZ5K6LJ.js} +1 -1
  131. package/dist/chunk-LCPD2BYX.js +1 -0
  132. package/dist/chunk-LKZ7ARYS.js +18 -0
  133. package/dist/{chunk-3V63X7WZ.js → chunk-LOHUNOQ7.js} +1 -1
  134. package/dist/{chunk-IXUVSFW2.js → chunk-LOQIRLTD.js} +1 -1
  135. package/dist/{chunk-CW7WJZKR.js → chunk-MFLQRQQT.js} +1 -1
  136. package/dist/{chunk-PRKBO42R.js → chunk-MPW2YJWU.js} +1 -1
  137. package/dist/chunk-MQICT2LR.js +1 -0
  138. package/dist/{chunk-VYXVYOIJ.js → chunk-MZMYBFZQ.js} +1 -1
  139. package/dist/{chunk-ZZYFG22L.js → chunk-NADNFSKS.js} +1 -1
  140. package/dist/{chunk-5Y7GIF2W.js → chunk-NJOO5XJV.js} +1 -1
  141. package/dist/{chunk-ULQG3XQS.js → chunk-NNOSZ447.js} +1 -1
  142. package/dist/{chunk-WNGV4JQS.js → chunk-NWDP5IZ2.js} +1 -1
  143. package/dist/{chunk-R6JNXEB3.js → chunk-NY5OGHM5.js} +1 -1
  144. package/dist/chunk-O6KTFMCD.js +1 -0
  145. package/dist/{chunk-3BRUCKZ2.js → chunk-OAI7VSLW.js} +1 -1
  146. package/dist/{chunk-RAH5NW3R.js → chunk-OORCODNK.js} +1 -1
  147. package/dist/chunk-OQORDQLH.js +1 -0
  148. package/dist/{chunk-75VPUOC5.js → chunk-P2OI2P2M.js} +1 -1
  149. package/dist/{chunk-6AJZKIZ3.js → chunk-PETINPMX.js} +1 -1
  150. package/dist/{chunk-MZJRNFAU.js → chunk-PJYNAUQB.js} +1 -1
  151. package/dist/{chunk-HD5TYIDZ.js → chunk-PMXCJIBP.js} +1 -1
  152. package/dist/{chunk-K77WAKOB.js → chunk-POAICASX.js} +1 -1
  153. package/dist/chunk-PUAMSBXS.js +1 -0
  154. package/dist/{chunk-DERA4K6A.js → chunk-PZYP3MCL.js} +1 -1
  155. package/dist/chunk-Q7BOSHWX.js +7 -0
  156. package/dist/{chunk-K7K6GNF6.js → chunk-QJ7TI6CK.js} +1 -1
  157. package/dist/{chunk-M4V2OQAX.js → chunk-QMXKGSFH.js} +1 -1
  158. package/dist/chunk-QPN2M26G.js +1 -0
  159. package/dist/{chunk-UCLSPAVX.js → chunk-QS3FMN67.js} +1 -1
  160. package/dist/chunk-RF6NUGCU.js +1 -0
  161. package/dist/{chunk-5CH3B62S.js → chunk-RJ5VF3QY.js} +1 -1
  162. package/dist/{chunk-XX343DDG.js → chunk-RYGZCBO4.js} +1 -1
  163. package/dist/{chunk-U3ZG675O.js → chunk-SKLUHLS2.js} +1 -1
  164. package/dist/{chunk-F6T3UBBL.js → chunk-SP2WUATO.js} +1 -1
  165. package/dist/{chunk-QFWIDATO.js → chunk-STJ3LWFL.js} +1 -1
  166. package/dist/chunk-SWI3LCPE.js +7 -0
  167. package/dist/{chunk-6HZTMQD6.js → chunk-SXTDVUT3.js} +1 -1
  168. package/dist/{chunk-IWCPQD7X.js → chunk-T5GSCWN5.js} +1 -1
  169. package/dist/{chunk-3YWUSKWF.js → chunk-T6CC5WUU.js} +1 -1
  170. package/dist/{chunk-3TNEIDOD.js → chunk-T7KHS6RF.js} +1 -1
  171. package/dist/{chunk-E2YBU6D3.js → chunk-TC3JOEMA.js} +2 -2
  172. package/dist/{chunk-A6X2IVGT.js → chunk-TJGUNVRI.js} +1 -1
  173. package/dist/{chunk-6ZIOYXEF.js → chunk-TKG42KLM.js} +1 -1
  174. package/dist/{chunk-QYR5VPQA.js → chunk-TOLPNBZK.js} +1 -1
  175. package/dist/{chunk-6TORWTD7.js → chunk-TQUSREKP.js} +1 -1
  176. package/dist/chunk-TU47HMTL.js +1 -0
  177. package/dist/chunk-TYMYIUIQ.js +1 -0
  178. package/dist/{chunk-XP6IRAZN.js → chunk-U73TPLFE.js} +1 -1
  179. package/dist/{chunk-VEDZUOVI.js → chunk-UKK5P74A.js} +3 -3
  180. package/dist/chunk-UMT7DWR4.js +1 -0
  181. package/dist/{chunk-FD5S2O6M.js → chunk-UOHNRH6E.js} +1 -1
  182. package/dist/{chunk-ZR76GGZ6.js → chunk-UQWFDL3F.js} +1 -1
  183. package/dist/chunk-UUC5YKAS.js +2 -0
  184. package/dist/chunk-UYK6CXAU.js +1 -0
  185. package/dist/{chunk-7KJ5TBWG.js → chunk-V3RZ3DTW.js} +1 -1
  186. package/dist/{chunk-6TEXPRI2.js → chunk-V6ZSIUO3.js} +1 -1
  187. package/dist/{chunk-A3VYI4LO.js → chunk-VDN6MEYI.js} +3 -3
  188. package/dist/chunk-VE35YELD.js +1 -0
  189. package/dist/{chunk-6LK6ZP3Q.js → chunk-VFWWZMOQ.js} +1 -1
  190. package/dist/{chunk-VBUZWRUL.js → chunk-VJEKDBGZ.js} +1 -1
  191. package/dist/chunk-VKWPEFWQ.js +1 -0
  192. package/dist/{chunk-7BFDUVOG.js → chunk-VOJWKGCW.js} +1 -1
  193. package/dist/{chunk-LTWXTDDR.js → chunk-VQW35HIQ.js} +1 -1
  194. package/dist/chunk-VUMUCNI7.js +1 -0
  195. package/dist/{chunk-2VLMN5QZ.js → chunk-WAGAC3YI.js} +1 -1
  196. package/dist/chunk-WKBVT5WG.js +1 -0
  197. package/dist/chunk-WLO5H255.js +3 -0
  198. package/dist/chunk-WNWQSHEC.js +10 -0
  199. package/dist/{chunk-6YAXFS6V.js → chunk-WRRUFK4Y.js} +1 -1
  200. package/dist/{chunk-SSM346XI.js → chunk-WVHB2HCQ.js} +1 -1
  201. package/dist/{chunk-MOA33ZFO.js → chunk-WW7TENNA.js} +1 -1
  202. package/dist/chunk-WZVQHMGI.js +1 -0
  203. package/dist/{chunk-NPM3MFB3.js → chunk-X4DIJTIK.js} +1 -1
  204. package/dist/{chunk-42RMKTCJ.js → chunk-XH6ZP7M5.js} +1 -1
  205. package/dist/{chunk-23AMFHXC.js → chunk-XV3I45NA.js} +1 -1
  206. package/dist/{chunk-PSQFZAF3.js → chunk-XWPPBOGF.js} +1 -1
  207. package/dist/{chunk-MIO2CV3Q.js → chunk-Y3WIZSRU.js} +1 -1
  208. package/dist/{chunk-INFBVFMU.js → chunk-Y66GQ6V2.js} +1 -1
  209. package/dist/{chunk-IVGWFPMA.js → chunk-YGKQCEVG.js} +1 -1
  210. package/dist/{chunk-4Z2WYNTE.js → chunk-YLGSM42I.js} +1 -1
  211. package/dist/{chunk-TXUTT6UA.js → chunk-YQH2JHFA.js} +1 -1
  212. package/dist/{chunk-QTGMS62F.js → chunk-YYL356OX.js} +1 -1
  213. package/dist/chunk-Z4LC3WE5.js +7 -0
  214. package/dist/{chunk-OA4P6AKS.js → chunk-Z74QYLNC.js} +1 -1
  215. package/dist/{chunk-DCK2FX6J.js → chunk-ZAMDXIVC.js} +1 -1
  216. package/dist/{chunk-4LNCYIS3.js → chunk-ZDF5N422.js} +1 -1
  217. package/dist/{chunk-RL5BWZ7D.js → chunk-ZEENHLSC.js} +2 -2
  218. package/dist/{chunk-T4M5CWAO.js → chunk-ZG7BVVT2.js} +1 -1
  219. package/dist/{chunk-NKQBEFPS.js → chunk-ZI7LK3LW.js} +1 -1
  220. package/dist/{chunk-UOQQNAHX.js → chunk-ZIREP3EZ.js} +1 -1
  221. package/dist/chunk-ZIXWWU2N.js +275 -0
  222. package/dist/{chunk-NXL6LDJU.js → chunk-ZQ5JVD5X.js} +1 -1
  223. package/dist/{chunk-FGVC22EY.js → chunk-ZULTG2D2.js} +1 -1
  224. package/dist/{chunk-F47MFBKM.js → chunk-ZZFZBFVM.js} +1 -1
  225. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  226. package/dist/cli/commands/app/build.js +1 -1
  227. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  228. package/dist/cli/commands/app/bulk/execute.js +1 -1
  229. package/dist/cli/commands/app/bulk/status.js +1 -1
  230. package/dist/cli/commands/app/config/link.js +1 -1
  231. package/dist/cli/commands/app/config/pull.js +1 -1
  232. package/dist/cli/commands/app/config/use.js +1 -1
  233. package/dist/cli/commands/app/config/validate.js +1 -1
  234. package/dist/cli/commands/app/demo/watcher.js +1 -1
  235. package/dist/cli/commands/app/deploy.js +1 -1
  236. package/dist/cli/commands/app/dev/clean.js +1 -1
  237. package/dist/cli/commands/app/dev.js +1 -1
  238. package/dist/cli/commands/app/env/pull.js +1 -1
  239. package/dist/cli/commands/app/env/show.js +1 -1
  240. package/dist/cli/commands/app/execute.js +1 -1
  241. package/dist/cli/commands/app/function/build.js +1 -1
  242. package/dist/cli/commands/app/function/info.js +1 -1
  243. package/dist/cli/commands/app/function/replay.js +1 -1
  244. package/dist/cli/commands/app/function/run.js +1 -1
  245. package/dist/cli/commands/app/function/schema.js +1 -1
  246. package/dist/cli/commands/app/function/typegen.js +1 -1
  247. package/dist/cli/commands/app/generate/extension.js +1 -1
  248. package/dist/cli/commands/app/graphiql.js +1 -0
  249. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  250. package/dist/cli/commands/app/import-extensions.js +1 -1
  251. package/dist/cli/commands/app/info.js +1 -1
  252. package/dist/cli/commands/app/init.js +1 -1
  253. package/dist/cli/commands/app/logs.js +1 -1
  254. package/dist/cli/commands/app/release.js +1 -1
  255. package/dist/cli/commands/app/versions/list.js +1 -1
  256. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  257. package/dist/cli/commands/auth/login.js +1 -1
  258. package/dist/cli/commands/auth/logout.js +1 -1
  259. package/dist/cli/commands/cache/clear.js +1 -1
  260. package/dist/cli/commands/config/autoupgrade/constants.js +1 -1
  261. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  262. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  263. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  264. package/dist/cli/commands/debug/command-flags.js +1 -1
  265. package/dist/cli/commands/doc/fetch.d.ts +12 -0
  266. package/dist/cli/commands/doc/fetch.js +1 -0
  267. package/dist/cli/commands/doc/search.d.ts +13 -0
  268. package/dist/cli/commands/doc/search.js +1 -0
  269. package/dist/cli/commands/docs/generate.js +1 -1
  270. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  271. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  272. package/dist/cli/commands/help.js +1 -1
  273. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  274. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  275. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  276. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  277. package/dist/cli/commands/notifications/generate.js +1 -1
  278. package/dist/cli/commands/notifications/list.js +1 -1
  279. package/dist/cli/commands/organization/list.js +1 -1
  280. package/dist/cli/commands/search.d.ts +4 -0
  281. package/dist/cli/commands/search.js +1 -1
  282. package/dist/cli/commands/theme/check.js +1 -1
  283. package/dist/cli/commands/theme/console.js +1 -1
  284. package/dist/cli/commands/theme/delete.js +1 -1
  285. package/dist/cli/commands/theme/dev.js +1 -1
  286. package/dist/cli/commands/theme/duplicate.js +1 -1
  287. package/dist/cli/commands/theme/info.js +1 -1
  288. package/dist/cli/commands/theme/init.js +1 -1
  289. package/dist/cli/commands/theme/language-server.js +1 -1
  290. package/dist/cli/commands/theme/list.js +1 -1
  291. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  292. package/dist/cli/commands/theme/open.js +1 -1
  293. package/dist/cli/commands/theme/package.js +1 -1
  294. package/dist/cli/commands/theme/preview.js +1 -1
  295. package/dist/cli/commands/theme/profile.js +1 -1
  296. package/dist/cli/commands/theme/publish.js +1 -1
  297. package/dist/cli/commands/theme/pull.js +1 -1
  298. package/dist/cli/commands/theme/push.js +1 -1
  299. package/dist/cli/commands/theme/rename.js +1 -1
  300. package/dist/cli/commands/theme/share.js +1 -1
  301. package/dist/cli/commands/upgrade.js +1 -1
  302. package/dist/cli/commands/version.js +1 -1
  303. package/dist/cli/help.d.ts +38 -0
  304. package/dist/cli/help.js +2 -0
  305. package/dist/cli/services/commands/doc/fetch.d.ts +1 -0
  306. package/dist/cli/services/commands/doc/fetch.js +45 -0
  307. package/dist/cli/services/commands/doc/search.d.ts +1 -0
  308. package/dist/cli/services/commands/doc/search.js +47 -0
  309. package/dist/command-registry.js +1 -1
  310. package/dist/{conf-store-6QNH5BID.js → conf-store-C2LOYIOU.js} +1 -1
  311. package/dist/{custom-oclif-loader-TSPWW5YF.js → custom-oclif-loader-3AICQCNU.js} +1 -1
  312. package/dist/deprecations-QOHE6JG6.js +1 -0
  313. package/dist/{devtools-HCKYP7DQ.js → devtools-37DE4MUR.js} +1 -1
  314. package/dist/{devtools-VEZNCV6W.js → devtools-WAWU5KQL.js} +1 -1
  315. package/dist/dist-FF6C4ZHS.js +1 -0
  316. package/dist/dist-Q676YGVI.js +1 -0
  317. package/dist/environments-EGD263DV.js +1 -0
  318. package/dist/error-66U2HJ37.js +1 -0
  319. package/dist/error-handler-SW2ALZ5Z.js +1 -0
  320. package/dist/{estree-BYYJYS3A.js → estree-JV5M77BA.js} +1 -1
  321. package/dist/{flow-M3Q2HPQT.js → flow-N4JYPYMQ.js} +1 -1
  322. package/dist/{fs-YMUQ6JLE.js → fs-JPQRUGZI.js} +1 -1
  323. package/dist/{glimmer-3DEJJGOJ.js → glimmer-JEV3BXHR.js} +1 -1
  324. package/dist/{graphql-A4HHE3MB.js → graphql-DTF6MHYF.js} +1 -1
  325. package/dist/hooks/app-init.js +1 -1
  326. package/dist/hooks/did-you-mean.js +1 -1
  327. package/dist/hooks/hydrogen-init.js +1 -1
  328. package/dist/hooks/plugin-plugins.js +1 -1
  329. package/dist/hooks/postrun.js +1 -1
  330. package/dist/hooks/prerun.js +1 -1
  331. package/dist/hooks/public-metadata.js +1 -1
  332. package/dist/hooks/sensitive-metadata.js +1 -1
  333. package/dist/hooks/tunnel-provider.js +1 -1
  334. package/dist/hooks/tunnel-start.js +1 -1
  335. package/dist/{html-HETICZ2F.js → html-LVOJ3RQS.js} +1 -1
  336. package/dist/{http-proxy-node16-Q5DZMBHC.js → http-proxy-node16-X2WAMUT5.js} +1 -1
  337. package/dist/index.js +41 -7
  338. package/dist/is-global-QWTDUPNR.js +1 -0
  339. package/dist/{is-wsl-TN2CXYI7.js → is-wsl-UEMXYJPN.js} +1 -1
  340. package/dist/{latest-version-6OAYLOBL.js → latest-version-32HXMWJ7.js} +1 -1
  341. package/dist/lib-NOROGV6N.js +1 -0
  342. package/dist/lib-O5EZ4NVT.js +1 -0
  343. package/dist/lib-QJDPPAWN.js +1 -0
  344. package/dist/lib-UCG2DNMS.js +1 -0
  345. package/dist/{local-GPDAXHE6.js → local-FRYN3NWL.js} +1 -1
  346. package/dist/local-storage-DFH3LT5G.js +1 -0
  347. package/dist/{markdown-5TVCXM53.js → markdown-J6CE6POI.js} +1 -1
  348. package/dist/{meriyah-23OZNYWC.js → meriyah-PNQQZQYI.js} +1 -1
  349. package/dist/metadata-KZVLHQII.js +1 -0
  350. package/dist/{morph-I35VYPBH.js → morph-CG6HEMCQ.js} +4 -4
  351. package/dist/{multipart-parser-Q4QJZK3V.js → multipart-parser-5NSSTW27.js} +1 -1
  352. package/dist/{node-package-manager-GO4ZRTKQ.js → node-package-manager-LVFBY4LY.js} +1 -1
  353. package/dist/notifications-system-DP443VTE.js +1 -0
  354. package/dist/{npa-VNALV7XY.js → npa-A4YSCQ5Q.js} +1 -1
  355. package/dist/{open-VA7TLUIL.js → open-KLSGXBIW.js} +1 -1
  356. package/dist/out-CDCY25QC.js +1 -0
  357. package/dist/{output-7IYOMPSA.js → output-NH4I5Y3C.js} +1 -1
  358. package/dist/{path-CWUNINMX.js → path-MBXP7ZIC.js} +1 -1
  359. package/dist/{postcss-IIK6CGAW.js → postcss-Q36SHOML.js} +1 -1
  360. package/dist/{prettier-ZSBNNQTK.js → prettier-6ZMB2MMO.js} +1 -1
  361. package/dist/{source-map-3K6Y2OMO.js → source-map-E7FCCJL7.js} +1 -1
  362. package/dist/system-GNOF6HMI.js +1 -0
  363. package/dist/tsconfig.tsbuildinfo +1 -1
  364. package/dist/typescript-5R4Y7PXE.js +1 -0
  365. package/dist/{typescript-YKZ232QT.js → typescript-WYPDGPSV.js} +1 -1
  366. package/dist/ui-QOGKADWB.js +1 -0
  367. package/dist/upgrade-K4S6JW64.js +1 -0
  368. package/dist/version-FJFTTOZU.js +1 -0
  369. package/dist/version-ZI4GZX72.js +1 -0
  370. package/dist/{workerd-ST6XJKUN.js → workerd-U6WWWY73.js} +1 -1
  371. package/dist/{yaml-SJKIH3VD.js → yaml-6KWCJ64X.js} +1 -1
  372. package/oclif.manifest.json +964 -74
  373. package/package.json +19 -9
  374. package/dist/analytics-CX22YIUZ.js +0 -1
  375. package/dist/analytics-UBWQIQYF.js +0 -1
  376. package/dist/assets/hydrogen/starter/app/routes/api.$version.[graphql.json].tsx +0 -14
  377. package/dist/chunk-2YXKZWYW.js +0 -1
  378. package/dist/chunk-4V4DQ6W7.js +0 -836
  379. package/dist/chunk-4ZGSSQC6.js +0 -1
  380. package/dist/chunk-6SXOUZ7V.js +0 -1
  381. package/dist/chunk-ATPFTRCC.js +0 -1
  382. package/dist/chunk-AWQ5AR2K.js +0 -5
  383. package/dist/chunk-BHWEA4V2.js +0 -1
  384. package/dist/chunk-BPVZ7E63.js +0 -1
  385. package/dist/chunk-CCEA5CUX.js +0 -1
  386. package/dist/chunk-D3DDLLNF.js +0 -2
  387. package/dist/chunk-FP2NOZSD.js +0 -1
  388. package/dist/chunk-FSTCEWXX.js +0 -1
  389. package/dist/chunk-HHXHOQQP.js +0 -3
  390. package/dist/chunk-HSYRYSX4.js +0 -3
  391. package/dist/chunk-HZA6IAA4.js +0 -1
  392. package/dist/chunk-I3LX25MB.js +0 -1
  393. package/dist/chunk-IOQQUHST.js +0 -18
  394. package/dist/chunk-IWE4RUI7.js +0 -1
  395. package/dist/chunk-K3PGC6DC.js +0 -1
  396. package/dist/chunk-KFCGMT67.js +0 -1
  397. package/dist/chunk-KLA7AWG6.js +0 -7
  398. package/dist/chunk-KQU6HOJ3.js +0 -1
  399. package/dist/chunk-MA52QGHP.js +0 -1
  400. package/dist/chunk-N5ROZKPZ.js +0 -1
  401. package/dist/chunk-NEZEHBT2.js +0 -1
  402. package/dist/chunk-NP4UFPAX.js +0 -9
  403. package/dist/chunk-OKOYLEA7.js +0 -278
  404. package/dist/chunk-OLOBQ42K.js +0 -1
  405. package/dist/chunk-PBTXPBI6.js +0 -18
  406. package/dist/chunk-PLQFX5ZP.js +0 -9
  407. package/dist/chunk-PUTZFF2Z.js +0 -613
  408. package/dist/chunk-RVMB5LC2.js +0 -1
  409. package/dist/chunk-T5MK7ZSF.js +0 -1
  410. package/dist/chunk-UOQ75BL3.js +0 -1
  411. package/dist/chunk-UWJ73J4B.js +0 -1
  412. package/dist/chunk-VPRTJUIN.js +0 -1
  413. package/dist/chunk-VT77EFRL.js +0 -10
  414. package/dist/chunk-WCWNI3ZV.js +0 -283
  415. package/dist/chunk-X4CV6TRE.js +0 -1
  416. package/dist/chunk-XEFQQPL4.js +0 -1
  417. package/dist/chunk-XFKCDWXB.js +0 -5
  418. package/dist/chunk-YJB7P2HC.js +0 -1
  419. package/dist/chunk-YOZNRLFC.js +0 -1
  420. package/dist/deprecations-F6JWVV2W.js +0 -1
  421. package/dist/dist-4BD6KOLR.js +0 -1
  422. package/dist/dist-AUABCVPI.js +0 -1
  423. package/dist/environments-RGLI75HN.js +0 -1
  424. package/dist/error-OZALZZ3U.js +0 -1
  425. package/dist/error-handler-V7LSEXHM.js +0 -1
  426. package/dist/is-global-BLIZ57HQ.js +0 -1
  427. package/dist/lib-AK5EOIKR.js +0 -1
  428. package/dist/lib-LVUMLZ4H.js +0 -1
  429. package/dist/lib-ME6554NA.js +0 -1
  430. package/dist/lib-WU3FEA6I.js +0 -1
  431. package/dist/local-storage-P66KJG6I.js +0 -1
  432. package/dist/metadata-TRH25EHU.js +0 -1
  433. package/dist/notifications-system-HM6JZ6WJ.js +0 -1
  434. package/dist/out-WLY6KV4B.js +0 -1
  435. package/dist/system-X5C4EQQH.js +0 -1
  436. package/dist/typescript-K5CWIA4V.js +0 -1
  437. package/dist/ui-H62CMRLG.js +0 -1
  438. package/dist/upgrade-EEOPH464.js +0 -1
  439. package/dist/version-76NBQR4K.js +0 -1
  440. package/dist/version-IGSEISUA.js +0 -1
@@ -1 +1 @@
1
- import{a as T}from"./chunk-2WNODIWJ.js";import{b as P,c as w,d as v}from"./chunk-CE6FKJFS.js";import{a as F}from"./chunk-UOQ75BL3.js";import{a as x}from"./chunk-DCK2FX6J.js";import{Ga as y}from"./chunk-WCWNI3ZV.js";import{b as h,c as m}from"./chunk-4KRT35A2.js";import{B as d,I as l}from"./chunk-MGL4YM3S.js";import{r as N}from"./chunk-3YWUSKWF.js";import{Pb as r}from"./chunk-VPL2NDH6.js";import{e as A,g}from"./chunk-VPRTJUIN.js";g();var s=A(N(),1);var p,a="_start",e=class extends F{async run(){let{flags:t}=await this.parse(p),n=a,{app:c}=await y({directory:t.path,userProvidedConfigName:t.config}),o=await w(c,t.path);if(t.export!==void 0)r(`Using export ${t.export} from the --export flag.`),n=t.export;else if(o.configuration.targeting!==void 0&&o.configuration.targeting.length>0){let i=o.configuration.targeting;if(i.length>1&&l({})){let b=i.map(f=>({label:f.target,value:f.export||a}));n=await d({message:"Which target would you like to execute?",choices:b})}else n=i?.[0]?.export||a,r(`Using export '${n}'. Use the --export flag or an interactive terminal to select a different export.`)}else r(`No targeting information found. Using the default export '${n}'. Use the --export flag or an interactive terminal to select a different export.`);let u=o?.configuration.targeting?.[0]?.input_query,U=u&&`${o?.directory}/${u}`,_=await v(o,t.path,t["client-id"],t.reset,t.config);return await T({functionExtension:o,json:t.json,inputPath:t.input,export:n,stdin:"inherit",schemaPath:_,queryPath:U}),{app:c}}};p=e;e.summary="Run a function locally for testing.";e.descriptionWithMarkdown="Runs the function from your current directory for [testing purposes](https://shopify.dev/docs/apps/functions/testing-and-debugging). To learn how you can monitor and debug functions when errors occur, refer to [Shopify Functions error handling](https://shopify.dev/docs/api/functions/errors).";e.description=p.descriptionWithoutMarkdown();e.flags={...h,...x,...P,...m,input:s.Flags.string({char:"i",description:"The input JSON to pass to the function. If omitted, standard input is used.",env:"SHOPIFY_FLAG_INPUT"}),export:s.Flags.string({char:"e",hidden:!1,description:"Name of the WebAssembly export to invoke.",env:"SHOPIFY_FLAG_EXPORT"})};var G=e;export{G as a};
1
+ import{a as T}from"./chunk-HA6NISOZ.js";import{b as P,c as w,d as v}from"./chunk-7UOPCYMV.js";import{a as F}from"./chunk-MQICT2LR.js";import{a as x}from"./chunk-ZAMDXIVC.js";import{Ga as y}from"./chunk-ATXODH6C.js";import{b as h,c as m}from"./chunk-H5C3QTOO.js";import{B as d,I as l}from"./chunk-6EZ7JWBK.js";import{Pb as r}from"./chunk-DONEJHDG.js";import{r as N}from"./chunk-T6CC5WUU.js";import{e as A,g}from"./chunk-VKWPEFWQ.js";g();var s=A(N(),1);var p,a="_start",e=class extends F{async run(){let{flags:t}=await this.parse(p),n=a,{app:c}=await y({directory:t.path,userProvidedConfigName:t.config}),o=await w(c,t.path);if(t.export!==void 0)r(`Using export ${t.export} from the --export flag.`),n=t.export;else if(o.configuration.targeting!==void 0&&o.configuration.targeting.length>0){let i=o.configuration.targeting;if(i.length>1&&l({})){let b=i.map(f=>({label:f.target,value:f.export||a}));n=await d({message:"Which target would you like to execute?",choices:b})}else n=i?.[0]?.export||a,r(`Using export '${n}'. Use the --export flag or an interactive terminal to select a different export.`)}else r(`No targeting information found. Using the default export '${n}'. Use the --export flag or an interactive terminal to select a different export.`);let u=o?.configuration.targeting?.[0]?.input_query,U=u&&`${o?.directory}/${u}`,_=await v(o,t.path,t["client-id"],t.reset,t.config);return await T({functionExtension:o,json:t.json,inputPath:t.input,export:n,stdin:"inherit",schemaPath:_,queryPath:U}),{app:c}}};p=e;e.summary="Run a function locally for testing.";e.descriptionWithMarkdown="Runs the function from your current directory for [testing purposes](https://shopify.dev/docs/apps/functions/testing-and-debugging). To learn how you can monitor and debug functions when errors occur, refer to [Shopify Functions error handling](https://shopify.dev/docs/api/functions/errors).";e.description=p.descriptionWithoutMarkdown();e.flags={...h,...x,...P,...m,input:s.Flags.string({char:"i",description:"The input JSON to pass to the function. If omitted, standard input is used.",env:"SHOPIFY_FLAG_INPUT"}),export:s.Flags.string({char:"e",hidden:!1,description:"Name of the WebAssembly export to invoke.",env:"SHOPIFY_FLAG_EXPORT"})};var G=e;export{G as a};
@@ -1 +1 @@
1
- import{c as N,g}from"./chunk-VPRTJUIN.js";var B=N((V,L)=>{g();function d(e){return Array.isArray(e)?e:[e]}var a="",R=" ",u="\\",v=/^\s+$/,G=/(?:[^\\]|^)\\$/,I=/^\\!/,O=/^\\#/,T=/\r?\n/g,x=/^\.*\/|^\.+$/,l="/",C="node-ignore";typeof Symbol<"u"&&(C=Symbol.for("node-ignore"));var A=C,y=(e,t,s)=>Object.defineProperty(e,t,{value:s}),X=/([0-z])-([0-z])/g,P=()=>!1,b=e=>e.replace(X,(t,s,r)=>s.charCodeAt(0)<=r.charCodeAt(0)?t:a),m=e=>{let{length:t}=e;return e.slice(0,t-t%2)},w=[[/^\uFEFF/,()=>a],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,s)=>t+(s.indexOf("\\")===0?R:a)],[/(\\+?)\s/g,(e,t)=>{let{length:s}=t;return t.slice(0,s-s%2)+R}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,s)=>t+6<s.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,s)=>{let r=s.replace(/\\\*/g,"[^\\/]*");return t+r}],[/\\\\\\(?=[$.|*+(){^])/g,()=>u],[/\\\\/g,()=>u],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,s,r,n)=>t===u?`\\[${s}${m(r)}${n}`:n==="]"&&r.length%2===0?`[${b(s)}${r}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],$=Object.create(null),F=(e,t)=>{let s=$[e];return s||(s=w.reduce((r,[n,i])=>r.replace(n,i.bind(e)),e),$[e]=s),t?new RegExp(s,"i"):new RegExp(s)},f=e=>typeof e=="string",D=e=>e&&f(e)&&!v.test(e)&&!G.test(e)&&e.indexOf("#")!==0,H=e=>e.split(T),E=class{constructor(t,s,r,n){this.origin=t,this.pattern=s,this.negative=r,this.regex=n}},k=(e,t)=>{let s=e,r=!1;e.indexOf("!")===0&&(r=!0,e=e.substr(1)),e=e.replace(I,"!").replace(O,"#");let n=F(e,t);return new E(s,e,r,n)},p=(e,t)=>{throw new t(e)},o=(e,t,s)=>f(e)?e?o.isNotRelative(e)?s(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:s("path must not be empty",TypeError):s(`path must be a string, but got \`${t}\``,TypeError),S=e=>x.test(e);o.isNotRelative=S;o.convert=e=>e;var h=class{constructor({ignorecase:t=!0,ignoreCase:s=t,allowRelativePaths:r=!1}={}){y(this,A,!0),this._rules=[],this._ignoreCase=s,this._allowRelativePaths=r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[A]){this._rules=this._rules.concat(t._rules),this._added=!0;return}if(D(t)){let s=k(t,this._ignoreCase);this._added=!0,this._rules.push(s)}}add(t){return this._added=!1,d(f(t)?H(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,s){let r=!1,n=!1;return this._rules.forEach(i=>{let{negative:c}=i;if(n===c&&r!==n||c&&!r&&!n&&!s)return;i.regex.test(t)&&(r=!c,n=c)}),{ignored:r,unignored:n}}_test(t,s,r,n){let i=t&&o.convert(t);return o(i,t,this._allowRelativePaths?P:p),this._t(i,s,r,n)}_t(t,s,r,n){if(t in s)return s[t];if(n||(n=t.split(l)),n.pop(),!n.length)return s[t]=this._testOne(t,r);let i=this._t(n.join(l)+l,s,r,n);return s[t]=i.ignored?i:this._testOne(t,r)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return d(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},_=e=>new h(e),z=e=>o(e&&o.convert(e),e,P);_.isPathValid=z;_.default=_;L.exports=_;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=s=>/^\\\\\?\\/.test(s)||/["<>|\u0000-\u001F]+/u.test(s)?s:s.replace(/\\/g,"/");o.convert=e;let t=/^[a-z]:\//i;o.isNotRelative=s=>t.test(s)||S(s)}});export{B as a};
1
+ import{c as N,g}from"./chunk-VKWPEFWQ.js";var B=N((V,L)=>{g();function d(e){return Array.isArray(e)?e:[e]}var a="",R=" ",u="\\",v=/^\s+$/,G=/(?:[^\\]|^)\\$/,I=/^\\!/,O=/^\\#/,T=/\r?\n/g,x=/^\.*\/|^\.+$/,l="/",C="node-ignore";typeof Symbol<"u"&&(C=Symbol.for("node-ignore"));var A=C,y=(e,t,s)=>Object.defineProperty(e,t,{value:s}),X=/([0-z])-([0-z])/g,P=()=>!1,b=e=>e.replace(X,(t,s,r)=>s.charCodeAt(0)<=r.charCodeAt(0)?t:a),m=e=>{let{length:t}=e;return e.slice(0,t-t%2)},w=[[/^\uFEFF/,()=>a],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,s)=>t+(s.indexOf("\\")===0?R:a)],[/(\\+?)\s/g,(e,t)=>{let{length:s}=t;return t.slice(0,s-s%2)+R}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,s)=>t+6<s.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,s)=>{let r=s.replace(/\\\*/g,"[^\\/]*");return t+r}],[/\\\\\\(?=[$.|*+(){^])/g,()=>u],[/\\\\/g,()=>u],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,s,r,n)=>t===u?`\\[${s}${m(r)}${n}`:n==="]"&&r.length%2===0?`[${b(s)}${r}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],$=Object.create(null),F=(e,t)=>{let s=$[e];return s||(s=w.reduce((r,[n,i])=>r.replace(n,i.bind(e)),e),$[e]=s),t?new RegExp(s,"i"):new RegExp(s)},f=e=>typeof e=="string",D=e=>e&&f(e)&&!v.test(e)&&!G.test(e)&&e.indexOf("#")!==0,H=e=>e.split(T),E=class{constructor(t,s,r,n){this.origin=t,this.pattern=s,this.negative=r,this.regex=n}},k=(e,t)=>{let s=e,r=!1;e.indexOf("!")===0&&(r=!0,e=e.substr(1)),e=e.replace(I,"!").replace(O,"#");let n=F(e,t);return new E(s,e,r,n)},p=(e,t)=>{throw new t(e)},o=(e,t,s)=>f(e)?e?o.isNotRelative(e)?s(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:s("path must not be empty",TypeError):s(`path must be a string, but got \`${t}\``,TypeError),S=e=>x.test(e);o.isNotRelative=S;o.convert=e=>e;var h=class{constructor({ignorecase:t=!0,ignoreCase:s=t,allowRelativePaths:r=!1}={}){y(this,A,!0),this._rules=[],this._ignoreCase=s,this._allowRelativePaths=r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[A]){this._rules=this._rules.concat(t._rules),this._added=!0;return}if(D(t)){let s=k(t,this._ignoreCase);this._added=!0,this._rules.push(s)}}add(t){return this._added=!1,d(f(t)?H(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,s){let r=!1,n=!1;return this._rules.forEach(i=>{let{negative:c}=i;if(n===c&&r!==n||c&&!r&&!n&&!s)return;i.regex.test(t)&&(r=!c,n=c)}),{ignored:r,unignored:n}}_test(t,s,r,n){let i=t&&o.convert(t);return o(i,t,this._allowRelativePaths?P:p),this._t(i,s,r,n)}_t(t,s,r,n){if(t in s)return s[t];if(n||(n=t.split(l)),n.pop(),!n.length)return s[t]=this._testOne(t,r);let i=this._t(n.join(l)+l,s,r,n);return s[t]=i.ignored?i:this._testOne(t,r)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return d(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},_=e=>new h(e),z=e=>o(e&&o.convert(e),e,P);_.isPathValid=z;_.default=_;L.exports=_;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=s=>/^\\\\\?\\/.test(s)||/["<>|\u0000-\u001F]+/u.test(s)?s:s.replace(/\\/g,"/");o.convert=e;let t=/^[a-z]:\//i;o.isNotRelative=s=>t.test(s)||S(s)}});export{B as a};
@@ -0,0 +1 @@
1
+ var t=Object.create;var l=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var _=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var s=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,i)=>(typeof require<"u"?require:e)[i]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var u=(r,e,i)=>()=>{if(i)throw i[0];try{return r&&(e=r(r=0)),e}catch(m){throw i=[m],m}};var d=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(i){throw e=0,i}},q=(r,e)=>{for(var i in e)l(r,i,{get:e[i],enumerable:!0})},o=(r,e,i,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of p(e))!h.call(r,a)&&a!==i&&l(r,a,{get:()=>e[a],enumerable:!(m=f(e,a))||m.enumerable});return r};var R=(r,e,i)=>(i=r!=null?t(_(r)):{},o(e||!r||!r.__esModule?l(i,"default",{value:r,enumerable:!0}):i,r)),c=r=>o(l({},"__esModule",{value:!0}),r);import{createRequire as n}from"node:module";import T from"node:path";import b from"node:url";var g=u(()=>{"use strict";globalThis.require=n(import.meta.url);globalThis.__filename=b.fileURLToPath(import.meta.url);globalThis.__dirname=T.dirname(__filename)});export{s as a,u as b,d as c,q as d,R as e,c as f,g};
@@ -1 +1 @@
1
- import{c as m,d as f,e as p}from"./chunk-L2VSSINY.js";import{d as c,f as w,j as T}from"./chunk-MZJRNFAU.js";import{b as d}from"./chunk-HHXHOQQP.js";import{B as u}from"./chunk-MGL4YM3S.js";import{d as l}from"./chunk-BHWEA4V2.js";import{U as i}from"./chunk-VPL2NDH6.js";import{g as s}from"./chunk-VPRTJUIN.js";s();async function A(e,r){let n=await m(e),t=new p(r.filter),a=e.storeFqdn;if(t.any())return f(a,n,t)[0];let y=r.header??"",h=n.map(o=>{let S=o.id.toString()===d()?" [current]":"";return{value:async()=>o,label:`${o.name}${S}`,group:i(o.role)}});return r.create&&h.unshift(g(e)),(await u({message:y,choices:h}))()}async function B(e,r){return(await m(e)).find(t=>t.id.toString()===r)}async function C(e,r){let n=await m(e),t=new p(r),a=e.storeFqdn;return t.any()?f(a,n,t):[]}function g(e){return{value:async()=>{let r=c,n=await w("Name of the new theme"),t=await T({name:n,role:r},e);if(!t)throw new l("The theme could not be created.");return t},label:"[Create a new theme]",group:i(c)}}export{A as a,B as b,C as c};
1
+ import{c as m,d as f,e as p}from"./chunk-67KMRBSZ.js";import{d as c,f as w,j as T}from"./chunk-PJYNAUQB.js";import{g as d}from"./chunk-D6YDSGR4.js";import{B as u}from"./chunk-6EZ7JWBK.js";import{d as l}from"./chunk-WKBVT5WG.js";import{U as i}from"./chunk-DONEJHDG.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();async function A(e,r){let n=await m(e),t=new p(r.filter),a=e.storeFqdn;if(t.any())return f(a,n,t)[0];let y=r.header??"",h=n.map(o=>{let S=o.id.toString()===d()?" [current]":"";return{value:async()=>o,label:`${o.name}${S}`,group:i(o.role)}});return r.create&&h.unshift(g(e)),(await u({message:y,choices:h}))()}async function B(e,r){return(await m(e)).find(t=>t.id.toString()===r)}async function C(e,r){let n=await m(e),t=new p(r),a=e.storeFqdn;return t.any()?f(a,n,t):[]}function g(e){return{value:async()=>{let r=c,n=await w("Name of the new theme"),t=await T({name:n,role:r},e);if(!t)throw new l("The theme could not be created.");return t},label:"[Create a new theme]",group:i(c)}}export{A as a,B as b,C as c};
@@ -1,4 +1,4 @@
1
- import{b as L}from"./chunk-IVGWFPMA.js";import{a as V}from"./chunk-TXUTT6UA.js";import{k as q,l as H,n as I}from"./chunk-X2TC7S57.js";import{a as Y}from"./chunk-KFCGMT67.js";import{a as y,c as U}from"./chunk-M4V2OQAX.js";import{a as N}from"./chunk-2YXKZWYW.js";import{a as p,b as w}from"./chunk-QFWIDATO.js";import{a as F}from"./chunk-7BFDUVOG.js";import{b as g,c as x,d as M,f as _,j as R,n as j,p as D}from"./chunk-MZJRNFAU.js";import{m as k}from"./chunk-HHXHOQQP.js";import{aa as B}from"./chunk-IWCPQD7X.js";import{O as b,ua as a,va as O}from"./chunk-4V4DQ6W7.js";import{A as P,v as f,w as d,x as C}from"./chunk-MGL4YM3S.js";import{d as S}from"./chunk-BHWEA4V2.js";import{Lb as $}from"./chunk-VPL2NDH6.js";import{f as T,q as l}from"./chunk-IU2ZQ6TE.js";import{e as z,g as v}from"./chunk-VPRTJUIN.js";v();var A=z(B(),1);async function Te(e,t,r,o){let n=e.environment?.[0],s=t??await b(k({store:e.store}),e.password);if(e.strict){let m=e.json?"json":"text",{offenses:c}=await L(e.path??l(),m);if(c.length>0&&c.filter(J=>J.severity===A.Severity.ERROR).length>0)throw O(new S(n?`[${n}] Theme check failed. Please fix the errors before pushing.`:"Theme check failed. Please fix the errors before pushing."))}a("theme-service:push:setup"),Y({verbose:e.verbose,noColor:e.noColor});let i=e.force??!1,h=e.path?T(e.path):l();if(!await I(h)&&!await U(i,void 0,n,r))return;e.listing&&await q(h,e.listing);let u=await Z(s,e,r);u&&(a("theme-service:push:setup"),await W(u,s,{allowLive:e.allowLive??!1,environment:n,force:i,ignore:e.ignore??[],json:e.json??!1,multiEnvironment:r,nodelete:e.nodelete??!1,only:e.only??[],path:h,publish:e.publish??!1,listing:e.listing},o))}async function W(e,t,r,o){a("theme-service:push:file-system");let n=await j(e.id,t),s=H(r.path,{filters:r,listing:r.listing});a("theme-service:push:file-system");let{uploadResults:i,renderThemeSyncProgress:h}=V(e,t,n,s,r,o);await h(),r.publish&&await D(e.id,t),await G(i,e,t,r)}function E(e){for(let[t,r]of e.entries())if(!r.success)return!0;return!1}async function G(e,t,r,o){o.json?K(t,r,e,o.environment):o.publish?Q(r,e,o.environment):X(t,r,e,o.environment)}function K(e,t,r,o){let n={environment:o,theme:{id:e.id,name:e.name,role:e.role,shop:t.storeFqdn,editor_url:w(e,t),preview_url:p(e,t)}};if(E(r)){let i=`${o?`[${o}] `:""}The theme '${e.name}' was pushed with errors`;n.theme.warning=i;let h={};for(let[u,m]of r.entries())!m.success&&m.errors?.asset&&(h[u]=m.errors.asset);Object.keys(h).length>0&&(n.theme.errors=h)}$(JSON.stringify(n))}function Q(e,t,r){let o=r?[{subdued:`Environment: ${r}
1
+ import{a as V}from"./chunk-YQH2JHFA.js";import{a as N}from"./chunk-BCD4KTLJ.js";import{a as F}from"./chunk-VOJWKGCW.js";import{k as q,l as H,n as I}from"./chunk-2NWWMNU5.js";import{a as Y}from"./chunk-OQORDQLH.js";import{a as y,c as U}from"./chunk-QMXKGSFH.js";import{b as L}from"./chunk-YGKQCEVG.js";import{a as p,b as w}from"./chunk-STJ3LWFL.js";import{b as g,c as x,d as M,f as _,j as R,n as j,p as D}from"./chunk-PJYNAUQB.js";import{r as k}from"./chunk-D6YDSGR4.js";import{aa as B}from"./chunk-T5GSCWN5.js";import{O as b,ua as a,va as O}from"./chunk-5W443CKL.js";import{A as P,v as f,w as d,x as C}from"./chunk-6EZ7JWBK.js";import{d as S}from"./chunk-WKBVT5WG.js";import{Lb as $}from"./chunk-DONEJHDG.js";import{f as T,q as l}from"./chunk-773TIA5M.js";import{e as z,g as v}from"./chunk-VKWPEFWQ.js";v();var A=z(B(),1);async function Te(e,t,r,o){let n=e.environment?.[0],s=t??await b(k({store:e.store}),e.password);if(e.strict){let m=e.json?"json":"text",{offenses:c}=await L(e.path??l(),m);if(c.length>0&&c.filter(J=>J.severity===A.Severity.ERROR).length>0)throw O(new S(n?`[${n}] Theme check failed. Please fix the errors before pushing.`:"Theme check failed. Please fix the errors before pushing."))}a("theme-service:push:setup"),Y({verbose:e.verbose,noColor:e.noColor});let i=e.force??!1,h=e.path?T(e.path):l();if(!await I(h)&&!await U(i,void 0,n,r))return;e.listing&&await q(h,e.listing);let u=await Z(s,e,r);u&&(a("theme-service:push:setup"),await W(u,s,{allowLive:e.allowLive??!1,environment:n,force:i,ignore:e.ignore??[],json:e.json??!1,multiEnvironment:r,nodelete:e.nodelete??!1,only:e.only??[],path:h,publish:e.publish??!1,listing:e.listing},o))}async function W(e,t,r,o){a("theme-service:push:file-system");let n=await j(e.id,t),s=H(r.path,{filters:r,listing:r.listing});a("theme-service:push:file-system");let{uploadResults:i,renderThemeSyncProgress:h}=V(e,t,n,s,r,o);await h(),r.publish&&await D(e.id,t),await G(i,e,t,r)}function E(e){for(let[t,r]of e.entries())if(!r.success)return!0;return!1}async function G(e,t,r,o){o.json?K(t,r,e,o.environment):o.publish?Q(r,e,o.environment):X(t,r,e,o.environment)}function K(e,t,r,o){let n={environment:o,theme:{id:e.id,name:e.name,role:e.role,shop:t.storeFqdn,editor_url:w(e,t),preview_url:p(e,t)}};if(E(r)){let i=`${o?`[${o}] `:""}The theme '${e.name}' was pushed with errors`;n.theme.warning=i;let h={};for(let[u,m]of r.entries())!m.success&&m.errors?.asset&&(h[u]=m.errors.asset);Object.keys(h).length>0&&(n.theme.errors=h)}$(JSON.stringify(n))}function Q(e,t,r){let o=r?[{subdued:`Environment: ${r}
2
2
 
3
3
  `}]:[];E(t)?d({body:[...o,`Your theme was published with errors and is now live at https://${e.storeFqdn}`]}):f({body:[...o,`Your theme is now live at https://${e.storeFqdn}`]})}function X(e,t,r,o){let n=o?[{subdued:`Environment: ${o}
4
4
 
@@ -0,0 +1 @@
1
+ import{g as r}from"./chunk-VKWPEFWQ.js";r();
@@ -1,4 +1,4 @@
1
- import{a as i}from"./chunk-OCOY5MV2.js";import{r as t}from"./chunk-LITB5QQX.js";import{b as r}from"./chunk-VEDZUOVI.js";import{u as e}from"./chunk-MGL4YM3S.js";import{g as a}from"./chunk-VPRTJUIN.js";a();var o=class extends r{static{this.summary="Enable automatic upgrades for Shopify CLI."}static{this.descriptionWithMarkdown=`Enable automatic upgrades for Shopify CLI.
1
+ import{a as i}from"./chunk-GCN4O7HM.js";import{r as t}from"./chunk-KN3FTJDU.js";import{b as r}from"./chunk-UKK5P74A.js";import{u as e}from"./chunk-6EZ7JWBK.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var o=class extends r{static{this.summary="Enable automatic upgrades for Shopify CLI."}static{this.descriptionWithMarkdown=`Enable automatic upgrades for Shopify CLI.
2
2
 
3
3
  When auto-upgrade is enabled, Shopify CLI automatically updates to the latest version once per day. Major version upgrades are skipped and must be done manually.
4
4
 
@@ -0,0 +1 @@
1
+ import{Eb as x,Sb as P,vb as w}from"./chunk-DONEJHDG.js";import{e as g}from"./chunk-773TIA5M.js";import{r as T}from"./chunk-T6CC5WUU.js";import{c as h,e as O,g as u}from"./chunk-VKWPEFWQ.js";var M=h(a=>{"use strict";u();a.__esModule=void 0;a.__esModule=!0;var B=typeof Object.setPrototypeOf=="function",R=typeof Object.getPrototypeOf=="function",U=typeof Object.defineProperty=="function",q=typeof Object.create=="function",z=typeof Object.prototype.hasOwnProperty=="function",H=function(e,r){B?Object.setPrototypeOf(e,r):e.__proto__=r};a.setPrototypeOf=H;var L=function(e){return R?Object.getPrototypeOf(e):e.__proto__||e.prototype};a.getPrototypeOf=L;var j=!1,Y=function t(e,r,n){if(U&&!j)try{Object.defineProperty(e,r,n)}catch{j=!0,t(e,r,n)}else e[r]=n.value};a.defineProperty=Y;var k=function(e,r){return z?e.hasOwnProperty(e,r):e[r]===void 0};a.hasOwnProperty=k;var D=function(e,r){if(q)return Object.create(e,r);var n=function(){};n.prototype=e;var s=new n;if(typeof r>"u")return s;if(typeof r=="null")throw new Error("PropertyDescriptors must not be null.");if(typeof r=="object")for(var o in r)k(r,o)&&(s[o]=r[o].value);return s};a.objectCreate=D});var S=h(f=>{"use strict";u();f.__esModule=void 0;f.__esModule=!0;var b=M(),G=b.setPrototypeOf,Z=b.getPrototypeOf,v=b.defineProperty,J=b.objectCreate,K=new Error().toString()==="[object Error]",m="";function p(t){var e=this.constructor,r=e.name||(function(){var y=e.toString().match(/^function\s*([^\s(]+)/);return y===null?m||"Error":y[1]})(),n=r==="Error",s=n?m:r,o=Error.apply(this,arguments);if(G(o,Z(this)),!(o instanceof e)||!(o instanceof p)){var o=this;Error.apply(this,arguments),v(o,"message",{configurable:!0,enumerable:!1,value:t,writable:!0})}if(v(o,"name",{configurable:!0,enumerable:!1,value:s,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(o,n?p:e),o.stack===void 0){var c=new Error(t);c.name=o.name,o.stack=c.stack}return K&&v(o,"toString",{configurable:!0,enumerable:!1,value:function(){return(this.name||"Error")+(typeof this.message>"u"?"":": "+this.message)},writable:!0}),o}m=p.name||"ExtendableError";p.prototype=J(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}});f.ExtendableError=p;f.default=f.ExtendableError});u();var A=O(T(),1),V=O(S(),1),i;(function(t){t[t.Abort=0]="Abort",t[t.AbortSilent=1]="AbortSilent",t[t.Bug=2]="Bug"})(i||(i={}));var _=class extends Error{},l=class extends Error{constructor(e,r,n=null,s,o){let c=typeof e=="string"||"value"in e;super(c?P(e):w(e)),n?n instanceof x?this.tryMessage=P(n):this.tryMessage=n:this.tryMessage=null,this.type=r,this.nextSteps=s,this.customSections=o,this.skipOclifErrorHandling=!0,c||(this.formattedMessage=e)}},E=class extends l{constructor(e,r=null,n,s){super(e,i.Abort,r,n,s)}},I=class extends l{constructor(e,r,n,s=null){super(e,i.Abort,s),this.command=r,this.args=n}},C=class extends l{constructor(){super("",i.AbortSilent)}},d=class extends l{constructor(e,r=null){super(e,i.Bug,r)}};async function ne(t){let e;if(N(t))e=t;else if(typeof t=="string")e=new d(t);else if(t instanceof Error)e=new d(t.message),e.stack=t.stack;else{let n=t;e=new d(n?.message??"Unknown error"),n?.stack&&(e.stack=n?.stack)}let{renderFatalError:r}=await import("./ui-QOGKADWB.js");return r(e),Promise.resolve(t)}function oe(t){if(t instanceof A.Errors.CLIError){let e=new E(t.message);return e.stack=t.stack,Promise.resolve(e)}else return Promise.resolve(t)}function N(t){try{return Object.prototype.hasOwnProperty.call(t,"type")}catch{return!1}}function se(t){if(!N(t)){if(t instanceof Error){let e=t.message;return!Q(e)}return!0}return t.type===i.Bug}function ae(t){return g(t).replace("file:/","/").replace(/^\/?[A-Z]:/,"")}function Q(t){return["EPERM: operation not permitted, scandir","EPERM: operation not permitted, rename","EACCES: permission denied","EPERM: operation not permitted, symlink","This version of npm supports the following node versions","EBUSY: resource busy or locked","ENOTEMPTY: directory not empty","getaddrinfo ENOTFOUND","Client network socket disconnected before secure TLS connection was established","spawn EPERM","socket hang up","The user aborted a request.","write EPIPE","Unsupported platform"].some(n=>t.includes(n))}export{i as a,_ as b,l as c,E as d,I as e,C as f,d as g,ne as h,oe as i,se as j,ae as k,V as l};
@@ -0,0 +1,3 @@
1
+ import{n as u}from"./chunk-5W443CKL.js";import{b as g}from"./chunk-H5C3QTOO.js";import{b as y}from"./chunk-UKK5P74A.js";import{d as r}from"./chunk-WKBVT5WG.js";import{Lb as v,Mb as w,ua as l,wa as m}from"./chunk-DONEJHDG.js";import{f as p,i as h}from"./chunk-773TIA5M.js";import{r as R}from"./chunk-T6CC5WUU.js";import{e as A,g as s}from"./chunk-VKWPEFWQ.js";s();s();var U="text/markdown",L="X-Shopify-Surface",E="cli",F=["shopify.dev"];async function S(t,e){let c;try{c=new URL(t)}catch{throw new r(`Invalid URL: ${t}`)}let{hostname:d}=c;if(!F.some(o=>d===o||d.endsWith(`.${o}`)))throw new r(`Only documents from the following hosts can be fetched: ${F.join(", ")}.`);let i=await u(t,{headers:{Accept:U,[L]:E}});if(!i.ok)throw new r(`Failed to fetch ${t}: ${i.status} ${i.statusText}`);let f=await i.text();if(e){let o=p(e);await m(h(o)),await l(o,f),w(`Saved ${t} to ${o}`);return}v(f)}var n=A(R(),1),a=class t extends y{static{this.description="Download a complete document from shopify.dev. Every page on shopify.dev has a Markdown version, and that is what this tool returns. Use this to pull an entire document verbatim \u2014 for example, a set of instructions an agent follows like a centrally-served skill. For finding the relevant pieces of content across shopify.dev instead, use `doc search`."}static{this.examples=[`# fetch the Markdown version of a Shopify.dev page
2
+ shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli`,`# save the document to a file instead of printing it
3
+ shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli --output docs/shopify-cli.md`]}static{this.flags={...g,url:n.Flags.string({description:"The shopify.dev URL to fetch.",env:"SHOPIFY_FLAG_URL",required:!0}),output:n.Flags.string({description:"Write the document to this file path instead of printing it to stdout.",env:"SHOPIFY_FLAG_OUTPUT"})}}async run(){let{flags:e}=await this.parse(t);await S(e.url,e.output)}};export{a};
@@ -0,0 +1,10 @@
1
+ import{b as we}from"./chunk-G2I2ZUBV.js";import{a as he,c as ye}from"./chunk-MZMYBFZQ.js";import{b as ue}from"./chunk-ZEENHLSC.js";import{a as Fe}from"./chunk-HM5H7WBE.js";import{Ca as Re,Fa as Le,G as ve,L as Pe,O as Ae,Q as ke,ca as Ce,ea as xe,h as ge}from"./chunk-ATXODH6C.js";import{$ as G,da as Ie,o as be}from"./chunk-442S5SDM.js";import{B as re,D as ie,E as ne,f as R,g as te,i as ae,p as oe}from"./chunk-GW3VY3FZ.js";import{a as U}from"./chunk-FU232KQ7.js";import{b as de}from"./chunk-H5C3QTOO.js";import{b as X}from"./chunk-47MGPVED.js";import{D as me,f as se,u as le,v as ce,z as S}from"./chunk-6EZ7JWBK.js";import{d as pe}from"./chunk-WRRUFK4Y.js";import{d as f}from"./chunk-WKBVT5WG.js";import{$ as O,$a as Q,Ab as ee,Ca as I,Fb as h,Gb as L,Hb as g,Ja as B,Oa as W,Ta as C,Ua as x,Va as q,Wa as Z,ka as V,ma as Y,sa as _,ua as $,wa as K,zb as J}from"./chunk-DONEJHDG.js";import{e as fe}from"./chunk-KKUDXLK2.js";import{d as p,e as k,f as z,p as D,q as H}from"./chunk-773TIA5M.js";import{r as De}from"./chunk-T6CC5WUU.js";import{e as ze,g as c}from"./chunk-VKWPEFWQ.js";c();c();var b={reactRouter:{url:"https://github.com/Shopify/shopify-app-template-react-router",label:"Build a React Router app (recommended)",visible:!0,branches:{prompt:"For your React Router template, which language do you want?",options:{javascript:{branch:"javascript-cli",label:"JavaScript"},typescript:{branch:"main-cli",label:"TypeScript"}}}},remix:{url:"https://github.com/Shopify/shopify-app-template-remix",label:"Build a Remix app",visible:!1,branches:{prompt:"For your Remix template, which language do you want?",options:{javascript:{branch:"javascript",label:"JavaScript"},typescript:{branch:"main",label:"TypeScript"}}}},none:{url:"https://github.com/Shopify/shopify-app-template-extension-only",label:"Build an extension-only app",visible:!0},node:{url:"https://github.com/Shopify/shopify-app-template-node",visible:!1},ruby:{url:"https://github.com/Shopify/shopify-app-template-ruby",visible:!1}},E=Object.keys(b),F=E.filter(e=>b[e].visible),He=["reactRouter","none"],Oe=async e=>{let t=e.template,a=e.flavor,r={template:b.reactRouter.url};t??(t=await S({choices:He.map(i=>({label:b[i].label||i,value:i})),message:"Get started building your app:",defaultValue:E.find(i=>b[i].url===r.template)}));let o={...e,template:t,templateType:T(t)?t:"custom",globalCLIResult:{install:!1,alreadyInstalled:!1}},n,s;if(o.templateType!=="custom"){let i=b[o.templateType];n=i.url,i.branches&&(a?s=i.branches.options[a]?.branch:s=await S({message:i.branches.prompt||"Choose a flavor:",choices:Object.entries(i.branches.options).map(([d,m])=>({value:m.branch,label:m.label}))}))}return s&&(n=`${n}#${s}`),o.template=n||o.template||r.template,o.globalCLIResult=await ee(),o},Te=Oe;function T(e){return E.includes(e)}c();c();import{platform as Ve}from"os";async function _e({packageJSON:e,local:t,useGlobalCLI:a}){if(e.dependencies=e.dependencies??{},a?delete e.dependencies["@shopify/cli"]:e.dependencies["@shopify/cli"]=U,delete e.dependencies["@shopify/app"],t){let r=await Ye("cli");e.dependencies["@shopify/cli"]=r;let o={"@shopify/cli":r};e.overrides=e.overrides?{...e.overrides,...o}:o,e.resolutions=e.resolutions?{...e.resolutions,...o}:o}return e}async function Ye(e){return`file:${await Q(`packages/${e}`,{type:"directory",cwd:D(import.meta.url)})}`}async function $e({from:e,packageManager:t}){let a=Ve()==="win32"&&t==="yarn"?["--network-concurrency","1"]:[];return oe({directory:k(e),packageManager:t,args:a})}c();async function j(e,t){let r=(await Z([p(e,"**",".git"),p(e,"**",".github"),p(e,"**",".gitmodules"),p(e,"**",".cli-liquid-bypass"),p(e,"LICENSE*"),p(e,"**","frontend/LICENSE*"),p(e,"package.json.cli2")],{dot:!0,onlyFiles:!1,onlyDirectories:!1,ignore:["**/node_modules/**"]})).map(s=>I(s,{force:!0})),o=new Set(te[t]),n=R.filter(s=>!o.has(s)).map(s=>{let i=p(e,s);if(x(i))return B(i)});return Promise.all([...r,...n])}async function Ke(e){let t=e.packageManager,a=O(e.name),r=p(e.directory,a),o=we(e.template);await Se(r,a),await Be(r),le({body:["Initializing project with",{command:t},`
2
+ Use the`,{command:"--package-manager"},"flag to select a different package manager."]}),await V(async i=>{let d=p(i,"download"),m=o.filePath?p(d,o.filePath):d,u=p(i,"app"),A=o.branch?`${o.baseURL}#${o.branch}`:o.baseURL;await K(d);let w=[{title:`Downloading template from ${A}`,task:async()=>{await ye({repoUrl:A,destination:d,shallow:!0})}}];w.push({title:"Parsing liquid",task:async()=>{await ue(m,u,{dependency_manager:t,app_name:e.name})}},{title:"Updating package.json",task:async()=>{let l=(await re(u)).content;l.name=a,l.author=await se()??"",l.private=!0;let v=["extensions/*"].concat(We(u));switch(t){case"npm":case"yarn":case"bun":l.workspaces=v;break;case"pnpm":{await qe(u,v),await _(p(u,".npmrc"),`auto-install-peers=true
3
+ `);break}case"homebrew":case"unknown":throw new ae}await _e({packageJSON:l,local:e.local,directory:u,useGlobalCLI:e.useGlobalCLI}),await ie(u,l)}}),e.postCloneActions.removeLockfilesFromGitignore&&w.push({title:"Removing lockfiles from .gitignore",task:async()=>{let l=p(u,".gitignore");if(await C(l)){let v=await Y(l);R.forEach(Me=>{let Ue=new RegExp(`^${Me.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`,"gm");v=v.replace(Ue,"")}),await $(l,v.trim())}}}),await fe()&&w.push({title:"[Shopifolks-only] Configuring the project's NPM registry",task:async()=>{let l=p(u,".npmrc");await _(l,`@shopify:registry=https://registry.npmjs.org
4
+ `)}});let M=!1;w.push({title:"Preparing project directory",task:async()=>{await Se(r,a),M=!0,await W(u,r)}}),w.push({title:`Installing dependencies with ${t}`,task:async()=>{await $e({from:r,packageManager:t})}},{title:"Cleaning up",task:async()=>{await j(r,t)}},{title:"Initializing a Git repository...",task:async()=>{await he(r)}});try{await me(w)}catch(l){throw M&&await I(r).catch(()=>{}),l}});let n;if(e.selectedAppOrNameResult.result==="new"){let i=await ve(r,e.name),d=e.selectedAppOrNameResult.org;n=await e.developerPlatformClient.createApp(d,i)}else n=e.selectedAppOrNameResult.app;await Re({directory:r,apiKey:n.apiKey,appId:n.id,organizationId:n.organizationId,configName:"shopify.app.toml",developerPlatformClient:e.developerPlatformClient,isNewApp:!0},!1);let s=await Le({directory:r,clientId:void 0,forceRelink:!1,userProvidedConfigName:void 0});return ce({headline:[{userInput:a},"is ready for you to build!"],nextSteps:[["Run",{command:`cd ${a}`}],["For extensions, run",{command:L(t,"shopify app generate extension")}],["To see your app, run",{command:L(t,"shopify app dev")}]],reference:[{link:{label:"Shopify docs",url:"https://shopify.dev"}},[{link:{label:"Shopify Dev MCP,",url:"https://shopify.dev/docs/apps/build/devmcp"}},"connect your AI assistant to development resources"],["For an overview of commands, run",{command:L(t,"shopify app","--help")}]]}),{app:s.app}}async function Se(e,t){if(await C(e))throw new f(`
5
+ A directory with this name (${t}) already exists.
6
+ Choose a new name for your app.`)}async function Be(e){let t=new X({projectName:"shopify-cli-app"}),a=k(e);t.delete(a)}function We(e){return["web","web/frontend"].filter(t=>x(p(e,t)))}async function qe(e,t){let a=p(e,"pnpm-workspace.yaml");if(await C(a))return;let r=t.map(o=>` - '${o}'`).join(`
7
+ `);await $(a,`packages:
8
+ ${r}`)}var Ge=Ke;c();c();function N(e){try{return new URL(e)}catch{return}}function Ze(e){if(!e)return;let t=e.toLowerCase();for(let r of[t,`https://${t}`]){let o=N(r)?.hostname;if(o)return o}let a=t.replace(/^https?:\/\//,"").split("/")[0];if(a)return a}function Et(e){let t=Ze(e);if(!t)return;let a=t.match(/^([^.]+)\.myshopify\.com$/);return a?a[1]:void 0}function Ee(e){if(!e)return;let t=N(e);if(t&&t.origin!=="https://github.com")throw new f("Only GitHub repository references are supported, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]");if(!t&&!T(e))throw new f(g`Only ${F.map(a=>g`${h.yellow(a)}`.value).join(", ")} template aliases are supported, please provide a valid URL`)}function je(e,t){if(!e){if(t)throw new f(g`The ${h.yellow("--flavor")} flag requires the ${h.yellow("--template")} flag to be set`);return}if(!t)return;if(!T(e))throw new f(g`The ${h.yellow("--flavor")} flag is not supported for custom templates`);let a=b[e];if(!a.branches)throw new f(g`The ${h.yellow(e)} template does not support flavors`);if(!a.branches.options[t])throw new f(g`Invalid option for ${h.yellow("--flavor")}\nThe ${h.yellow("--flavor")} flag for ${h.yellow(e)} accepts only ${Object.keys(a.branches.options).map(r=>g`${h.yellow(r)}`.value).join(", ")}`)}var y=ze(De(),1);var Ne,P=class extends Fe{async run(){let{flags:t}=await this.parse(Ne);if(Ee(t.template),je(t.template,t.flavor),t.name!==void 0&&t.name.trim()==="")throw new f("The --name flag can't be empty","Provide a valid app name, for example: --name my-app");let a=ne(t["package-manager"]),r=t.name??await Qe(t.path),o=G();await o.session();let n=await Te({template:t.template,flavor:t.flavor}),s,i;if(t["client-id"]){let m=await Ce({apiKey:t["client-id"]});i=m.title,o=m.developerPlatformClient??o,s={result:"existing",app:m}}else{let m;t["organization-id"]?m=await Ie(t["organization-id"],o):m=await xe(),o=G({organization:m});let{organization:u,apps:A,hasMorePages:w}=await o.orgAndApps(m.id);s=await Xe(t.name!==void 0,r,A,w,u,o),i=s.result==="new"?s.name:s.app.title}n.globalCLIResult.install&&await J(a),await pe(()=>({cmd_create_app_template:n.templateType,cmd_create_app_template_url:n.template}));let{app:d}=await Ge({name:i,selectedAppOrNameResult:s,packageManager:a,template:n.template,local:t.local,directory:t.path,useGlobalCLI:n.globalCLIResult.alreadyInstalled||n.globalCLIResult.install,developerPlatformClient:o,postCloneActions:{removeLockfilesFromGitignore:n.templateType!=="custom"}});return{app:d}}};Ne=P;P.summary="Create a new app project";P.flags={...de,name:y.Flags.string({char:"n",env:"SHOPIFY_FLAG_NAME",hidden:!1,description:"The name for the new app. When provided, skips the app selection prompt and creates a new app with this name."}),path:y.Flags.string({char:"p",env:"SHOPIFY_FLAG_PATH",parse:async e=>z(e),default:async()=>H(),hidden:!1}),template:y.Flags.string({description:`The app template. Accepts one of the following:
9
+ - <${F.join("|")}>
10
+ - Any GitHub repo with optional branch and subpath, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]`,env:"SHOPIFY_FLAG_TEMPLATE"}),flavor:y.Flags.string({description:"Which flavor of the given template to use.",env:"SHOPIFY_FLAG_TEMPLATE_FLAVOR"}),"package-manager":y.Flags.string({char:"d",env:"SHOPIFY_FLAG_PACKAGE_MANAGER",hidden:!1,options:["npm","yarn","pnpm","bun"]}),local:y.Flags.boolean({char:"l",env:"SHOPIFY_FLAG_LOCAL",default:!1,hidden:!0}),"client-id":y.Flags.string({hidden:!1,description:"The Client ID of your app. Use this to automatically link your new project to an existing app. Using this flag avoids the app selection prompt.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),"organization-id":y.Flags.string({hidden:!1,description:"The organization ID. Your organization ID can be found in your Dev Dashboard URL: https://dev.shopify.com/dashboard/<organization-id>",env:"SHOPIFY_FLAG_ORGANIZATION_ID",exclusive:["client-id"]})};var sa=P;async function Qe(e){for(let t=0;t<3;t++){let a=await q({suffix:"app",directory:e});if(be(a))return a}return""}async function Xe(e,t,a,r,o,n){let s=a.length===0||e;if(s||(s=await ke()),s)return{result:"new",name:e?t:await Ae(t),org:o};{let i=await Pe(ge(n,o.id),a,r);if(!i)throw new f("Unable to select an app: the selection prompt was interrupted.");let d=await n.appFromIdentifiers(i.apiKey);if(!d)throw new f(`App with id ${i.id} not found`);return{result:"existing",app:d}}}export{Ze as a,Et as b,sa as c};
@@ -1 +1 @@
1
- import{f as b}from"./chunk-UARVYVLN.js";import{g as m}from"./chunk-VPRTJUIN.js";m();import{performance as u}from"node:perf_hooks";function w(){return b()?"bubble":"mute-and-report"}function h(g={}){let i={sensitive:{},public:{...g}},p=t=>{Object.assign(i.public,t)},M=t=>{Object.assign(i.sensitive,t)},l=async(t,e,n)=>{let r=n==="auto"?w():n,s=async()=>{let c=await e();t(c)};if(r==="bubble")await s();else try{await s()}catch(c){let{sendErrorToBugsnag:o}=await import("./error-handler-V7LSEXHM.js");await o(c,"unexpected_error")}},a=[];return{getAllPublicMetadata:()=>({...i.public}),getAllSensitiveMetadata:()=>({...i.sensitive}),addPublicMetadata:async(t,e="auto")=>l(p,t,e),addSensitiveMetadata:async(t,e="auto")=>l(M,t,e),runWithTimer:t=>async e=>{a.push(0);let n=u.now();try{return await e()}finally{let r=u.now();r=Math.max(n,r);let s=Math.max(r-n,0),c=a.pop(),o=Math.max(s-c,0);a.length>0&&(a[a.length-1]=(a[a.length-1]??0)+s),u.measure(`${t}#measurable`,{start:n,duration:o}),u.measure(`${t}#wall`,{start:n,end:r});let d=i.public[t]||0;d+=o,i.public[t]=d}}}}var y=h({cmd_all_timing_network_ms:0,cmd_all_timing_prompts_ms:0}),{getAllPublicMetadata:S,getAllSensitiveMetadata:f,addPublicMetadata:x,addSensitiveMetadata:A,runWithTimer:P}=y;export{h as a,S as b,f as c,x as d,A as e,P as f};
1
+ import{f as b}from"./chunk-KKUDXLK2.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();import{performance as u}from"node:perf_hooks";function w(){return b()?"bubble":"mute-and-report"}function h(g={}){let i={sensitive:{},public:{...g}},p=t=>{Object.assign(i.public,t)},M=t=>{Object.assign(i.sensitive,t)},l=async(t,e,n)=>{let r=n==="auto"?w():n,s=async()=>{let c=await e();t(c)};if(r==="bubble")await s();else try{await s()}catch(c){let{sendErrorToBugsnag:o}=await import("./error-handler-SW2ALZ5Z.js");await o(c,"unexpected_error")}},a=[];return{getAllPublicMetadata:()=>({...i.public}),getAllSensitiveMetadata:()=>({...i.sensitive}),addPublicMetadata:async(t,e="auto")=>l(p,t,e),addSensitiveMetadata:async(t,e="auto")=>l(M,t,e),runWithTimer:t=>async e=>{a.push(0);let n=u.now();try{return await e()}finally{let r=u.now();r=Math.max(n,r);let s=Math.max(r-n,0),c=a.pop(),o=Math.max(s-c,0);a.length>0&&(a[a.length-1]=(a[a.length-1]??0)+s),u.measure(`${t}#measurable`,{start:n,duration:o}),u.measure(`${t}#wall`,{start:n,end:r});let d=i.public[t]||0;d+=o,i.public[t]=d}}}}var y=h({cmd_all_timing_network_ms:0,cmd_all_timing_prompts_ms:0}),{getAllPublicMetadata:S,getAllSensitiveMetadata:f,addPublicMetadata:x,addSensitiveMetadata:A,runWithTimer:P}=y;export{h as a,S as b,f as c,x as d,A as e,P as f};
@@ -1,4 +1,4 @@
1
- import{a as h}from"./chunk-LCCMXY6N.js";import{a as v}from"./chunk-T5MK7ZSF.js";import{a as m}from"./chunk-DCK2FX6J.js";import{Fa as c}from"./chunk-WCWNI3ZV.js";import{z as n}from"./chunk-4V4DQ6W7.js";import{b as l}from"./chunk-4KRT35A2.js";import{v as d}from"./chunk-MGL4YM3S.js";import{d as a}from"./chunk-BHWEA4V2.js";import{r as x}from"./chunk-3YWUSKWF.js";import{e as S,g as p}from"./chunk-VPRTJUIN.js";p();p();async function f(o){let e=o.appContextResult.developerPlatformClient,r=o.appContextResult.remoteApp;if(!e.supportsDevSessions)throw new a("Dev preview is not supported for this app. It's valid only for apps created on the Next-Gen Dev Platform.");let s=await e.devSessionDelete({shopFqdn:o.store.shopDomain,appId:r.id});if(s.devSessionDelete?.userErrors.length){let u=s.devSessionDelete.userErrors.map(g=>g.message).join(`
1
+ import{a as h}from"./chunk-JOZXRV5K.js";import{a as v}from"./chunk-HM5H7WBE.js";import{a as m}from"./chunk-ZAMDXIVC.js";import{Fa as c}from"./chunk-ATXODH6C.js";import{z as n}from"./chunk-5W443CKL.js";import{b as l}from"./chunk-H5C3QTOO.js";import{v as d}from"./chunk-6EZ7JWBK.js";import{d as a}from"./chunk-WKBVT5WG.js";import{r as x}from"./chunk-T6CC5WUU.js";import{e as S,g as p}from"./chunk-VKWPEFWQ.js";p();p();async function f(o){let e=o.appContextResult.developerPlatformClient,r=o.appContextResult.remoteApp;if(!e.supportsDevSessions)throw new a("Dev preview is not supported for this app. It's valid only for apps created on the Next-Gen Dev Platform.");let s=await e.devSessionDelete({shopFqdn:o.store.shopDomain,appId:r.id});if(s.devSessionDelete?.userErrors.length){let u=s.devSessionDelete.userErrors.map(g=>g.message).join(`
2
2
  `);throw new a(`Failed to stop the dev preview: ${u}`)}d({headline:"Dev preview stopped.",body:[`The dev preview has been stopped on ${o.store.shopDomain} and the app's active version has been restored.`,"You can start it again with",{command:"shopify app dev"}]})}var w=S(x(),1);var i,t=class extends v{async run(){let{flags:e}=await this.parse(i),r=await c({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),s=await h({appContextResult:r,storeFqdn:e.store,forceReselectStore:e.reset});return await f({appContextResult:r,store:s}),{app:r.app}}};i=t;t.summary="Cleans up the dev preview from the selected store.";t.descriptionWithMarkdown=`Stop the dev preview that was started with \`shopify app dev\`.
3
3
 
4
4
  It restores the app's active version to the selected development store.
@@ -1 +1 @@
1
- import{g as t}from"./chunk-VPRTJUIN.js";t();var n;function r(){return n??(n={currentCommandId:""}),n}function o(){return r().currentCommandId}function d(e){r().currentCommandId=e}export{o as a,d as b};
1
+ import{g as t}from"./chunk-VKWPEFWQ.js";t();var n;function r(){return n??(n={currentCommandId:""}),n}function o(){return r().currentCommandId}function d(e){r().currentCommandId=e}export{o as a,d as b};
@@ -0,0 +1 @@
1
+ import{a as i}from"./chunk-FU232KQ7.js";import{b as e}from"./chunk-UKK5P74A.js";import{Lb as t}from"./chunk-DONEJHDG.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();async function s(){t(i)}var r=class extends e{static{this.description="Shopify CLI version currently installed."}async run(){await s()}};export{r as a};
@@ -1,4 +1,4 @@
1
- import{a as d}from"./chunk-M4V2OQAX.js";import{a as p}from"./chunk-QFWIDATO.js";import{a as y}from"./chunk-7BFDUVOG.js";import{p as u}from"./chunk-MZJRNFAU.js";import{k as c,q as f}from"./chunk-HHXHOQQP.js";import{b as l}from"./chunk-4KRT35A2.js";import{A as s,v as h}from"./chunk-MGL4YM3S.js";import{r as g}from"./chunk-3YWUSKWF.js";import{e as b,g as i}from"./chunk-VPRTJUIN.js";i();i();async function v(r,o,m){let t=await y(r,{header:"Select a theme to publish",filter:{development:!1,live:!1,theme:o.theme}}),a=p({...t,role:"live"},r);!o.force&&!m&&!await s({message:`Do you want to make '${t.name}' the new live theme on ${r.storeFqdn}?`,confirmationMessage:`Yes, make '${t.name}' the new live theme`,cancellationMessage:"No, cancel publish"})||(await u(t.id,r),h({headline:o.environment?`Environment: ${o.environment}`:void 0,body:["The theme",...d(t),"is now live at",{link:{label:a,url:a}},{char:"."}]}))}var n=b(g(),1);var w,e=class extends f{async command(o,m,t){await v(m,o,t)}};w=e;e.summary="Set a remote theme as the live theme.";e.descriptionWithMarkdown=`Publishes an unpublished theme from your theme library.
1
+ import{a as y}from"./chunk-VOJWKGCW.js";import{a as d}from"./chunk-QMXKGSFH.js";import{a as p}from"./chunk-STJ3LWFL.js";import{p as u}from"./chunk-PJYNAUQB.js";import{p as c,v as f}from"./chunk-D6YDSGR4.js";import{b as l}from"./chunk-H5C3QTOO.js";import{A as s,v as h}from"./chunk-6EZ7JWBK.js";import{r as g}from"./chunk-T6CC5WUU.js";import{e as b,g as i}from"./chunk-VKWPEFWQ.js";i();i();async function v(r,o,m){let t=await y(r,{header:"Select a theme to publish",filter:{development:!1,live:!1,theme:o.theme}}),a=p({...t,role:"live"},r);!o.force&&!m&&!await s({message:`Do you want to make '${t.name}' the new live theme on ${r.storeFqdn}?`,confirmationMessage:`Yes, make '${t.name}' the new live theme`,cancellationMessage:"No, cancel publish"})||(await u(t.id,r),h({headline:o.environment?`Environment: ${o.environment}`:void 0,body:["The theme",...d(t),"is now live at",{link:{label:a,url:a}},{char:"."}]}))}var n=b(g(),1);var w,e=class extends f{async command(o,m,t){await v(m,o,t)}};w=e;e.summary="Set a remote theme as the live theme.";e.descriptionWithMarkdown=`Publishes an unpublished theme from your theme library.
2
2
 
3
3
  If no theme ID is specified, then you're prompted to select the theme that you want to publish from the list of themes in your store.
4
4
 
@@ -1,4 +1,4 @@
1
- import{d as E}from"./chunk-BHWEA4V2.js";import{Fb as $,Hb as T,Pb as O,Ta as V,ma as N}from"./chunk-VPL2NDH6.js";import{a as g,c as w,e as Y,g as m}from"./chunk-VPRTJUIN.js";var I=w((z,R)=>{R.exports={name:"dotenv",version:"16.6.1",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var K=w((X,d)=>{m();var b=g("fs"),y=g("path"),q=g("os"),F=g("crypto"),P=I(),D=P.version,C=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function S(e){let n={},r=e.toString();r=r.replace(/\r\n?/mg,`
1
+ import{d as E}from"./chunk-WKBVT5WG.js";import{Fb as $,Hb as T,Pb as O,Ta as V,ma as N}from"./chunk-DONEJHDG.js";import{a as g,c as w,e as Y,g as m}from"./chunk-VKWPEFWQ.js";var I=w((z,R)=>{R.exports={name:"dotenv",version:"16.6.1",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var K=w((X,d)=>{m();var b=g("fs"),y=g("path"),q=g("os"),F=g("crypto"),P=I(),D=P.version,C=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function S(e){let n={},r=e.toString();r=r.replace(/\r\n?/mg,`
2
2
  `);let s;for(;(s=C.exec(r))!=null;){let a=s[1],t=s[2]||"";t=t.trim();let o=t[0];t=t.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),o==='"'&&(t=t.replace(/\\n/g,`
3
3
  `),t=t.replace(/\\r/g,"\r")),n[a]=t}return n}function U(e){e=e||{};let n=x(e);e.path=n;let r=l.configDotenv(e);if(!r.parsed){let o=new Error(`MISSING_DATA: Cannot parse ${n} for an unknown reason`);throw o.code="MISSING_DATA",o}let s=A(e).split(","),a=s.length,t;for(let o=0;o<a;o++)try{let i=s[o].trim(),f=M(r,i);t=l.decrypt(f.ciphertext,f.key);break}catch(i){if(o+1>=a)throw i}return l.parse(t)}function B(e){console.log(`[dotenv@${D}][WARN] ${e}`)}function v(e){console.log(`[dotenv@${D}][DEBUG] ${e}`)}function j(e){console.log(`[dotenv@${D}] ${e}`)}function A(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function M(e,n){let r;try{r=new URL(n)}catch(i){if(i.code==="ERR_INVALID_URL"){let f=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw f.code="INVALID_DOTENV_KEY",f}throw i}let s=r.password;if(!s){let i=new Error("INVALID_DOTENV_KEY: Missing key part");throw i.code="INVALID_DOTENV_KEY",i}let a=r.searchParams.get("environment");if(!a){let i=new Error("INVALID_DOTENV_KEY: Missing environment part");throw i.code="INVALID_DOTENV_KEY",i}let t=`DOTENV_VAULT_${a.toUpperCase()}`,o=e.parsed[t];if(!o){let i=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${t} in your .env.vault file.`);throw i.code="NOT_FOUND_DOTENV_ENVIRONMENT",i}return{ciphertext:o,key:s}}function x(e){let n=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)b.existsSync(r)&&(n=r.endsWith(".vault")?r:`${r}.vault`);else n=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else n=y.resolve(process.cwd(),".env.vault");return b.existsSync(n)?n:null}function k(e){return e[0]==="~"?y.join(q.homedir(),e.slice(1)):e}function W(e){let n=!!(e&&e.debug),r=e&&"quiet"in e?e.quiet:!0;(n||!r)&&j("Loading env from encrypted .env.vault");let s=l._parseVault(e),a=process.env;return e&&e.processEnv!=null&&(a=e.processEnv),l.populate(a,s,e),{parsed:s}}function G(e){let n=y.resolve(process.cwd(),".env"),r="utf8",s=!!(e&&e.debug),a=e&&"quiet"in e?e.quiet:!0;e&&e.encoding?r=e.encoding:s&&v("No encoding is specified. UTF-8 is used by default");let t=[n];if(e&&e.path)if(!Array.isArray(e.path))t=[k(e.path)];else{t=[];for(let u of e.path)t.push(k(u))}let o,i={};for(let u of t)try{let c=l.parse(b.readFileSync(u,{encoding:r}));l.populate(i,c,e)}catch(c){s&&v(`Failed to load ${u} ${c.message}`),o=c}let f=process.env;if(e&&e.processEnv!=null&&(f=e.processEnv),l.populate(f,i,e),s||!a){let u=Object.keys(i).length,c=[];for(let p of t)try{let h=y.relative(process.cwd(),p);c.push(h)}catch(h){s&&v(`Failed to load ${p} ${h.message}`),o=h}j(`injecting env (${u}) from ${c.join(",")}`)}return o?{parsed:i,error:o}:{parsed:i}}function J(e){if(A(e).length===0)return l.configDotenv(e);let n=x(e);return n?l._configVault(e):(B(`You set DOTENV_KEY but you are missing a .env.vault file at ${n}. Did you forget to build it?`),l.configDotenv(e))}function Q(e,n){let r=Buffer.from(n.slice(-64),"hex"),s=Buffer.from(e,"base64"),a=s.subarray(0,12),t=s.subarray(-16);s=s.subarray(12,-16);try{let o=F.createDecipheriv("aes-256-gcm",r,a);return o.setAuthTag(t),`${o.update(s)}${o.final()}`}catch(o){let i=o instanceof RangeError,f=o.message==="Invalid key length",u=o.message==="Unsupported state or unable to authenticate data";if(i||f){let c=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw c.code="INVALID_DOTENV_KEY",c}else if(u){let c=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw c.code="DECRYPTION_FAILED",c}else throw o}}function H(e,n,r={}){let s=!!(r&&r.debug),a=!!(r&&r.override);if(typeof n!="object"){let t=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw t.code="OBJECT_REQUIRED",t}for(let t of Object.keys(n))Object.prototype.hasOwnProperty.call(e,t)?(a===!0&&(e[t]=n[t]),s&&v(a===!0?`"${t}" is already defined and WAS overwritten`:`"${t}" is already defined and was NOT overwritten`)):e[t]=n[t]}var l={configDotenv:G,_configVault:W,_parseVault:U,config:J,decrypt:Q,parse:S,populate:H};d.exports.configDotenv=l.configDotenv;d.exports._configVault=l._configVault;d.exports._parseVault=l._parseVault;d.exports.config=l.config;d.exports.decrypt=l.decrypt;d.exports.parse=l.parse;d.exports.populate=l.populate;d.exports=l});m();var L=Y(K());async function oe(e){if(O(T`Reading the .env file at ${$.path(e)}`),!await V(e))throw new E(`The environment file at ${e} does not exist.`);let n=await N(e);return{path:e,variables:(0,L.parse)(n)}}function se(e,n){let r=[],s=e===null?[]:e.split(`
4
4
  `),a=[],t;for(let o of s){if(t){if(o.endsWith(t.quote)){let u=_(t.key,t.value+o.slice(0,-1),t.quote),c=n[t.key];c&&(a.push(t.key),u=_(t.key,c)),r.push(u),t=void 0}else t.value+=`${o}
@@ -1 +1 @@
1
- import{a as o}from"./chunk-NXL6LDJU.js";import{b as a}from"./chunk-VEDZUOVI.js";import{g as s}from"./chunk-VPRTJUIN.js";s();var t=class extends a{static{this.description="View the UI kit components that process async tasks"}static{this.hidden=!0}async run(){await o()}};export{t as a};
1
+ import{a as o}from"./chunk-ZQ5JVD5X.js";import{b as a}from"./chunk-UKK5P74A.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var t=class extends a{static{this.description="View the UI kit components that process async tasks"}static{this.hidden=!0}async run(){await o()}};export{t as a};
@@ -1 +1 @@
1
- import{n as c,o as m}from"./chunk-7JESXDF2.js";import{g as F}from"./chunk-VPRTJUIN.js";F();F();F();function o(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141):!1}var S=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/,B=["\x1B","\x9B"],E=e=>`${B[0]}[${e}m`,y=(e,t,a)=>{let i=[];e=[...e];for(let f of e){let s=f;f.includes(";")&&(f=f.split(";")[0][0]+"0");let r=m.codes.get(Number.parseInt(f,10));if(r){let n=e.indexOf(r.toString());n===-1?i.push(E(t?r:s)):e.splice(n,1)}else if(t){i.push(E(0));break}else i.push(E(s))}if(t&&(i=i.filter((f,s)=>i.indexOf(f)===s),a!==void 0)){let f=E(m.codes.get(Number.parseInt(a,10)));i=i.reduce((s,r)=>r===f?[r,...s]:[...s,r],[])}return i.join("")};function p(e,t,a){let i=[...e],f=[],s=typeof a=="number"?a:i.length,r=!1,n,u=0,l="";for(let[h,x]of i.entries()){let b=!1;if(B.includes(x)){let A=/\d[^m]*/.exec(e.slice(h,h+18));n=A&&A.length>0?A[0]:void 0,u<s&&(r=!0,n!==void 0&&f.push(n))}else r&&x==="m"&&(r=!1,b=!0);if(!r&&!b&&u++,!S.test(x)&&o(x.codePointAt())&&(u++,typeof a!="number"&&s++),u>t&&u<=s)l+=x;else if(u===t&&!r&&n!==void 0)l=y(f);else if(u>=s){l+=y(f,!0,n);break}}return l}function g(e,t,a){if(e.charAt(t)===" ")return t;let i=a?1:-1;for(let f=0;f<=3;f++){let s=t+f*i;if(e.charAt(s)===" ")return s}return t}function C(e,t,a={}){let{position:i="end",space:f=!1,preferTruncationOnSpace:s=!1}=a,{truncationCharacter:r="\u2026"}=a;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof t!="number")throw new TypeError(`Expected \`columns\` to be a number, got ${typeof t}`);if(t<1)return"";if(t===1)return r;let n=c(e);if(n<=t)return e;if(i==="start"){if(s){let u=g(e,n-t+1,!0);return r+p(e,u,n).trim()}return f===!0&&(r+=" "),r+p(e,n-t+c(r),n)}if(i==="middle"){f===!0&&(r=` ${r} `);let u=Math.floor(t/2);if(s){let l=g(e,u),h=g(e,n-(t-u)+1,!0);return p(e,0,l)+r+p(e,h,n).trim()}return p(e,0,u)+r+p(e,n-(t-u)+c(r),n)}if(i==="end"){if(s){let u=g(e,t-1);return p(e,0,u)+r}return f===!0&&(r=` ${r}`),p(e,0,t-c(r))+r}throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${i}`)}export{o as a,C as b};
1
+ import{n as c,o as m}from"./chunk-A4SBXDZB.js";import{g as F}from"./chunk-VKWPEFWQ.js";F();F();F();function o(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141):!1}var S=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/,B=["\x1B","\x9B"],E=e=>`${B[0]}[${e}m`,y=(e,t,a)=>{let i=[];e=[...e];for(let f of e){let s=f;f.includes(";")&&(f=f.split(";")[0][0]+"0");let r=m.codes.get(Number.parseInt(f,10));if(r){let n=e.indexOf(r.toString());n===-1?i.push(E(t?r:s)):e.splice(n,1)}else if(t){i.push(E(0));break}else i.push(E(s))}if(t&&(i=i.filter((f,s)=>i.indexOf(f)===s),a!==void 0)){let f=E(m.codes.get(Number.parseInt(a,10)));i=i.reduce((s,r)=>r===f?[r,...s]:[...s,r],[])}return i.join("")};function p(e,t,a){let i=[...e],f=[],s=typeof a=="number"?a:i.length,r=!1,n,u=0,l="";for(let[h,x]of i.entries()){let b=!1;if(B.includes(x)){let A=/\d[^m]*/.exec(e.slice(h,h+18));n=A&&A.length>0?A[0]:void 0,u<s&&(r=!0,n!==void 0&&f.push(n))}else r&&x==="m"&&(r=!1,b=!0);if(!r&&!b&&u++,!S.test(x)&&o(x.codePointAt())&&(u++,typeof a!="number"&&s++),u>t&&u<=s)l+=x;else if(u===t&&!r&&n!==void 0)l=y(f);else if(u>=s){l+=y(f,!0,n);break}}return l}function g(e,t,a){if(e.charAt(t)===" ")return t;let i=a?1:-1;for(let f=0;f<=3;f++){let s=t+f*i;if(e.charAt(s)===" ")return s}return t}function C(e,t,a={}){let{position:i="end",space:f=!1,preferTruncationOnSpace:s=!1}=a,{truncationCharacter:r="\u2026"}=a;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof t!="number")throw new TypeError(`Expected \`columns\` to be a number, got ${typeof t}`);if(t<1)return"";if(t===1)return r;let n=c(e);if(n<=t)return e;if(i==="start"){if(s){let u=g(e,n-t+1,!0);return r+p(e,u,n).trim()}return f===!0&&(r+=" "),r+p(e,n-t+c(r),n)}if(i==="middle"){f===!0&&(r=` ${r} `);let u=Math.floor(t/2);if(s){let l=g(e,u),h=g(e,n-(t-u)+1,!0);return p(e,0,l)+r+p(e,h,n).trim()}return p(e,0,u)+r+p(e,n-(t-u)+c(r),n)}if(i==="end"){if(s){let u=g(e,t-1);return p(e,0,u)+r}return f===!0&&(r=` ${r}`),p(e,0,t-c(r))+r}throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${i}`)}export{o as a,C as b};
@@ -1 +1 @@
1
- import{B as l,C as f,D as m,E as d,J as p,y as u}from"./chunk-4V4DQ6W7.js";import{h as n}from"./chunk-LITB5QQX.js";import{b as g}from"./chunk-VEDZUOVI.js";import{F as S,z as h}from"./chunk-MGL4YM3S.js";import{r as C}from"./chunk-3YWUSKWF.js";import{Ob as w}from"./chunk-VPL2NDH6.js";import{e as L,g as i}from"./chunk-VPRTJUIN.js";i();i();var r="NEW_LOGIN";function N(e,t){let s=[],o=e[t];if(o)for(let[c,I]of Object.entries(o))s.push({label:I.identity.alias??c,value:c});return s}async function b(){let e=await p({},{forceNewSession:!0}),t=await f(e.userId);if(!t){let s=await S({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await m(e.userId,s),s}return t}async function v(){let e=await l(),t=await u(),s=[];return e&&s.push(...N(e,t)),s.length>0&&s.push({label:"Log in with a different account",value:r}),s}async function y(e){if(e){let o=await d(e);if(o)return n(o),e}let t=await v(),s=r;return t.length>0&&(s=await h({message:"Which account would you like to use?",choices:t})),s===r?b():(n(s),t.find(o=>o.value===s)?.label??s)}var A=L(C(),1);var a=class e extends g{static{this.description="Logs you in to your Shopify account."}static{this.flags={alias:A.Flags.string({description:"Alias of the session you want to login to.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})}}async run(){let{flags:t}=await this.parse(e),s=await y(t.alias);w(`Current account: ${s}.`)}};export{a};
1
+ import{B as l,C as f,D as m,E as d,J as p,y as u}from"./chunk-5W443CKL.js";import{h as n}from"./chunk-KN3FTJDU.js";import{b as g}from"./chunk-UKK5P74A.js";import{F as S,z as h}from"./chunk-6EZ7JWBK.js";import{Ob as w}from"./chunk-DONEJHDG.js";import{r as C}from"./chunk-T6CC5WUU.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();var r="NEW_LOGIN";function N(e,t){let s=[],o=e[t];if(o)for(let[c,I]of Object.entries(o))s.push({label:I.identity.alias??c,value:c});return s}async function b(){let e=await p({},{forceNewSession:!0}),t=await f(e.userId);if(!t){let s=await S({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await m(e.userId,s),s}return t}async function v(){let e=await l(),t=await u(),s=[];return e&&s.push(...N(e,t)),s.length>0&&s.push({label:"Log in with a different account",value:r}),s}async function y(e){if(e){let o=await d(e);if(o)return n(o),e}let t=await v(),s=r;return t.length>0&&(s=await h({message:"Which account would you like to use?",choices:t})),s===r?b():(n(s),t.find(o=>o.value===s)?.label??s)}var A=L(C(),1);var a=class e extends g{static{this.description="Logs you in to your Shopify account."}static{this.flags={alias:A.Flags.string({description:"Alias of the session you want to login to.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})}}async run(){let{flags:t}=await this.parse(e),s=await y(t.alias);w(`Current account: ${s}.`)}};export{a};
@@ -1,4 +1,4 @@
1
- import{a as L}from"./chunk-LCCMXY6N.js";import{a as M}from"./chunk-T5MK7ZSF.js";import{a as C}from"./chunk-DCK2FX6J.js";import{F as j,Fa as E}from"./chunk-WCWNI3ZV.js";import{e as I}from"./chunk-N5ROZKPZ.js";import{a as J}from"./chunk-AP3RFOPL.js";import{R as h,da as g,ga as A,z as y}from"./chunk-4V4DQ6W7.js";import{b as O}from"./chunk-4KRT35A2.js";import{D,E as f,u as T}from"./chunk-MGL4YM3S.js";import{g as R}from"./chunk-BHWEA4V2.js";import{r as z}from"./chunk-3YWUSKWF.js";import{Fb as k,Hb as m,Mb as v}from"./chunk-VPL2NDH6.js";import{e as _,g as s}from"./chunk-VPRTJUIN.js";s();s();s();var P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metafieldDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MetafieldOwnerType"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metafieldDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ownerType"},value:{kind:"Variable",name:{kind:"Name",value:"ownerType"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"30"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetafieldForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetafieldForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetafieldDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}},{kind:"Field",name:{kind:"Name",value:"customerAccount"}}]}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminFilterable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]};s();async function Q(e){let i="Admin",n=I(e.storeFqdn,"unstable");return{token:e.token,api:i,url:n}}async function w(e){return A({query:e.query,...await Q(e.session),variables:e.variables,autoRateLimitRestore:e.autoRateLimitRestore})}s();var V={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metaobjectDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaobjectDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetaobjectForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetaobjectForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetaobjectDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}}]}},{kind:"Field",name:{kind:"Name",value:"displayNameKey"}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publishable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"translatable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"renderable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaTitleKey"}},{kind:"Field",name:{kind:"Name",value:"metaDescriptionKey"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"fieldDefinitions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"required"}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]};var $=_(J(),1);var Z={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",customer:"CUSTOMER",delivery_customization:"DELIVERY_CUSTOMIZATION",delivery_method:"DELIVERY_METHOD",delivery_option_generator:"DELIVERY_OPTION_GENERATOR",discount:"DISCOUNT",draft_order:"DRAFTORDER",fulfillment_constraint_rule:"FULFILLMENT_CONSTRAINT_RULE",gift_card_transaction:"GIFT_CARD_TRANSACTION",order_routing_location_rule:"ORDER_ROUTING_LOCATION_RULE",payment_customization:"PAYMENT_CUSTOMIZATION",selling_plan:"SELLING_PLAN",shop:"SHOP",validation:"VALIDATION",variant:"PRODUCTVARIANT",cart_transform:"CARTTRANSFORM"};async function q({query:e,session:i,toNodes:n,toVariables:t,performQuery:d=a=>w({query:e,session:i,variables:a,autoRateLimitRestore:!0})}){let a;try{let o=n(await d(t(a))),l=[];for(l.push(...o.nodes);o.pageInfo.hasNextPage;)a=o.pageInfo.endCursor,o=n(await d(t(a))),l.push(...o.nodes);return{status:"ok",items:l}}catch(o){if(o instanceof Error&&o.message.includes("ACCESS_DENIED"))return{status:"scope_error"};throw o}}function x(e,i){let n="";for(let t of e)n=(0,$.updateTomlValues)(n,t);return`# ${i}
1
+ import{a as L}from"./chunk-JOZXRV5K.js";import{a as M}from"./chunk-HM5H7WBE.js";import{a as C}from"./chunk-ZAMDXIVC.js";import{F as j,Fa as E}from"./chunk-ATXODH6C.js";import{e as I}from"./chunk-G24L7MB3.js";import{a as J}from"./chunk-J2WCMQZZ.js";import{R as h,da as g,ga as A,z as y}from"./chunk-5W443CKL.js";import{b as O}from"./chunk-H5C3QTOO.js";import{D,E as f,u as T}from"./chunk-6EZ7JWBK.js";import{g as R}from"./chunk-WKBVT5WG.js";import{Fb as k,Hb as m,Mb as v}from"./chunk-DONEJHDG.js";import{r as z}from"./chunk-T6CC5WUU.js";import{e as _,g as s}from"./chunk-VKWPEFWQ.js";s();s();s();var P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metafieldDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MetafieldOwnerType"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metafieldDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ownerType"},value:{kind:"Variable",name:{kind:"Name",value:"ownerType"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"30"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetafieldForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetafieldForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetafieldDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}},{kind:"Field",name:{kind:"Name",value:"customerAccount"}}]}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminFilterable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]};s();async function Q(e){let i="Admin",n=I(e.storeFqdn,"unstable");return{token:e.token,api:i,url:n}}async function w(e){return A({query:e.query,...await Q(e.session),variables:e.variables,autoRateLimitRestore:e.autoRateLimitRestore})}s();var V={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metaobjectDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaobjectDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetaobjectForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetaobjectForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetaobjectDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}}]}},{kind:"Field",name:{kind:"Name",value:"displayNameKey"}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publishable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"translatable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"renderable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaTitleKey"}},{kind:"Field",name:{kind:"Name",value:"metaDescriptionKey"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"fieldDefinitions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"required"}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]};var $=_(J(),1);var Z={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",customer:"CUSTOMER",delivery_customization:"DELIVERY_CUSTOMIZATION",delivery_method:"DELIVERY_METHOD",delivery_option_generator:"DELIVERY_OPTION_GENERATOR",discount:"DISCOUNT",draft_order:"DRAFTORDER",fulfillment_constraint_rule:"FULFILLMENT_CONSTRAINT_RULE",gift_card_transaction:"GIFT_CARD_TRANSACTION",order_routing_location_rule:"ORDER_ROUTING_LOCATION_RULE",payment_customization:"PAYMENT_CUSTOMIZATION",selling_plan:"SELLING_PLAN",shop:"SHOP",validation:"VALIDATION",variant:"PRODUCTVARIANT",cart_transform:"CARTTRANSFORM"};async function q({query:e,session:i,toNodes:n,toVariables:t,performQuery:d=a=>w({query:e,session:i,variables:a,autoRateLimitRestore:!0})}){let a;try{let o=n(await d(t(a))),l=[];for(l.push(...o.nodes);o.pageInfo.hasNextPage;)a=o.pageInfo.endCursor,o=n(await d(t(a))),l.push(...o.nodes);return{status:"ok",items:l}}catch(o){if(o instanceof Error&&o.message.includes("ACCESS_DENIED"))return{status:"scope_error"};throw o}}function x(e,i){let n="";for(let t of e)n=(0,$.updateTomlValues)(n,t);return`# ${i}
2
2
  ${n}`}function X(e,i){let n=i.map(le).map(a=>{switch(a.status){case"ok":{let{typeName:o,patches:l}=a;return x(l,`type: $app:${o}`)}case"not_app_reserved":return null}}).filter(a=>a!==null),t=e.flatMap(({items:a,ownerType:o,graphQLOwner:l})=>a.map(r=>({result:oe(r,o),graphQLOwner:l}))).map(({result:a,graphQLOwner:o})=>{switch(a.status){case"ok":{let{namespace:l,key:r,patches:b}=a;return x(b,`namespace: ${l==="app"?"$app":`$app:${l}`} key: ${r} owner_type: ${o}`)}case"not_app_reserved":return null}}).filter(a=>a!==null);return{tomlContent:[...n,...t].join(`
3
3
  `),metafieldCount:t.length,metaobjectCount:n.length}}async function K(e){let i=await de(e),n=i.storeFqdn,t=await ne(i),d=await ie(i);e.includeExistingDeclaredDefinitions||(t=te(t,e.appConfiguration),d=ae(d,e.appConfiguration));let{tomlContent:a,metafieldCount:o,metaobjectCount:l}=X(t,d);ee(o,l,n,a)}function ee(e,i,n,t){T({headline:"Conversion to TOML complete.",body:["Converted",{warn:`${e} metafields`},"and",{warn:`${i} metaobjects`},"from",{warn:n},"into TOML, ready for you to copy."],orderedNextSteps:!0,nextSteps:["Review the suggested TOML carefully before applying.",["Missing sections? Make sure your app has the required access scopes to load metafields and metaobjects (e.g.",{command:"read_customers"},"to load customer metafields,",{command:"read_metaobject_definitions"},"to load metaobjects.)"],["Missing definitions? Only metafields and metaobjects that are app-reserved (using",{command:"$app"},") will be converted."],["When you're ready, add the generated TOML to your app's configuration file and test out changes with the",{command:"shopify app dev"},"command."]]}),ue(t)}async function ne(e){let i=[];return await D(Object.entries(Z).map(([n,t])=>({title:m`Loading ${k.green(n)} metafields`,task:async()=>{let d=await q({query:P,session:e,toNodes:a=>a.metafieldDefinitions,toVariables:a=>({ownerType:t,after:a})});i.push({metafields:d,ownerType:n,graphQLOwner:t})}}))),i.map(({metafields:n,ownerType:t,graphQLOwner:d})=>n.status==="ok"?{ownerType:t,items:n.items,graphQLOwner:d}:null).filter(n=>n!==null)}async function ie(e){let i=await f({title:m`Loading ${k.green("metaobjects")}`,task:async()=>q({query:V,session:e,toNodes:n=>n.metaobjectDefinitions,toVariables:n=>({after:n})})});return i.status==="ok"?i.items:[]}function te(e,i){return e.map(n=>{let t=n.items.filter(d=>!U(i,[n.ownerType,"metafields",p(d.namespace)??"",d.key]));return t.length>0?{...n,items:t}:null}).filter(n=>n!==null)}function ae(e,i){return e.filter(n=>!U(i,["metaobjects","app",p(n.type)??""]))}function U(e,i){let n=e;for(let t of i){if(!n[t])return!1;n=n[t]}return!0}async function de(e){let{remoteApp:i,store:n}=e,t=i.apiSecretKeys[0]?.secret;if(!t)throw new R("No API secret keys found for app");return await h(n.shopDomain,i.apiKey,t)}function p(e){if(!e.match(/^app--\d+/))return null;let i="app";return e.match(/^app--\d+--/)&&(i=e.replace(/^app--\d+--/,"")),i}function oe(e,i){let n=p(e.namespace);if(!n)return{status:"not_app_reserved"};let t=e.key,d=se(e),a=me(d,i,n,t);return{status:"ok",key:t,namespace:n,patches:a}}function le(e){let i=p(e.type);if(!i)return{status:"not_app_reserved"};let n=re(e,i),t=ce(n,i);return{status:"ok",typeName:i,patches:t}}function se(e){let i={name:e.name===e.key?void 0:e.name,type:e.type.name,description:e.description??void 0,capabilities:u({admin_filterable:e.capabilities.adminFilterable.enabled||void 0}),access:u({admin:Y(e.access.admin),storefront:H(e.access.storefront),customer_account:pe(e.access.customerAccount)}),validations:B(e.validations)},{type:n,validations:t}=G(i.type,i.validations);return i.type=n,i.validations=t,i}function re(e,i){return{name:e.name===i?void 0:e.name,description:e.description??void 0,display_name_field:e.displayNameKey??void 0,access:u({admin:Y(e.access.admin),storefront:H(e.access.storefront)}),capabilities:u({translatable:e.capabilities.translatable.enabled||void 0,publishable:e.capabilities.publishable.enabled||void 0,renderable:e.capabilities.renderable?.enabled||void 0,renderable_meta_title_field:e.capabilities.renderable?.data?.metaTitleKey??void 0,renderable_meta_description_field:e.capabilities.renderable?.data?.metaDescriptionKey??void 0}),fields:Object.fromEntries(e.fieldDefinitions.map(n=>{let t={type:n.type.name,description:n.description??void 0,name:n.name===n.key?void 0:n.name,required:n.required||void 0,validations:B(n.validations)},{type:d,validations:a}=G(t.type,t.validations);return t.type=d,t.validations=a,[n.key,t]}))}}function G(e,i){if(!i)return{type:e,validations:void 0};if(i.metaobject_definition_type&&typeof i.metaobject_definition_type=="string"){let n=p(i.metaobject_definition_type);return{type:`${e}<$app:${n}>`,validations:u({...i,metaobject_definition_type:void 0})}}if(i.metaobject_definition_types&&Array.isArray(i.metaobject_definition_types)&&i.metaobject_definition_types.every(n=>typeof n=="string")){let n=i.metaobject_definition_types.map(t=>p(t));return{type:`${e}<${n.map(t=>`$app:${t}`).join(",")}>`,validations:u({...i,metaobject_definition_types:void 0})}}return{type:e,validations:i}}function B(e){let i=n=>{try{return JSON.parse(n)}catch{return n}};return u(Object.fromEntries(e.filter(n=>n.value!==void 0&&n.name!=="metaobject_definition_id"&&n.name!=="metaobject_definition_ids").map(n=>[n.name,n.value?i(n.value):void 0])))}function me(e,i,n,t){let d=[[[i,"metafields",n,t,"name"],e.name],[[i,"metafields",n,t,"type"],e.type],[[i,"metafields",n,t,"description"],e.description]],a=[[[i,"metafields",n,t,"access","admin"],e.access?.admin],[[i,"metafields",n,t,"access","storefront"],e.access?.storefront],[[i,"metafields",n,t,"access","customer_account"],e.access?.customer_account],[[i,"metafields",n,t,"capabilities","admin_filterable"],e.capabilities?.admin_filterable||void 0]];return e.validations&&W(e.validations).forEach(({validationKey:l,actualValue:r})=>{d.push([[i,"metafields",n,t,"validations",l],r])}),[N(d),N(a)]}function ce(e,i){let n=[[["metaobjects","app",i,"name"],e.name===i?void 0:e.name],[["metaobjects","app",i,"description"],e.description],[["metaobjects","app",i,"display_name_field"],e.display_name_field]],t=[[["metaobjects","app",i,"access","admin"],e.access?.admin],[["metaobjects","app",i,"access","storefront"],e.access?.storefront]];return e.capabilities?.translatable&&t.push([["metaobjects","app",i,"capabilities","translatable"],!0]),e.capabilities?.publishable&&t.push([["metaobjects","app",i,"capabilities","publishable"],!0]),e.capabilities?.renderable&&(t.push([["metaobjects","app",i,"capabilities","renderable"],!0]),e.capabilities?.renderable_meta_title_field&&t.push([["metaobjects","app",i,"capabilities","renderable_meta_title_field"],e.capabilities.renderable_meta_title_field]),e.capabilities?.renderable_meta_description_field&&t.push([["metaobjects","app",i,"capabilities","renderable_meta_description_field"],e.capabilities.renderable_meta_description_field])),Object.entries(e.fields).forEach(([d,a])=>{if(typeof a=="string")n.push([["metaobjects","app",i,"fields",d],a]);else{let o=Object.fromEntries(Object.entries(a).filter(([l,r])=>r!==void 0));Object.keys(o).length===1?n.push([["metaobjects","app",i,"fields",d],a.type]):(n.push([["metaobjects","app",i,"fields",d,"type"],a.type]),n.push([["metaobjects","app",i,"fields",d,"description"],a.description]),n.push([["metaobjects","app",i,"fields",d,"name"],a.name]),n.push([["metaobjects","app",i,"fields",d,"required"],a.required||void 0]),a.validations&&W(a.validations).forEach(({validationKey:r,actualValue:b})=>{n.push([["metaobjects","app",i,"fields",d,"validations",r],b])}))}}),[N(n),N(t)]}function W(e){return Object.entries(e).map(([i,n])=>{let t;return typeof n=="string"||typeof n=="number"||typeof n=="boolean"||Array.isArray(n)&&n.every(d=>typeof d=="string")?t=n:t=JSON.stringify(n),{validationKey:i,actualValue:t}})}function ue(e){let i=e.split(`
4
4
  `);for(let n of i)n.match(/^\s*\[/)?v(m`${k.green(n)}`):n.match(/^\s*#/)?v(m`${k.gray(n)}`):v(m`${n}`)}function Y(e){switch(e){case"MERCHANT_READ_WRITE":return"merchant_read_write";case"MERCHANT_READ":case"PRIVATE":case"PUBLIC_READ":case"PUBLIC_READ_WRITE":case null:case void 0:return}}function H(e){switch(e){case"PUBLIC_READ":return"public_read";case"NONE":case null:case void 0:return}}function pe(e){switch(e){case"READ":return"read";case"READ_WRITE":return"read_write";case"NONE":case null:case void 0:return}}function u(e){if(e&&!g(e)&&!(typeof e=="object"&&Object.values(e).every(i=>i===void 0)))return e}function N(e){return e.filter(([i,n])=>n!==void 0)}var S=_(z(),1);var F,c=class extends M{async run(){let{appContextResult:i,...n}=await f({title:m`Loading application`,task:async()=>{let{flags:t}=await this.parse(F);await j(t.path);let d=await E({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),a=await L({appContextResult:d,storeFqdn:t.store,forceReselectStore:t.reset});return{appContextResult:d,appConfiguration:d.app.configuration,remoteApp:d.remoteApp,store:a,includeExistingDeclaredDefinitions:t["include-existing"]}}});return await K(n),{app:i.app}}};F=c;c.summary="Import metafield and metaobject definitions.";c.descriptionWithMarkdown="Import metafield and metaobject definitions from your development store. [Read more about declarative custom data definitions](https://shopify.dev/docs/apps/build/custom-data/declarative-custom-data-definitions).";c.description=F.descriptionWithoutMarkdown();c.flags={...O,...C,store:S.Flags.string({char:"s",description:"Store URL. Must be an existing development or Shopify Plus sandbox store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>y(e)}),"include-existing":S.Flags.boolean({description:"Include existing declared definitions in the output.",default:!1,env:"SHOPIFY_FLAG_INCLUDE_EXISTING"})};var Ke=c;export{Ke as a};
@@ -1,4 +1,4 @@
1
- import{k as S,q as E}from"./chunk-HHXHOQQP.js";import{$ as re,aa as G}from"./chunk-IWCPQD7X.js";import{r as C}from"./chunk-WUK5NQSX.js";import{b as $}from"./chunk-4KRT35A2.js";import{u as w,v as N}from"./chunk-MGL4YM3S.js";import{r as oe}from"./chunk-3YWUSKWF.js";import{$a as A,Lb as l,Mb as P,N as x,Nb as T,Pb as L,Ta as b,na as R,ua as _}from"./chunk-VPL2NDH6.js";import{d as F,p as I}from"./chunk-IU2ZQ6TE.js";import{e as O,g as k}from"./chunk-VPRTJUIN.js";k();k();var i=O(G(),1),y=O(re(),1);function ie(t){switch(t){case"error":return i.Severity.ERROR;case"suggestion":case"warning":return i.Severity.WARNING;case"style":case"info":return i.Severity.INFO;case"crash":return}}function j(t){switch(t){case i.Severity.ERROR:return"error";case i.Severity.WARNING:return"warning";case i.Severity.INFO:return"info"}}function se(t,e,n){let o=i.path.fsPath(t),c=R(o).toString().split(`
1
+ import{p as S,v as E}from"./chunk-D6YDSGR4.js";import{$ as re,aa as G}from"./chunk-T5GSCWN5.js";import{r as C}from"./chunk-GW3VY3FZ.js";import{b as $}from"./chunk-H5C3QTOO.js";import{u as w,v as N}from"./chunk-6EZ7JWBK.js";import{$a as A,Lb as l,Mb as P,N as x,Nb as T,Pb as L,Ta as b,na as R,ua as _}from"./chunk-DONEJHDG.js";import{d as F,p as I}from"./chunk-773TIA5M.js";import{r as oe}from"./chunk-T6CC5WUU.js";import{e as O,g as k}from"./chunk-VKWPEFWQ.js";k();k();var i=O(G(),1),y=O(re(),1);function ie(t){switch(t){case"error":return i.Severity.ERROR;case"suggestion":case"warning":return i.Severity.WARNING;case"style":case"info":return i.Severity.INFO;case"crash":return}}function j(t){switch(t){case i.Severity.ERROR:return"error";case i.Severity.WARNING:return"warning";case i.Severity.INFO:return"info"}}function se(t,e,n){let o=i.path.fsPath(t),c=R(o).toString().split(`
2
2
  `).slice(e,n+1),a=c.length===1;return c.map((u,h)=>{let f=e+h+1,d=a?u.trim():u;return`${f} ${d}`}).join(`
3
3
  `)}function ce(t){switch(t){case i.Severity.ERROR:return{error:`
4
4
  [error]:`};case i.Severity.WARNING:return{warn:`
@@ -1 +1 @@
1
- import{b as d,c as f}from"./chunk-CE6FKJFS.js";import{a as c}from"./chunk-UOQ75BL3.js";import{a as p}from"./chunk-DCK2FX6J.js";import{Ga as u,e as i}from"./chunk-WCWNI3ZV.js";import{b as n}from"./chunk-4KRT35A2.js";import{v as e}from"./chunk-MGL4YM3S.js";import{g as s}from"./chunk-VPRTJUIN.js";s();var a,t=class extends c{async run(){let{flags:o}=await this.parse(a),{app:r}=await u({directory:o.path,userProvidedConfigName:o.config}),m=await f(r,o.path);return await i(m,{stdout:process.stdout,stderr:process.stderr,app:r}),e({headline:"GraphQL types generated successfully."}),{app:r}}};a=t;t.summary="Generate GraphQL types for a function.";t.descriptionWithMarkdown="Creates GraphQL types based on your [input query](https://shopify.dev/docs/apps/functions/input-output#input) for a function. Supports JavaScript functions out of the box, or any language via the `build.typegen_command` configuration.";t.description=a.descriptionWithoutMarkdown();t.flags={...n,...p,...d};var x=t;export{x as a};
1
+ import{b as d,c as f}from"./chunk-7UOPCYMV.js";import{a as c}from"./chunk-MQICT2LR.js";import{a as p}from"./chunk-ZAMDXIVC.js";import{Ga as u,e as i}from"./chunk-ATXODH6C.js";import{b as n}from"./chunk-H5C3QTOO.js";import{v as e}from"./chunk-6EZ7JWBK.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var a,t=class extends c{async run(){let{flags:o}=await this.parse(a),{app:r}=await u({directory:o.path,userProvidedConfigName:o.config}),m=await f(r,o.path);return await i(m,{stdout:process.stdout,stderr:process.stderr,app:r}),e({headline:"GraphQL types generated successfully."}),{app:r}}};a=t;t.summary="Generate GraphQL types for a function.";t.descriptionWithMarkdown="Creates GraphQL types based on your [input query](https://shopify.dev/docs/apps/functions/input-output#input) for a function. Supports JavaScript functions out of the box, or any language via the `build.typegen_command` configuration.";t.description=a.descriptionWithoutMarkdown();t.flags={...n,...p,...d};var x=t;export{x as a};
@@ -1,4 +1,4 @@
1
- import{a as B,j as C,m as P}from"./chunk-X2TC7S57.js";import{B as U,C as _}from"./chunk-IOQQUHST.js";import{e as g}from"./chunk-M4V2OQAX.js";import{l as v,m as w}from"./chunk-MZJRNFAU.js";import{xa as E}from"./chunk-4V4DQ6W7.js";import{Pb as m}from"./chunk-VPL2NDH6.js";import{g as T}from"./chunk-VPRTJUIN.js";T();var $=20,J=1024*1024,A=2;function oe(t,e,r,s,o={},l){let n=B(r),i=new Map,c=a=>a.total===0?"[100%]":`[${Math.round(a.current/a.total*100)}%]`,u=R(t,e,n),h=Promise.all([s.ready(),u]).then(()=>q(n,s,t,e,i)),p=h.then(a=>a.promise).then(()=>j(n,s,t,e,o,i)),k=o?.deferPartialWork?u:p.then(a=>a.promise);return o?.backgroundWorkCatch&&Promise.all([u,h.then(a=>a.promise),p.then(a=>a.promise)]).catch(o.backgroundWorkCatch),{uploadResults:i,workPromise:k,renderThemeSyncProgress:async()=>{if(o?.deferPartialWork)return;let{progress:a,promise:d}=await h,f=o.multiEnvironment?4e3:1e3;await g(b({promise:d,titleGetter:()=>`Uploading files to remote theme ${c(a)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment);let{progress:y,promise:F}=await p;await g(b({promise:F,titleGetter:()=>`Cleaning your remote theme ${c(y)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment),await g([{title:"Theme upload complete",task:async()=>{}}],l?.stderr,o?.multiEnvironment),H(i,o?.environment)}}}function b({promise:t,titleGetter:e,updateInterval:r}){let s=[],o=()=>{s.push({title:e(),task:async()=>{await Promise.race([t,new Promise(n=>setTimeout(()=>n("timeout"),r))])==="timeout"&&o()}})};return o(),s}function j(t,e,r,s,o,l){if(o.nodelete)return{progress:{current:0,total:0},promise:Promise.resolve()};let n=L(t,e),i=x(n),c={current:0,total:i.length};if(i.length===0)return{progress:c,promise:Promise.resolve()};let u=[];for(let p=0;p<i.length;p+=$){let k=i.slice(p,p+$),a=v(r.id,k.map(d=>d.key),s).then(d=>{d.forEach(f=>{if(l.set(f.key,f),!f.success){let y=f.errors?.asset?.map(F=>`-${F}`).join(`
1
+ import{a as B,j as C,m as P}from"./chunk-2NWWMNU5.js";import{e as g}from"./chunk-QMXKGSFH.js";import{e as U,f as _}from"./chunk-6YPEONHB.js";import{l as v,m as w}from"./chunk-PJYNAUQB.js";import{xa as E}from"./chunk-5W443CKL.js";import{Pb as m}from"./chunk-DONEJHDG.js";import{g as T}from"./chunk-VKWPEFWQ.js";T();var $=20,J=1024*1024,A=2;function oe(t,e,r,s,o={},l){let n=B(r),i=new Map,c=a=>a.total===0?"[100%]":`[${Math.round(a.current/a.total*100)}%]`,u=R(t,e,n),h=Promise.all([s.ready(),u]).then(()=>q(n,s,t,e,i)),p=h.then(a=>a.promise).then(()=>j(n,s,t,e,o,i)),k=o?.deferPartialWork?u:p.then(a=>a.promise);return o?.backgroundWorkCatch&&Promise.all([u,h.then(a=>a.promise),p.then(a=>a.promise)]).catch(o.backgroundWorkCatch),{uploadResults:i,workPromise:k,renderThemeSyncProgress:async()=>{if(o?.deferPartialWork)return;let{progress:a,promise:d}=await h,f=o.multiEnvironment?4e3:1e3;await g(b({promise:d,titleGetter:()=>`Uploading files to remote theme ${c(a)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment);let{progress:y,promise:F}=await p;await g(b({promise:F,titleGetter:()=>`Cleaning your remote theme ${c(y)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment),await g([{title:"Theme upload complete",task:async()=>{}}],l?.stderr,o?.multiEnvironment),H(i,o?.environment)}}}function b({promise:t,titleGetter:e,updateInterval:r}){let s=[],o=()=>{s.push({title:e(),task:async()=>{await Promise.race([t,new Promise(n=>setTimeout(()=>n("timeout"),r))])==="timeout"&&o()}})};return o(),s}function j(t,e,r,s,o,l){if(o.nodelete)return{progress:{current:0,total:0},promise:Promise.resolve()};let n=L(t,e),i=x(n),c={current:0,total:i.length};if(i.length===0)return{progress:c,promise:Promise.resolve()};let u=[];for(let p=0;p<i.length;p+=$){let k=i.slice(p,p+$),a=v(r.id,k.map(d=>d.key),s).then(d=>{d.forEach(f=>{if(l.set(f.key,f),!f.success){let y=f.errors?.asset?.map(F=>`-${F}`).join(`
2
2
  `);_(f.key,"delete")(new Error(`Failed to delete ${f.key}: ${y}`))}}),c.current+=k.length});u.push(a)}let h=Promise.all(u).then(()=>{c.current=c.total});return{progress:c,promise:h}}function L(t,e){let s=e.applyIgnoreFilters(t).filter(o=>!e.files.has(o.key));return m(`Files to be deleted:
3
3
  ${s.map(o=>`-${o.key}`).join(`
4
4
  `)}`),s}function x(t){let e=P(t);return[...e.contextualizedJsonFiles,...e.templateJsonFiles,...e.sectionJsonFiles,...e.otherJsonFiles,...e.sectionLiquidFiles,...e.blockLiquidFiles,...e.layoutFiles,...e.otherLiquidFiles,...e.configDataFile,...e.configSchemaFile,...e.staticAssetFiles]}var D=[{key:"config/settings_schema.json",value:"[]"},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"}];async function R(t,e,r){let s=new Set(r.map(l=>l.key)),o=D.filter(({key:l})=>!s.has(l));o.length>0&&await w(t.id,o,e)}function q(t,e,r,s,o){let l=I(e,t);e.unsyncedFileKeys.clear(),l.forEach(a=>e.unsyncedFileKeys.add(a.key));let{independentFiles:n,dependentFiles:i}=z(l),c={current:0,total:l.length},u=a=>a.length===0?Promise.resolve():Promise.all(S(a).map(d=>N(d,e,s,r.id,o).then(()=>{c.current+=d.length,d.forEach(f=>e.unsyncedFileKeys.delete(f.key))}))).then(()=>{}),h=i.reduce((a,d)=>a.then(()=>u(d)),Promise.resolve()),p=Promise.resolve().then(()=>u(n.flat())),k=Promise.all([h,p]).then(()=>{c.current=c.total});return{progress:c,promise:k}}function I(t,e){let r=K(t),s=t.applyIgnoreFilters(r),o=new Map(e.map(n=>[n.key,n])),l=s.filter(n=>{let i=o.get(n.key);return!i||i.checksum!==n.checksum});return m(`Files to be uploaded:
@@ -1,3 +1,3 @@
1
- import{d as w,n as y,r as n}from"./chunk-4V4DQ6W7.js";import{w as l}from"./chunk-WUK5NQSX.js";import{k as u,l as m}from"./chunk-LITB5QQX.js";import{a as h}from"./chunk-YJB7P2HC.js";import{a as x}from"./chunk-MOA33ZFO.js";import{O as S,u as d,w as g,x as N}from"./chunk-MGL4YM3S.js";import{f as _}from"./chunk-BHWEA4V2.js";import{Pb as a}from"./chunk-VPL2NDH6.js";import{a as f}from"./chunk-ULQG3XQS.js";import{g as p}from"./chunk-VPRTJUIN.js";p();var $="https://cdn.shopify.com/static/cli/notifications.json",D="Cache is empty",C=["notifications:list","notifications:generate","init","app:init","theme:init","hydrogen:init","cache:clear"];function c(){return process.env.SHOPIFY_CLI_NOTIFICATIONS_URL??$}var E=n.object({id:n.string(),message:n.string(),type:n.enum(["info","warning","error"]),frequency:n.enum(["always","once","once_a_day","once_a_week"]),ownerChannel:n.string(),cta:n.object({label:n.string(),url:n.string().url()}).optional(),title:n.string().optional(),minVersion:n.string().optional(),maxVersion:n.string().optional(),minDate:n.string().optional(),maxDate:n.string().optional(),commands:n.array(n.string()).optional(),surface:n.string().optional()}),I=n.object({notifications:n.array(E)});async function Q(e,t=process.env){try{let r=x();if(b(r,t)||w(t))return;let o=await k(),s=v(o.notifications,r,e);a(`Notifications to show: ${s.length}`),await V(s)}catch(r){if(r.message===D){a("Notifications to show: 0 (Cache is empty)");return}if(r.message==="abort")throw new _;let o=`Error showing notifications: ${r.message}`;a(o);let{sendErrorToBugsnag:s}=await import("./error-handler-V7LSEXHM.js");await s(o,"unexpected_error")}}function b(e,t=process.env){return f(t.CI)||f(t.SHOPIFY_UNIT_TEST)||C.includes(e)}async function V(e){e.slice(0,2).forEach(t=>{let r={headline:t.title,body:t.message.replace(/\\n/g,`
1
+ import{d as w,n as y,r as n}from"./chunk-5W443CKL.js";import{w as l}from"./chunk-GW3VY3FZ.js";import{k as u,l as m}from"./chunk-KN3FTJDU.js";import{a as h}from"./chunk-FU232KQ7.js";import{a as x}from"./chunk-WW7TENNA.js";import{O as S,u as d,w as g,x as N}from"./chunk-6EZ7JWBK.js";import{f as _}from"./chunk-WKBVT5WG.js";import{Pb as a}from"./chunk-DONEJHDG.js";import{a as f}from"./chunk-NNOSZ447.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();var $="https://cdn.shopify.com/static/cli/notifications.json",D="Cache is empty",C=["notifications:list","notifications:generate","init","app:init","theme:init","hydrogen:init","cache:clear"];function c(){return process.env.SHOPIFY_CLI_NOTIFICATIONS_URL??$}var E=n.object({id:n.string(),message:n.string(),type:n.enum(["info","warning","error"]),frequency:n.enum(["always","once","once_a_day","once_a_week"]),ownerChannel:n.string(),cta:n.object({label:n.string(),url:n.string().url()}).optional(),title:n.string().optional(),minVersion:n.string().optional(),maxVersion:n.string().optional(),minDate:n.string().optional(),maxDate:n.string().optional(),commands:n.array(n.string()).optional(),surface:n.string().optional()}),I=n.object({notifications:n.array(E)});async function Q(e,t=process.env){try{let r=x();if(b(r,t)||w(t))return;let o=await k(),s=v(o.notifications,r,e);a(`Notifications to show: ${s.length}`),await V(s)}catch(r){if(r.message===D){a("Notifications to show: 0 (Cache is empty)");return}if(r.message==="abort")throw new _;let o=`Error showing notifications: ${r.message}`;a(o);let{sendErrorToBugsnag:s}=await import("./error-handler-SW2ALZ5Z.js");await s(o,"unexpected_error")}}function b(e,t=process.env){return f(t.CI)||f(t.SHOPIFY_UNIT_TEST)||C.includes(e)}async function V(e){e.slice(0,2).forEach(t=>{let r={headline:t.title,body:t.message.replace(/\\n/g,`
2
2
  `),link:t.cta};switch(t.type){case"info":{d(r);break}case"warning":{g(r);break}case"error":throw N(r),new Error("abort")}u(`notification-${t.id}`,new Date().getTime().toString())})}async function k(){let e=`notifications-${c()}`,t=m(e)?.value;if(!t)throw new Error(D);let r=JSON.parse(t);return I.parse(r)}async function X(){a("Fetching notifications...");let e=await y(c(),void 0,{useNetworkLevelRetry:!1,useAbortSignal:!0,timeoutMs:3*1e3});if(e.status!==200)throw new Error(`Failed to fetch notifications: ${e.statusText}`);let t=await e.text(),r=JSON.parse(t),o=I.parse(r);return await O(t),o}async function O(e){u(`notifications-${c()}`,e),a(`Notifications from ${c()} stored in the cache`)}function Z(e,t=process.argv,r=process.env){if(b(e,r)||!t[0]||!t[1])return;let o=t[0],i=[t[1],"notifications","list","--ignore-errors"];S(o,i,{background:!0,env:{...process.env,SHOPIFY_CLI_NO_ANALYTICS:"1"},externalErrorHandler:async T=>{a(`Failed to fetch notifications in background: ${T.message}`)}})}function v(e,t,r,o=new Date(new Date().setUTCHours(0,0,0,0)),s=h){return e.filter(i=>B(i,s)).filter(i=>F(i,o)).filter(i=>A(i,t)).filter(i=>j(i,t,r)).filter(i=>q(i))}function B(e,t){let r=!e.minVersion||l(t,`>=${e.minVersion}`),o=!e.maxVersion||l(t,`<=${e.maxVersion}`);return r&&o}function F(e,t){let r=!e.minDate||new Date(e.minDate)<=t,o=!e.maxDate||new Date(e.maxDate)>=t;return r&&o}function A(e,t){return t===""?!0:!e.commands||e.commands.includes(t)}function j(e,t,r){let o=t.split(":")[0]??"all",s=e.surface??"all";return r?r.includes(s):s===o||s==="all"}function q(e){if(!e.frequency)return!0;let t=`notification-${e.id}`,r=m(t)?.value;if(!r)return!0;switch(e.frequency){case"always":return!0;case"once":return!1;case"once_a_day":return new Date().getTime()-Number(r)>24*3600*1e3;case"once_a_week":return new Date().getTime()-Number(r)>168*3600*1e3}}function ee(e){let t=[];return e.minDate&&t.push(`from ${e.minDate}`),e.maxDate&&t.push(`to ${e.maxDate}`),e.minVersion&&t.push(`from v${e.minVersion}`),e.maxVersion&&t.push(`to v${e.maxVersion}`),e.frequency==="once"&&t.push("show only once"),e.frequency==="once_a_day"&&t.push("show once a day"),e.frequency==="once_a_week"&&t.push("show once a week"),e.surface&&t.push(`surface = ${e.surface}`),e.commands&&t.push(`commands = ${e.commands.join(", ")}`),t.join(`
3
3
  `)}export{Q as a,k as b,X as c,Z as d,v as e,ee as f};
@@ -0,0 +1,7 @@
1
+ import{p,v as d}from"./chunk-D6YDSGR4.js";import{a as u}from"./chunk-ZIREP3EZ.js";import{aa as P}from"./chunk-T5GSCWN5.js";import{b as l}from"./chunk-H5C3QTOO.js";import{v as f}from"./chunk-6EZ7JWBK.js";import{d as i}from"./chunk-WKBVT5WG.js";import{Ta as c,ma as h}from"./chunk-DONEJHDG.js";import{f as r,n as m}from"./chunk-773TIA5M.js";import{e as w,g as n}from"./chunk-VKWPEFWQ.js";n();n();var g=w(P(),1),k=["assets/**","blocks/**","config/**","layout/**","listings/**/*","locales/**","sections/**","snippets/**","templates/**","templates/customers/**","release-notes.md","update_extension.json"].join("|");async function y(e){let t=await v(e),o=`${e}/${t}`,a=`${e}/(${k})`;await u({inputDirectory:e,outputZipPath:o,matchFilePattern:a}),f({body:["Your local theme was packaged in",{filePath:m(o)}]})}async function v(e){let t=r(e,"config/settings_schema.json");if(!await c(t))throw new i("Provide a config/settings_schema.json to package your theme.");let o=await j(t);if(o===void 0||o.theme_name===void 0)throw new i("Provide a theme_info.theme_name configuration in config/settings_schema.json.");return`${[o.theme_name,o.theme_version].filter(Boolean).join("-")}.zip`}async function j(e){let t=(0,g.parseJSON)(await h(e),null,!0);if(!t)throw new i("The file config/settings_schema.json contains an error. Please check if the file is valid JSON and includes the theme_info.theme_name configuration.");return t.find(o=>o.name==="theme_info")}var _,s=class extends d{async command(t){await y(t.path)}};_=s;s.summary="Package your theme into a .zip file, ready to upload to the Online Store.";s.descriptionWithMarkdown=`Packages your local theme files into a ZIP file that can be uploaded to Shopify.
2
+
3
+ Only folders that match the [default Shopify theme folder structure](https://shopify.dev/docs/storefronts/themes/tools/cli#directory-structure) are included in the package.
4
+
5
+ The package includes the \`listings\` directory if present (required for multi-preset themes per [Theme Store requirements](https://shopify.dev/docs/storefronts/themes/store/requirements#adding-presets-to-your-theme-zip-submission)).
6
+
7
+ The ZIP file uses the name \`theme_name-theme_version.zip\`, based on parameters in your [settings_schema.json](https://shopify.dev/docs/storefronts/themes/architecture/config/settings-schema-json) file.`;s.description=_.descriptionWithoutMarkdown();s.flags={...l,path:p.path};s.multiEnvironmentsFlags=null;var E=s;export{E as a};
@@ -1 +1 @@
1
- import{a as v}from"./chunk-T5MK7ZSF.js";import{a as k}from"./chunk-DCK2FX6J.js";import{Ba as w,Da as A,Ea as P,Fa as C}from"./chunk-WCWNI3ZV.js";import{b as y}from"./chunk-4KRT35A2.js";import{v as u}from"./chunk-MGL4YM3S.js";import{d as h}from"./chunk-BHWEA4V2.js";import{j as p}from"./chunk-IU2ZQ6TE.js";import{g as r}from"./chunk-VPRTJUIN.js";r();r();async function f(l){let{directory:o,configName:e,configPath:a,configuration:n,remoteApp:i}=l;if(!n.client_id)throw new h("The selected configuration is not linked to a remote app.","Run `shopify app config link` first to link this configuration to a Shopify app.");let c=i.developerPlatformClient,m=await w({developerPlatformClient:c,app:i}),d=i.flags,b={directory:o,configName:e,developerPlatformClient:c,apiKey:n.client_id},g=await A(b,m,d,i.apiKey),x=p(a),F=await P({remoteApp:i,developerPlatformClient:c,specifications:m,flags:d,configFileName:x,appDirectory:g.appDirectory??o,localAppOptions:g});return{configPath:a,configuration:F,remoteApp:i}}var s,t=class extends v{async run(){let{flags:o}=await this.parse(s),{app:e,remoteApp:a}=await C({directory:o.path,clientId:o["client-id"],forceRelink:o.reset,userProvidedConfigName:o.config}),{configuration:n,configPath:i}=await f({directory:o.path,configName:o.config,configPath:e.configPath,configuration:e.configuration,remoteApp:a});return u({headline:`Pulled latest configuration for "${n.name}"`,body:`Updated ${p(i)} with the remote data.`}),{app:e}}};s=t;t.summary="Refresh an already-linked app configuration without prompts.";t.descriptionWithMarkdown="Pulls the latest configuration from the already-linked Shopify app and updates the selected configuration file.\n\nThis command reuses the existing linked app and organization and skips all interactive prompts. Use `--config` to target a specific configuration file, or omit it to use the default one.";t.description=s.descriptionWithoutMarkdown();t.flags={...y,...k};var z=t;export{z as a};
1
+ import{a as v}from"./chunk-HM5H7WBE.js";import{a as k}from"./chunk-ZAMDXIVC.js";import{Ba as w,Da as A,Ea as P,Fa as C}from"./chunk-ATXODH6C.js";import{b as y}from"./chunk-H5C3QTOO.js";import{v as u}from"./chunk-6EZ7JWBK.js";import{d as h}from"./chunk-WKBVT5WG.js";import{j as p}from"./chunk-773TIA5M.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();async function f(l){let{directory:o,configName:e,configPath:a,configuration:n,remoteApp:i}=l;if(!n.client_id)throw new h("The selected configuration is not linked to a remote app.","Run `shopify app config link` first to link this configuration to a Shopify app.");let c=i.developerPlatformClient,m=await w({developerPlatformClient:c,app:i}),d=i.flags,b={directory:o,configName:e,developerPlatformClient:c,apiKey:n.client_id},g=await A(b,m,d,i.apiKey),x=p(a),F=await P({remoteApp:i,developerPlatformClient:c,specifications:m,flags:d,configFileName:x,appDirectory:g.appDirectory??o,localAppOptions:g});return{configPath:a,configuration:F,remoteApp:i}}var s,t=class extends v{async run(){let{flags:o}=await this.parse(s),{app:e,remoteApp:a}=await C({directory:o.path,clientId:o["client-id"],forceRelink:o.reset,userProvidedConfigName:o.config}),{configuration:n,configPath:i}=await f({directory:o.path,configName:o.config,configPath:e.configPath,configuration:e.configuration,remoteApp:a});return u({headline:`Pulled latest configuration for "${n.name}"`,body:`Updated ${p(i)} with the remote data.`}),{app:e}}};s=t;t.summary="Refresh an already-linked app configuration without prompts.";t.descriptionWithMarkdown="Pulls the latest configuration from the already-linked Shopify app and updates the selected configuration file.\n\nThis command reuses the existing linked app and organization and skips all interactive prompts. Use `--config` to target a specific configuration file, or omit it to use the default one.";t.description=s.descriptionWithoutMarkdown();t.flags={...y,...k};var z=t;export{z as a};
@@ -1 +1 @@
1
- import{z as r}from"./chunk-4V4DQ6W7.js";import{r as o}from"./chunk-3YWUSKWF.js";import{f as t,q as n}from"./chunk-IU2ZQ6TE.js";import{e as s,g as a}from"./chunk-VPRTJUIN.js";a();var e=s(o(),1);var c={path:e.Flags.string({description:"The path to your app directory.",parse:async i=>t(i),default:async()=>n(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"}),config:e.Flags.string({hidden:!1,char:"c",description:"The name of the app configuration.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"client-id":e.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),reset:e.Flags.boolean({hidden:!1,description:"Reset all your settings.",env:"SHOPIFY_FLAG_RESET",default:!1,exclusive:["config"]})},p={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation to run as a bulk operation.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your mutation, in JSON format. Can be specified multiple times.",env:"SHOPIFY_FLAG_VARIABLES",multiple:!0,exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSONL format (one JSON object per line). Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),watch:e.Flags.boolean({description:"Wait for bulk operation results before exiting. Defaults to false.",env:"SHOPIFY_FLAG_WATCH"}),"output-file":e.Flags.string({description:"The file path where results should be written if --watch is specified. If not specified, results will be written to STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE",dependsOn:["watch"]}),version:e.Flags.string({description:"The API version to use for the bulk operation. If not specified, uses the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})},h={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation, as a string.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES",exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSON format. Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The myshopify.com domain of the store to execute against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),version:e.Flags.string({description:"The API version to use for the query or mutation. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"}),"output-file":e.Flags.string({description:"The file name where results should be written, instead of STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE"})};export{c as a,p as b,h as c};
1
+ import{z as r}from"./chunk-5W443CKL.js";import{f as t,q as n}from"./chunk-773TIA5M.js";import{r as o}from"./chunk-T6CC5WUU.js";import{e as s,g as a}from"./chunk-VKWPEFWQ.js";a();var e=s(o(),1);var c={path:e.Flags.string({description:"The path to your app directory.",parse:async i=>t(i),default:async()=>n(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"}),config:e.Flags.string({hidden:!1,char:"c",description:"The name of the app configuration.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"client-id":e.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),reset:e.Flags.boolean({hidden:!1,description:"Reset all your settings.",env:"SHOPIFY_FLAG_RESET",default:!1,exclusive:["config"]})},p={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation to run as a bulk operation.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your mutation, in JSON format. Can be specified multiple times.",env:"SHOPIFY_FLAG_VARIABLES",multiple:!0,exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSONL format (one JSON object per line). Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),watch:e.Flags.boolean({description:"Wait for bulk operation results before exiting. Defaults to false.",env:"SHOPIFY_FLAG_WATCH"}),"output-file":e.Flags.string({description:"The file path where results should be written if --watch is specified. If not specified, results will be written to STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE",dependsOn:["watch"]}),version:e.Flags.string({description:"The API version to use for the bulk operation. If not specified, uses the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})},h={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation, as a string.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES",exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSON format. Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The myshopify.com domain of the store to execute against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),version:e.Flags.string({description:"The API version to use for the query or mutation. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"}),"output-file":e.Flags.string({description:"The file name where results should be written, instead of STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE"})};export{c as a,p as b,h as c};
@@ -1 +1 @@
1
- import{g as r}from"./chunk-VPRTJUIN.js";r();var a={nextDeprecationDate:void 0};function o(){return a.nextDeprecationDate}function c(t){if(t.length<1)return;let e=D(Date.now(),t);if(!e)return;let n=o();(!n||e<n.getTime())&&(a.nextDeprecationDate=new Date(e))}function D(t,e){return e.map(i=>i.getTime()).sort().find(i=>i>t)}export{o as a,c as b};
1
+ import{g as r}from"./chunk-VKWPEFWQ.js";r();var a={nextDeprecationDate:void 0};function o(){return a.nextDeprecationDate}function c(t){if(t.length<1)return;let e=D(Date.now(),t);if(!e)return;let n=o();(!n||e<n.getTime())&&(a.nextDeprecationDate=new Date(e))}function D(t,e){return e.map(i=>i.getTime()).sort().find(i=>i>t)}export{o as a,c as b};