shopify 5.1.0 → 5.2.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 (367) hide show
  1. package/dist/analytics-23GM6KJU.js +1 -0
  2. package/dist/analytics-743FYOAE.js +1 -0
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-HSTZV6H7.js → chunk-2EQRXSF6.js} +1 -1
  5. package/dist/{chunk-AY3AAV77.js → chunk-2IXP3IPE.js} +1 -1
  6. package/dist/{chunk-OTMYJWIP.js → chunk-2KACAQJS.js} +1 -1
  7. package/dist/{chunk-24Q6X53V.js → chunk-2OCSYLKZ.js} +1 -1
  8. package/dist/{chunk-QCLE5REL.js → chunk-2PILNMHJ.js} +1 -1
  9. package/dist/{chunk-WPDJVUTY.js → chunk-36S6MFJQ.js} +1 -1
  10. package/dist/{chunk-YNZLLZU2.js → chunk-3DB4EC62.js} +1 -1
  11. package/dist/{chunk-FQLXQ7WN.js → chunk-3GL3IT4K.js} +1 -1
  12. package/dist/{chunk-JALDNBTU.js → chunk-3JRB7Q3T.js} +1 -1
  13. package/dist/{chunk-7A77JCED.js → chunk-3OYMK5X6.js} +1 -1
  14. package/dist/{chunk-ORMXPSJM.js → chunk-422BGHXN.js} +1 -1
  15. package/dist/{chunk-ZMU4EYXT.js → chunk-43C32FUQ.js} +1 -1
  16. package/dist/{chunk-ELR6AZT4.js → chunk-4AN7ECPE.js} +1 -1
  17. package/dist/chunk-4AWVU2OV.js +1 -0
  18. package/dist/chunk-4KBOLN7Q.js +8 -0
  19. package/dist/{chunk-YYWSHRO2.js → chunk-4LJERO23.js} +3 -3
  20. package/dist/{chunk-4FWPOGPQ.js → chunk-4M5WHOZW.js} +1 -1
  21. package/dist/{chunk-OWQEFORZ.js → chunk-4RO35FFQ.js} +1 -1
  22. package/dist/{chunk-6I7DT7QR.js → chunk-4ZS5354G.js} +1 -1
  23. package/dist/{chunk-ZXZWMXXK.js → chunk-55AWBPKU.js} +1 -1
  24. package/dist/{chunk-7PHDEILV.js → chunk-5BUYR23E.js} +1 -1
  25. package/dist/{chunk-AHYI27QL.js → chunk-5EDA7PVE.js} +3 -3
  26. package/dist/{chunk-5C6CXU74.js → chunk-5P6OELKZ.js} +1 -1
  27. package/dist/{chunk-SPJM7RTD.js → chunk-5PVXLQNX.js} +1 -1
  28. package/dist/{chunk-FU7PYW7H.js → chunk-5S2P4MHJ.js} +1 -1
  29. package/dist/{chunk-SBN3ILXO.js → chunk-5TJJVSCI.js} +1 -1
  30. package/dist/{chunk-VE3IIC7H.js → chunk-5TOK5OJS.js} +1 -1
  31. package/dist/{chunk-LGDWE3H3.js → chunk-5ZG2SWU2.js} +1 -1
  32. package/dist/{chunk-DDZYIC76.js → chunk-62F4ZMSC.js} +1 -1
  33. package/dist/{chunk-4NFX7YCT.js → chunk-652NT7OW.js} +1 -1
  34. package/dist/{chunk-5534MHZW.js → chunk-6B5KM3A4.js} +1 -1
  35. package/dist/{chunk-CRQQCT7F.js → chunk-6LCESSY3.js} +1 -1
  36. package/dist/chunk-6QHDMCAA.js +1 -0
  37. package/dist/{chunk-2KUM2RU4.js → chunk-7A4ZE5IS.js} +2 -2
  38. package/dist/{chunk-R6US7F33.js → chunk-7AQZKPJU.js} +1 -1
  39. package/dist/{chunk-HMPRWNGG.js → chunk-7FBOMPO5.js} +2 -2
  40. package/dist/{chunk-DGIIUQH3.js → chunk-7UK565VJ.js} +1 -1
  41. package/dist/{chunk-DOLVBTCB.js → chunk-A5BSUUNQ.js} +1 -1
  42. package/dist/{chunk-SCDGLREP.js → chunk-ADGE7MKB.js} +1 -1
  43. package/dist/{chunk-65NCQJYR.js → chunk-AEWRZ7AE.js} +1 -1
  44. package/dist/chunk-ALDJTWCO.js +1 -0
  45. package/dist/chunk-ARL5WBDK.js +1 -0
  46. package/dist/chunk-AXFEIJC7.js +1 -0
  47. package/dist/{chunk-JNSVKDBY.js → chunk-AYGL6F3P.js} +1 -1
  48. package/dist/{chunk-F6IQWX2F.js → chunk-AYTTE7X5.js} +1 -1
  49. package/dist/{chunk-JIYCZXK5.js → chunk-BDIZUTKC.js} +1 -1
  50. package/dist/{chunk-Z5WFRYVQ.js → chunk-BQKF4SRH.js} +1 -1
  51. package/dist/{chunk-7ART2IKU.js → chunk-C2AOCLEZ.js} +1 -1
  52. package/dist/{chunk-NYMKGE3J.js → chunk-C2SGJ5IG.js} +1 -1
  53. package/dist/{chunk-LPPEAMI6.js → chunk-C3S3UMV3.js} +1 -1
  54. package/dist/{chunk-S3RROJGG.js → chunk-C5DKLOW4.js} +1 -1
  55. package/dist/{chunk-DC7ITY6T.js → chunk-CA3GVT4D.js} +1 -1
  56. package/dist/{chunk-KFR7HWCG.js → chunk-CCLU5ZRK.js} +1 -1
  57. package/dist/{chunk-3FZ4LE6A.js → chunk-CE6XQDAG.js} +2 -2
  58. package/dist/{chunk-RKNVTEO3.js → chunk-CEJ5WS4I.js} +1 -1
  59. package/dist/chunk-CIBBQO2L.js +6 -0
  60. package/dist/{chunk-L2PUDV7Y.js → chunk-CKJXJ6HD.js} +1 -1
  61. package/dist/{chunk-KHZF73BL.js → chunk-COGKVNQB.js} +1 -1
  62. package/dist/{chunk-OY5M52EF.js → chunk-CQPZOXWO.js} +1 -1
  63. package/dist/{chunk-AVJJGQOP.js → chunk-CZYQIWNL.js} +1 -1
  64. package/dist/{chunk-VA2S7W7H.js → chunk-DA5RQFXA.js} +1 -1
  65. package/dist/{chunk-NUBJ2HK7.js → chunk-DESZFFOK.js} +1 -1
  66. package/dist/{chunk-WLYXBQ2M.js → chunk-DKR7562G.js} +1 -1
  67. package/dist/{chunk-KM4LE7K4.js → chunk-DNNTAMC5.js} +1 -1
  68. package/dist/{chunk-V4FC72R6.js → chunk-DUPQUQ2Z.js} +1 -1
  69. package/dist/{chunk-FHKK3QU7.js → chunk-DUTIWCJ2.js} +1 -1
  70. package/dist/chunk-E6JEBSHZ.js +20 -0
  71. package/dist/{chunk-VQSRU5XL.js → chunk-E6KNAPIY.js} +1 -1
  72. package/dist/{chunk-MTT6EAQO.js → chunk-E7XCCLQH.js} +1 -1
  73. package/dist/chunk-EE72PCKT.js +1 -0
  74. package/dist/{chunk-AGTUAQHX.js → chunk-EEYXBKR7.js} +1 -1
  75. package/dist/{chunk-H2KGP2FM.js → chunk-EGLA3WLZ.js} +1 -1
  76. package/dist/{chunk-JMSAHCBU.js → chunk-FDFE3SSG.js} +1 -1
  77. package/dist/{chunk-TSPJAMYB.js → chunk-FI5TQHUA.js} +1 -1
  78. package/dist/{chunk-QKPAB245.js → chunk-FIKZQ4RA.js} +1 -1
  79. package/dist/chunk-FJOVMEPN.js +3 -0
  80. package/dist/{chunk-5PSQFQL6.js → chunk-FLARCZ5F.js} +1 -1
  81. package/dist/{chunk-WE5KY6T6.js → chunk-FOMMPAWZ.js} +1 -1
  82. package/dist/chunk-G3DXNSA2.js +1 -0
  83. package/dist/{chunk-HYCNYUHW.js → chunk-G7JO3W2R.js} +1 -1
  84. package/dist/{chunk-C2HJEGTS.js → chunk-GABIWYY3.js} +1 -1
  85. package/dist/{chunk-OXZR2MB4.js → chunk-GFSEU7PF.js} +1 -1
  86. package/dist/{chunk-AMVWKHNY.js → chunk-GFVUWVEM.js} +1 -1
  87. package/dist/{chunk-D7IMC2G4.js → chunk-GHNSXX7R.js} +1 -1
  88. package/dist/{chunk-7N7KRZOM.js → chunk-GQ3LY7BY.js} +1 -1
  89. package/dist/{chunk-PJZZZNWR.js → chunk-H45S4MGC.js} +1 -1
  90. package/dist/{chunk-OJOF6IYG.js → chunk-HEB4YYM6.js} +4 -4
  91. package/dist/{chunk-I3WRA2LH.js → chunk-HI5FTI3M.js} +1 -1
  92. package/dist/{chunk-WFPVT2IY.js → chunk-HJ24NEP5.js} +1 -1
  93. package/dist/{chunk-LFBFPK22.js → chunk-HQFXVVTB.js} +1 -1
  94. package/dist/{chunk-27JT4NA4.js → chunk-HR6R7JXN.js} +1 -1
  95. package/dist/{chunk-JVY6CCLE.js → chunk-HRHJA5ZP.js} +1 -1
  96. package/dist/{chunk-5HOZDOJ7.js → chunk-HT5JQJMB.js} +1 -1
  97. package/dist/chunk-HT7273V7.js +1 -0
  98. package/dist/{chunk-ONZULPQH.js → chunk-HUB4HDWN.js} +75 -75
  99. package/dist/{chunk-HGZ2HRPO.js → chunk-IATNIWOC.js} +1 -1
  100. package/dist/{chunk-T6C4WC3Z.js → chunk-IHVWDKDV.js} +1 -1
  101. package/dist/{chunk-DMOLPSXF.js → chunk-IKXUYCK7.js} +1 -1
  102. package/dist/{chunk-HP4QYSBQ.js → chunk-IVQN2RUP.js} +1 -1
  103. package/dist/{chunk-FYQE5E6U.js → chunk-J324ZPO6.js} +1 -1
  104. package/dist/{chunk-3MZ7ELHS.js → chunk-JJQ3DJG5.js} +1 -1
  105. package/dist/{chunk-RLOEI6VE.js → chunk-JLAN6JXJ.js} +1 -1
  106. package/dist/{chunk-XRNBCV2B.js → chunk-K2GCCCCV.js} +1 -1
  107. package/dist/{chunk-ASKBYEO7.js → chunk-K4KKSBUW.js} +1 -1
  108. package/dist/{chunk-JC37YZ4I.js → chunk-K5UVCBIP.js} +1 -1
  109. package/dist/{chunk-3C72S6LO.js → chunk-KN2JIDNO.js} +1 -1
  110. package/dist/{chunk-WBJFTCEJ.js → chunk-KORVOCNN.js} +1 -1
  111. package/dist/{chunk-MGWCXTGD.js → chunk-KRQCQ57O.js} +1 -1
  112. package/dist/{chunk-3GD5ESWN.js → chunk-KT2AMFVW.js} +1 -1
  113. package/dist/{chunk-VRIFLMA3.js → chunk-L23Q53FM.js} +1 -1
  114. package/dist/{chunk-OXPEBT4I.js → chunk-L3DTONOI.js} +1 -1
  115. package/dist/{chunk-CEQGOCKX.js → chunk-LRETOC6P.js} +1 -1
  116. package/dist/{chunk-F5QKMDP3.js → chunk-LXFWK3O2.js} +1 -1
  117. package/dist/{chunk-KCAWHJGF.js → chunk-LZ2TN7EZ.js} +1 -1
  118. package/dist/{chunk-EDWIWZWM.js → chunk-MBAPM5HA.js} +1 -1
  119. package/dist/{chunk-IRLYC626.js → chunk-MGZK5EQW.js} +1 -1
  120. package/dist/{chunk-GSFWBFFH.js → chunk-MKUXSM33.js} +1 -1
  121. package/dist/chunk-MQ55QUOJ.js +276 -0
  122. package/dist/{chunk-A2NSORBM.js → chunk-NAQJMRPT.js} +1 -1
  123. package/dist/{chunk-Z5QEXS6F.js → chunk-NMXRDF4T.js} +1 -1
  124. package/dist/{chunk-SODCXZ5U.js → chunk-NOWM3CCG.js} +1 -1
  125. package/dist/{chunk-TXP6KFWO.js → chunk-NVDFXEQ5.js} +1 -1
  126. package/dist/{chunk-TP7CTMMT.js → chunk-OCILF2DD.js} +1 -1
  127. package/dist/{chunk-XWLNCBAG.js → chunk-OGBMFGYC.js} +1 -1
  128. package/dist/{chunk-ZMOW2YZ4.js → chunk-OIQ5NQ5I.js} +3 -3
  129. package/dist/{chunk-YTL45RXR.js → chunk-OKRKVVTK.js} +1 -1
  130. package/dist/{chunk-JQU2BJDH.js → chunk-ONNUEQGR.js} +1 -1
  131. package/dist/chunk-OSASE35V.js +6 -0
  132. package/dist/{chunk-6IMTMS2S.js → chunk-OTMTS5L4.js} +1 -1
  133. package/dist/{chunk-MKFRKNHF.js → chunk-OWPAHXDF.js} +1 -1
  134. package/dist/{chunk-YVPB7OT6.js → chunk-P7HZGJRU.js} +1 -1
  135. package/dist/{chunk-5T3ZT6CC.js → chunk-PIU3GVJ4.js} +1 -1
  136. package/dist/{chunk-DVD7I2TX.js → chunk-PSNCWS3Q.js} +1 -1
  137. package/dist/{chunk-XEZPN5TR.js → chunk-PSREELSQ.js} +4 -4
  138. package/dist/{chunk-SURFUFAZ.js → chunk-Q2CKRCPM.js} +1 -1
  139. package/dist/{chunk-WWCYEZUU.js → chunk-QA2D7DT2.js} +1 -1
  140. package/dist/{chunk-G3EWGBXR.js → chunk-QDMTJKQ3.js} +1 -1
  141. package/dist/{chunk-NY5N4ANL.js → chunk-QIJ7D2JS.js} +1 -1
  142. package/dist/{chunk-7DBKSSDK.js → chunk-QLN6IOOY.js} +1 -1
  143. package/dist/{chunk-A54TADAZ.js → chunk-QU3USVKT.js} +1 -1
  144. package/dist/chunk-R2E6TMBE.js +22 -0
  145. package/dist/chunk-R5COVIJM.js +1 -0
  146. package/dist/{chunk-S4KNPCW3.js → chunk-RFJ2LI64.js} +1 -1
  147. package/dist/chunk-RNF6T6IO.js +5 -0
  148. package/dist/{chunk-DVFVO6ZE.js → chunk-RSNFNZ6F.js} +1 -1
  149. package/dist/{chunk-7BPT5V24.js → chunk-RZ3UGOV4.js} +2 -2
  150. package/dist/{chunk-GGCP2TIK.js → chunk-S23ZG2RG.js} +1 -1
  151. package/dist/{chunk-3PS52ZT4.js → chunk-SAK42CAY.js} +1 -1
  152. package/dist/{chunk-G3RNO2TC.js → chunk-SBX7CMHM.js} +1 -1
  153. package/dist/{chunk-TUSS6PXB.js → chunk-SGQTRKYZ.js} +1 -1
  154. package/dist/{chunk-SQL67BKI.js → chunk-SNPJVVVE.js} +1 -1
  155. package/dist/{chunk-QUPZOBTB.js → chunk-SNRGS3YU.js} +1 -1
  156. package/dist/{chunk-FKKJQGYX.js → chunk-SUTSCIXU.js} +1 -1
  157. package/dist/{chunk-SHOMIS6Q.js → chunk-SWFCT5B7.js} +1 -1
  158. package/dist/{chunk-WZBZ7FWP.js → chunk-SZ64GAVG.js} +1 -1
  159. package/dist/{chunk-DTKGI43P.js → chunk-TDHIOONG.js} +1 -1
  160. package/dist/{chunk-7NRHZG5Y.js → chunk-TLN4BKXJ.js} +1 -1
  161. package/dist/{chunk-XLMKHTJ5.js → chunk-TXMZPF2U.js} +1 -1
  162. package/dist/{chunk-6BYHL3DS.js → chunk-TZOB52QK.js} +1 -1
  163. package/dist/{chunk-HVUMVDUG.js → chunk-U5BKU3OL.js} +1 -1
  164. package/dist/chunk-UK3BDOHR.js +7 -0
  165. package/dist/{chunk-YKDRUAY3.js → chunk-UORSJB4A.js} +90 -90
  166. package/dist/{chunk-Z6ZRS256.js → chunk-UY44O4IZ.js} +1 -1
  167. package/dist/{chunk-JG4FAT2T.js → chunk-V3H6SYK3.js} +1 -1
  168. package/dist/{chunk-AE3IQG7S.js → chunk-VBPMVVLV.js} +1 -1
  169. package/dist/{chunk-SVQDMZJO.js → chunk-VGBCG3I5.js} +1 -1
  170. package/dist/{chunk-MYMBHVC4.js → chunk-VHRUPKWH.js} +1 -1
  171. package/dist/{chunk-CZNUBAAG.js → chunk-VVHJ2AUF.js} +1 -1
  172. package/dist/{chunk-T4ZOTYOY.js → chunk-WB5GRBHW.js} +1 -1
  173. package/dist/{chunk-YNFQBYSL.js → chunk-WBKQSSWW.js} +1 -1
  174. package/dist/{chunk-MU7IVBGI.js → chunk-WDXDT7XY.js} +2 -2
  175. package/dist/{chunk-FAVPTYIR.js → chunk-WHOD5I7N.js} +1 -1
  176. package/dist/{chunk-7CT3NIXI.js → chunk-WL3M63DG.js} +1 -1
  177. package/dist/{chunk-25MYHE4W.js → chunk-WLJDMI7E.js} +1 -1
  178. package/dist/{chunk-VJG7VXFU.js → chunk-WZ3QWPK5.js} +2 -2
  179. package/dist/{chunk-BPKQA2EO.js → chunk-X5V7AGVU.js} +1 -1
  180. package/dist/{chunk-UFY4L5KQ.js → chunk-X76AYO36.js} +1 -1
  181. package/dist/{chunk-WBPP6PO7.js → chunk-XB7H2RYV.js} +1 -1
  182. package/dist/chunk-XHHAVKKV.js +1 -0
  183. package/dist/{chunk-4TCXPHKN.js → chunk-XKNDU62O.js} +1 -1
  184. package/dist/{chunk-7KID5BIR.js → chunk-XVJRGOJA.js} +1 -1
  185. package/dist/{chunk-CDSDQTNB.js → chunk-Y3ZAQZPH.js} +1 -1
  186. package/dist/{chunk-Q2LQJYRK.js → chunk-YGN65N6W.js} +1 -1
  187. package/dist/{chunk-UC4TOM36.js → chunk-YTC367JI.js} +1 -1
  188. package/dist/{chunk-TTAT62N3.js → chunk-Z2FGYMJ6.js} +1 -1
  189. package/dist/chunk-Z3QZNLT5.js +1 -0
  190. package/dist/{chunk-TSVEV2UD.js → chunk-ZC3EDADH.js} +1 -1
  191. package/dist/{chunk-O7HZ3EIP.js → chunk-ZLITAXPT.js} +1 -1
  192. package/dist/{chunk-WWVDZ3GC.js → chunk-ZNEQZV5K.js} +1 -1
  193. package/dist/{chunk-OVJVFB5E.js → chunk-ZOU6SOXW.js} +1 -1
  194. package/dist/{chunk-KFO2JNF5.js → chunk-ZQNGYJKJ.js} +1 -1
  195. package/dist/{chunk-MZDBH4XV.js → chunk-ZRM7ESSS.js} +1 -1
  196. package/dist/{chunk-ORYEDUKM.js → chunk-ZX33FUW3.js} +1 -1
  197. package/dist/cli/commands/app/build.js +1 -1
  198. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  199. package/dist/cli/commands/app/bulk/execute.js +1 -1
  200. package/dist/cli/commands/app/bulk/status.js +1 -1
  201. package/dist/cli/commands/app/config/link.js +1 -1
  202. package/dist/cli/commands/app/config/pull.js +1 -1
  203. package/dist/cli/commands/app/config/use.js +1 -1
  204. package/dist/cli/commands/app/config/validate.js +1 -1
  205. package/dist/cli/commands/app/demo/watcher.js +1 -1
  206. package/dist/cli/commands/app/deploy.js +1 -1
  207. package/dist/cli/commands/app/dev/clean.js +1 -1
  208. package/dist/cli/commands/app/dev.js +1 -1
  209. package/dist/cli/commands/app/env/pull.js +1 -1
  210. package/dist/cli/commands/app/env/show.js +1 -1
  211. package/dist/cli/commands/app/execute.js +1 -1
  212. package/dist/cli/commands/app/function/build.js +1 -1
  213. package/dist/cli/commands/app/function/info.js +1 -1
  214. package/dist/cli/commands/app/function/replay.js +1 -1
  215. package/dist/cli/commands/app/function/run.js +1 -1
  216. package/dist/cli/commands/app/function/schema.js +1 -1
  217. package/dist/cli/commands/app/function/typegen.js +1 -1
  218. package/dist/cli/commands/app/generate/extension.js +1 -1
  219. package/dist/cli/commands/app/graphiql.js +1 -1
  220. package/dist/cli/commands/app/import/channel-config.js +1 -1
  221. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  222. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  223. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  224. package/dist/cli/commands/app/import-extensions.js +1 -1
  225. package/dist/cli/commands/app/info.js +1 -1
  226. package/dist/cli/commands/app/init.js +1 -1
  227. package/dist/cli/commands/app/logs.js +1 -1
  228. package/dist/cli/commands/app/release.js +1 -1
  229. package/dist/cli/commands/app/security/check.js +1 -1
  230. package/dist/cli/commands/app/security/clean.js +1 -1
  231. package/dist/cli/commands/app/security/instructions.js +1 -1
  232. package/dist/cli/commands/app/security/record.js +1 -1
  233. package/dist/cli/commands/app/security/review.js +1 -1
  234. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  235. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  236. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  237. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  238. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  239. package/dist/cli/commands/app/versions/list.js +1 -1
  240. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  241. package/dist/cli/commands/auth/login.js +1 -1
  242. package/dist/cli/commands/auth/logout.js +1 -1
  243. package/dist/cli/commands/cache/clear.js +1 -1
  244. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  245. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  246. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  247. package/dist/cli/commands/debug/command-flags.js +1 -1
  248. package/dist/cli/commands/doc/fetch.js +1 -1
  249. package/dist/cli/commands/doc/search.js +1 -1
  250. package/dist/cli/commands/docs/generate.js +1 -1
  251. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  252. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  253. package/dist/cli/commands/help.js +1 -1
  254. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  255. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  256. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  257. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  258. package/dist/cli/commands/notifications/generate.js +1 -1
  259. package/dist/cli/commands/notifications/list.js +1 -1
  260. package/dist/cli/commands/organization/list.js +1 -1
  261. package/dist/cli/commands/search.js +1 -1
  262. package/dist/cli/commands/send-analytics.js +1 -1
  263. package/dist/cli/commands/theme/check.js +1 -1
  264. package/dist/cli/commands/theme/console.js +1 -1
  265. package/dist/cli/commands/theme/delete.js +1 -1
  266. package/dist/cli/commands/theme/dev.js +1 -1
  267. package/dist/cli/commands/theme/duplicate.js +1 -1
  268. package/dist/cli/commands/theme/info.js +1 -1
  269. package/dist/cli/commands/theme/init.js +1 -1
  270. package/dist/cli/commands/theme/language-server.js +1 -1
  271. package/dist/cli/commands/theme/list.js +1 -1
  272. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  273. package/dist/cli/commands/theme/open.js +1 -1
  274. package/dist/cli/commands/theme/package.js +1 -1
  275. package/dist/cli/commands/theme/preview.js +1 -1
  276. package/dist/cli/commands/theme/profile.js +1 -1
  277. package/dist/cli/commands/theme/publish.js +1 -1
  278. package/dist/cli/commands/theme/pull.js +1 -1
  279. package/dist/cli/commands/theme/push.js +1 -1
  280. package/dist/cli/commands/theme/rename.js +1 -1
  281. package/dist/cli/commands/theme/share.js +1 -1
  282. package/dist/cli/commands/upgrade.js +1 -1
  283. package/dist/cli/commands/version.js +1 -1
  284. package/dist/cli/help.js +1 -1
  285. package/dist/{cli-version-check-V25AVSZ6.js → cli-version-check-BW2CUMX4.js} +1 -1
  286. package/dist/{command-json-schema-C5UZXP2W.js → command-json-schema-LGR44Q2G.js} +1 -1
  287. package/dist/command-registry.js +1 -1
  288. package/dist/{conf-store-OCGEEV4U.js → conf-store-TODPQ2LC.js} +1 -1
  289. package/dist/configs/all.yml +9 -0
  290. package/dist/configs/recommended.yml +9 -0
  291. package/dist/{custom-oclif-loader-ZVUKMRGH.js → custom-oclif-loader-BPE2TH4B.js} +1 -1
  292. package/dist/data/objects.json +204 -11
  293. package/dist/data/section.json +14 -0
  294. package/dist/data/setting.json +9 -5
  295. package/dist/data/shopify_system_translations.json +84 -21
  296. package/dist/{deprecations-A5AXXKIK.js → deprecations-5CSI24TV.js} +1 -1
  297. package/dist/dist-LPKYTX3M.js +1 -0
  298. package/dist/dist-WT6MPTKJ.js +1 -0
  299. package/dist/{environments-Y5JEI3U3.js → environments-3HTT5CVC.js} +1 -1
  300. package/dist/error-PFOKPWFX.js +1 -0
  301. package/dist/error-handler-23FASAEU.js +1 -0
  302. package/dist/{fs-UOOLPOHJ.js → fs-RA25PWSJ.js} +1 -1
  303. package/dist/hooks/did-you-mean.js +1 -1
  304. package/dist/hooks/hydrogen-init.js +1 -1
  305. package/dist/hooks/plugin-plugins.js +1 -1
  306. package/dist/hooks/postrun.js +1 -1
  307. package/dist/hooks/prerun.js +1 -1
  308. package/dist/hooks/public-metadata.js +1 -1
  309. package/dist/hooks/sensitive-metadata.js +1 -1
  310. package/dist/hooks/tunnel-provider.js +1 -1
  311. package/dist/hooks/tunnel-start.js +1 -1
  312. package/dist/http-EVDTYINS.js +1 -0
  313. package/dist/index.js +12 -12
  314. package/dist/{is-global-CI77T7NE.js → is-global-3DNAMKUU.js} +1 -1
  315. package/dist/{json-error-6PBUR4LQ.js → json-error-HGCRNJRF.js} +1 -1
  316. package/dist/{lib-4JVADMNT.js → lib-4ZA53LTZ.js} +1 -1
  317. package/dist/{lib-L4STV5B2.js → lib-F3MES3XF.js} +1 -1
  318. package/dist/{lib-LEEN55OD.js → lib-XPJABU24.js} +1 -1
  319. package/dist/{local-5NIWPWDS.js → local-LNGPIGLG.js} +1 -1
  320. package/dist/{metadata-IXPNNPNJ.js → metadata-VHLSUKCW.js} +1 -1
  321. package/dist/{node-package-manager-ALFEGGD6.js → node-package-manager-SSFNUVWB.js} +1 -1
  322. package/dist/notifications-system-3NQRYYKW.js +1 -0
  323. package/dist/{os-6TNQTEUN.js → os-KIKVJONE.js} +1 -1
  324. package/dist/{output-LEOB5LAM.js → output-DUJTSURG.js} +1 -1
  325. package/dist/{prettier-VLTY4MIE.js → prettier-NOE3TJJ5.js} +1 -1
  326. package/dist/{system-J4CTESP5.js → system-CGOZSROX.js} +1 -1
  327. package/dist/tsconfig.tsbuildinfo +1 -1
  328. package/dist/{ui-YDUI56E3.js → ui-YMBFS3NG.js} +1 -1
  329. package/dist/upgrade-73RRPDSC.js +1 -0
  330. package/dist/version-AMUEEBIG.js +1 -0
  331. package/dist/{version-2YL4YEQ2.js → version-S4MGCKDO.js} +1 -1
  332. package/dist/{workerd-5UPTEWNI.js → workerd-DRWNY3S4.js} +1 -1
  333. package/oclif.manifest.json +23 -62
  334. package/package.json +7 -7
  335. package/dist/analytics-QFDTQYPM.js +0 -1
  336. package/dist/analytics-XADBBHOH.js +0 -1
  337. package/dist/chunk-2BYW3BYX.js +0 -1
  338. package/dist/chunk-2PD7TNFS.js +0 -275
  339. package/dist/chunk-3Z75BVGJ.js +0 -1
  340. package/dist/chunk-4WBWZIN5.js +0 -6
  341. package/dist/chunk-62NW4EPI.js +0 -17
  342. package/dist/chunk-ALINJ6J2.js +0 -1
  343. package/dist/chunk-BFAOTQGH.js +0 -1
  344. package/dist/chunk-CIGWIKOW.js +0 -1
  345. package/dist/chunk-DXEMSLI6.js +0 -1
  346. package/dist/chunk-H4K3F7PP.js +0 -5
  347. package/dist/chunk-JGLLABZR.js +0 -8
  348. package/dist/chunk-JIY6XWSC.js +0 -1
  349. package/dist/chunk-LXIWMYM4.js +0 -1
  350. package/dist/chunk-MGX7UG44.js +0 -1
  351. package/dist/chunk-QGQWVA7N.js +0 -1
  352. package/dist/chunk-RSZAAN37.js +0 -1
  353. package/dist/chunk-SN3PMWUF.js +0 -6
  354. package/dist/chunk-TD6JBHUS.js +0 -1
  355. package/dist/chunk-TIM4CIXZ.js +0 -22
  356. package/dist/chunk-WNVOEE6T.js +0 -7
  357. package/dist/chunk-YOYPYB4H.js +0 -1
  358. package/dist/cli/commands/app/logs-next.js +0 -1
  359. package/dist/dist-NORLLIHQ.js +0 -1
  360. package/dist/dist-XBM4XZS4.js +0 -1
  361. package/dist/error-GI4DXVDU.js +0 -1
  362. package/dist/error-handler-BS2ZENQV.js +0 -1
  363. package/dist/http-2OXOS2AW.js +0 -1
  364. package/dist/notifications-system-FQW3GKH2.js +0 -1
  365. package/dist/upgrade-LBCZORG2.js +0 -1
  366. package/dist/version-X2CPQVWQ.js +0 -1
  367. /package/dist/{chunk-2S3FHQFS.js → chunk-HVECVOIO.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as ee}from"./chunk-YNZLLZU2.js";import{d as X,i as te,k as se,q as re,r as ne}from"./chunk-WPDJVUTY.js";import{a as Z}from"./chunk-6BYHL3DS.js";import{b as K,m as Q}from"./chunk-DVFVO6ZE.js";import{e as B}from"./chunk-7HECBXSP.js";import{j as H,k as V,l as W,p as Y,v as z}from"./chunk-CZNUBAAG.js";import{c as q}from"./chunk-FDSNRKGQ.js";import{a as N}from"./chunk-JALDNBTU.js";import{b as $}from"./chunk-ZNEPRGFY.js";import{Ga as J}from"./chunk-YKDRUAY3.js";import{a as C}from"./chunk-JIY6XWSC.js";import{b as G,c as U}from"./chunk-DMOLPSXF.js";import{A as M}from"./chunk-2KUM2RU4.js";import{i as o}from"./chunk-TD6JBHUS.js";import{Bb as c,Eb as f,la as F,tb as w,vb as y,zb as D}from"./chunk-ZMOW2YZ4.js";import{b as n}from"./chunk-3PYDIBTX.js";import{b as k}from"./chunk-QGQWVA7N.js";import{b as ve}from"./chunk-AE3IQG7S.js";import{e as ye,g as i}from"./chunk-VKWPEFWQ.js";i();i();i();var S=class extends Z{context="REPL";constructor(t){super(t),this.themeId=H()}async create(t,s){let r=await super.create(t,s);return await this.uploadThemeAssets(r),r}async findOrCreate(){let t=await this.fetch();if(!t){let s=`Liquid Console (${C})`;t=await this.create(K,s)}return t}setTheme(t){V(t)}removeTheme(){W()}async uploadThemeAssets(t){let s=[{key:"config/settings_data.json",value:"{}"},{key:"config/settings_schema.json",value:"[]"},{key:"snippets/eval.liquid",value:""},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"sections/announcement-bar.liquid",value:""},{key:"templates/index.json",value:JSON.stringify({sections:{announcement:{type:"announcement-bar",settings:{}}},order:["announcement"]})}];await Q(t.id,s,this.adminSession)}};i();i();async function g(e){let t=await Ee(e);if(t!==void 0)return t.value;if(!await oe(e)&&!await xe(e)&&(await Se(e),e.mode==="batch"))throw new o("Unable to evaluate the Liquid command.")}async function Ee(e){f(`Evaluating snippet - ${e.snippet}`);let t=`{ "type": "display", "value": {{ ${e.snippet} | json }} }`,s=await b({...e,snippet:t}),r=await s.text();return ae(s.status,r)?Te(r):void 0}async function oe(e){f(`Evaluating context - ${e.snippet}`);let t=`{ "type": "context", "value": "{% ${e.snippet.replace(/"/g,'\\"')} %}" }`,s=await b({...e,snippet:t}),r=await s.text();return ae(s.status,r)?(e.replSession.push(JSON.parse(t)),!0):!1}async function xe(e){if(f(`Evaluating assignment context - ${e.snippet}`),Oe(e.snippet))return e.snippet=`assign ${e.snippet}`,e.mode!=="batch"&&c(y`${w.gray(`> ${e.snippet}`)}`),oe(e)}async function Se(e){f(`Evaluating syntax error - ${e.snippet}`);let t="";if(Re(e.snippet)||(t=await(await b({...e,snippet:`{{ ${e.snippet} }}`})).text()),I(t)||(t=await(await b({...e,snippet:`{% ${e.snippet} %}`})).text()),I(t)){let s=t.replace(/ \(snippets\/eval line \d+\)/,"");be(e,s)}}function be(e,t){let s=ie(t);if(t.includes("Unknown tag")&&(s=`Unknown object, property, tag, or filter: '${e.snippet}'`),s){if(e.mode==="batch")throw new o(s);c(y`${w.errorText(s)}`)}}async function b(e){let t=ge(e);e.url.startsWith("/")||(e.url=`/${e.url}`);let s=await se(e.themeSession,{method:"GET",path:e.url,query:[],themeId:e.themeId,sectionId:"announcement-bar",headers:{},replaceTemplates:{"sections/announcement-bar.liquid":"{% render 'eval' %}","snippets/eval.liquid":`
1
+ import{a as ee}from"./chunk-3DB4EC62.js";import{d as X,i as te,k as se,q as re,r as ne}from"./chunk-36S6MFJQ.js";import{a as Z}from"./chunk-TZOB52QK.js";import{b as K,m as Q}from"./chunk-RSNFNZ6F.js";import{e as B}from"./chunk-7HECBXSP.js";import{j as H,k as V,l as W,p as Y,v as z}from"./chunk-VVHJ2AUF.js";import{c as q}from"./chunk-FDSNRKGQ.js";import{a as N}from"./chunk-3JRB7Q3T.js";import{b as $}from"./chunk-ZNEPRGFY.js";import{Ha as J}from"./chunk-UORSJB4A.js";import{a as C}from"./chunk-EE72PCKT.js";import{b as G,c as U}from"./chunk-IKXUYCK7.js";import{A as M}from"./chunk-7A4ZE5IS.js";import{j as o}from"./chunk-FJOVMEPN.js";import{Bb as c,Eb as f,la as F,tb as w,vb as y,zb as D}from"./chunk-OIQ5NQ5I.js";import{b as n}from"./chunk-3PYDIBTX.js";import{b as k}from"./chunk-4AWVU2OV.js";import{b as ve}from"./chunk-VBPMVVLV.js";import{e as ye,g as i}from"./chunk-VKWPEFWQ.js";i();i();i();var S=class extends Z{context="REPL";constructor(t){super(t),this.themeId=H()}async create(t,s){let r=await super.create(t,s);return await this.uploadThemeAssets(r),r}async findOrCreate(){let t=await this.fetch();if(!t){let s=`Liquid Console (${C})`;t=await this.create(K,s)}return t}setTheme(t){V(t)}removeTheme(){W()}async uploadThemeAssets(t){let s=[{key:"config/settings_data.json",value:"{}"},{key:"config/settings_schema.json",value:"[]"},{key:"snippets/eval.liquid",value:""},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"sections/announcement-bar.liquid",value:""},{key:"templates/index.json",value:JSON.stringify({sections:{announcement:{type:"announcement-bar",settings:{}}},order:["announcement"]})}];await Q(t.id,s,this.adminSession)}};i();i();async function g(e){let t=await Ee(e);if(t!==void 0)return t.value;if(!await oe(e)&&!await xe(e)&&(await Se(e),e.mode==="batch"))throw new o("Unable to evaluate the Liquid command.")}async function Ee(e){f(`Evaluating snippet - ${e.snippet}`);let t=`{ "type": "display", "value": {{ ${e.snippet} | json }} }`,s=await b({...e,snippet:t}),r=await s.text();return ae(s.status,r)?Te(r):void 0}async function oe(e){f(`Evaluating context - ${e.snippet}`);let t=`{ "type": "context", "value": "{% ${e.snippet.replace(/"/g,'\\"')} %}" }`,s=await b({...e,snippet:t}),r=await s.text();return ae(s.status,r)?(e.replSession.push(JSON.parse(t)),!0):!1}async function xe(e){if(f(`Evaluating assignment context - ${e.snippet}`),Oe(e.snippet))return e.snippet=`assign ${e.snippet}`,e.mode!=="batch"&&c(y`${w.gray(`> ${e.snippet}`)}`),oe(e)}async function Se(e){f(`Evaluating syntax error - ${e.snippet}`);let t="";if(Re(e.snippet)||(t=await(await b({...e,snippet:`{{ ${e.snippet} }}`})).text()),I(t)||(t=await(await b({...e,snippet:`{% ${e.snippet} %}`})).text()),I(t)){let s=t.replace(/ \(snippets\/eval line \d+\)/,"");be(e,s)}}function be(e,t){let s=ie(t);if(t.includes("Unknown tag")&&(s=`Unknown object, property, tag, or filter: '${e.snippet}'`),s){if(e.mode==="batch")throw new o(s);c(y`${w.errorText(s)}`)}}async function b(e){let t=ge(e);e.url.startsWith("/")||(e.url=`/${e.url}`);let s=await se(e.themeSession,{method:"GET",path:e.url,query:[],themeId:e.themeId,sectionId:"announcement-bar",headers:{},replaceTemplates:{"sections/announcement-bar.liquid":"{% render 'eval' %}","snippets/eval.liquid":`
2
2
  ${t}
3
3
  `}});if(Le(s)&&je(),qe(s)&&_e(),Ie(s)&&Ae(),e.mode==="batch"&&s.status!==200)throw new o(`Liquid evaluation failed (HTTP ${s.status}).`);return s}function ge(e){return`[${[...e.replSession.map(s=>JSON.stringify(s)),e.snippet].join(",").replace(/\\"/g,'"')}]`}function Te(e){let t=ie(e);if(t){let s=JSON.parse(t)?.find(r=>r.type==="display");if(s&&"value"in s)return{value:s.value}}}function ie(e){let t=e.split(`
4
4
  `).slice(1,-1);if(t.length!==0)return t.join("")}function I(e){return e.includes("Liquid syntax error")}function Re(e){return/^\s*assign\s*((?:\(?[\w\-.[\]]\)?)+)\s*=\s*(.*)\s*/m.test(e)}function Le(e){return e.status===401||e.status===403}function qe(e){return e.status===430||e.status===429}function Ie(e){return e.headers.get("server-timing")?.includes('pageType;desc="404"')??!1}function je(){throw new o("Session expired. Please initiate a new one.")}function _e(){throw new o("Evaluations limit reached. Try again later.")}function Ae(){throw new o("Page not found. Please provide a valid --url value!")}function Oe(e){return/^\s*((?:\(?[\w\-.[\]]\)?)+)\s*=\s*(.*)\s*/m.test(e)}function ae(e,t){return e===200&&!I(t)}i();var j="Object can't be printed, but you can access its fields. Read more at https://shopify.dev/docs/api/liquid.";function T(e){if(R(e)){c(j);return}if(e==null){ue("null");return}let t=JSON.stringify(e,null,2);ue(t)}function R(e){if(Array.isArray(e))return e.length>0?R(e[0]):!1;if(e&&typeof e=="object"){let s=e.error;return typeof s=="string"&&s.includes("json not allowed for this object")}return!1}function ue(e){return c(y`${w.cyan(e)}`)}import{createInterface as Pe}from"readline";var _=`Liquid Console doesn't support Liquid delimiters such as '{{ ... }}' or '{% ... %}'.
@@ -1,2 +1,2 @@
1
- import{b as p,d as c,e as _,f as q}from"./chunk-6IMTMS2S.js";import{a as T}from"./chunk-4NFX7YCT.js";import{a as F,b as B,c as E,l as w,n as C,o as y,t as D}from"./chunk-Z5QEXS6F.js";import{a as R}from"./chunk-RSZAAN37.js";import{a as x}from"./chunk-ASKBYEO7.js";import{B as m}from"./chunk-YKDRUAY3.js";import{b as S,c as A}from"./chunk-DMOLPSXF.js";import{A as O,x as d,y as f,z as k}from"./chunk-2KUM2RU4.js";import{i as h}from"./chunk-TD6JBHUS.js";import{tb as b,vb as g,zb as I}from"./chunk-ZMOW2YZ4.js";import{b as N}from"./chunk-AE3IQG7S.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();async function j(o){let{storeFqdn:e,operationId:a,remoteApp:t}=o,r=await T(t,e),n=await w({adminSession:r,operationId:a});return{store:e,apiVersion:F,operation:n?.bulkOperation??null,userErrors:n?.userErrors??[]}}i();function G(o,e,a){if(a==="json"){if(o.userErrors.length||!o.operation){let r=new h("Failed to cancel bulk operation.");throw r.details={...c(o),operationGid:e,userErrors:o.userErrors},r}I(p.encode({...c(o),status:"success",operation:_(o.operation)}));return}if(o.userErrors.length){C(o.userErrors,"Failed to cancel bulk operation.");return}let t=o.operation;if(t){let r=y(t),n=t.status==="CANCELING"?[`This may take a few moments. Check the status with:
1
+ import{b as p,d as c,e as _,f as q}from"./chunk-OTMTS5L4.js";import{a as T}from"./chunk-652NT7OW.js";import{a as F,b as B,c as E,l as w,n as C,o as y,t as D}from"./chunk-NMXRDF4T.js";import{a as R}from"./chunk-R5COVIJM.js";import{a as x}from"./chunk-K4KKSBUW.js";import{B as m}from"./chunk-UORSJB4A.js";import{b as S,c as A}from"./chunk-IKXUYCK7.js";import{A as O,x as d,y as f,z as k}from"./chunk-7A4ZE5IS.js";import{j as h}from"./chunk-FJOVMEPN.js";import{tb as b,vb as g,zb as I}from"./chunk-OIQ5NQ5I.js";import{b as N}from"./chunk-VBPMVVLV.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();async function j(o){let{storeFqdn:e,operationId:a,remoteApp:t}=o,r=await T(t,e),n=await w({adminSession:r,operationId:a});return{store:e,apiVersion:F,operation:n?.bulkOperation??null,userErrors:n?.userErrors??[]}}i();function G(o,e,a){if(a==="json"){if(o.userErrors.length||!o.operation){let r=new h("Failed to cancel bulk operation.");throw r.details={...c(o),operationGid:e,userErrors:o.userErrors},r}I(p.encode({...c(o),status:"success",operation:_(o.operation)}));return}if(o.userErrors.length){C(o.userErrors,"Failed to cancel bulk operation.");return}let t=o.operation;if(t){let r=y(t),n=t.status==="CANCELING"?[`This may take a few moments. Check the status with:
2
2
  `,{command:`shopify app bulk status --id=${E(t.id)}`}]:r.body,s={headline:r.headline,...n&&{body:n},...r.customSections&&{customSections:r.customSections}};switch(r.renderType){case"success":f(s);break;case"warning":k(s);break;case"info":d(s);break}}else O({headline:"Bulk operation not found or could not be canceled.",body:g`ID: ${b.yellow(e)}`.value})}var u=L(N(),1);var l=class o extends R{static summary="Cancel a bulk operation.";static descriptionWithMarkdown="Cancels a running bulk operation by ID.";static jsonOutputSchema=p;static description=this.descriptionForHelp();static flags={...S,...A,...x,id:u.Flags.string({description:"The bulk operation ID to cancel (numeric ID or full GID).",env:"SHOPIFY_FLAG_ID",required:!0}),store:u.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>m(e)})};async run(){let{flags:e}=await this.parse(o),{appContextResult:a,store:t}=await D(e),r=e.json?"json":"text",n=B(e.id);q("Canceling bulk operation.",{organization:a.organization,remoteApp:a.remoteApp,storeFqdn:t.shopDomain,operationId:n},r);let s=await j({storeFqdn:t.shopDomain,operationId:n,remoteApp:a.remoteApp});return G(s,n,r),{app:a.app}}};export{l as a};
@@ -1 +1 @@
1
- import{a as h}from"./chunk-QGQWVA7N.js";import{b as C}from"./chunk-AE3IQG7S.js";import{b as p}from"./chunk-R4E2E4NN.js";import{a as c}from"./chunk-JD5P5RAJ.js";import{e as L,g as u}from"./chunk-VKWPEFWQ.js";u();u();import{fileURLToPath as y}from"node:url";async function g(e){let{isDevelopment:o}=await import("./local-5NIWPWDS.js"),{ShopifyConfig:n}=await import("./custom-oclif-loader-ZVUKMRGH.js"),r=await import("./lib-LEEN55OD.js"),{run:s,flush:m,Errors:l,settings:f}=r.default??r;o()&&(f.debug=!0);try{let t=new n({root:y(e.moduleURL)});await t.load(),e.lazyCommandLoader&&t.setLazyCommandLoader(e.lazyCommandLoader);let a=e.argv??process.argv.slice(2),i=a.indexOf("--");if((i===-1?a:a.slice(0,i)).includes("--json-schema")||c(process.env.SHOPIFY_FLAG_JSON_SCHEMA)){let{printCommandJsonSchema:I}=await import("./command-json-schema-C5UZXP2W.js");await I(t,a,e.lazyCommandLoader);return}await s(a,t),await m()}catch(t){let{errorHandler:a}=await import("./error-handler-BS2ZENQV.js");await a(t);let i=t;return l.handle({...i,name:i?.name??"Error",message:i?.message??String(t),stack:i?.stack,skipOclifErrorHandling:!0})}}var d=L(C());async function O(e=process.versions){let o=e.node,n=Number(o.split(".")[0]);if(n<22){let{renderError:s}=await import("./ui-YDUI56E3.js");s({headline:"Upgrade to a supported Node version now.",body:[`Node ${n} has reached end-of-life and poses security risks. When you upgrade to a`,{link:{url:"https://nodejs.dev/en/about/previous-releases",label:"supported version"}},{char:","},"you'll be able to use Shopify CLI without interruption."]}),process.exit(1)}}function v(e,o=process.argv,n=process.env){o.includes("--verbose")&&(n.DEBUG=n.DEBUG??"*"),e.development&&(n.SHOPIFY_CLI_ENV=n.SHOPIFY_CLI_ENV??"development")}function b(e=process.argv,o=process.env){(e.includes("--no-color")||e.includes("--json")||e.includes("-j")||c(o.NO_COLOR)||c(o.SHOPIFY_FLAG_NO_COLOR)||c(o[p.json])||o.TERM==="dumb")&&(o.FORCE_COLOR="0")}async function H(e,o=g,n=process.argv,r=process.env,s=process.versions){return v(e,n,r),e.runInCreateMode&&await w(e,n),b(n,r),await O(s),o({moduleURL:e.moduleURL,lazyCommandLoader:e.lazyCommandLoader})}async function w(e,o=process.argv){let{findUpAndReadPackageJson:n}=await import("./node-package-manager-ALFEGGD6.js"),{moduleDirectory:r}=await import("./path-3L2QRACZ.js"),l=(await n(r(e.moduleURL))).content.name.replace("@shopify/create-","");if(o.findIndex(t=>t.includes("init"))===-1){let t=o.findIndex(a=>a.match(new RegExp(`bin(\\/|\\\\)+(create-${l}|dev|run)`)))+1;o.splice(t,0,"init")}}var k={...h,"no-color":d.Flags.boolean({hidden:!1,description:"Disable color output.",env:"SHOPIFY_FLAG_NO_COLOR"}),verbose:d.Flags.boolean({hidden:!1,description:"Increase the verbosity of the output. May include sensitive data.",env:"SHOPIFY_FLAG_VERBOSE"})},U={json:d.Flags.boolean({char:"j",description:"Output the result as JSON. Automatically disables color output.",hidden:!1,default:!1,env:p.json})},V={"auth-alias":d.Flags.string({description:"Alias of the Shopify account to use for authentication.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})},P=(e={})=>{let o=[e.description,"Must be between 1 and 65535."].filter(Boolean).join(" ");return d.Flags.integer({min:1,max:65535,...e,description:o})};function D(e){let o=e.description?.trimEnd(),r=[o&&!o.endsWith(".")?`${o}.`:o,"Required if non interactive."].filter(Boolean).join(" ");return{...e,description:r,requiredIfNonInteractive:!0}}async function M(){let{cacheClear:e}=await import("./conf-store-OCGEEV4U.js");e()}export{H as a,k as b,U as c,V as d,P as e,D as f,M as g};
1
+ import{a as h}from"./chunk-4AWVU2OV.js";import{b as p}from"./chunk-R4E2E4NN.js";import{b as C}from"./chunk-VBPMVVLV.js";import{a as c}from"./chunk-JD5P5RAJ.js";import{e as L,g as u}from"./chunk-VKWPEFWQ.js";u();u();import{fileURLToPath as y}from"node:url";async function g(e){let{isDevelopment:o}=await import("./local-LNGPIGLG.js"),{ShopifyConfig:n}=await import("./custom-oclif-loader-BPE2TH4B.js"),r=await import("./lib-XPJABU24.js"),{run:s,flush:m,Errors:l,settings:f}=r.default??r;o()&&(f.debug=!0);try{let t=new n({root:y(e.moduleURL)});await t.load(),e.lazyCommandLoader&&t.setLazyCommandLoader(e.lazyCommandLoader);let a=e.argv??process.argv.slice(2),i=a.indexOf("--");if((i===-1?a:a.slice(0,i)).includes("--json-schema")||c(process.env.SHOPIFY_FLAG_JSON_SCHEMA)){let{printCommandJsonSchema:I}=await import("./command-json-schema-LGR44Q2G.js");await I(t,a,e.lazyCommandLoader);return}await s(a,t),await m()}catch(t){let{errorHandler:a}=await import("./error-handler-23FASAEU.js");await a(t);let i=t;return l.handle({...i,name:i?.name??"Error",message:i?.message??String(t),stack:i?.stack,skipOclifErrorHandling:!0})}}var d=L(C());async function O(e=process.versions){let o=e.node,n=Number(o.split(".")[0]);if(n<22){let{renderError:s}=await import("./ui-YMBFS3NG.js");s({headline:"Upgrade to a supported Node version now.",body:[`Node ${n} has reached end-of-life and poses security risks. When you upgrade to a`,{link:{url:"https://nodejs.dev/en/about/previous-releases",label:"supported version"}},{char:","},"you'll be able to use Shopify CLI without interruption."]}),process.exit(1)}}function v(e,o=process.argv,n=process.env){o.includes("--verbose")&&(n.DEBUG=n.DEBUG??"*"),e.development&&(n.SHOPIFY_CLI_ENV=n.SHOPIFY_CLI_ENV??"development")}function b(e=process.argv,o=process.env){(e.includes("--no-color")||e.includes("--json")||e.includes("-j")||c(o.NO_COLOR)||c(o.SHOPIFY_FLAG_NO_COLOR)||c(o[p.json])||o.TERM==="dumb")&&(o.FORCE_COLOR="0")}async function H(e,o=g,n=process.argv,r=process.env,s=process.versions){return v(e,n,r),e.runInCreateMode&&await w(e,n),b(n,r),await O(s),o({moduleURL:e.moduleURL,lazyCommandLoader:e.lazyCommandLoader})}async function w(e,o=process.argv){let{findUpAndReadPackageJson:n}=await import("./node-package-manager-SSFNUVWB.js"),{moduleDirectory:r}=await import("./path-3L2QRACZ.js"),l=(await n(r(e.moduleURL))).content.name.replace("@shopify/create-","");if(o.findIndex(t=>t.includes("init"))===-1){let t=o.findIndex(a=>a.match(new RegExp(`bin(\\/|\\\\)+(create-${l}|dev|run)`)))+1;o.splice(t,0,"init")}}var k={...h,"no-color":d.Flags.boolean({hidden:!1,description:"Disable color output.",env:"SHOPIFY_FLAG_NO_COLOR"}),verbose:d.Flags.boolean({hidden:!1,description:"Increase the verbosity of the output. May include sensitive data.",env:"SHOPIFY_FLAG_VERBOSE"})},U={json:d.Flags.boolean({char:"j",description:"Output the result as JSON. Automatically disables color output.",hidden:!1,default:!1,env:p.json})},V={"auth-alias":d.Flags.string({description:"Alias of the Shopify account to use for authentication.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})},P=(e={})=>{let o=[e.description,"Must be between 1 and 65535."].filter(Boolean).join(" ");return d.Flags.integer({min:1,max:65535,...e,description:o})};function D(e){let o=e.description?.trimEnd(),r=[o&&!o.endsWith(".")?`${o}.`:o,"Required if non interactive."].filter(Boolean).join(" ");return{...e,description:r,requiredIfNonInteractive:!0}}async function M(){let{cacheClear:e}=await import("./conf-store-TODPQ2LC.js");e()}export{H as a,k as b,U as c,V as d,P as e,D as f,M as g};
@@ -1 +1 @@
1
- import{a as $,c as M}from"./chunk-4NFX7YCT.js";import{d as N,f as Q,u as P}from"./chunk-Z5QEXS6F.js";import{a as C}from"./chunk-RSZAAN37.js";import{a as G,c as q}from"./chunk-ASKBYEO7.js";import{b as L}from"./chunk-2BYW3BYX.js";import{b as X,d as J}from"./chunk-YKDRUAY3.js";import{b as j,c as k}from"./chunk-DMOLPSXF.js";import{A as R,H as x,y as w}from"./chunk-2KUM2RU4.js";import{a as S}from"./chunk-LG3KEHGD.js";import{i as p}from"./chunk-TD6JBHUS.js";import{Sa as A,la as b,ta as E,tb as f,vb as c,zb as m}from"./chunk-ZMOW2YZ4.js";import{b as a}from"./chunk-3PYDIBTX.js";import{e as y,g as O}from"./chunk-IWTNUJGY.js";import{e as K,g as i}from"./chunk-VKWPEFWQ.js";i();i();var V=K(X(),1);async function Y(r,e){if(r)try{return JSON.parse(r)}catch(o){let t=o instanceof Error?o.message:"Unknown error";throw new p(c`Invalid JSON in ${f.yellow("--variables")} flag: ${t}`,"Please provide valid JSON format.")}else if(e){if(!await A(e))throw new p(c`Variable file not found at ${f.path(e)}. Please check the path and try again.`);let o=await b(e,{encoding:"utf8"});try{return JSON.parse(o)}catch(t){let s=t instanceof Error?t.message:"Unknown error";throw new p(c`Invalid JSON in variable file ${f.path(e)}: ${s}`,"Please provide valid JSON format.")}}}async function F(r){let{remoteApp:e,store:o,query:t,variables:s,variableFile:h,version:U}=r,{adminSession:H,version:W}=await x({title:c`Authenticating`,task:async()=>{let n=await $(e,o.shopDomain),l=await Q({adminSession:n,userSpecifiedVersion:U});return{adminSession:n,version:l}},renderOptions:{stdout:process.stderr}}),B=await Y(s,h);N(t),M(t,o);try{let n;return{status:"success",result:{data:await x({title:c`Executing GraphQL operation`,task:async()=>L({query:(0,V.parse)(t),session:H,variables:B,version:W,responseOptions:{handleErrors:!1,onResponse:u=>{n=u.extensions}}}),renderOptions:{stdout:process.stderr}}),...n===void 0?{}:{extensions:n}}}}catch(n){if(n instanceof J){let{errors:l,extensions:u,data:v}=n.response;return{status:"failed",details:{...l===void 0?{}:{errors:l},...u===void 0?{}:{extensions:u},...v===void 0?{}:{data:v}}}}throw n}}i();var z=a.unknown().and(a.record(a.unknown())),I=a.object({data:z.nullable().describe("Native GraphQL query data, preserving fields and aliases."),extensions:z.optional().describe("Native GraphQL response extensions, when supplied.")}).strict(),D=a.object({path:a.string().refine(O,"Expected an absolute filesystem path."),format:a.literal("json")}).strict().describe("Receipt for a written JSON file containing the GraphQL result, including data and optional extensions."),d=S({name:"AppExecuteResult",schema:a.union([I,D]),definitions:{AppExecuteGraphQLResult:I,AppExecuteFileReceipt:D}});i();async function T(r,e,o){if(r.status==="failed"){if(e==="json"){let s=new p("GraphQL operation failed.");throw s.details=r.details,s}R({headline:"GraphQL operation failed.",body:JSON.stringify({errors:r.details.errors},null,2)});return}let t=e==="json"?Z(r.result):JSON.stringify(r.result.data,null,2);o?(await E(o,t),e==="json"?m(d.encode({path:y(o),format:"json"})):w({headline:"Operation succeeded.",body:`Results written to ${o}`})):e==="json"?m(t):(w({headline:"Operation succeeded."}),m(t))}function Z(r){return d.validate(r),JSON.stringify(r,null,2)}var g=class r extends C{static summary="Execute GraphQL queries and mutations.";static descriptionWithMarkdown="Executes an Admin API GraphQL query or mutation on the specified store. Mutations are only allowed on dev stores.\n\n For operations that process large amounts of data, use [`bulk execute`](https://shopify.dev/docs/api/shopify-cli/app/app-bulk-execute) instead.";static jsonOutputSchema=d;static description=this.descriptionForHelp();static flags={...j,...G,...q,...k};async run(){let{flags:e}=await this.parse(r),{query:o,appContextResult:t,store:s}=await P(e),h=await F({organization:t.organization,remoteApp:t.remoteApp,store:s,query:o,variables:e.variables,variableFile:e["variable-file"],...e.version&&{version:e.version}});return await T(h,e.json?"json":"text",e["output-file"]),{app:t.app}}};export{g as a};
1
+ import{a as $,c as M}from"./chunk-652NT7OW.js";import{d as N,f as Q,u as P}from"./chunk-NMXRDF4T.js";import{a as C}from"./chunk-R5COVIJM.js";import{a as G,c as q}from"./chunk-K4KKSBUW.js";import{b as L}from"./chunk-XHHAVKKV.js";import{b as X,d as J}from"./chunk-UORSJB4A.js";import{b as j,c as k}from"./chunk-IKXUYCK7.js";import{A as R,H as x,y as w}from"./chunk-7A4ZE5IS.js";import{a as S}from"./chunk-LG3KEHGD.js";import{j as p}from"./chunk-FJOVMEPN.js";import{Sa as A,la as b,ta as E,tb as f,vb as c,zb as m}from"./chunk-OIQ5NQ5I.js";import{b as a}from"./chunk-3PYDIBTX.js";import{e as y,g as O}from"./chunk-IWTNUJGY.js";import{e as K,g as i}from"./chunk-VKWPEFWQ.js";i();i();var V=K(X(),1);async function Y(r,e){if(r)try{return JSON.parse(r)}catch(o){let t=o instanceof Error?o.message:"Unknown error";throw new p(c`Invalid JSON in ${f.yellow("--variables")} flag: ${t}`,"Please provide valid JSON format.")}else if(e){if(!await A(e))throw new p(c`Variable file not found at ${f.path(e)}. Please check the path and try again.`);let o=await b(e,{encoding:"utf8"});try{return JSON.parse(o)}catch(t){let s=t instanceof Error?t.message:"Unknown error";throw new p(c`Invalid JSON in variable file ${f.path(e)}: ${s}`,"Please provide valid JSON format.")}}}async function F(r){let{remoteApp:e,store:o,query:t,variables:s,variableFile:h,version:U}=r,{adminSession:H,version:W}=await x({title:c`Authenticating`,task:async()=>{let n=await $(e,o.shopDomain),l=await Q({adminSession:n,userSpecifiedVersion:U});return{adminSession:n,version:l}},renderOptions:{stdout:process.stderr}}),B=await Y(s,h);N(t),M(t,o);try{let n;return{status:"success",result:{data:await x({title:c`Executing GraphQL operation`,task:async()=>L({query:(0,V.parse)(t),session:H,variables:B,version:W,responseOptions:{handleErrors:!1,onResponse:u=>{n=u.extensions}}}),renderOptions:{stdout:process.stderr}}),...n===void 0?{}:{extensions:n}}}}catch(n){if(n instanceof J){let{errors:l,extensions:u,data:v}=n.response;return{status:"failed",details:{...l===void 0?{}:{errors:l},...u===void 0?{}:{extensions:u},...v===void 0?{}:{data:v}}}}throw n}}i();var z=a.unknown().and(a.record(a.unknown())),I=a.object({data:z.nullable().describe("Native GraphQL query data, preserving fields and aliases."),extensions:z.optional().describe("Native GraphQL response extensions, when supplied.")}).strict(),D=a.object({path:a.string().refine(O,"Expected an absolute filesystem path."),format:a.literal("json")}).strict().describe("Receipt for a written JSON file containing the GraphQL result, including data and optional extensions."),d=S({name:"AppExecuteResult",schema:a.union([I,D]),definitions:{AppExecuteGraphQLResult:I,AppExecuteFileReceipt:D}});i();async function T(r,e,o){if(r.status==="failed"){if(e==="json"){let s=new p("GraphQL operation failed.");throw s.details=r.details,s}R({headline:"GraphQL operation failed.",body:JSON.stringify({errors:r.details.errors},null,2)});return}let t=e==="json"?Z(r.result):JSON.stringify(r.result.data,null,2);o?(await E(o,t),e==="json"?m(d.encode({path:y(o),format:"json"})):w({headline:"Operation succeeded.",body:`Results written to ${o}`})):e==="json"?m(t):(w({headline:"Operation succeeded."}),m(t))}function Z(r){return d.validate(r),JSON.stringify(r,null,2)}var g=class r extends C{static summary="Execute GraphQL queries and mutations.";static descriptionWithMarkdown="Executes an Admin API GraphQL query or mutation on the specified store. Mutations are only allowed on dev stores.\n\n For operations that process large amounts of data, use [`bulk execute`](https://shopify.dev/docs/api/shopify-cli/app/app-bulk-execute) instead.";static jsonOutputSchema=d;static description=this.descriptionForHelp();static flags={...j,...G,...q,...k};async run(){let{flags:e}=await this.parse(r),{query:o,appContextResult:t,store:s}=await P(e),h=await F({organization:t.organization,remoteApp:t.remoteApp,store:s,query:o,variables:e.variables,variableFile:e["variable-file"],...e.version&&{version:e.version}});return await T(h,e.json?"json":"text",e["output-file"]),{app:t.app}}};export{g as a};
@@ -1 +1 @@
1
- import{c as i,h as r,o as s}from"./chunk-IWTNUJGY.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as l,readFileSync as u}from"fs";import{fileURLToPath as g,pathToFileURL as p}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(g(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function f(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=f(n),e=i(d,o);return l(e)?d:y(t)}async function j(n,t){let o=f(n),e=w(n,t);return(await import(p(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-XBM4XZS4.js");return o?.[n]}if(t==="@oclif/plugin-commands"){let{commands:o}=await import("./lib-L4STV5B2.js");return o[n]}if(t==="@oclif/plugin-plugins"){let{commands:o}=await import("./lib-4JVADMNT.js");return o[n]}if(t==="@shopify/plugin-did-you-mean"){let{DidYouMeanCommands:o}=await import("./dist-NORLLIHQ.js");return o[n]}}export{D as a};
1
+ import{c as i,h as r,o as s}from"./chunk-IWTNUJGY.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as l,readFileSync as u}from"fs";import{fileURLToPath as g,pathToFileURL as p}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(g(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function f(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=f(n),e=i(d,o);return l(e)?d:y(t)}async function j(n,t){let o=f(n),e=w(n,t);return(await import(p(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-WT6MPTKJ.js");return o?.[n]}if(t==="@oclif/plugin-commands"){let{commands:o}=await import("./lib-F3MES3XF.js");return o[n]}if(t==="@oclif/plugin-plugins"){let{commands:o}=await import("./lib-4ZA53LTZ.js");return o[n]}if(t==="@shopify/plugin-did-you-mean"){let{DidYouMeanCommands:o}=await import("./dist-LPKYTX3M.js");return o[n]}}export{D as a};
@@ -1,4 +1,4 @@
1
- import{a as E}from"./chunk-XLMKHTJ5.js";import{a as j}from"./chunk-R6US7F33.js";import{a as U,b as F}from"./chunk-YY6TFARF.js";import{a as R}from"./chunk-7N7KRZOM.js";import{b,c as p,e as _,g as y,h as S}from"./chunk-7HECBXSP.js";import{p as O,v as T}from"./chunk-CZNUBAAG.js";import{b as w,c as g}from"./chunk-DMOLPSXF.js";import{M as d,x as c}from"./chunk-2KUM2RU4.js";import{i as u}from"./chunk-TD6JBHUS.js";import{zb as f}from"./chunk-ZMOW2YZ4.js";import{b as t}from"./chunk-3PYDIBTX.js";import{o as v}from"./chunk-DOLVBTCB.js";import{b as A}from"./chunk-AE3IQG7S.js";import{e as P,g as n}from"./chunk-VKWPEFWQ.js";n();n();async function I(r,e){let m=new j(r),l=(await(e.development?m.find():m.fetch()))?.id,o=await R(r,{header:"Select a theme to open",filter:{live:e.live,theme:e.development?`${l}`:e.theme}}),s=U(o,r),L=F(o,r);return{theme:o,preview_url:s,editor_url:L}}n();n();var k=t.object({id:t.number(),name:t.string(),createdAtRuntime:t.boolean(),processing:t.boolean(),role:t.string(),src:t.string().optional()}),x=t.object({theme:k,preview_url:t.string(),editor_url:t.string()}),h=_({name:"ThemeOpenResult",schema:t.object({theme:p.extend({storeDomain:b,previewUrl:t.string().url(),editorUrl:t.string().url(),processing:t.boolean(),sourceUrl:t.string().url().nullable()}).strict()}).strict(),definitions:{Theme:p},project(r){let e=x.parse(r);return{theme:{...S(e.theme),storeDomain:y(new URL(e.preview_url).hostname),previewUrl:e.preview_url,editorUrl:e.editor_url,processing:e.theme.processing,sourceUrl:e.theme.src??null}}}});function D(r,e){if(e==="json"){f(h.encode(r));return}c({body:["Preview information for theme",...E(r.theme),`
1
+ import{a as E}from"./chunk-TXMZPF2U.js";import{a as j}from"./chunk-7AQZKPJU.js";import{a as U,b as F}from"./chunk-YY6TFARF.js";import{a as R}from"./chunk-GQ3LY7BY.js";import{b,c as p,e as _,g as y,h as S}from"./chunk-7HECBXSP.js";import{p as O,v as T}from"./chunk-VVHJ2AUF.js";import{b as w,c as g}from"./chunk-IKXUYCK7.js";import{M as d,x as c}from"./chunk-7A4ZE5IS.js";import{j as u}from"./chunk-FJOVMEPN.js";import{zb as f}from"./chunk-OIQ5NQ5I.js";import{b as t}from"./chunk-3PYDIBTX.js";import{o as v}from"./chunk-A5BSUUNQ.js";import{b as A}from"./chunk-VBPMVVLV.js";import{e as P,g as n}from"./chunk-VKWPEFWQ.js";n();n();async function I(r,e){let m=new j(r),l=(await(e.development?m.find():m.fetch()))?.id,o=await R(r,{header:"Select a theme to open",filter:{live:e.live,theme:e.development?`${l}`:e.theme}}),s=U(o,r),L=F(o,r);return{theme:o,preview_url:s,editor_url:L}}n();n();var k=t.object({id:t.number(),name:t.string(),createdAtRuntime:t.boolean(),processing:t.boolean(),role:t.string(),src:t.string().optional()}),x=t.object({theme:k,preview_url:t.string(),editor_url:t.string()}),h=_({name:"ThemeOpenResult",schema:t.object({theme:p.extend({storeDomain:b,previewUrl:t.string().url(),editorUrl:t.string().url(),processing:t.boolean(),sourceUrl:t.string().url().nullable()}).strict()}).strict(),definitions:{Theme:p},project(r){let e=x.parse(r);return{theme:{...S(e.theme),storeDomain:y(new URL(e.preview_url).hostname),previewUrl:e.preview_url,editorUrl:e.editor_url,processing:e.theme.processing,sourceUrl:e.theme.src??null}}}});function D(r,e){if(e==="json"){f(h.encode(r));return}c({body:["Preview information for theme",...E(r.theme),`
2
2
 
3
3
  `,{list:{items:[{link:{label:"Preview your theme",url:r.preview_url}},{link:{label:"Customize your theme at the theme editor",url:r.editor_url}}]}}]})}var i=P(A(),1);var a=class extends T{static jsonOutputSchema=h;static summary="Opens the preview of your remote theme.";static descriptionWithMarkdown=`Returns links that let you preview the specified theme. The following links are returned:
4
4
 
@@ -1 +1 @@
1
- import{o as n}from"./chunk-4WBWZIN5.js";import{G as s}from"./chunk-2KUM2RU4.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function c(e){await s([{title:"Installing dependencies",task:async()=>{await n({packageManager:e.packageManager,directory:e.directory,deep:3})}}])}export{c as a};
1
+ import{o as n}from"./chunk-OSASE35V.js";import{G as s}from"./chunk-7A4ZE5IS.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function c(e){await s([{title:"Installing dependencies",task:async()=>{await n({packageManager:e.packageManager,directory:e.directory,deep:3})}}])}export{c as a};
@@ -1 +1 @@
1
- import{b as u}from"./chunk-XEZPN5TR.js";import{a as i}from"./chunk-JIY6XWSC.js";import{b as a,c}from"./chunk-DMOLPSXF.js";import{a as p}from"./chunk-LG3KEHGD.js";import{zb as m}from"./chunk-ZMOW2YZ4.js";import{b as r}from"./chunk-3PYDIBTX.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();async function f(){return{version:i}}t();t();var e=p({name:"VersionResult",schema:r.object({version:r.string()})});function l(o,s){m(s==="json"?e.encode(o):o.version)}var n=class o extends u{static descriptionWithMarkdown="Shopify CLI version currently installed.";static jsonOutputSchema=e;static description=this.descriptionForHelp();static flags={...a,...c};async run(){let{flags:s}=await this.parse(o),v=await f();l(v,s.json?"json":"text")}};export{n as a};
1
+ import{b as u}from"./chunk-PSREELSQ.js";import{a as i}from"./chunk-EE72PCKT.js";import{b as a,c}from"./chunk-IKXUYCK7.js";import{a as p}from"./chunk-LG3KEHGD.js";import{zb as m}from"./chunk-OIQ5NQ5I.js";import{b as r}from"./chunk-3PYDIBTX.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();async function f(){return{version:i}}t();t();var e=p({name:"VersionResult",schema:r.object({version:r.string()})});function l(o,s){m(s==="json"?e.encode(o):o.version)}var n=class o extends u{static descriptionWithMarkdown="Shopify CLI version currently installed.";static jsonOutputSchema=e;static description=this.descriptionForHelp();static flags={...a,...c};async run(){let{flags:s}=await this.parse(o),v=await f();l(v,s.json?"json":"text")}};export{n as a};
@@ -1 +1 @@
1
- import{B as r}from"./chunk-YKDRUAY3.js";import{b as o}from"./chunk-AE3IQG7S.js";import{e as t,p as n}from"./chunk-IWTNUJGY.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
+ import{B as r}from"./chunk-UORSJB4A.js";import{b as o}from"./chunk-VBPMVVLV.js";import{e as t,p as n}from"./chunk-IWTNUJGY.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,4 +1,4 @@
1
- import{p as y,v}from"./chunk-CZNUBAAG.js";import{a as w}from"./chunk-VRIFLMA3.js";import{da as b}from"./chunk-2PD7TNFS.js";import{b as P,c as k}from"./chunk-DMOLPSXF.js";import{y as d}from"./chunk-2KUM2RU4.js";import{a as c}from"./chunk-LG3KEHGD.js";import{i as n}from"./chunk-TD6JBHUS.js";import{Sa as u,la as l,zb as g}from"./chunk-ZMOW2YZ4.js";import{b as r}from"./chunk-3PYDIBTX.js";import{e as m,g as p,m as f}from"./chunk-IWTNUJGY.js";import{e as T,g as s}from"./chunk-VKWPEFWQ.js";s();s();var _=T(b(),1),O=["AGENTS.md","DESIGN.md","assets/**","blocks/**","config/**","layout/**","listings/**/*","locales/**","sections/**","snippets/**","templates/**","templates/customers/**","release-notes.md","update_extension.json"].join("|");async function j(e){let t=await x(e),o=m(e,t),a=`${e}/(${O})`;return await w({inputDirectory:e,outputZipPath:o,matchFilePattern:a}),{path:o}}async function x(e){let t=m(e,"config/settings_schema.json");if(!await u(t))throw new n("Provide a config/settings_schema.json to package your theme.");let o=await z(t);if(o===void 0||o.theme_name===void 0)throw new n("Provide a theme_info.theme_name configuration in config/settings_schema.json.");let a=[o.theme_name,o.theme_version].filter(Boolean).join("-");if(/[/\\]/.test(a)||/^[a-z]:/i.test(a))throw new n("Theme name and version must not contain paths.");return`${a}.zip`}async function z(e){let t=(0,_.parseJSON)(await l(e),null,!0);if(!t)throw new n("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")}s();var i=c({name:"ThemePackageResult",schema:r.object({path:r.string().refine(p).describe("The absolute native path of the ZIP archive.")}).strict()});s();import{resolve as F}from"node:path";function S(e,t){if(t==="json"){g(i.encode({...e,path:F(e.path)}));return}d({body:["Your local theme was packaged in",{filePath:f(e.path)}]})}var h=class extends v{static jsonOutputSchema=i;static summary="Package your theme into a .zip file, ready to upload to the Online Store.";static descriptionWithMarkdown=`Packages your local theme files into a ZIP file that can be uploaded to Shopify.
1
+ import{p as y,v}from"./chunk-VVHJ2AUF.js";import{a as w}from"./chunk-L23Q53FM.js";import{da as b}from"./chunk-MQ55QUOJ.js";import{b as P,c as k}from"./chunk-IKXUYCK7.js";import{y as d}from"./chunk-7A4ZE5IS.js";import{a as c}from"./chunk-LG3KEHGD.js";import{j as n}from"./chunk-FJOVMEPN.js";import{Sa as u,la as l,zb as g}from"./chunk-OIQ5NQ5I.js";import{b as r}from"./chunk-3PYDIBTX.js";import{e as m,g as p,m as f}from"./chunk-IWTNUJGY.js";import{e as T,g as s}from"./chunk-VKWPEFWQ.js";s();s();var _=T(b(),1),O=["AGENTS.md","DESIGN.md","assets/**","blocks/**","config/**","layout/**","listings/**/*","locales/**","sections/**","snippets/**","templates/**","templates/customers/**","release-notes.md","update_extension.json"].join("|");async function j(e){let t=await x(e),o=m(e,t),a=`${e}/(${O})`;return await w({inputDirectory:e,outputZipPath:o,matchFilePattern:a}),{path:o}}async function x(e){let t=m(e,"config/settings_schema.json");if(!await u(t))throw new n("Provide a config/settings_schema.json to package your theme.");let o=await z(t);if(o===void 0||o.theme_name===void 0)throw new n("Provide a theme_info.theme_name configuration in config/settings_schema.json.");let a=[o.theme_name,o.theme_version].filter(Boolean).join("-");if(/[/\\]/.test(a)||/^[a-z]:/i.test(a))throw new n("Theme name and version must not contain paths.");return`${a}.zip`}async function z(e){let t=(0,_.parseJSON)(await l(e),null,!0);if(!t)throw new n("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")}s();var i=c({name:"ThemePackageResult",schema:r.object({path:r.string().refine(p).describe("The absolute native path of the ZIP archive.")}).strict()});s();import{resolve as F}from"node:path";function S(e,t){if(t==="json"){g(i.encode({...e,path:F(e.path)}));return}d({body:["Your local theme was packaged in",{filePath:f(e.path)}]})}var h=class extends v{static jsonOutputSchema=i;static summary="Package your theme into a .zip file, ready to upload to the Online Store.";static descriptionWithMarkdown=`Packages your local theme files into a ZIP file that can be uploaded to Shopify.
2
2
 
3
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
4
 
@@ -1 +1 @@
1
- import{G as m,H as d,w as c}from"./chunk-2KUM2RU4.js";import{sb as w,tb as n,vb as a}from"./chunk-ZMOW2YZ4.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();async function P(){let r,l=new Promise(function(e,i){r=e});await c({processes:[{prefix:"backend",action:async(e,i,s)=>{e.write("first backend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("second backend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("third backend message"),await new Promise(t=>setTimeout(t,1e3)),r()}},{prefix:"frontend",action:async(e,i,s)=>{await l,e.write("first frontend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("second frontend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("third frontend message")}}]}),await m([{title:"Installing dependencies",task:async()=>{await new Promise(e=>setTimeout(e,2e3))}},{title:"Downloading assets",task:async()=>{await new Promise(e=>setTimeout(e,2e3))}}]),await d({title:new w("Importing data"),task:async e=>{for(let i=1;i<=10;i++){await new Promise(t=>setTimeout(t,500));let s=a`Importing data ${n.italic(a`(${n.green(i.toString())} complete)`)}`;e(s)}return"completed"}})}export{P as a};
1
+ import{G as m,H as d,w as c}from"./chunk-7A4ZE5IS.js";import{sb as w,tb as n,vb as a}from"./chunk-OIQ5NQ5I.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();async function P(){let r,l=new Promise(function(e,i){r=e});await c({processes:[{prefix:"backend",action:async(e,i,s)=>{e.write("first backend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("second backend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("third backend message"),await new Promise(t=>setTimeout(t,1e3)),r()}},{prefix:"frontend",action:async(e,i,s)=>{await l,e.write("first frontend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("second frontend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("third frontend message")}}]}),await m([{title:"Installing dependencies",task:async()=>{await new Promise(e=>setTimeout(e,2e3))}},{title:"Downloading assets",task:async()=>{await new Promise(e=>setTimeout(e,2e3))}}]),await d({title:new w("Importing data"),task:async e=>{for(let i=1;i<=10;i++){await new Promise(t=>setTimeout(t,500));let s=a`Importing data ${n.italic(a`(${n.green(i.toString())} complete)`)}`;e(s)}return"completed"}})}export{P as a};
@@ -1 +1 @@
1
- import{o as R}from"./chunk-YTL45RXR.js";import{a as E}from"./chunk-Z6ZRS256.js";import{c as D}from"./chunk-XLMKHTJ5.js";import{s as A}from"./chunk-DVFVO6ZE.js";import{e as S}from"./chunk-7HECBXSP.js";import{r as v}from"./chunk-CZNUBAAG.js";import{a as k}from"./chunk-KFO2JNF5.js";import{U as g}from"./chunk-YKDRUAY3.js";import{A as C,y as b,z as P}from"./chunk-2KUM2RU4.js";import{Eb as M,ua as O,zb as j}from"./chunk-ZMOW2YZ4.js";import{b as e,j as T}from"./chunk-3PYDIBTX.js";import{c as u,e as h,g as y,p as w}from"./chunk-IWTNUJGY.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();import{resolve as x}from"node:path";var I=e.object({name:e.string(),category:e.string()}),L=e.object({key:e.string(),namespace:e.string(),name:e.string(),description:e.string().nullish(),type:I}),a={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",variant:"PRODUCTVARIANT",shop:"SHOP"},$=e.object(Object.fromEntries(Object.keys(a).map(t=>[t,e.array(L)]))),N=e.object({ownerType:e.string().describe("The upstream owner type, such as PRODUCT or COMPANY_LOCATION."),key:e.string(),namespace:e.string(),name:e.string(),description:e.string().nullable(),type:e.object({name:e.string().describe("The upstream metafield type, such as single_line_text_field."),category:e.string().describe("The upstream metafield category.")}).strict()}).strict(),F=S({name:"ThemeMetafieldsPullResult",schema:e.union([e.object({status:e.enum(["success","partial"]),changed:e.literal(!0),path:e.string().refine(y).describe("The absolute path of the native language-server metafields JSON artifact."),definitions:e.array(N).describe("All fetched definitions, flattened across owner types."),failedOwnerTypes:e.array(e.string()).describe("Upstream owner types whose fetch failed.")}).strict(),e.object({status:e.literal("skipped"),reason:e.literal("not-a-theme")}).strict()]),definitions:{MetafieldDefinition:N},project:t=>{let i=t;if(i.status==="failed")throw new Error("Failed downloads must use the fatal error envelope.");return i.status==="skipped"?i.reason==="cancelled"?{status:"cancelled"}:{status:"skipped",reason:i.reason}:{status:i.failedOwnerTypes.length?"partial":"success",changed:!0,path:x(i.path),definitions:Object.entries(i.definitions).flatMap(([r,o])=>o.map(n=>({ownerType:a[r],key:n.key,namespace:n.namespace,name:n.name,description:n.description??null,type:{name:n.type.name,category:n.type.category}}))),failedOwnerTypes:i.failedOwnerTypes}}});s();function _(t,i,r=!1){t.status==="downloaded"&&t.failedOwnerTypes.length>0&&M(`Failed to fetch metafield definitions for the following owner types: ${t.failedOwnerTypes.join(", ")}`),!r&&(i==="json"?(t.status==="failed"&&T({type:"diagnostic",level:"error",message:"Failed to fetch metafield definitions."}),j(F.encode(t))):t.status==="downloaded"?t.failedOwnerTypes.length>0?P({body:`Metafield definitions were partially downloaded. Failed owner types: ${t.failedOwnerTypes.join(", ")}.`}):b({body:"Metafield definitions have been successfully downloaded."}):t.status==="failed"&&C({body:"Failed to fetch metafield definitions.",nextSteps:["Check your network connection and try again.","Ensure you have the permission to fetch metafield definitions."],reference:[{link:{label:"Metafield Definition API",url:"https://shopify.dev/docs/api/admin-graphql/latest/queries/metafieldDefinition"}}]}))}s();async function me(t){let i=await J(t);_(i,"text",t.silent)}async function J(t){E({verbose:t.verbose,noColor:t.noColor});let i=v({store:t.store}),r=await g(i,t.password);return U(r,{path:h(t.path??w()),force:t.force??!1})}async function U(t,i){let{force:r,path:o}=i;if(!await R(o)){if(process.env.SHOPIFY_LANGUAGE_SERVER==="1")return{status:"skipped",reason:"not-a-theme"};if(!await D(r))return{status:"skipped",reason:"cancelled"}}let n=[],f=[];for(let[l,c]of Object.entries(a))n.push(A(c,t).catch(m=>(f.push(c),[])).then(m=>({[l]:m})));let p=(await Promise.all(n)).reduce((l,c)=>({...l,...c})),d=Object.values(a).filter(l=>f.includes(l));return d.length===Object.values(a).length?{status:"failed",failedOwnerTypes:d}:{status:"downloaded",path:await G(o,p),definitions:p,failedOwnerTypes:d}}async function G(t,i){let r=await k(t),o=u(r,"metafields.json"),n=JSON.stringify(i,null,2);return O(o,n),o}export{F as a,_ as b,me as c,J as d};
1
+ import{o as R}from"./chunk-OKRKVVTK.js";import{a as E}from"./chunk-UY44O4IZ.js";import{c as D}from"./chunk-TXMZPF2U.js";import{s as A}from"./chunk-RSNFNZ6F.js";import{e as S}from"./chunk-7HECBXSP.js";import{r as v}from"./chunk-VVHJ2AUF.js";import{a as k}from"./chunk-ZQNGYJKJ.js";import{U as g}from"./chunk-UORSJB4A.js";import{A as C,y as b,z as P}from"./chunk-7A4ZE5IS.js";import{Eb as M,ua as O,zb as j}from"./chunk-OIQ5NQ5I.js";import{b as e,j as T}from"./chunk-3PYDIBTX.js";import{c as u,e as h,g as y,p as w}from"./chunk-IWTNUJGY.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();import{resolve as x}from"node:path";var I=e.object({name:e.string(),category:e.string()}),L=e.object({key:e.string(),namespace:e.string(),name:e.string(),description:e.string().nullish(),type:I}),a={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",variant:"PRODUCTVARIANT",shop:"SHOP"},$=e.object(Object.fromEntries(Object.keys(a).map(t=>[t,e.array(L)]))),N=e.object({ownerType:e.string().describe("The upstream owner type, such as PRODUCT or COMPANY_LOCATION."),key:e.string(),namespace:e.string(),name:e.string(),description:e.string().nullable(),type:e.object({name:e.string().describe("The upstream metafield type, such as single_line_text_field."),category:e.string().describe("The upstream metafield category.")}).strict()}).strict(),F=S({name:"ThemeMetafieldsPullResult",schema:e.union([e.object({status:e.enum(["success","partial"]),changed:e.literal(!0),path:e.string().refine(y).describe("The absolute path of the native language-server metafields JSON artifact."),definitions:e.array(N).describe("All fetched definitions, flattened across owner types."),failedOwnerTypes:e.array(e.string()).describe("Upstream owner types whose fetch failed.")}).strict(),e.object({status:e.literal("skipped"),reason:e.literal("not-a-theme")}).strict()]),definitions:{MetafieldDefinition:N},project:t=>{let i=t;if(i.status==="failed")throw new Error("Failed downloads must use the fatal error envelope.");return i.status==="skipped"?i.reason==="cancelled"?{status:"cancelled"}:{status:"skipped",reason:i.reason}:{status:i.failedOwnerTypes.length?"partial":"success",changed:!0,path:x(i.path),definitions:Object.entries(i.definitions).flatMap(([r,o])=>o.map(n=>({ownerType:a[r],key:n.key,namespace:n.namespace,name:n.name,description:n.description??null,type:{name:n.type.name,category:n.type.category}}))),failedOwnerTypes:i.failedOwnerTypes}}});s();function _(t,i,r=!1){t.status==="downloaded"&&t.failedOwnerTypes.length>0&&M(`Failed to fetch metafield definitions for the following owner types: ${t.failedOwnerTypes.join(", ")}`),!r&&(i==="json"?(t.status==="failed"&&T({type:"diagnostic",level:"error",message:"Failed to fetch metafield definitions."}),j(F.encode(t))):t.status==="downloaded"?t.failedOwnerTypes.length>0?P({body:`Metafield definitions were partially downloaded. Failed owner types: ${t.failedOwnerTypes.join(", ")}.`}):b({body:"Metafield definitions have been successfully downloaded."}):t.status==="failed"&&C({body:"Failed to fetch metafield definitions.",nextSteps:["Check your network connection and try again.","Ensure you have the permission to fetch metafield definitions."],reference:[{link:{label:"Metafield Definition API",url:"https://shopify.dev/docs/api/admin-graphql/latest/queries/metafieldDefinition"}}]}))}s();async function me(t){let i=await J(t);_(i,"text",t.silent)}async function J(t){E({verbose:t.verbose,noColor:t.noColor});let i=v({store:t.store}),r=await g(i,t.password);return U(r,{path:h(t.path??w()),force:t.force??!1})}async function U(t,i){let{force:r,path:o}=i;if(!await R(o)){if(process.env.SHOPIFY_LANGUAGE_SERVER==="1")return{status:"skipped",reason:"not-a-theme"};if(!await D(r))return{status:"skipped",reason:"cancelled"}}let n=[],f=[];for(let[l,c]of Object.entries(a))n.push(A(c,t).catch(m=>(f.push(c),[])).then(m=>({[l]:m})));let p=(await Promise.all(n)).reduce((l,c)=>({...l,...c})),d=Object.values(a).filter(l=>f.includes(l));return d.length===Object.values(a).length?{status:"failed",failedOwnerTypes:d}:{status:"downloaded",path:await G(o,p),definitions:p,failedOwnerTypes:d}}async function G(t,i){let r=await k(t),o=u(r,"metafields.json"),n=JSON.stringify(i,null,2);return O(o,n),o}export{F as a,_ as b,me as c,J as d};
@@ -1 +1 @@
1
- import{a as j}from"./chunk-RSZAAN37.js";import{a as C}from"./chunk-ASKBYEO7.js";import{P as O,m as N}from"./chunk-HMPRWNGG.js";import{b as R,c as k}from"./chunk-DMOLPSXF.js";import{F as w}from"./chunk-2KUM2RU4.js";import{a as y}from"./chunk-LG3KEHGD.js";import{i as S}from"./chunk-TD6JBHUS.js";import{Bb as f,Kb as b,ba as v,tb as x,vb as E,zb as I}from"./chunk-ZMOW2YZ4.js";import{i as T}from"./chunk-B4OMIONW.js";import{b as o}from"./chunk-3PYDIBTX.js";import{i as L}from"./chunk-IWTNUJGY.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();var B=o.object({createdAt:o.string(),createdBy:o.string(),versionTag:o.string().nullable().optional(),status:o.string(),versionId:o.string(),message:o.string()}),u=y({name:"AppVersionsListResult",schema:o.array(B),definitions:{AppVersion:B}});r();async function M(i,t){let n=await i.appVersions(t);if(!n.app)throw new S(`Shopify did not return app information for API key ${t.apiKey}.`);return{appVersions:n.app.appVersions.nodes.map(e=>({createdAt:v(new Date(e.createdAt)),createdBy:e.createdBy?.displayName??"",versionTag:e.versionTag,status:e.status,versionId:e.versionId,message:e.message??""})),totalResults:n.app.appVersions.pageInfo.totalResults}}r();var $=12;async function D({app:i,appVersions:t,totalResults:n,remoteApp:e,organization:p,developerPlatformClient:m},d){if(d==="json"){I(u.encode(t));return}if(N({org:p.businessName,appName:e.title,configFile:L(i.configPath)}),t.length===0){f("No app versions found for this app");return}let g=t.map(({versionId:s,...a})=>({...a,status:a.status==="active"?T.green(`\u2605 ${a.status}`):a.status})),l=(process.stdout.columns??75)-$,c=l;g.forEach(s=>{let a=s.message.length+(s.versionTag?.length??0)+b(s.status).length+s.createdAt.length+s.createdBy.length;if(a>l){let J=a-s.message.length,A=Math.max(l-J,10);A<c&&(c=A)}}),g.forEach(s=>{s.message.length>c&&(s.message=`${s.message.slice(0,c-3)}...`)}),w({rows:g,columns:{versionTag:{header:"VERSION"},status:{header:"STATUS"},message:{header:"MESSAGE"},createdAt:{header:"DATE CREATED"},createdBy:{header:"CREATED BY"}}});let F=x.link(m.webUiName,[await m.appDeepLink(e),"versions"].join("/"));f(E`\nView all ${String(n)} app versions in the ${F}`)}var h=class i extends j{static summary="List deployed versions of your app.";static descriptionWithMarkdown="Lists the deployed app versions. An app version is a snapshot of your app extensions.";static jsonOutputSchema=u;static description=this.descriptionForHelp();static flags={...R,...C,...k};async run(){let{flags:t}=await this.parse(i),{app:n,remoteApp:e,developerPlatformClient:p,organization:m}=await O({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),d=await M(p,e);return await D({app:n,remoteApp:e,organization:m,developerPlatformClient:p,...d},t.json?"json":"text"),{app:n}}};export{h as a};
1
+ import{a as j}from"./chunk-R5COVIJM.js";import{a as C}from"./chunk-K4KKSBUW.js";import{P as O,m as N}from"./chunk-7FBOMPO5.js";import{b as R,c as k}from"./chunk-IKXUYCK7.js";import{F as w}from"./chunk-7A4ZE5IS.js";import{a as y}from"./chunk-LG3KEHGD.js";import{j as S}from"./chunk-FJOVMEPN.js";import{Bb as f,Kb as b,ba as v,tb as x,vb as E,zb as I}from"./chunk-OIQ5NQ5I.js";import{i as T}from"./chunk-B4OMIONW.js";import{b as o}from"./chunk-3PYDIBTX.js";import{i as L}from"./chunk-IWTNUJGY.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();var B=o.object({createdAt:o.string(),createdBy:o.string(),versionTag:o.string().nullable().optional(),status:o.string(),versionId:o.string(),message:o.string()}),u=y({name:"AppVersionsListResult",schema:o.array(B),definitions:{AppVersion:B}});r();async function M(i,t){let n=await i.appVersions(t);if(!n.app)throw new S(`Shopify did not return app information for API key ${t.apiKey}.`);return{appVersions:n.app.appVersions.nodes.map(e=>({createdAt:v(new Date(e.createdAt)),createdBy:e.createdBy?.displayName??"",versionTag:e.versionTag,status:e.status,versionId:e.versionId,message:e.message??""})),totalResults:n.app.appVersions.pageInfo.totalResults}}r();var $=12;async function D({app:i,appVersions:t,totalResults:n,remoteApp:e,organization:p,developerPlatformClient:m},d){if(d==="json"){I(u.encode(t));return}if(N({org:p.businessName,appName:e.title,configFile:L(i.configPath)}),t.length===0){f("No app versions found for this app");return}let g=t.map(({versionId:s,...a})=>({...a,status:a.status==="active"?T.green(`\u2605 ${a.status}`):a.status})),l=(process.stdout.columns??75)-$,c=l;g.forEach(s=>{let a=s.message.length+(s.versionTag?.length??0)+b(s.status).length+s.createdAt.length+s.createdBy.length;if(a>l){let J=a-s.message.length,A=Math.max(l-J,10);A<c&&(c=A)}}),g.forEach(s=>{s.message.length>c&&(s.message=`${s.message.slice(0,c-3)}...`)}),w({rows:g,columns:{versionTag:{header:"VERSION"},status:{header:"STATUS"},message:{header:"MESSAGE"},createdAt:{header:"DATE CREATED"},createdBy:{header:"CREATED BY"}}});let F=x.link(m.webUiName,[await m.appDeepLink(e),"versions"].join("/"));f(E`\nView all ${String(n)} app versions in the ${F}`)}var h=class i extends j{static summary="List deployed versions of your app.";static descriptionWithMarkdown="Lists the deployed app versions. An app version is a snapshot of your app extensions.";static jsonOutputSchema=u;static description=this.descriptionForHelp();static flags={...R,...C,...k};async run(){let{flags:t}=await this.parse(i),{app:n,remoteApp:e,developerPlatformClient:p,organization:m}=await O({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),d=await M(p,e);return await D({app:n,remoteApp:e,organization:m,developerPlatformClient:p,...d},t.json?"json":"text"),{app:n}}};export{h as a};
@@ -1 +1 @@
1
- import{u as r}from"./chunk-OJOF6IYG.js";import{b as a}from"./chunk-XEZPN5TR.js";import{d as t}from"./chunk-DMOLPSXF.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var e=class extends a{static baseFlags={...a.baseFlags,...t};environmentsFilename(){return r.appEnvironments}};export{e as a};
1
+ import{u as r}from"./chunk-HEB4YYM6.js";import{b as a}from"./chunk-PSREELSQ.js";import{d as t}from"./chunk-IKXUYCK7.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var e=class extends a{static baseFlags={...a.baseFlags,...t};environmentsFilename(){return r.appEnvironments}};export{e as a};