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,22 +0,0 @@
1
- import{a as Gt}from"./chunk-UOHNRH6E.js";import{a as Or}from"./chunk-SURFUFAZ.js";import{b as qr}from"./chunk-3PS52ZT4.js";import{a as Hr}from"./chunk-WBPP6PO7.js";import{a as Gr}from"./chunk-QCLE5REL.js";import{a as jr}from"./chunk-OXPEBT4I.js";import{a as _r}from"./chunk-DTKGI43P.js";import{a as Ir}from"./chunk-ONZULPQH.js";import{a as Cr,b as kr,c as Lr,d as $r}from"./chunk-OWQEFORZ.js";import{a as Nr}from"./chunk-6I7DT7QR.js";import{a as Mr}from"./chunk-3MZ7ELHS.js";import{a as Dr}from"./chunk-JC37YZ4I.js";import{a as Wr}from"./chunk-VE3IIC7H.js";import{a as Fr}from"./chunk-HSTZV6H7.js";import{a as wr}from"./chunk-OVJVFB5E.js";import{a as xr}from"./chunk-HGZ2HRPO.js";import{a as Er}from"./chunk-DVD7I2TX.js";import{a as ct,b as Sr,c as Ur}from"./chunk-JMSAHCBU.js";import{g as br}from"./chunk-YTL45RXR.js";import{a as at}from"./chunk-YNZLLZU2.js";import{d as st,p as it}from"./chunk-WPDJVUTY.js";import{a as Rr}from"./chunk-JVY6CCLE.js";import{a as Ar}from"./chunk-PJZZZNWR.js";import{a as Pr}from"./chunk-6BYHL3DS.js";import{b as yr,g as Le,j as nt,u as vr}from"./chunk-DVFVO6ZE.js";import{a as Uo,b as Ro,c as Ao,d as To}from"./chunk-JNSVKDBY.js";import{d as Tr}from"./chunk-FAVPTYIR.js";import{a as hr,b as gr,c as Eo,d as bo,e as ut,f as So,g as _o}from"./chunk-7NRHZG5Y.js";import{a as M,b as ot}from"./chunk-BPKQA2EO.js";import{a as lr,b as pr,e as Ce,g as ur,n as ke,o as V,t as H,v as dr,w as mr,x as fr}from"./chunk-FDSNRKGQ.js";import{a as cr}from"./chunk-EDWIWZWM.js";import{a as Io,b as Co,c as ko,d as dt,e as Lo,f as $o,g as Mo,h as Do,i as Fo,j as Oo,k as No,l as Wo,m as qo,n as Ho,o as Go,p as mt}from"./chunk-TXP6KFWO.js";import{a as ho,b as pt,d as ne,e as go}from"./chunk-Z5WFRYVQ.js";import{a as wo,b as yo,c as vo,d as Po,e as xo}from"./chunk-MGX7UG44.js";import{a as Kr}from"./chunk-RLOEI6VE.js";import{a as fo}from"./chunk-LXIWMYM4.js";import{a as mo}from"./chunk-RSZAAN37.js";import{a as Br}from"./chunk-ASKBYEO7.js";import{C as Me,D as oe,P as uo,b as lo,l as po}from"./chunk-HMPRWNGG.js";import{c as ao,d as $e,e as io,r as co}from"./chunk-JGLLABZR.js";import{A as Zr,B as eo,C as to,D as ro,Q as oo,V as no,Y as re,ga as so,j as Yr,k as G,l as zr,q as Qr,x as lt,y as Jr,z as Xr}from"./chunk-YYWSHRO2.js";import{I as Vr,t as te,y as pe}from"./chunk-OJOF6IYG.js";import{d as sr}from"./chunk-27JT4NA4.js";import{a as Q}from"./chunk-HVUMVDUG.js";import{B as be,Ca as qt,T as Nt,W as K,d as $t,fa as Z,ha as Wt,j as Mt,p as Dt,t as Ft,v as Ot,w as Ee}from"./chunk-YKDRUAY3.js";import{b as ar,c as ir,e as Ie}from"./chunk-DMOLPSXF.js";import{G as Ae,K as Zt,M as Te,R as _e,S as le,T as rt,U as tr,W as rr,a as Lt,d as Ze,e as L,f as F,h as Se,i as Ue,j as jt,k as Bt,l as Kt,m as Vt,n as Yt,o as zt,p as et,q as tt,r as Qt,s as Jt,u as Xt,x as Re,z as ce}from"./chunk-2KUM2RU4.js";import{a as Yn}from"./chunk-7UNQOKZW.js";import{e as xe,h as kt}from"./chunk-2KFYIYLI.js";import{b as Je,d as Ct}from"./chunk-QBRRFFMZ.js";import{a as St}from"./chunk-LG3KEHGD.js";import{d as Ht}from"./chunk-I3WRA2LH.js";import{i as _,k as er,l as ee}from"./chunk-TD6JBHUS.js";import{a as De}from"./chunk-WFPVT2IY.js";import{Bb as z,Da as Tt,Eb as y,Fb as T,Ma as ve,P as Qe,Sa as O,Va as Pe,_a as _t,bb as It,gb as D,la as $,ta as we,tb as b,va as ye,vb as U}from"./chunk-ZMOW2YZ4.js";import{b as h,d as Ye,k as Xe}from"./chunk-3PYDIBTX.js";import{e as or,g as nr}from"./chunk-DOLVBTCB.js";import{b as Vn}from"./chunk-AE3IQG7S.js";import{a as me}from"./chunk-JD5P5RAJ.js";import{c as A,e as ze,f as Ut,h as fe,i as he,j as ge,n as Rt,o as At}from"./chunk-IWTNUJGY.js";import{e as ie,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();p();p();p();var zn=300*1e3,Qn='The host theme could not be created to host your theme app extension. Please try again or use the "--theme" flag to use an existing theme as the host theme.';async function jo(t,e,r=Date.now()){for(;await Jn(t,e,r););}async function Jn(t,e,r){let o=await Le(t,e);if(!o||Xn(o,r))throw new _(Qn);return await le(3),o.processing}function Xn(t,e){return t.processing&&Date.now()-e>=zn}var Zn="https://codeload.github.com/Shopify/dawn/zip/refs/tags/v15.0.0",es="https://cdn.shopify.com/theme-store/uhrdefhlndzaoyrgylhto59sx2i7.jpg",ft=3,Fe=class extends Pr{context="App Ext. Host";devPreview;constructor(e,r={devPreview:!1}){super(e),this.themeId=Cr(e.storeFqdn),this.devPreview=r.devPreview}async findOrCreate(){let e=await this.fetch();return e??=this.devPreview?await this.createHostTheme():await this.create(),e}setTheme(e){kr(this.adminSession.storeFqdn,e)}removeTheme(){Lr(this.adminSession.storeFqdn)}async createHostTheme(){let e={role:yr,name:this.generateThemeName(this.context),src:Zn};for(let o=0;o<ft;o++){y(`Attempt ${o}/${ft}: Creating theme with name "${e.name}" and role "${e.role}"`);try{let n=await nt(e,this.adminSession);if(n)return this.setTheme(n.id.toString()),y(`Waiting for theme with id "${n.id}" to be processed`),await jo(n.id,this.adminSession),n;throw new Error}catch(n){if(n instanceof er||vr(n))throw n;y(`Failed to create theme with name "${e.name}" and role "${e.role}". Retrying...`)}}y(`Theme creation failed after ${ft} retries. Creating theme using fallback theme zip`);let r=await nt({...e,src:es},this.adminSession);if(!r)throw y("Theme creation failed. Exiting process."),new ee(`Could not create theme with name "${e.name}" and role "${e.role}"`);return r}};p();var ts={"theme:init":_r,"theme:check":wr,"theme:console":xr,"theme:delete":Er,"theme:dev":Ur,"theme:duplicate":Rr,"theme:info":Ar,"theme:language-server":Ir,"theme:list":$r,"theme:metafields:pull":Nr,"theme:open":Mr,"theme:package":Dr,"theme:profile":Fr,"theme:publish":Or,"theme:preview":Wr,"theme:pull":qr,"theme:push":Hr,"theme:rename":Gr,"theme:share":jr},ei=ts;async function Bo(t){let{remoteApp:e,localApp:r}=t,n=r.allExtensions.filter(S=>S.isThemeExtension);if(n.length===0)return;if(K()){T("The theme app extension preview isn't available with SHOPIFY_SERVICE_ACCOUNT_TOKEN. Dev runs without it.");return}let a=n[0].directory,i=t.themeExtensionPort??9293,[l,m]=await Promise.all([Nt(t.storeFqdn),ns(e)]),c=l.storeFqdn,[u,g]=await Promise.all([it(l),st(l)]),w=g?await at(t.storePassword,c,u):void 0,d=await os(l,t.theme),f=d.id.toString();return Re({headline:"The theme app extension development server is ready.",orderedNextSteps:!0,nextSteps:[[{link:{label:"Install your app in your development store",url:m}}],[{link:{label:"Setup your theme app extension in the host theme",url:`https://${c}/admin/themes/${f}/editor`}}],["Preview your theme app extension at",{link:{label:`http://127.0.0.1:${i}`,url:`http://127.0.0.1:${i}`}}]]}),{type:"theme-app-extensions",prefix:"theme-extensions",function:rs,options:{theme:d,adminSession:l,storefrontPassword:w,crawlerSignatureHeaders:u,themeExtensionDirectory:a,themeExtensionPort:i}}}var rs=async(t,{theme:e,adminSession:r,storefrontPassword:o,crawlerSignatureHeaders:n,themeExtensionDirectory:s,themeExtensionPort:a})=>{await(await br(e,{adminSession:r,storefrontPassword:o,crawlerSignatureHeaders:n,themeExtensionDirectory:s,themeExtensionPort:a})).start()};async function os(t,e){let r;if(e)y(`Fetching theme with provided id ${e}`),r=await Le(parseInt(e,10),t);else{let o=new Fe(t,{devPreview:!0});await Ae([{title:"Configuring host theme for theme app extension",task:async()=>{y("Finding or creating host theme for theme app extensions"),r=await o.findOrCreate()}}])}if(!r)throw new _("Could not find or create a host theme for theme app extensions");return r}async function ns(t){return t.developerPlatformClient?.clientName===co.AppManagement?`https://${await Ee()}/?organization_id=${t.organizationId}&no_redirect=true&redirect=/oauth/redirect_from_developer_dashboard?client_id%3D${t.apiKey}`:`https://${await Ot()}/${t.organizationId}/apps/${t.id}/test`}p();p();p();p();p();p();async function ss(t){let e=A(t.directory,"locales");return Pe([A(e,"*.json")])}async function Ko(t,e){let r=await ss(t);if(!r.length)return{localization:void 0,status:""};let o=e.currentLocalizationPayload??{defaultLocale:"en",translations:{},lastUpdated:0},n="success";try{await Promise.all(r.map(async s=>{let[a,...i]=s.split("/").pop().split(".");if(a)return i[0]==="default"&&(o.defaultLocale=a),as(a,s,o,t,e)})),o.lastUpdated=Date.now(),y(`Parsed locales for extension ${t.handle} at ${t.directory}`,e.stdout)}catch{n="error"}return{localization:o,status:n}}async function as(t,e,r,o,n){let s;try{s=await $(e),r.translations[t]=JSON.parse(s)}catch(a){let i=`Error parsing ${t} locale for ${o.handle} at ${e}: ${a.message}`;throw T(i,n.stderr),new Error(i)}}p();function Oe(t,e){switch(t){case"checkout_ui_extension":return{url:e.checkoutCartUrl};case"checkout_post_purchase":return{url:e.checkoutCartUrl};case"product_subscription":return{url:e.subscriptionProductUrl??""};default:return{url:""}}}var ht=".js.map";async function se(t,e,r,o){return D({outputPrefix:t.outputPrefix},async()=>{o?.clear();let n=t.getOutputPathForDirectory(e),s=`${r.url}/extensions/${t.devUUID}`,{localization:a,status:i}=await Ko(t,r),l=await zr(t),m=t.outputRelativePath?fe(n):n,c=await is(t,s,m,o),u=null;return"metafields"in t.configuration&&Array.isArray(t.configuration.metafields)&&t.configuration.metafields.length>0&&(u=Vo(t.configuration.metafields)),{assets:{main:ue(c)&&c[0]?.assets?.main?c[0].assets.main:{name:"main",url:`${s}/assets/${t.outputFileName}`,lastUpdated:await ve(n)??0}},supportedFeatures:{runsOffline:t.configuration.supported_features?.runs_offline??!1},capabilities:{blockProgress:t.configuration.capabilities?.block_progress??!1,networkAccess:t.configuration.capabilities?.network_access??!1,apiAccess:t.configuration.capabilities?.api_access??!1,collectBuyerConsent:{smsMarketing:t.configuration.capabilities?.collect_buyer_consent?.sms_marketing??!1,customerPrivacy:t.configuration.capabilities?.collect_buyer_consent?.customer_privacy??!1},iframe:{sources:t.configuration.capabilities?.iframe?.sources??[]}},development:{...r.currentDevelopmentPayload,resource:Oe(t.type,r),root:{url:s},hidden:r.currentDevelopmentPayload?.hidden??!1,localizationStatus:i,status:r.currentDevelopmentPayload?.status??"success",...r.currentDevelopmentPayload??{status:"success"}},extensionPoints:c,localization:a??null,metafields:u,type:t.type,externalType:t.externalType,uuid:t.devUUID,surface:t.surface,version:l?.version,title:t.name,handle:t.handle,name:t.name,description:t.configuration.description,apiVersion:t.configuration.api_version,approvalScopes:r.grantedScopes,settings:t.configuration.settings}})}async function is(t,e,r,o){let n=t.configuration,s=n.extension_points??n.targeting;if(t.type==="checkout_post_purchase"&&(s=[{target:"purchase.post.render"}]),ue(s)){let a=await cs(r);return Promise.all(s.map(async i=>{let{target:l,resource:m}=i,c="metafields"in i?Vo(i.metafields??[]):void 0,u={...i,...c?{metafields:c}:{},surface:oe(l),root:{url:`${e}/${l}`},resource:m||{url:""}},g=a?.[l];if(!g)return u;let d=await fs(g,{target:l,extensionPoint:i,url:e,extension:t,buildDirectory:r,resolver:o});return{...u,...d}}))}return s}async function cs(t){try{let e=A(t,"manifest.json"),r=await $(e);return JSON.parse(r)}catch(e){if(e instanceof SyntaxError)throw new Error(`Invalid manifest.json in ${t}: ${e.message}`);return null}}async function ls({target:t,extensionPoint:e,url:r,extension:o,resolver:n},s,a){let i=`${t}/${s}`,l=e[s];if(typeof l=="string"){let w=await Ne(s,i,typeof a=="string"?a:l,r,o,n,typeof a=="string"?l:void 0);return{assets:{[w.name]:w}}}let c=e.build_manifest?.assets?.[s];if(c?.filepath){let u=await Ne(s,i,c.filepath,r,o,n,c.module);return{assets:{[u.name]:u}}}return{}}async function ps({target:t,url:e,buildDirectory:r,resolver:o},n,s){if(s.length===0)return{};for(let i of s)o?.set(`${t}/${i}`,i);let a=await Promise.all(s.map(async i=>await ve(A(r,i))??0));return{assets:{[n]:{name:n,url:`${e}/assets/${t}/`,lastUpdated:Math.max(...a)}}}}async function us({target:t,extensionPoint:e,url:r,extension:o,resolver:n},s){return e.intents?{intents:await Promise.all(e.intents.map(async(i,l)=>{let m=i.schema,c=s[l]?.schema,u=typeof c=="string"?c:m,g=typeof c=="string"?m:void 0;return{...i,schema:await Ne("schema",`${t}/intents/${l}/schema`,u,r,o,n,g)}}))}:{}}async function ds({target:t,url:e,extension:r,resolver:o},n,s){let a=await Ne(n,`${t}/${n}`,s,e,r,o);return await ms(t,s,r,o),{assets:{[a.name]:a}}}async function ms(t,e,r,o){if(!o)return;let n=`${e}.map`;n.endsWith(ht)&&await O(A(r.directory,n))&&o.set(`${t}/${he(n)}`,n)}async function fs(t,e){return(await Promise.all(Object.keys(t).map(async o=>{let n=t[o];return hs(o,n)?us(e,n):gs(o,n)?ds(e,o,n):ws(o,n)?ps(e,o,n):ls(e,o,n)}))).reduce((o,n)=>({...o,...n,assets:{...o.assets,...n.assets}}),{})}function Vo(t){return t.map(e=>({namespace:e.namespace,key:e.key,...e.owner_type===void 0?{}:{ownerType:e.owner_type.replaceAll("_","")}}))}function ue(t){return Array.isArray(t)&&t.every(e=>typeof e=="object")}async function Ne(t,e,r,o,n,s,a){let i=`${e}${ge(r)}`;return s?.set(i,r),{name:t,url:`${o}/assets/${i}`,lastUpdated:await ve(A(n.directory,a??r))??0}}function hs(t,e){return t==="intents"&&Array.isArray(e)}function gs(t,e){return(t==="main"||t==="should_render")&&typeof e=="string"}function ws(t,e){return t==="assets"&&Array.isArray(e)&&e.every(r=>typeof r=="string")}import{EventEmitter as ys}from"events";var de;(function(t){t.Update="PayloadUpdatedEvent:UPDATE"})(de||(de={}));async function Yo(t,e,r){return{app:{title:t.appName,apiKey:t.apiKey,url:Eo(t.storeFqdn,t.apiKey),mobileUrl:So(t.storeFqdn,t.apiKey)},appId:t.id,version:t.manifestVersion,root:{url:new URL("/extensions",t.url).toString()},socket:{url:t.websocketURL},devConsole:{url:new URL("/extensions/dev-console",t.url).toString()},store:t.storeFqdn,extensions:await Promise.all(t.extensions.filter(n=>n.isPreviewable).map(n=>se(n,e,t,r&&gt(r,n.devUUID))))}}function gt(t,e){let r=t.get(e);return r||(r=new Map,t.set(e,r)),r}var We=class extends ys{options;rawPayload;assetResolvers;constructor(e,r,o=new Map){super(),this.rawPayload=e,this.options=r,this.assetResolvers=o}getAssetResolver(e){return this.assetResolvers.get(e)}getConnectedPayload(){let e=this.getRawPayload();return{app:e.app,appId:e.appId,store:e.store,extensions:e.extensions}}getRawPayloadFilteredByExtensionIds(e){return{...this.rawPayload,extensions:this.rawPayload.extensions.filter(r=>e.includes(r.uuid))}}getRawPayload(){return this.rawPayload}updateApp(e){this.rawPayload=Z(this.rawPayload,{app:e}),this.emitUpdate([])}updateExtensions(e){let r=this.rawPayload.extensions.map(o=>{let n=e.find(s=>s.uuid===o.uuid);if(n){if(ue(n.extensionPoints)&&ue(o.extensionPoints)){let s=n.extensionPoints.reduce((l,m)=>({...l,[m.target]:m}),{});o.extensionPoints=Z(o.extensionPoints,n.extensionPoints,l=>l.map(m=>{let c=s[m.target];return c?Z(m,c,(u,g)=>g):m}));let{extensionPoints:a,...i}=n;return Z(o,i)}return Z(o,n)}return o});this.rawPayload={...this.rawPayload,extensions:r},this.emitUpdate(e.map(o=>o.uuid))}async updateExtension(e,r,o,n){let s=this.rawPayload.extensions,a=s.findIndex(i=>i.uuid===e.devUUID);if(a===-1){y(U`Could not updateExtension() for extension with uuid: ${e.devUUID}`,r.stderr);return}s[a]=await se(e,o,{...this.options,currentDevelopmentPayload:n??{status:s[a]?.development.status},currentLocalizationPayload:s[a]?.localization},gt(this.assetResolvers,e.devUUID)),this.rawPayload.extensions=s,this.emitUpdate([e.devUUID])}deleteExtension(e){let r=this.rawPayload.extensions.findIndex(o=>o.uuid===e.devUUID);r!==-1&&(this.rawPayload.extensions.splice(r,1),this.assetResolvers.delete(e.devUUID),this.emitUpdate([e.devUUID]))}async addExtension(e,r){this.rawPayload.extensions.push(await se(e,r,this.options,gt(this.assetResolvers,e.devUUID))),this.emitUpdate([e.devUUID])}emitUpdate(e){this.emit(de.Update,e)}};p();p();var N;(function(t){t.Update="update",t.Dispatch="dispatch",t.Log="log"})(N||(N={}));var vs=h.discriminatedUnion("event",[h.object({event:h.literal(N.Update),data:h.object({app:h.object({apiKey:h.string()}).passthrough().optional(),extensions:h.array(h.object({uuid:h.string(),extensionPoints:h.union([h.array(h.string()),h.array(h.object({target:h.string()})),h.null()]).optional()})).optional()})}),h.object({event:h.literal(N.Dispatch),data:h.object({type:h.enum(["focus","unfocus"]),payload:h.array(h.object({uuid:h.string()})).optional()})}),h.object({event:h.literal(N.Log),data:h.object({type:h.string(),message:h.string(),extensionName:h.string()})})]);function zo(t,e){return(r,o,n)=>{r.url==="/extensions"&&(y("Upgrading HTTP request to a websocket connection",e.stdout),t.handleUpgrade(r,o,n,Ps(t,e)))}}function Ps(t,e){return r=>{y("Websocket connection successfully established",e.stdout);let o={event:"connected",data:e.payloadStore.getConnectedPayload(),version:e.manifestVersion};y(U`Sending connected payload: ${b.json(o)}`,e.stdout),r.send(JSON.stringify(o)),r.on("message",Us(t,e)),r.on("error",n=>{y(`Websocket connection error: ${n.message}`,e.stdout)})}}function xs(t){try{let e=JSON.parse(t);if(!Array.isArray(e))return t;let r=e.map(o=>typeof o=="object"&&o!==null?b.json(o).output():String(o)).join(" ");return U`${r}`.value}catch(e){if(e instanceof SyntaxError)return t;throw e}}var Es={debug:t=>b.gray(t),warn:t=>b.yellow(t),error:t=>b.errorText(t)};function bs({type:t,message:e}){let r=xs(e);switch(t){case"debug":case"warn":case"error":return U`${Es[t](t.toUpperCase())}: ${r}`.value;case"log":case"info":return r;default:return`${t.toUpperCase()}: ${r}`}}function Ss(t,e){D({outputPrefix:t.extensionName,stripAnsi:!1},()=>{e.stdout.write(bs(t))})}function Us(t,e){return r=>{let o;try{o=JSON.parse(r.toString())}catch(a){if(a instanceof SyntaxError){y(`Ignoring websocket message that is not valid JSON: ${a.message}`,e.stdout);return}throw a}if(!vs.safeParse(o).success){y("Ignoring websocket message with an invalid shape",e.stdout);return}let{event:n,data:s}=o;if(y(U`Received websocket message with event type ${n} and data:
2
- ${b.json(s)}
3
- `,e.stdout),n===N.Update){let a=e.payloadStore.getRawPayload().app.apiKey,i=s.app?.apiKey;if(s.app){if(a!==i)return;e.payloadStore.updateApp(s.app)}s.extensions&&e.payloadStore.updateExtensions(s.extensions)}else if(n===N.Dispatch){let a=Rs(o,e);Jo(t,a,e)}else n===N.Log&&Ss(s,e)}}function Qo(t,e){return r=>{let o={event:N.Update,version:e.manifestVersion,data:{...e.payloadStore.getRawPayloadFilteredByExtensionIds(r)}};y(U`Sending websocket update event to the websocket clients:
4
- ${b.json(o)}
5
- `,e.stdout),Jo(t,o,e)}}function Jo(t,e,r){y(U`Sending websocket with event type ${e.event} and data:
6
- ${b.json(e.data)}
7
- `,r.stdout);let o=JSON.stringify(e);t.clients.forEach(n=>n.send(o))}function Rs(t,e){let r=e.payloadStore.getRawPayload();return{...t,version:e.manifestVersion,data:{...t.data,extensions:[],store:r.store,app:r.app}}}var As=10;function Xo(t){let e=new Gt.default({noServer:!0,clientTracking:!0}),r=Ts(e);return t.httpServer.on("upgrade",zo(e,t)),t.payloadStore.on(de.Update,Qo(e,t)),{close:()=>{e.close(),clearInterval(r)}}}function Ts(t){return setInterval(()=>{t.clients.forEach(e=>{e.readyState<2&&e.ping()})},As*1e3)}p();p();p();function Zo(t,e){let{url:r}=Oe(t.type,e);if(t.surface==="checkout"&&r){let o=new URL(`https://${e.storeFqdn}/`);return o.pathname=r,o.searchParams.append("dev",`${e.url}/extensions`),o.toString()}else{let o=new URL(`https://${e.storeFqdn}/`);return o.pathname="admin/extensions-dev",o.searchParams.append("url",qe(t,e)),o.toString()}}function en(t,e,r){let o=oe(t),n=new URL(`https://${r.storeFqdn}/`);switch(o){case"checkout":if(!r.checkoutCartUrl)return;n.pathname=r.checkoutCartUrl,n.searchParams.append("dev",`${r.url}/extensions`);break;case"post_purchase":if(!r.checkoutCartUrl)return;if(n.pathname=r.checkoutCartUrl,n.searchParams.set("script_url",`${r.url}/extensions/${e.devUUID}/assets/${e.localIdentifier}.js`),n.searchParams.set("post_purchase_dev_api_key",r.apiKey),e.devUUID&&r.websocketURL&&(n.searchParams.set("uuid",e.devUUID),n.searchParams.set("socket_url",r.websocketURL)),"metafields"in e.configuration){let s={config:{metafields:e.configuration.metafields}};n.searchParams.set("config",JSON.stringify(s))}break;case"admin":n.pathname="admin/extensions-dev",n.searchParams.append("url",qe(e,r)),n.searchParams.append("target",t);break;case"customer-accounts":if(!r.storeId)return;n=_s(e,r,t);break;default:return}return n.toString()}function _s(t,e,r=""){let o=`${e.url}/extensions`,n=e.storeId,s="shopify.com",a=new URL(`https://${s}/${n}/account/extensions-development`);return a.searchParams.append("origin",o),a.searchParams.append("extensionId",t.devUUID),a.searchParams.append("source","CUSTOMER_ACCOUNT_EXTENSION"),a.searchParams.append("appId",e.id??""),r!==""&&a.searchParams.append("target",r),a}function qe(t,e){let r=new URL(e.url);return r.pathname=`/extensions/${t.devUUID}`,r.toString()}function W(t,e){pr(t,lr(e))}p();var wt=class extends ee{constructor(e){super(`Couldn't find template ${e.template} for extension surface ${e.extensionSurface}`)}};async function tn(t){let e=await Is(t),r=await $(e);return cr(r,t.data)}async function Is(t){let e=await Cs(),r=[];t.extensionSurface&&r.push(A(e,`${t.extensionSurface}/${t.template}.html.liquid`)),r.push(A(e,`${t.template}.html.liquid`));let o=await Pe(r);if(o.length===0)throw new wt(t);return o[0]}async function Cs(){return await _t("templates/ui-extensions/html",{type:"directory",cwd:At(import.meta.url)})}var rn=H(t=>{V(t,"Access-Control-Allow-Origin","*"),V(t,"Access-Control-Allow-Methods","GET, OPTIONS"),V(t,"Access-Control-Allow-Headers","Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, ngrok-skip-browser-warning")}),on=H(t=>{V(t,"Cache-Control","no-cache")}),yt=H(async t=>ke(t,"/extensions",307));async function ks(t,e){let{filePath:r}=e;if(!await O(r))return W(t,{statusCode:404,statusMessage:`Not Found: ${r}`});if(await Tt(r)&&(r+=r.endsWith("/")?"index.html":"/index.html",!await O(r)))return W(t,{statusCode:404,statusMessage:`Not Found: ${r}`});let o=await $(r,{}),n={".ico":"image/x-icon",".html":"text/html",".js":"text/javascript",".json":"application/json",".map":"application/json",".wasm":"application/wasm",".css":"text/css",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".wav":"audio/wav",".mp3":"audio/mpeg",".svg":"image/svg+xml",".pdf":"application/pdf",".doc":"application/msword"},s=ge(r),a=n[s]||"text/plain";return V(t,"Content-Type",a),o}function nn({getExtensions:t,payloadStore:e}){return H(async r=>{let{extensionId:o,assetPath:n=""}=Ce(r),s=t().find(g=>g.devUUID===o);if(!s)return W(r,{statusCode:404,statusMessage:`Extension with id ${o} not found`});let i=e.getAssetResolver(s.devUUID)?.get(n),l=i??n,m=l.endsWith(ht);if(m&&i===void 0)return W(r,{statusCode:404,statusMessage:"Not Found"});let c=ze(m?s.directory:Qr(s.outputPath)),u=ze(A(c,l));return Rt(c,u)?ks(r,{filePath:u}):W(r,{statusCode:404,statusMessage:"Not Found"})})}function vt({payloadStore:t}){return H(e=>(V(e,"content-type","application/json"),t.getRawPayload()))}function sn({devOptions:t}){return H(e=>{y(`UI extensions server received a ${e.method} request to URL ${e.path}`,t.stdout)})}function Pt({devOptions:t,getExtensions:e}){return H(async r=>{let{extensionId:o}=Ce(r),n=e().find(i=>i.devUUID===o);if(!n)return W(r,{statusCode:404,statusMessage:`Extension with id ${o} not found`});if(ur(r,"accept")?.startsWith("text/html")){if(n.type==="checkout_post_purchase")return tn({data:{url:qe(n,t)},template:"index",extensionSurface:"post_purchase"});{let i=Zo(n,t);return ke(r,i,307)}}let a=t.appWatcher.buildOutputPath;return V(r,"content-type","application/json"),{app:{apiKey:t.apiKey},version:t.manifestVersion,root:{url:new URL("/extensions",t.url).toString()},socket:{url:ae(t.url)},devConsole:{url:new URL("/extensions/dev-console",t.url).toString()},store:t.storeFqdn,extension:await se(n,a,t)}})}function an({devOptions:t,getExtensions:e}){return H(async r=>{let{extensionId:o,extensionPointTarget:n=""}=Ce(r),s=e().find(i=>i.devUUID===o);if(!s)return W(r,{statusCode:404,statusMessage:`Extension with id ${o} not found`});if(s.configuration.type!=="checkout_post_purchase"&&!s.hasExtensionPointTarget(n))return W(r,{statusCode:404,statusMessage:`Extension with id ${o} has not configured the "${n}" extension target`});let a=en(n,s,t);return a?ke(r,a,307):W(r,{statusCode:404,statusMessage:Ls(o,n,t)})})}function Ls(t,e,r){let o=`extension with id ${t} and extension target "${e}"`,n=oe(e);if((n==="checkout"||n==="post_purchase")&&!r.checkoutCartUrl)return`Can't preview ${o} without a cart. Restart dev with --checkout-cart-url, in the format "/cart/{productVariantID}:{productQuantity}"`;if(n==="customer-accounts"&&!r.storeId){let s=K()?", which dev can't look up with SHOPIFY_SERVICE_ACCOUNT_TOKEN":", which dev could not find";return`Can't preview ${o}: customer account previews need the store's ID${s}`}return`Redirect url can't be constructed for ${o}`}import{createServer as $s}from"http";function cn(t){let e=dr(),r=mr();e.use(sn(t)),e.use(rn),e.use(on),r.use("/extensions/dev-console",yt),r.use("/extensions/:extensionId",Pt(t)),r.use("/extensions/:extensionId/",Pt(t)),r.use("/extensions/:extensionId/:extensionPointTarget",an(t)),r.use("/extensions/:extensionId/assets/**:assetPath",nn(t)),r.use("/extensions",vt(t)),r.use("/extensions/",vt(t)),r.use("/",yt),e.use(r);let o=$s(fr(e));return o.listen(t.devOptions.port,"localhost"),o}async function ln(t){let e={...t,websocketURL:ae(t.url)},r=e.appWatcher.buildOutputPath,o=new Map,n=await Yo(e,r,o),s=new We(n,e,o),a=e.extensions.filter(u=>u.isPreviewable),i=()=>a;y("Setting up the UI extensions HTTP server...",e.stdout);let l=cn({devOptions:e,payloadStore:s,getExtensions:i});y("Setting up the UI extensions Websocket server...",e.stdout);let m=Xo({...e,httpServer:l,payloadStore:s});y("Setting up the UI extensions bundler and file watching...",e.stdout);let c=async({appWasReloaded:u,app:g,extensionEvents:w})=>{u&&(a=g.allExtensions.filter(d=>d.isPreviewable));for(let d of w){if(!d.extension.isPreviewable)continue;let f=d.buildResult?.status==="ok"?"success":"error",S=d.buildResult?.status==="error"?{message:d.buildResult.error,file:d.buildResult.file}:void 0;switch(d.type){case ne.Created:if(e.extensions.push(d.extension),!e.checkoutCartUrl&&K())d.extension.shouldFetchCartUrl()&&T(`${d.extension.localIdentifier} can't be previewed without a cart. Restart dev with --checkout-cart-url, in the format "/cart/{productVariantID}:{productQuantity}".`,e.stderr);else if(!e.checkoutCartUrl){let E=await Me(e.extensions,e.storeFqdn);e.checkoutCartUrl=E}await s.addExtension(d.extension,r);break;case ne.Updated:await s.updateExtension(d.extension,e,r,{status:f,error:S});break;case ne.Deleted:e.extensions=e.extensions.filter(E=>E.devUUID!==d.extension.devUUID),await s.deleteExtension(d.extension);break}}};e.appWatcher.onEvent(c).onStart(c),e.signal.addEventListener("abort",()=>{y("Closing the UI extensions dev server..."),m.close(),l.close()})}function ae(t){let e=new URL("/extensions",t);return e.protocol="wss:",e.toString()}var Ms="3",Ds=async({stderr:t,stdout:e,abortSignal:r},{apiKey:o,storeFqdn:n,storeId:s,subscriptionProductUrl:a,port:i,cartUrl:l,proxyUrl:m,appName:c,appDotEnvFile:u,appId:g,grantedScopes:w,allExtensions:d,appDirectory:f,appWatcher:S})=>{await ln({appName:c,appDotEnvFile:u,appDirectory:f,id:g,extensions:d,stdout:e,stderr:t,signal:r,url:m,port:i,storeFqdn:be(n),storeId:s,apiKey:o,grantedScopes:w,checkoutCartUrl:l,subscriptionProductUrl:a,manifestVersion:Ms,appWatcher:S})};async function pn({allExtensions:t,storeFqdn:e,checkoutCartUrl:r,...o}){let n=t.filter(a=>a.isPreviewable),s=await Me(n,e,r);return{prefix:"extensions",type:"previewable-extension",function:Ds,options:{pathPrefix:"/extensions",port:-1,storeFqdn:e,allExtensions:t,cartUrl:s,...o}}}p();p();function J(t){let e=t.find(o=>re(o,G.Frontend)),r=t.find(o=>re(o,G.Backend));return{frontendConfig:e,backendConfig:r}}p();async function un(t){let r={topic:"app/uninstalled",api_version:(await Uo(t.developerPlatformClient,t.organizationId))[1],address:t.address,delivery_method:To.LOCALHOST,shared_secret:t.sharedSecret},o=await Ro(t.developerPlatformClient,r,t.organizationId);t.stdout.write("Sending APP_UNINSTALLED webhook to app server"),await le(3);let n=await Fs(t,o);return t.stdout.write(n?"APP_UNINSTALLED webhook delivered":"APP_UNINSTALLED webhook delivery failed"),n}async function Fs(t,e){let r=0;for(;r<3;){try{return await Ao(t.address,e.samplePayload,JSON.stringify({...JSON.parse(e.headers),"X-Shopify-Shop-Domain":t.storeFqdn}))}catch(o){if(o instanceof Mt&&o.code==="ECONNREFUSED")r<3&&(t.stdout.write("App isn't responding yet, retrying in 5 seconds"),await le(5));else throw o}r++}return t.stdout.write("App hasn't started in time, giving up"),!1}var Os=async({stdout:t},e)=>{await un({stdout:t,developerPlatformClient:e.developerPlatformClient,address:`http://localhost:${e.deliveryPort}${e.webhooksPath}`,sharedSecret:e.apiSecret,storeFqdn:e.storeFqdn,organizationId:e.organizationId})};function dn({webs:t,remoteAppUpdated:e,backendPort:r,frontendPort:o,organizationId:n,...s}){let{backendConfig:a,frontendConfig:i}=J(t),l=t.map(({configuration:c})=>c.webhooks_path).find(c=>c)??"/api/webhooks";if(l&&e&&(i??a))return{type:"send-webhook",prefix:"webhooks",function:Os,options:{deliveryPort:a?r:o,webhooksPath:l,organizationId:n,...s}}}p();async function mn(t){return{type:"graphiql",prefix:"graphiql",options:t,function:Ns}}var Ns=async({stdout:t,abortSignal:e},r)=>{let o=_o({apiKey:r.apiKey,apiSecret:r.apiSecret,storeFqdn:r.storeFqdn}),n=gr({stdout:t,port:r.port,storeFqdn:r.storeFqdn,key:r.key,tokenProvider:o,appContext:{appName:r.appName,appUrl:r.appUrl,apiSecret:r.apiSecret}});e.addEventListener("abort",()=>{n.close(),n.closeAllConnections()})};p();async function hn({webs:t,proxyUrl:e,frontendPort:r,backendPort:o,apiKey:n,apiSecret:s,scopes:a}){let{frontendConfig:i}=J(t),l=i?.configuration.hmr_server?await M():void 0,m=void 0,c=t.map(async u=>{let g=await Ws({web:u,frontendPort:r,backendPort:o}),w=l&&u.configuration.roles.includes(G.Frontend)?{port:l,httpPaths:u.configuration.hmr_server.http_paths}:void 0;return{type:"web",prefix:u.configuration.name??["web",...u.configuration.roles].join("-"),function:qs,options:{port:g,portFromConfig:u.configuration.port,apiKey:n,apiSecret:s,hostname:e,backendPort:o,frontendServerPort:r,directory:u.directory,devCommand:u.configuration.commands.dev,preDevCommand:u.configuration.commands.predev,scopes:a,shopCustomDomain:m,hmrServerOptions:w,roles:u.configuration.roles}}});return Promise.all(c)}async function Ws({web:t,frontendPort:e,backendPort:r}){return re(t,G.Frontend)?e:re(t,G.Backend)?r:M()}async function qs({stdout:t,stderr:e,abortSignal:r},{port:o,apiKey:n,apiSecret:s,hostname:a,backendPort:i,frontendServerPort:l,directory:m,devCommand:c,preDevCommand:u,scopes:g,shopCustomDomain:w,hmrServerOptions:d}){let f=d?.port,S={SHOPIFY_API_KEY:n,SHOPIFY_API_SECRET:s,HOST:a,SCOPES:g,NODE_ENV:"development",...w&&{SHOP_CUSTOM_DOMAIN:w},BACKEND_PORT:`${i}`,FRONTEND_PORT:`${l}`,...f&&{HMR_SERVER_PORT:`${f}`},APP_URL:a,APP_ENV:"development",REMIX_DEV_ORIGIN:a},E={signal:r,directory:m,port:o,env:S,stdout:t,stderr:e};u&&(t.write(`Running pre-dev command: "${u}"`),await fn({...E,command:u,showOutput:or()})),await fn({...E,command:c,showOutput:!0})}async function fn({command:t,signal:e,directory:r,port:o,env:n,showOutput:s,stdout:a,stderr:i}){let l=t.split("&&").map(m=>m.trim())??[];for(let m of l){let[c,...u]=m.split(" ");c?.length!==0&&await _e(c,u,{cwd:r,stdout:s?a:void 0,stderr:i,signal:e,env:{...n,PORT:`${o}`,SERVER_PORT:`${o}`}})}}p();p();p();var He=class{stdout;constructor(e){this.stdout=e}async info(e){await this.log(e)}async warning(e){await this.log(U`${b.yellow(e)}`.value)}async success(e){await this.log(U`${b.green(e)}`.value)}async debug(e){y(e,this.stdout)}async error(e,r){let o=b.errorText("\u274C Error"),n=b.errorText(`\u2514 ${e}`);await this.log(U`${o}`.value,r),await this.log(U`${n}`.value,r)}async logUserErrors(e,r){if(typeof e=="string")await this.error(e);else if(e instanceof Error)await this.error(e.message);else{let o=e.map(n=>{let s=n.on?n.on[0]:void 0,a=r.find(i=>i.uid===s?.user_identifier);return{error:n.message,prefix:a?.handle??"app-preview"}});await this.logMultipleErrors(o)}}async logExtensionEvents(e){let r=e.extensionEvents.filter(n=>n.extension.isAppConfigExtension),o=e.extensionEvents.filter(n=>!n.extension.isAppConfigExtension);r.length&&await this.log("App config updated","app-config"),o.forEach(async n=>{let s=n.extension.handle,a=`Extension ${n.type}`;await this.log(a,s)})}async logExtensionUpdateMessages(e,r){if(!e||r.status==="remote-error"||r.status==="unknown-error")return;let o={status:r.status},n=e.extensionEvents??[],a=(await Promise.all(n.map(async l=>l.type===ne.Deleted?[]:(await l.extension.getDevSessionUpdateMessages(o))?.map(c=>({message:c,prefix:l.extension.handle}))??[]))).flat(),i=a.map((l,m)=>{let c=U`${b.gray(m===a.length-1?"\u2514 ":"\u2502 ")}${l.message}`.value;return this.log(c,l.prefix)});await Promise.all(i)}async logMultipleErrors(e){let r=b.errorText("\u274C Error");await this.log(U`${r}`.value,"app-preview");let o=e.map(n=>{let s=b.errorText(`\u2514 ${n.error}`);return this.log(U`${s}`.value,n.prefix)});await Promise.all(o)}async log(e,r){await D({outputPrefix:r??"app-preview",stripAnsi:!1},()=>{this.stdout.write(`${e}
8
- `)})}};p();var Ge=class{processBatch;queue=[];processingPromise=void 0;constructor(e){this.processBatch=e}enqueue(e){this.queue.push(e),this.processingPromise??=this.startProcessing()}async waitForCompletion(){if(this.processingPromise)return this.processingPromise}async startProcessing(){try{for(;this.queue.length>0;){let e=[...this.queue];this.queue=[],await this.processBatch(e)}}finally{this.processingPromise=void 0}}};var je=class t{static async start(e,r){let o=new t(e,r);return await o.start(),o}statusManager;logger;options;appWatcher;bundlePath;appEventsProcessor;failedEvents=[];currentSessionState=null;constructor(e,r){this.statusManager=e.devSessionStatusManager,this.logger=new He(r),this.options=e,this.appWatcher=e.appWatcher,this.bundlePath=e.appWatcher.buildOutputPath,this.appEventsProcessor=new Ge(o=>this.processEvents(o))}async start(){await this.logger.info(`Preparing dev preview on ${this.options.storeFqdn}`),this.statusManager.setMessage("LOADING"),this.appWatcher.onEvent(async e=>this.onEvent(e)).onStart(async e=>this.onStart(e)).onError(async e=>this.handleDevSessionResult({status:"unknown-error",error:e}))}async onEvent(e){await this.validateAppEvent(e)&&this.appEventsProcessor.enqueue(e)}async processEvents(e){let r=[...this.failedEvents,...e],o=this.consolidateAppEvents(r);if(this.failedEvents=[],!o)return;this.statusManager.setMessage("CHANGE_DETECTED"),this.updatePreviewURL(o),await this.logger.logExtensionEvents(o);let n=ho(),s=await this.bundleExtensionsAndUpload(o);await this.handleDevSessionResult(s,o),await this.logger.debug(`\u2705 Event handled [Network: ${pt(n)}ms - Total: ${pt(o.startTime)}ms]`)}consolidateAppEvents(e){if(e.length===0)return;if(e.length===1)return e[0];let r=e[0],o=e[e.length-1];if(!r||!o)return;let n=new Map;for(let a of e)for(let i of a.extensionEvents)n.set(i.extension.uid,i);return{app:o.app,path:o.path,extensionEvents:Array.from(n.values()),startTime:r.startTime,appWasReloaded:e.some(a=>a.appWasReloaded)}}async onStart(e){let r=this.parseBuildErrors(e);if(r.length)this.statusManager.setMessage("BUILD_ERROR",r.map(({prefix:o,error:n})=>`${o}: ${n}`)),await this.logger.logMultipleErrors(r),await setImmediate(()=>{let o=r.map(n=>n.prefix);throw new _(`Dev preview aborted, build errors detected in extensions: ${o}`)});else{let o=await this.bundleExtensionsAndUpload(e);await this.handleDevSessionResult(o,e)}}async validateAppEvent(e){if(!this.statusManager.status.isReady)return await this.logger.warning("Change detected, but dev preview is not ready yet."),!1;let r=this.parseBuildErrors(e);return r.length?(await this.logger.logMultipleErrors(r),this.statusManager.setMessage("BUILD_ERROR",r.map(({prefix:o,error:n})=>`${o}: ${n}`)),!1):e.extensionEvents.length===0?(this.statusManager.setMessage("READY"),!1):!0}parseBuildErrors(e){return e.extensionEvents.filter(o=>o.buildResult?.status==="error").map(o=>({error:o.buildResult?.status==="error"&&o.buildResult.error||"Build error. Please review your code and try again.",prefix:o.extension.handle}))}async handleDevSessionResult(e,r){if(e.status==="updated")await this.logger.success(`\u2705 Updated dev preview on ${this.options.storeFqdn}`),await this.logger.logExtensionUpdateMessages(r,e),await this.setUpdatedStatusMessage();else if(e.status==="created")this.statusManager.updateStatus({isReady:!0}),await this.logger.success("\u2705 Ready, watching for changes in your app "),await this.logger.logExtensionUpdateMessages(r,e),this.statusManager.setMessage("READY");else if(e.status==="remote-error"||e.status==="unknown-error"){let o=e.error instanceof Error?[e.error.message]:e.error.map(n=>n.message);await this.logger.logUserErrors(e.error,r?.app.allExtensions??[]),e.error instanceof Error&&e.error.cause==="validation-error"?this.statusManager.setMessage("VALIDATION_ERROR",o):(r&&this.failedEvents.push(r),this.statusManager.setMessage("REMOTE_ERROR",o))}!this.statusManager.status.isReady&&!nr()&&setImmediate(()=>{throw new _("Failed to start dev preview.")})}updatePreviewURL(e){let r=e.app.nonConfigExtensions.length>0;this.statusManager.updateStatus({previewURL:this.options.appPreviewURL,appEmbedded:e.app.configuration.embedded,hasExtensions:r})}async setUpdatedStatusMessage(){this.statusManager.setMessage("UPDATED"),setTimeout(async()=>{this.statusManager.status.statusMessage?.message==="Updated"&&this.statusManager.setMessage("READY")},2e3)}async bundleExtensionsAndUpload(e){try{let{manifest:r,inheritedModuleUids:o,assets:n}=await this.createManifest(e),s=await this.uploadAssetsIfNeeded(n,!this.statusManager.status.isReady),a=ae(this.options.url);if(this.statusManager.status.isReady){let i={shopFqdn:this.options.storeFqdn,appId:this.options.appId,assetsUrl:s,manifest:r,inheritedModuleUids:o,unsafeValidation:this.options.unsafeValidation??!1};return this.devSessionUpdateWithRetry(i)}else{let i={shopFqdn:this.options.storeFqdn,appId:this.options.appId,assetsUrl:s,websocketUrl:a,unsafeValidation:this.options.unsafeValidation??!1};return this.devSessionCreateWithRetry(i)}}catch(r){if(r.statusCode===401)throw new _("Auth session expired. Please run `shopify app dev` again.");if(r instanceof $t)throw r.response.status===401||r.response.status===403?new _("Auth session expired. Please run `shopify app dev` again."):(await this.logger.debug(JSON.stringify(r.response,null,2)),new _("Unknown error"));return r.code==="ETIMEDOUT"?{status:"unknown-error",error:new Error("Request timed out, please check your internet connection and try again.")}:{status:"unknown-error",error:r}}}async createManifest(e){let r=e.extensionEvents.filter(i=>i.type!=="deleted").map(i=>i.extension.uid);e.app.allExtensions.some(i=>i.type==="admin")&&!r.includes("admin")&&r.push("admin");let o=e.app.allExtensions.filter(i=>!r.includes(i.uid)).map(i=>i.uid),n=await e.app.manifest(void 0);await wo(n,this.bundlePath),this.statusManager.status.isReady&&(n.modules=n.modules.filter(i=>r.includes(i.uid)));let s=await It(this.bundlePath),a=n.modules.map(i=>i.assets).filter(i=>s.includes(i));return{manifest:n,inheritedModuleUids:o,assets:a}}async uploadAssetsIfNeeded(e,r){if(!e.length&&!r)return;let o=A(fe(this.bundlePath),`dev-bundle.${this.options.developerPlatformClient.bundleFormat}`),n=[...e.map(a=>`${a}/**`),...yo];r&&n.push("manifest.json"),await vo(this.bundlePath,o,n);let s=await this.getSignedURLWithRetry();return await Po(s,o),s}async getSignedURLWithRetry(){return xo(this.options.developerPlatformClient,{apiKey:this.options.appId,organizationId:this.options.organizationId,id:this.options.appId})}async devSessionUpdateWithRetry(e){let r=await this.options.developerPlatformClient.devSessionUpdate(e),o=r.devSessionUpdate?.userErrors??[],n=r.devSessionUpdate?.warnings??[],s=r.devSessionUpdate?.devSession;if(s&&this.currentSessionState){let a=ae(this.options.url),i=this.currentSessionState?.userId;if(s.websocketUrl!==a||s.user?.id!==i){let l=s.user?.email;await this.logger.error(`Another developer ${l?`(${l}) `:""}has taken ownership of this dev preview.`);let m=`Another user${l?` (${l})`:""} has taken ownership of this dev preview. Your preview is no longer active.`,c=["You can restart by running",{command:"shopify app dev"},"again."];throw new _(m,c)}this.currentSessionState={websocketUrl:s.websocketUrl,userId:s.user?.id??null,userEmail:s.user?.email??null}}return n.length>0&&await this.logWarnings(n),o.length?{status:"remote-error",error:o}:{status:"updated"}}async devSessionCreateWithRetry(e){let r=await this.options.developerPlatformClient.devSessionCreate(e),o=r.devSessionCreate?.userErrors??[],n=r.devSessionCreate?.warnings??[],s=r.devSessionCreate?.devSession;return s&&(this.currentSessionState={websocketUrl:s.websocketUrl,userId:s.user?.id??null,userEmail:s.user?.email??null}),n.length>0&&await this.logWarnings(n),o.length?{status:"remote-error",error:o}:{status:"created"}}async logWarnings(e){await Promise.all(e.map(r=>{let o=r.code==="SESSION_TAKEOVER"?`\u26A0\uFE0F ${r.message}`:r.message;return this.logger.warning(o)}))}};async function gn({app:t,apiKey:e,developerPlatformClient:r,...o}){return{type:"dev-session",prefix:"app-preview",function:Hs,options:{app:t,apiKey:e,developerPlatformClient:r,...o}}}var Hs=async({stdout:t},e)=>{await je.start(e,t)};p();p();p();var wn=async({appLog:t,appLogPayload:e,stdout:r,storeName:o,logsDir:n})=>{let s=Ct().substring(0,6),i=`${Gs(t.log_timestamp)}_${t.source_namespace}_${t.source}_${s}.json`,l=Go({appLog:t,appLogPayload:e,prettyPrint:!0,storeName:o}),m=A(n,i);try{return await ye(n),await we(m,l),{fullOutputPath:m,identifier:s}}catch(c){throw r.write(`Error while writing log to file: ${c}
9
- `),c}};function Gs(t){let e=new Date(t),r=e.getUTCFullYear(),o=(e.getUTCMonth()+1).toString().padStart(2,"0"),n=e.getUTCDate().toString().padStart(2,"0"),s=e.getUTCHours().toString().padStart(2,"0"),a=e.getUTCMinutes().toString().padStart(2,"0"),i=e.getUTCSeconds().toString().padStart(2,"0"),l=e.getUTCMilliseconds().toString().padStart(3,"0");return`${r}${o}${n}_${s}${a}${i}_${l}Z`}var Be=async({stdout:t,appLogsFetchInput:{jwtToken:e,cursor:r},developerPlatformClient:o,resubscribeCallback:n,storeName:s,organizationId:a,abortSignal:i,logsDir:l,consecutiveResubscribeFailures:m=0})=>{if(!i?.aborted)try{let c=e,u=ko,g=m,w=await o.appLogs({jwtToken:e,cursor:r},a),{errors:d,status:f}=w;if(f===200){g=0;let{app_logs:E}=w;for(let R of E){let x=JSON.parse(R.payload);await D({outputPrefix:R.source,stripAnsi:!1},async()=>{R.log_type===Mo?(js(R,x,t),x=new Io(Co(x))):R.log_type.startsWith(Do)?Bs(R,x,t):t.write(JSON.stringify(x));let C=await wn({appLog:R,appLogPayload:x,stdout:t,storeName:s,logsDir:l});t.write(U`${b.gray("\u2514 ")}${b.link("Open log file",`file://${C.fullOutputPath}`,`Log: ${C.fullOutputPath}`)} ${b.gray(`(${C.identifier})`)}\n`.value)})}}else{let E={errors:d.map(x=>({message:x,status:f}))},R=await Ho({response:E,onThrottle:x=>{T("Request throttled while polling app logs.",t),T(`Retrying in ${x/1e3} seconds.`,t)},onUnknownError:x=>{T("Error while polling app logs.",t),T(`Retrying in ${x/1e3} seconds.`,t)},onResubscribe:()=>n()});if(R.resubscribeResult==="failed"){if(g+=1,g>=Lo){T("App log streaming session has expired. Please restart your dev session.",t);return}}else R.resubscribeResult==="succeeded"&&(g=0);R.nextJwtToken&&(c=R.nextJwtToken),u=R.retryIntervalMs}let{cursor:S}=w;setTimeout(()=>{Be({stdout:t,appLogsFetchInput:{jwtToken:c,cursor:S??r},developerPlatformClient:o,resubscribeCallback:n,storeName:s,organizationId:a,abortSignal:i,logsDir:l,consecutiveResubscribeFailures:g}).catch(E=>{y(`Unexpected error during polling: ${E}}
10
- `)})},u)}catch(c){T("Error while polling app logs.",t),T(`Retrying in ${dt/1e3} seconds.`,t),y(`${c}}
11
- `),setTimeout(()=>{Be({stdout:t,appLogsFetchInput:{jwtToken:e,cursor:void 0},developerPlatformClient:o,resubscribeCallback:n,storeName:s,organizationId:a,abortSignal:i,logsDir:l}).catch(u=>{y(`Unexpected error during polling: ${u}}
12
- `)})},dt)}};function js(t,e,r){let o=(e.fuel_consumed/$o).toFixed(4);t.status==="success"?r.write(`Function export "${e.export}" executed successfully using ${o}M instructions.`):t.status==="failure"&&r.write(`\u274C Function export "${e.export}" failed to execute with error: ${e.error_type}`);let n=e.logs;n.length>0&&r.write(n.split(`
13
- `).filter(Boolean).map(s=>U`${b.gray("\u2502 ")}${s}`.value).join(`
14
- `))}function Bs(t,e,r){t.log_type===Fo?r.write("Function network access response retrieved from cache."):t.log_type===Oo?e.reason===Wo?r.write("Function network access request executing in background because there is no cached response."):e.reason===qo&&r.write("Function network access request executing in background because the cached response is about to expire."):t.log_type===No&&(t.status==="success"?r.write("Function network access request executed successfully."):t.status==="failure"&&r.write(`\u274C Function network access request failed to execute with error: ${e.error}.`))}function Ks(t){return t.allExtensions.some(e=>e.isFunctionExtension)}async function yn({developerPlatformClient:t,subscription:{shopIds:e,apiKey:r},storeName:o,organizationId:n,appWatcher:s,localApp:a}){return{type:"app-logs-subscribe",prefix:"app-logs",function:Vs,options:{developerPlatformClient:t,appLogsSubscribeVariables:{shopIds:e,apiKey:r},storeName:o,organizationId:n,appWatcher:s,localApp:a}}}var Vs=async({stdout:t,stderr:e,abortSignal:r},{developerPlatformClient:o,appLogsSubscribeVariables:n,storeName:s,organizationId:a,appWatcher:i,localApp:l})=>{async function m(c){let u=await mt(o,n,a,t),g=l.getLogsDir();await ye(g),await Be({stdout:t,appLogsFetchInput:{jwtToken:u},resubscribeCallback:()=>mt(o,n,a),developerPlatformClient:o,storeName:s,organizationId:a,abortSignal:c,logsDir:g})}try{let c=!1,u,g=async w=>{let d=Ks(w.app);if(d&&!c){y("Function extensions detected, starting logs polling"),c=!0,u=new AbortController;try{await m(u.signal)}catch(f){y(`Failed to start function logs: ${f}`,e)}}else!d&&c&&(y("No function extensions detected, stopping logs polling"),c=!1,u?.abort(),u=void 0)};i.onStart(g).onEvent(g)}catch{}};p();async function vn(t){return{type:"app-watcher",prefix:"app-preview",options:t,function:Ys}}var Ys=async({stdout:t,stderr:e,abortSignal:r},o)=>{let{appWatcher:n}=o;await n.start({stdout:t,stderr:e,signal:r})};p();import{EventEmitter as zs}from"events";var Qs={BUILD_ERROR:{message:"Build error. Please review your code and try again",type:"error"},READY:{message:"Ready, watching for changes in your app",type:"success"},LOADING:{message:"Preparing dev preview",type:"loading"},UPDATED:{message:"Updated",type:"success"},VALIDATION_ERROR:{message:"Validation error in your app configuration",type:"error"},REMOTE_ERROR:{message:"Error updating dev preview",type:"error"},CHANGE_DETECTED:{message:"Change detected, updating dev preview",type:"loading"}},Ke=class extends zs{currentStatus={isReady:!1,previewURL:void 0,graphiqlURL:void 0,statusMessage:void 0};constructor(e){super(),e&&(this.currentStatus=e)}updateStatus(e){let r={...this.currentStatus,...e};Wt(this.currentStatus,r)||(this.currentStatus=r,this.emit("dev-session-update",r))}setMessage(e,r){let o=Qs[e],n=o.type==="success"?[]:r;this.updateStatus({statusMessage:o,...n?{errors:n}:{}})}get status(){return this.currentStatus}reset(){this.currentStatus={isReady:!1,previewURL:void 0,graphiqlURL:void 0,statusMessage:void 0}}};p();import*as Pn from"http";import*as xn from"https";function En(t){return"errors"in t&&Array.isArray(t.errors)}async function bn(t,e,r,o){let s=(await import("./http-proxy-node16-NZZ674YW.js")).default.createProxyServer(),a=Xs(t,s,o),i=r?xn.createServer(r,a):Pn.createServer(a);return i.on("upgrade",Js(t,s,o)),e.addEventListener("abort",()=>{y("Closing reverse HTTP proxy"),i.close()}),{server:i}}function Js(t,e,r){return function(o,n,s){let a=Sn(t,o,!0);if(a)return e.ws(o,n,s,{target:a},i=>{D({outputPrefix:"proxy",stripAnsi:!1},()=>{let m=(En(i)?i.errors[i.errors.length-1]:void 0)??i;T(`Error forwarding websocket request: ${m.message}`,r),T(`\u2514 Unreachable target "${a}" for path: "${o.url}"`,r)})});n.destroy()}}function Xs(t,e,r){return function(o,n){let s=Sn(t,o);if(s)return o.method==="OPTIONS"?(n.writeHead(204,{"Access-Control-Allow-Origin":o.headers.origin??"*","Access-Control-Allow-Methods":o.headers["access-control-request-method"]??"GET, POST, PUT, DELETE, PATCH, OPTIONS","Access-Control-Allow-Headers":o.headers["access-control-request-headers"]??"Content-Type, Authorization","Access-Control-Max-Age":"86400"}),n.end()):e.web(o,n,{target:s},a=>{D({outputPrefix:"proxy",stripAnsi:!1},()=>{let l=(En(a)?a.errors[a.errors.length-1]:void 0)??a;T(`Error forwarding web request: ${l.message}`,r),T(`\u2514 Unreachable target "${s}" for path: "${o.url}"`,r)})});y(U`
15
- Reverse HTTP proxy error - Invalid path: ${o.url??""}
16
- These are the allowed paths:
17
- ${b.json(JSON.stringify(t))}
18
- `),n.statusCode=500,n.end(`Invalid path ${o.url}`)}}function Sn(t,e,r=!1){let o=e.url??"/";for(let n in t)if(o.startsWith(n))return t[n];return r&&t.websocket?t.websocket:t.default}function Zs(t){t.allExtensions.some(e=>e.isFunctionExtension)&&T("Function logs aren't streamed, because dev doesn't know the store's ID.")}async function Un({localApp:t,remoteAppUpdated:e,developerPlatformClient:r,remoteApp:o,storeFqdn:n,storeId:s,commandOptions:a,network:i,graphiqlPort:l,graphiqlKey:m,apiSecret:c}){let u=o.apiKey,g=xe(),w=!me(g[te.disableGraphiQLExplorer]),d=await no(t),f=c??(d.webs.length>0?await $e(o):void 0),S=w&&f!==void 0,E=new go(d,i.proxyUrl),R=await Ee(),x=bo(n,u,R),C=x,j=f===void 0?void 0:hr(m,f,n),B=S&&j?`http://localhost:${l}/graphiql?key=${encodeURIComponent(j)}`:void 0,Y=d.configuration.embedded,P=d.nonConfigExtensions.length>0,q=new Ke({isReady:!1,previewURL:C,graphiqlURL:B,appEmbedded:Y,hasExtensions:P}),Ve=[...f===void 0?[]:await hn({webs:d.webs,proxyUrl:i.proxyUrl,frontendPort:i.frontendPort,backendPort:i.backendPort,apiKey:u,apiSecret:f,scopes:Yr(d.configuration)}),S&&f!==void 0?await mn({appName:o.title,appUrl:x,port:l,apiKey:u,apiSecret:f,key:j,storeFqdn:n}):void 0,await pn({allExtensions:d.realExtensions,storeFqdn:n,storeId:s,apiKey:u,subscriptionProductUrl:a.subscriptionProductUrl,checkoutCartUrl:a.checkoutCartUrl,proxyUrl:i.proxyUrl,appName:d.name,appDotEnvFile:d.dotenv,grantedScopes:o.grantedScopes,appId:o.id,appDirectory:d.directory,appWatcher:E}),await gn({app:d,apiKey:u,developerPlatformClient:r,url:i.proxyUrl,appId:o.id,organizationId:o.organizationId,storeFqdn:n,appWatcher:E,appPreviewURL:x,devSessionStatusManager:q,unsafeValidation:a.unsafeValidation}),await Bo({remoteApp:o,localApp:d,storeFqdn:n,theme:a.theme,themeExtensionPort:a.themeExtensionPort,storePassword:a.storePassword}),f===void 0?void 0:dn({webs:d.webs,backendPort:i.backendPort,frontendPort:i.frontendPort,organizationId:o.organizationId,developerPlatformClient:r,storeFqdn:n,apiSecret:f,remoteAppUpdated:e}),s===void 0?Zs(d):await yn({developerPlatformClient:r,subscription:{shopIds:[Number(s)],apiKey:u},storeName:n,organizationId:o.organizationId,localApp:t,appWatcher:E}),await vn({appWatcher:E})].filter(ea);return{processes:await ta(Ve,i.proxyPort,i.reverseProxyCert),previewUrl:C,graphiqlUrl:B,devSessionStatusManager:q}}var ea=t=>t!==void 0&&t!==!1;async function ta(t,e,r){let o=await Promise.all(t.map(async a=>{let i={};if(a.type==="web"&&a.options.roles.includes(G.Frontend)){let l=a.options.portFromConfig??a.options.port;i.default=`http://localhost:${l}`;let m=a.options.hmrServerOptions;m&&(i.websocket=`http://localhost:${m.port}`,m.httpPaths.forEach(c=>i[c]=`http://localhost:${m.port}`)),a.options.port=l}else if(a.type==="previewable-extension"){let l=await M();i[a.options.pathPrefix]=`http://localhost:${l}`,a.options.port=l}return{process:a,rules:i}})),n=o.map(({process:a})=>a),s=o.map(({rules:a})=>a).reduce((a,i)=>({...a,...i}),{});return Object.keys(s).length>0&&n.push({type:"proxy-server",prefix:"proxy",function:ra,options:{port:e,rules:s,localhostCert:r}}),n}var ra=async({abortSignal:t,stdout:e},{port:r,rules:o,localhostCert:n})=>{let{server:s}=await bn(o,t,n,e);z(`Proxy server started on port ${r} ${n?`with certificate ${n.certPath}`:""}`,e),await s.listen(r,"localhost")};p();async function Rn({remoteApp:t,hasWebs:e,graphiqlEnabled:r}){if(e)return $e(t);if(!r)return;let o=await ao(t);return o||T(`GraphiQL isn't available because the App Management API didn't return the app's client secret for your credentials. ${io()}`),o}p();p();p();var I=ie(Ze(),1);var An=.9,Tn=({tabs:t,initialActiveTab:e})=>{let{stdout:r}=jt(),{isRawModeSupported:o}=Se(),[n,s]=(0,I.useState)(e),[a,i]=(0,I.useState)(Math.floor(r.columns*An)),[l,m]=(0,I.useState)(!0),c=(0,I.useRef)(null);if(!n)throw new Error("No tabs provided");Ue((d,f)=>{(async()=>{if(f?.leftArrow||f?.rightArrow||f?.tab){let x=Object.entries(t).filter(([P,q])=>q.content),C=x.findIndex(([P])=>P===n);if(C===-1)return;let j=f?.leftArrow?-1:1,B=(C+j+x.length)%x.length,Y=x[B];Y&&s(Y[0])}let E=t[d];if(E){E.action?await E.action():s(d);return}let R=t[n];if(R?.shortcuts){let x=R.shortcuts.find(C=>C.key===d);x&&(!x.condition||x.condition())&&await x.action()}})()},{isActive:!!o}),(0,I.useLayoutEffect)(()=>{let d=()=>{if(i(Math.floor(r.columns*An)),!c.current)return;let f=Bt(c.current);m(f.width<r.columns)};return r.on("resize",d),()=>{r.off("resize",d)}},[r]);let u=Object.entries(t).map(([d,f])=>({...f,inputKey:d,header:` (${d}) ${f.label} `})),g=u.filter(d=>!d.action),w=u.filter(d=>d.action);return I.default.createElement(I.default.Fragment,null,I.default.createElement(L,{paddingTop:0,width:a,flexDirection:"row",flexGrow:1,borderStyle:"single",borderBottom:!1,borderLeft:!1,borderRight:!1,borderTop:!0},I.default.createElement(L,{ref:c,flexDirection:"row",flexWrap:"nowrap",flexShrink:0,marginRight:3},I.default.createElement(F,{wrap:"truncate-end"},"\u2502",g.map(d=>I.default.createElement(I.default.Fragment,{key:d.inputKey},I.default.createElement(F,{bold:n===d.inputKey,inverse:n===d.inputKey,wrap:"truncate"},d.header),"\u2502")))),l&&I.default.createElement(L,{flexGrow:1,justifyContent:"flex-end"},w.map((d,f)=>I.default.createElement(F,{wrap:"truncate",key:d.inputKey},"(",d.inputKey,") ",d.label,f<w.length-1&&" \u2502 ")))),I.default.createElement(L,{flexDirection:"column",marginLeft:1,marginRight:1,marginTop:1},t[n]?.content))};var v=ie(Ze(),1);var oa=({message:t,type:e})=>e==="loading"?v.default.createElement(Xt,{title:t}):v.default.createElement(F,null,e==="success"?"\u2705":"\u274C"," ",t),_n=({abortController:t,processes:e,devSessionStatusManager:r,shopFqdn:o,appURL:n,appName:s,organizationName:a,configPath:i,localURL:l,onAbort:m})=>{let{isRawModeSupported:c}=Se(),[u,g]=(0,v.useState)(void 0),[w,d]=(0,v.useState)(void 0),[f,S]=(0,v.useState)(r.status),[E,R]=(0,v.useState)(!1),{isAborted:x}=Jt(t.signal,async P=>{P&&d(typeof P=="string"?P:P.message),r.status.isReady?R(!0):(g("Shutting down dev ..."),await m()),De()}),C=(0,v.useMemo)(()=>e.map(P=>({...P,action:async(q,Ve,bt)=>{try{return await P.action(q,Ve,bt)}catch(Kn){t.abort(Kn)}}})),[e,t]);(0,v.useEffect)(()=>(r.on("dev-session-update",S),()=>{r.off("dev-session-update",S)}),[]),Ue((P,q)=>{Vt(P,q,()=>t.abort())},{isActive:!!c});let j=[{key:"p",shortcutLabel:"Open app preview",linkLabel:"Preview",url:f.previewURL,condition:()=>!!(f.isReady&&f.previewURL),action:async()=>{await Q.addPublicMetadata(()=>({cmd_dev_preview_url_opened:!0})),f.previewURL&&await Te(f.previewURL)}},{key:"c",shortcutLabel:"Open Dev Console for extension previews",linkLabel:"Dev Console",url:ut(o),condition:()=>!!(f.isReady&&f.appEmbedded===!1&&f.hasExtensions),action:async()=>{await Q.addPublicMetadata(()=>({cmd_dev_preview_url_opened:!0})),await Te(ut(o))}},{key:"g",shortcutLabel:"Open GraphiQL (Admin API)",linkLabel:"GraphiQL",url:f.graphiqlURL,condition:()=>!!(f.isReady&&f.graphiqlURL),action:async()=>{await Q.addPublicMetadata(()=>({cmd_dev_graphiql_opened:!0})),f.graphiqlURL&&await Te(f.graphiqlURL)}}],B=j.filter(P=>P.condition?.()??!0),Y={d:{label:"Dev status",shortcuts:j,content:v.default.createElement(v.default.Fragment,null,f.statusMessage&&v.default.createElement(oa,{message:f.statusMessage.message,type:f.statusMessage.type}),c&&B.length>0&&v.default.createElement(L,{marginTop:1,flexDirection:"column"},B.map(P=>v.default.createElement(F,{key:P.key},Yt.pointerSmall," ",v.default.createElement(F,{bold:!0},"(",P.key,")")," ",rt()&&P.url?v.default.createElement(et,{url:P.url,label:P.shortcutLabel}):P.shortcutLabel))),v.default.createElement(L,{marginTop:c?1:0,flexDirection:"column"},u?v.default.createElement(F,null,u):v.default.createElement(v.default.Fragment,null,f.isReady&&!(c&&rt())&&v.default.createElement(v.default.Fragment,null,B.filter(P=>P.url).map(P=>v.default.createElement(F,{key:P.key},P.linkLabel," URL: ",v.default.createElement(et,{url:P.url})))))))},a:{label:"App info",content:v.default.createElement(L,{flexDirection:"column"},v.default.createElement(tt,{tabularData:[["App:",s??""],["App URL:",n??""],["Local URL:",n?"":l??""],["Config:",i?.split("/").pop()??""],["Org:",a??""]].filter(([,P])=>P)}))},s:{label:"Store info",content:v.default.createElement(L,{flexDirection:"column"},v.default.createElement(tt,{tabularData:[["Dev store:",{link:{url:`https://${o}`}}],["Dev store admin:",{link:{url:`https://${o}/admin`}}],["Org:",a??""]].filter(([,P])=>P)}))},q:{label:"Quit",action:async()=>{t.abort()}}};return v.default.createElement(v.default.Fragment,null,v.default.createElement(zt,{processes:C,prefixColumnSize:Vr,abortSignal:t.signal,keepRunningAfterProcessesResolve:!0,useAlternativeColorPalette:!0}),E&&v.default.createElement(L,{marginTop:1,flexDirection:"column"},v.default.createElement(Qt,{type:"info",headline:`A preview of your development changes is still available on ${o}.`,body:["Run",{command:"shopify app dev clean"},"to restore the latest released version of your app."],link:{label:"Learn more about dev previews",url:"https://shopify.dev/beta/developer-dashboard/shopify-app-dev"}})),x?null:v.default.createElement(L,{paddingTop:1,flexDirection:"column",flexGrow:1},c?v.default.createElement(Tn,{tabs:Y,initialActiveTab:"d"}):v.default.createElement(L,{marginY:1,paddingTop:0,flexDirection:"column",flexGrow:1,borderStyle:"single",borderBottom:!1,borderLeft:!1,borderRight:!1,borderTop:!0},Y.d?.content)),w?v.default.createElement(L,{marginTop:1,flexDirection:"column"},v.default.createElement(F,{color:"red"},w)):null)};var Cn=ie(Ze(),1);import{Writable as kn}from"stream";async function Ln({processes:t,previewUrl:e,app:r,abortController:o,graphiqlUrl:n,shopFqdn:s,devSessionStatusManager:a,appURL:i,appName:l,organizationName:m,configPath:c,localURL:u}){let g=()=>o.abort();process.on("shopify:signal",g);try{if(Xe()!=="json"&&tr())return await Kt(Cn.default.createElement(_n,{processes:t,abortController:o,devSessionStatusManager:a,shopFqdn:s,appURL:i,appName:l,organizationName:m,configPath:c,localURL:u,onAbort:async()=>{await r.developerPlatformClient.devSessionDelete({appId:r.id,shopFqdn:s})}}),{exitOnCtrlC:!1});await na({processes:t,previewUrl:e,graphiqlUrl:n,abortController:o}),De()}finally{process.removeListener("shopify:signal",g)}}async function na({processes:t,previewUrl:e,graphiqlUrl:r,abortController:o}){let n=Xe()==="json";n||(process.stdout.write(`
19
- Preview URL: ${e}
20
- `),r&&process.stdout.write(`GraphiQL URL (Admin API): ${r}
21
- `));let{signal:s}=o,a=()=>o.abort();process.once("SIGINT",a),process.once("SIGTERM",a);let i=()=>{},l=new Promise(c=>{i=c,s.addEventListener("abort",i,{once:!0}),s.aborted&&c()}),m=t.map(async c=>{let u=new kn({write:(g,w,d)=>d()});return c.action(n?u:In(process.stdout),n?u:In(process.stderr),s)});try{await Promise.all([...m,l])}catch(c){if(!s.aborted)throw c}finally{o.abort(),await Promise.allSettled(m),s.removeEventListener("abort",i),process.removeListener("SIGINT",a),process.removeListener("SIGTERM",a)}}function In(t){return new kn({decodeStrings:!1,write(e,r,o){let n=typeof e=="string"?Buffer.from(e,r):e,s=typeof e=="string"&&n.length>0&&n[n.length-1]!==10;t.write(s?Buffer.concat([n,Buffer.from(`
22
- `)]):n,o)}})}p();function $n(t){if(!t.length)return;let e=t.filter(n=>n.requested!==n.actual);if(e.length===0)return;if(e.length===1&&e[0]){let n=e[0];ce({headline:[`A random port will be used for ${n.for} because ${n?.requested} is not available.`],body:["If you want to use a specific port, you can choose a different one by setting the ",{command:n?.flagToRemedy}," flag."]});return}let r=Qe(e.map(n=>n.for)).join(" "),o=Qe(e.map(n=>({command:n.flagToRemedy})));ce({headline:[`Random ports will be used for ${r} because the requested ports are not available.`],body:["If you want to use specific ports, you can choose different ports using the",...o,"flags."]})}p();async function Mn(t,e){return e?e.includes("localhost")?"localhost":(await Ft(t)).plugins.find(o=>e?.includes(o))??"custom":void 0}p();var Dn=ie(Yn(),1);var X="v1.4.4",Fn="FiloSottile/mkcert",xt=b.genericShellCommand("mkcert");async function sa(t,e,r,o){let n=e[te.mkcertBinaryPath];if(n)return n;let a=A(t,r==="win32"?"mkcert.exe":"mkcert");if(await O(a))return a;let i=await(0,Dn.default)("mkcert",{nothrow:!0});return i?(y(U`Found ${xt} at ${b.path(i)}`),i):(await aa(a,r,o),a)}async function aa(t,e,r){let o;switch(e){case"darwin":o=r==="arm64"?`mkcert-${X}-darwin-arm64`:`mkcert-${X}-darwin-amd64`;break;case"linux":o=r==="arm64"?`mkcert-${X}-linux-arm64`:`mkcert-${X}-linux-amd64`;break;case"win32":o=`mkcert-${X}-windows-amd64.exe`;break;default:throw new ee(`Unsupported platform: ${e}`)}await Tr(Fn,X,o,t),y(U`${xt} saved to ${b.path(t)}`)}async function ia(t){let e=A(t,"mkcert-LICENSE");if(await O(e))return;let r=`https://raw.githubusercontent.com/${Fn}/refs/tags/${X}/LICENSE`,o={headline:"Failed to download mkcert license.",body:["We tried to download the license for mkcert, but the request failed. You can ",{link:{url:r,label:"view the license here"}}]},n;try{if(n=await Dt(r),!n.ok)return o}catch{return o}let s=await n.text();await we(e,s)}async function On({appDirectory:t,forceInstall:e,env:r=process.env,platform:o=process.platform,arch:n=process.arch}){let s=A(".shopify","localhost-key.pem"),a=A(".shopify","localhost.pem"),i=A(t,s),l=A(t,a);if(await O(i)&&await O(l))return{keyContent:await $(i),certContent:await $(l),certPath:a};if(!(e??await so()))throw new _(`Localhost certificate and key are required at ${a} and ${s}`);let c="",u;return await Ae([{title:"Finding or downloading mkcert binary",task:async()=>{let w=A(t,".shopify");c=await sa(w,r,o,n),u=await ia(w),y(U`${xt} found at: ${b.path(c)}`)}}]),u&&Re(u),z(U`Generating self-signed certificate for localhost. You may be prompted for your password.`),await _e(c,["-install","-key-file",i,"-cert-file",l,"localhost"]),z(U`${b.successIcon()} Certificate generated at ${a}\n`),await rr()&&(ce({headline:"It looks like you're using WSL.",body:["Additional steps are required to configure certificate trust in Windows."],link:{label:"See Shopify CLI documentation",url:"https://shopify.dev/docs/apps/build/cli-for-apps/networking-options#localhost-based-development-with-windows-subsystem-for-linux-wsl"}}),z("\u{1F449} Press any key to continue"),await Zt(),z("")),{keyContent:await $(i),certContent:await $(l),certPath:Ut(t,l)}}p();function Nn(){let t=["Your app has extensions which need to be assigned",{command:"uid"},"identifiers."],e=["You must first map IDs to your existing extensions by running",{command:"shopify app deploy"},"interactively, without",{command:"--allow-updates"},"or",{command:"--allow-deletes"},", to finish the migration."],r={title:"Reference",body:{list:{items:[{link:{label:"Migrating from the Partner Dashboard",url:"https://shopify.dev/docs/apps/build/dev-dashboard/migrate-from-partners"}}]}}};throw new _(t,void 0,[e],[r])}function qn({app:t,remoteApp:e,json:r=!1},o){return Sr({command:"app dev",directory:t.directory,key:he(t.configPath),details:{configPath:t.configPath,appName:e.title,clientId:e.apiKey},logOutput:r?process.stdout:void 0},o)}async function Hn(t){let e=new Lt,r;try{if(t.tunnel.mode==="auto"){let l=await M();r=await ro(t.commandConfig,l,"cloudflare"),e.signal.addEventListener("abort",()=>r?.stopTunnel(),{once:!0})}let o=await ca(t,r);await la(o);let{processes:n,graphiqlUrl:s,previewUrl:a,devSessionStatusManager:i}=await Un(o);await ua(o),await fa({processes:n,previewUrl:a,graphiqlUrl:s,config:o,devSessionStatusManager:i,abortController:e})}finally{e.abort()}}async function ca(t,e){let{app:r,remoteApp:o,developerPlatformClient:n,store:s,specifications:a,tunnel:i}=t,l=await lo(o,n,a,o.flags);o.configuration=l;let m=await Rn({remoteApp:o,hasWebs:r.webs.length>0,graphiqlEnabled:!me(xe()[te.disableGraphiQLExplorer])});po({app:r,remoteApp:o,selectedStore:s,cachedInfo:lt(t.directory),organization:t.organization,tunnelMode:i.mode}),r.configuration.build?.dev_store_url&&!K()&&(r.configuration.build={...r.configuration.build,dev_store_url:s.shopDomain},await(await sr.read(r.configPath)).patch({build:{dev_store_url:s.shopDomain}})),!t.skipDependenciesInstallation&&!t.project.usesWorkspaces&&await Kr(t.project);let c=t.graphiqlPort??await M(pe.graphiql),u=[{for:"GraphiQL",flagToRemedy:"--graphiql-port",requested:t.graphiqlPort??pe.graphiql,actual:c}];i.mode==="use-localhost"&&u.push({for:"localhost",flagToRemedy:"--localhost-port",requested:i.requestedPort,actual:i.actualPort}),$n(u);let{webs:g,...w}=await ma(r.directory,r.webs,c,i,e,o.configuration,t.installMkcert);r.webs=g;let d=r.configuration.build?.automatically_update_urls_on_dev,f=lt(t.directory)?.previousAppId,S=o.apiKey,E=await da(g,t.update,w,r,d,o,S);return{storeFqdn:s.shopDomain,storeId:s.shopId||void 0,remoteApp:o,remoteAppUpdated:o.apiKey!==f,localApp:r,developerPlatformClient:n,commandOptions:t,network:w,partnerUrlsUpdated:E,graphiqlPort:c,graphiqlKey:t.graphiqlKey,apiSecret:m}}async function la(t){await pa(t)}async function pa(t){let{developerPlatformClient:e,remoteApp:r}=t;(await e.appExtensionRegistrations(r)).app.extensionRegistrations.filter(n=>n.type.toLowerCase()!=="webhook_subscription").every(n=>n.id)||Nn()}async function ua(t){Jr({directory:t.commandOptions.directory,previousAppId:t.remoteApp.apiKey}),await ha({devOptions:t.commandOptions,tunnelUrl:t.network.proxyUrl,shouldUpdateURLs:t.partnerUrlsUpdated,storeFqdn:t.storeFqdn}),await qt({config:t.commandOptions.commandConfig,exitMode:"ok"})}async function da(t,e,r,o,n,s,a){let{backendConfig:i,frontendConfig:l}=J(t),m=!1;if((l??i)&&e){let c=Zr(r.proxyUrl,t.map(({configuration:u})=>u.auth_callback_path).find(u=>u),o.configuration.app_proxy);m=await to({currentURLs:r.currentUrls,appDirectory:o.directory,cachedUpdateURLs:n,newApp:s.newApp,localApp:o,apiKey:a,newURLs:c}),m&&o.setDevApplicationURLs(c)}return m}async function ma(t,e,r,o,n,s,a){let{backendConfig:i,frontendConfig:l}=J(e);await ga(e,r);let m=o.mode==="use-localhost"?{noTunnelUseLocalhost:!0,port:o.actualPort}:{noTunnelUseLocalhost:!1,tunnelUrl:o.mode==="custom"?o.url:void 0,tunnelClient:n},[{frontendUrl:c,frontendPort:u,usingLocalhost:g},w,d]=await Promise.all([Xr(m),kt()??i?.configuration.port??M(),eo(s)]),f=g?`${c}:${u}`:c,S=l?.configuration.port;l&&(S??=l===i?w:await M(),l.configuration.port=S),S=S??await M();let E;if(o.mode==="use-localhost"){let{keyContent:R,certContent:x,certPath:C}=await On({appDirectory:t,forceInstall:a});E={key:R,cert:x,certPath:C,port:o.actualPort}}return{proxyUrl:f,proxyPort:u,frontendPort:S,backendPort:w,currentUrls:d,webs:e,reverseProxyCert:E}}async function fa({processes:t,previewUrl:e,graphiqlUrl:r,config:o,devSessionStatusManager:n,abortController:s}){let a=o.commandOptions.devInstance,i=t.map(w=>({prefix:w.prefix,action:async(f,S,E)=>{let R=w.function,x=a?a.tee(f,{source:w.prefix,stringWritesAreMessages:!0}):f,C=a?a.tee(S,{source:w.prefix,stringWritesAreMessages:!0}):S;return R({stdout:x,stderr:C,abortSignal:E},w.options)}}));if(a){let w={storeFqdn:o.storeFqdn,previewUrl:e,graphiqlUrl:r,appUrl:o.localApp.devApplicationURLs?.applicationUrl,localUrl:o.network.proxyUrl};await a.update({status:"running",details:{...w,preview:Wn(n.status)}}),await a.log({source:"app dev",level:"info",message:`Preview URL: ${e}`}),r&&await a.log({source:"app dev",level:"info",message:`GraphiQL URL (Admin API): ${r}`})}let l=o.developerPlatformClient,m={id:o.remoteApp.id,developerPlatformClient:l},c,u=w=>{let d=[a?.update({details:{preview:Wn(w)}})],f=w.statusMessage;f&&(f.message!==c?.message||f.type!==c?.type)&&d.push(a?.log({source:"app dev",level:f.type==="error"?"error":"info",message:f.message})),c=f,Promise.all(d).catch(S=>{y(`Failed to save dev status: ${S.message}`)})};a&&(n.on("dev-session-update",u),u(n.status));let g=()=>s.abort(a?.abortSignal.reason);try{a?.abortSignal.throwIfAborted(),a?.abortSignal.addEventListener("abort",g,{once:!0}),await Ln({processes:i,previewUrl:e,graphiqlUrl:r,app:m,abortController:s,shopFqdn:o.storeFqdn,devSessionStatusManager:n,appURL:o.localApp.devApplicationURLs?.applicationUrl,appName:o.remoteApp.title,organizationName:o.commandOptions.organization.businessName,configPath:o.localApp.configPath,localURL:o.network.proxyUrl}),a?.abortSignal.throwIfAborted()}finally{a?.abortSignal.removeEventListener("abort",g),a&&n.off("dev-session-update",u)}}function Wn({isReady:t,statusMessage:e,errors:r}){let o=t?"ready":"starting";return t&&e?.type==="loading"&&(o="updating"),e?.type==="error"&&(o="error"),{state:o,message:e?.message??null,errors:r??[]}}async function ha(t){let e=await Mn(t.devOptions.commandConfig,t.tunnelUrl);await Q.addPublicMetadata(()=>({cmd_dev_tunnel_type:e,cmd_dev_tunnel_custom_hash:e==="custom"?Je(t.tunnelUrl):void 0,cmd_dev_urls_updated:t.shouldUpdateURLs,store_fqdn_hash:Je(t.storeFqdn),store_domain:t.storeFqdn,cmd_app_dependency_installation_skipped:t.devOptions.skipDependenciesInstallation})),await Q.addSensitiveMetadata(()=>({store_fqdn:t.storeFqdn,cmd_dev_tunnel_custom:e==="custom"?t.tunnelUrl:void 0}))}async function ga(t,e){let r=t.map(n=>n.configuration.port).filter(n=>n),o=r.find((n,s)=>r.indexOf(n)!==s);if(o)throw new _(`Found port ${o} for multiple webs.`,"Please define a unique port for each web.");await Promise.all([...r.map(async n=>{if(!await ot(n))throw new _(`Hard-coded port ${n} is not available, please choose a different one.`)}),(async()=>{if(!await ot(e)){let s=`Port ${e} is not available for serving GraphiQL.`,a=["Choose a different port for the",{command:"--graphiql-port"},"flag."];throw new _(s,a)}})()])}p();var Gn=h.object({state:h.enum(["starting","updating","ready","error"]),message:h.string().nullable(),errors:h.array(h.string())}).strict().describe("The CLI-reported preview state in the instance file; this is not a health check."),wa=h.object({schemaVersion:h.literal(1),sessionId:h.string(),command:h.literal("app dev"),key:h.string().optional(),pid:h.number().int().positive(),status:h.enum(["starting","running"]),startedAt:Ye,updatedAt:Ye,directory:h.string(),logFile:h.string(),details:h.object({configPath:h.string(),appName:h.string(),clientId:h.string(),storeFqdn:h.string().optional(),previewUrl:h.string().optional(),graphiqlUrl:h.string().optional(),appUrl:h.string().optional(),localUrl:h.string().optional(),preview:Gn.optional()}).strict()}).strict().describe("The instance JSON file under .shopify/dev/. This object is not emitted to stdout."),jn=St({name:ct.name,schema:ct.schema,definitions:{DevInstance:wa,DevPreview:Gn}});p();async function Bn({useLocalhost:t,localhostPort:e,tunnelUrl:r}){if(r)return{mode:"custom",url:r};if(!t&&!e)return{mode:"auto"};let o=e??pe.localhost,n=await M(o);if(e&&n!==o){let s=`Port ${e} is not available.`,a=["Choose a different port for the",{command:"--localhost-port"},"flag."];throw new _(s,a)}return{mode:"use-localhost",requestedPort:o,actualPort:n}}var k=ie(Vn(),1);var Et=class t extends mo{static get requiresSyncAnalytics(){return!0}static summary="Run the app.";static descriptionWithMarkdown="Builds and previews your app on a dev store, and watches for changes. [Read more about testing apps locally](https://shopify.dev/docs/apps/build/cli-for-apps/test-apps-locally).";static jsonOutputSchema=jn;static description=this.descriptionForHelp();static flags={...ar,...Br,...ir,"client-id":k.Flags.string({hidden:!1,description:"The Client ID of your app. Use with --config to run dev with that configuration for a different app than the one it is linked to.",env:"SHOPIFY_FLAG_CLIENT_ID"}),store:k.Flags.string({char:"s",description:"Store URL. Must be an existing development or Shopify Plus sandbox store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>be(e)}),"skip-dependencies-installation":k.Flags.boolean({description:"Skips the installation of dependencies. Deprecated, use workspaces instead.",env:"SHOPIFY_FLAG_SKIP_DEPENDENCIES_INSTALLATION",default:!1}),"no-update":k.Flags.boolean({description:"Uses the app URL from the toml file instead an autogenerated URL for dev.",env:"SHOPIFY_FLAG_NO_UPDATE",default:!1}),"unsafe-validation":k.Flags.boolean({description:"Allow app dev to continue with warnings for eligible app version validation failures.",env:"SHOPIFY_FLAG_UNSAFE_VALIDATION",default:!1}),"subscription-product-url":k.Flags.string({description:'Resource URL for subscription UI extension. Format: "/products/{productId}"',env:"SHOPIFY_FLAG_SUBSCRIPTION_PRODUCT_URL"}),"checkout-cart-url":k.Flags.string({description:'Resource URL for checkout UI extension. Format: "/cart/{productVariantID}:{productQuantity}"',env:"SHOPIFY_FLAG_CHECKOUT_CART_URL"}),"tunnel-url":k.Flags.string({description:'Use a custom tunnel, it must be running before executing dev. Format: "https://my-tunnel-url:port".',env:"SHOPIFY_FLAG_TUNNEL_URL",exclusive:["tunnel"]}),"use-localhost":k.Flags.boolean({description:"Service entry point will listen to localhost. A tunnel won't be used. Will work for testing many app features, but not those that directly invoke your app (E.g: Webhooks)",env:"SHOPIFY_FLAG_USE_LOCALHOST",exclusive:["tunnel-url"]}),"install-mkcert":k.Flags.boolean({description:"Install and use mkcert to generate localhost certificates when --use-localhost is enabled without prompting.",env:"SHOPIFY_FLAG_INSTALL_MKCERT",dependsOn:["use-localhost"]}),"localhost-port":Ie({description:"Port to use for localhost.",env:"SHOPIFY_FLAG_LOCALHOST_PORT"}),theme:k.Flags.string({char:"t",description:"Theme ID or name of the theme app extension host theme.",env:"SHOPIFY_FLAG_THEME"}),"theme-app-extension-port":Ie({description:"Local port of the theme app extension development server.",env:"SHOPIFY_FLAG_THEME_APP_EXTENSION_PORT"}),"store-password":k.Flags.string({description:"The password for storefronts with password protection.",env:"SHOPIFY_FLAG_STORE_PASSWORD"}),notify:k.Flags.string({description:"The file path or URL. The file path is to a file that you want updated on idle. The URL path is where you want a webhook posted to report on file changes.",env:"SHOPIFY_FLAG_NOTIFY"}),"graphiql-port":Ie({hidden:!0,description:"Local port of the GraphiQL development server.",env:"SHOPIFY_FLAG_GRAPHIQL_PORT"}),"graphiql-key":k.Flags.string({hidden:!0,description:"Key used to authenticate GraphiQL requests. By default, a key is automatically derived from the app secret. Use this flag to override with a custom key.",env:"SHOPIFY_FLAG_GRAPHIQL_KEY"})};static analyticsStopCommand(){return"app dev stop"}async run(){let{flags:e}=await this.parse(t),r=await Bn({useLocalhost:e["use-localhost"]??!1,tunnelUrl:e["tunnel-url"],localhostPort:e["localhost-port"]});await Ht(()=>({cmd_app_dependency_installation_skipped:e["skip-dependencies-installation"],cmd_app_reset_used:e.reset,cmd_dev_tunnel_type:r.mode})),await oo(e.path);let o=await uo({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config});return qn({...o,json:e.json},async n=>{let s=await fo({appContextResult:o,storeFqdn:e.store,forceReselectStore:e.reset,storeCreationMode:"selection-option",devSession:!0}),a={...o,store:s,directory:e.path,update:!e["no-update"],unsafeValidation:e["unsafe-validation"],skipDependenciesInstallation:e["skip-dependencies-installation"],commandConfig:this.config,subscriptionProductUrl:e["subscription-product-url"],checkoutCartUrl:e["checkout-cart-url"],theme:e.theme,themeExtensionPort:e["theme-app-extension-port"],storePassword:e["store-password"],notify:e.notify,graphiqlPort:e["graphiql-port"],graphiqlKey:e["graphiql-key"],installMkcert:e["install-mkcert"],tunnel:r,devInstance:n};return await Hn(a),{app:o.app}})}};export{ei as a,Et as b};
@@ -1,7 +0,0 @@
1
- import{A as i,B as t,F as s,x as e,y as o,z as n}from"./chunk-2KUM2RU4.js";import{i as d,l}from"./chunk-TD6JBHUS.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();async function u(){e({headline:"CLI update available.",body:["Run",{command:"npm run shopify upgrade"},{char:"."}]}),e({headline:["To connect this project to your shopify store cd into:",{filePath:"/my-store/hydrogen.config.js"},{char:"."}],body:["You can also try the following steps:",{list:{items:[["Run",{command:"shopify project connect"}],["Run",{command:"hydrogen start"}]]}}]}),e({headline:"About your app.",customSections:[{body:{tabularData:[["Configuration file",{filePath:"shopify.app.scalable-transaction-app.toml"}],["App name",{userInput:"scalable-transaction-app"}],["Access scopes","read_products,write_products"]],firstColumnSubdued:!0}}]}),e({headline:[{userInput:"my-app"},"initialized and ready to build."],nextSteps:[["Run",{command:"cd verification-app"}],["To preview your project, run",{command:"npm app dev"}],["To add extensions, run",{command:"npm generate extension"}]],reference:[["Run",{command:"npm shopify help"}],{link:{label:"Dev docs",url:"https://shopify.dev"}}],customSections:[{title:"Custom section",body:{list:{items:[{link:{label:"Item 1",url:"https://shopify.com"}},"Item 2",{link:{url:"https://community.shopify.com/"}}]}}},{title:"Custom section 2",body:{list:{items:["Item 1","Item 2","Item 3"]}}}]}),o({headline:"CLI updated.",body:"You are now running version 3.47."}),o({headline:"Deployment successful.",body:"Your extensions have been uploaded to your Shopify Partners Dashboard.",nextSteps:[{link:{label:"See your deployment and set it live",url:"https://partners.shopify.com/1797046/apps/4523695/deployments"}}]}),n({headline:"You have reached your limit of checkout extensions for this app.",body:"You can free up space for a new one by deleting an existing one."}),n({headline:"Required access scope update.",body:"The deadline for re-selecting your app scopes is May 1, 2022.",reference:[{link:{label:"Dev docs",url:"https://shopify.dev/app/scopes"}}]});let a=new l("Something went wrong.");a.stack=`
2
- Error: Unexpected error
3
- at Module._compile (internal/modules/cjs/loader.js:1137:30)
4
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
5
- at Module.load (internal/modules/cjs/loader.js:985:32)
6
- at Function.Module._load (internal/modules/cjs/loader.js:878:14)
7
- `,t(a);let c=[["Have you",{link:{label:"created a Shopify Partners organization",url:"https://partners.shopify.com/signup"}},{char:"?"}],"Have you confirmed your accounts from the emails you received?",["Need to connect to a different App or organization? Run the command again with",{command:"--reset"}]];t(new d("No Organization found",void 0,c)),i({headline:"Version couldn't be released.",body:"This version needs to be submitted for review and approved by Shopify before it can be released."}),s({rows:[{id:"1",name:"John Doe",email:"jon@doe.com"},{id:"2",name:"Jane Doe",email:"jane@doe.com"},{id:"3",name:"John Smith",email:"jon@smith.com"}],columns:{id:{header:"ID",color:"red"},name:{header:"Name",color:"dim"},email:{}}})}export{u as a};
@@ -1 +0,0 @@
1
- import{b as e}from"./chunk-XEZPN5TR.js";import{Ba as r}from"./chunk-YKDRUAY3.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class extends e{static hidden=!0;async run(){await r()}};export{t as a};
@@ -1 +0,0 @@
1
- import{a}from"../../../chunk-62NW4EPI.js";import"../../../chunk-ASKBYEO7.js";import"../../../chunk-YYWSHRO2.js";import"../../../chunk-DC7ITY6T.js";import"../../../chunk-VJEKDBGZ.js";import"../../../chunk-OJOF6IYG.js";import"../../../chunk-7DBKSSDK.js";import"../../../chunk-KFO2JNF5.js";import"../../../chunk-2PD7TNFS.js";import"../../../chunk-IWOTLFOY.js";import"../../../chunk-27JT4NA4.js";import"../../../chunk-F5QKMDP3.js";import"../../../chunk-OTMYJWIP.js";import"../../../chunk-HVUMVDUG.js";import"../../../chunk-XEZPN5TR.js";import"../../../chunk-LFOBYEWG.js";import"../../../chunk-YKDRUAY3.js";import"../../../chunk-ZDF5N422.js";import"../../../chunk-4WBWZIN5.js";import"../../../chunk-T4ZOTYOY.js";import"../../../chunk-3FZ4LE6A.js";import"../../../chunk-MPW2YJWU.js";import"../../../chunk-JIY6XWSC.js";import"../../../chunk-BFAOTQGH.js";import"../../../chunk-DMOLPSXF.js";import"../../../chunk-T7KHS6RF.js";import"../../../chunk-2KUM2RU4.js";import"../../../chunk-7Y7AZRL3.js";import"../../../chunk-25MYHE4W.js";import"../../../chunk-H4K3F7PP.js";import"../../../chunk-5HBIIYSK.js";import"../../../chunk-RJ5VF3QY.js";import"../../../chunk-7UNQOKZW.js";import"../../../chunk-GB3YC4TI.js";import"../../../chunk-2KFYIYLI.js";import"../../../chunk-QBRRFFMZ.js";import"../../../chunk-Z2AV4BWZ.js";import"../../../chunk-LG3KEHGD.js";import"../../../chunk-I3WRA2LH.js";import"../../../chunk-TD6JBHUS.js";import"../../../chunk-636CTEW7.js";import"../../../chunk-AY3AAV77.js";import"../../../chunk-ZMOW2YZ4.js";import"../../../chunk-B4OMIONW.js";import"../../../chunk-UU6UQ2QY.js";import"../../../chunk-5B76DT7X.js";import"../../../chunk-JJZNUFPD.js";import"../../../chunk-3PYDIBTX.js";import"../../../chunk-DOLVBTCB.js";import"../../../chunk-QGQWVA7N.js";import"../../../chunk-AE3IQG7S.js";import"../../../chunk-R4E2E4NN.js";import"../../../chunk-JD5P5RAJ.js";import"../../../chunk-IWTNUJGY.js";import"../../../chunk-3KGN6N7E.js";import"../../../chunk-S4KNPCW3.js";import"../../../chunk-CQAD5WML.js";import"../../../chunk-I5A6BPCP.js";import"../../../chunk-O472FAYX.js";import"../../../chunk-IGE4Y5SE.js";import"../../../chunk-JFBCE4HN.js";import"../../../chunk-VKWPEFWQ.js";export{a as default};
@@ -1 +0,0 @@
1
- import{a,b,c,d}from"./chunk-CDSDQTNB.js";import"./chunk-XEZPN5TR.js";import"./chunk-LFOBYEWG.js";import"./chunk-YKDRUAY3.js";import"./chunk-ZDF5N422.js";import"./chunk-4WBWZIN5.js";import"./chunk-T4ZOTYOY.js";import"./chunk-3FZ4LE6A.js";import"./chunk-MPW2YJWU.js";import"./chunk-JIY6XWSC.js";import"./chunk-BFAOTQGH.js";import"./chunk-DMOLPSXF.js";import"./chunk-T7KHS6RF.js";import"./chunk-2KUM2RU4.js";import"./chunk-7Y7AZRL3.js";import"./chunk-25MYHE4W.js";import"./chunk-H4K3F7PP.js";import"./chunk-5HBIIYSK.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-2KFYIYLI.js";import"./chunk-QBRRFFMZ.js";import"./chunk-Z2AV4BWZ.js";import"./chunk-LG3KEHGD.js";import"./chunk-I3WRA2LH.js";import"./chunk-TD6JBHUS.js";import"./chunk-636CTEW7.js";import"./chunk-AY3AAV77.js";import"./chunk-ZMOW2YZ4.js";import"./chunk-B4OMIONW.js";import"./chunk-UU6UQ2QY.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-3PYDIBTX.js";import"./chunk-DOLVBTCB.js";import"./chunk-QGQWVA7N.js";import"./chunk-AE3IQG7S.js";import"./chunk-R4E2E4NN.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-3KGN6N7E.js";import"./chunk-S4KNPCW3.js";import"./chunk-CQAD5WML.js";import"./chunk-I5A6BPCP.js";import"./chunk-O472FAYX.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{c as DidYouMeanCommands,d as DidYouMeanHook,a as findAlternativeCommand,b as shouldRunCommand};
@@ -1 +0,0 @@
1
- import{a,b}from"./chunk-MU7IVBGI.js";import"./chunk-LQ7ENG4V.js";import"./chunk-IRLYC626.js";import"./chunk-JLGA3B7P.js";import"./chunk-FAVPTYIR.js";import"./chunk-VJG7VXFU.js";import"./chunk-UWHAOGO4.js";import"./chunk-FKIVKNOV.js";import"./chunk-2S3FHQFS.js";import"./chunk-DC7ITY6T.js";import"./chunk-VJEKDBGZ.js";import"./chunk-XEZPN5TR.js";import"./chunk-LFOBYEWG.js";import"./chunk-YKDRUAY3.js";import"./chunk-ZDF5N422.js";import"./chunk-4WBWZIN5.js";import"./chunk-T4ZOTYOY.js";import"./chunk-3FZ4LE6A.js";import"./chunk-MPW2YJWU.js";import"./chunk-JIY6XWSC.js";import"./chunk-BFAOTQGH.js";import"./chunk-DMOLPSXF.js";import"./chunk-T7KHS6RF.js";import"./chunk-2KUM2RU4.js";import"./chunk-7Y7AZRL3.js";import"./chunk-25MYHE4W.js";import"./chunk-H4K3F7PP.js";import"./chunk-5HBIIYSK.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-2KFYIYLI.js";import"./chunk-QBRRFFMZ.js";import"./chunk-Z2AV4BWZ.js";import"./chunk-LG3KEHGD.js";import"./chunk-I3WRA2LH.js";import"./chunk-TD6JBHUS.js";import"./chunk-636CTEW7.js";import"./chunk-AY3AAV77.js";import"./chunk-ZMOW2YZ4.js";import"./chunk-B4OMIONW.js";import"./chunk-UU6UQ2QY.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-3PYDIBTX.js";import"./chunk-DOLVBTCB.js";import"./chunk-QGQWVA7N.js";import"./chunk-AE3IQG7S.js";import"./chunk-R4E2E4NN.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-3KGN6N7E.js";import"./chunk-S4KNPCW3.js";import"./chunk-CQAD5WML.js";import"./chunk-I5A6BPCP.js";import"./chunk-O472FAYX.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{a as COMMANDS,b as HOOKS};
@@ -1 +0,0 @@
1
- import{f as a,g as b,h as c,i as d,j as e,k as f,l as g,m as h,n as i,o as j,p as k}from"./chunk-TD6JBHUS.js";import"./chunk-ZMOW2YZ4.js";import"./chunk-B4OMIONW.js";import"./chunk-UU6UQ2QY.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-3PYDIBTX.js";import"./chunk-DOLVBTCB.js";import"./chunk-QGQWVA7N.js";import"./chunk-AE3IQG7S.js";import"./chunk-R4E2E4NN.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-3KGN6N7E.js";import"./chunk-S4KNPCW3.js";import"./chunk-CQAD5WML.js";import"./chunk-I5A6BPCP.js";import"./chunk-O472FAYX.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{d as AbortError,f as AbortSilentError,g as BugError,b as CancelExecution,e as ExternalError,c as FatalError,a as FatalErrorType,k as cleanSingleStackTracePath,i as errorMapper,h as handler,j as shouldReportErrorAsUnexpected};
@@ -1 +0,0 @@
1
- import{Ma as a,Na as b,Oa as c,Pa as d,Qa as e}from"./chunk-YKDRUAY3.js";import"./chunk-ZDF5N422.js";import"./chunk-4WBWZIN5.js";import"./chunk-T4ZOTYOY.js";import"./chunk-3FZ4LE6A.js";import"./chunk-MPW2YJWU.js";import"./chunk-JIY6XWSC.js";import"./chunk-BFAOTQGH.js";import"./chunk-T7KHS6RF.js";import"./chunk-2KUM2RU4.js";import"./chunk-7Y7AZRL3.js";import"./chunk-25MYHE4W.js";import"./chunk-H4K3F7PP.js";import"./chunk-5HBIIYSK.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-2KFYIYLI.js";import"./chunk-QBRRFFMZ.js";import"./chunk-Z2AV4BWZ.js";import"./chunk-LG3KEHGD.js";import"./chunk-I3WRA2LH.js";import"./chunk-TD6JBHUS.js";import"./chunk-636CTEW7.js";import"./chunk-AY3AAV77.js";import"./chunk-ZMOW2YZ4.js";import"./chunk-B4OMIONW.js";import"./chunk-UU6UQ2QY.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-3PYDIBTX.js";import"./chunk-DOLVBTCB.js";import"./chunk-QGQWVA7N.js";import"./chunk-AE3IQG7S.js";import"./chunk-R4E2E4NN.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-3KGN6N7E.js";import"./chunk-S4KNPCW3.js";import"./chunk-CQAD5WML.js";import"./chunk-I5A6BPCP.js";import"./chunk-O472FAYX.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{e as addBugsnagMetadata,c as cleanStackFrameFilePath,a as errorHandler,d as registerCleanBugsnagErrorsFromWithinPlugins,b as sendErrorToBugsnag};
@@ -1 +0,0 @@
1
- import{j as a,k as b,l as c,m as d,n as e,o as f,p as g,q as h,r as i}from"./chunk-YKDRUAY3.js";import"./chunk-ZDF5N422.js";import"./chunk-4WBWZIN5.js";import"./chunk-T4ZOTYOY.js";import"./chunk-3FZ4LE6A.js";import"./chunk-MPW2YJWU.js";import"./chunk-JIY6XWSC.js";import"./chunk-BFAOTQGH.js";import"./chunk-T7KHS6RF.js";import"./chunk-2KUM2RU4.js";import"./chunk-7Y7AZRL3.js";import"./chunk-25MYHE4W.js";import"./chunk-H4K3F7PP.js";import"./chunk-5HBIIYSK.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-2KFYIYLI.js";import"./chunk-QBRRFFMZ.js";import"./chunk-Z2AV4BWZ.js";import"./chunk-LG3KEHGD.js";import"./chunk-I3WRA2LH.js";import"./chunk-TD6JBHUS.js";import"./chunk-636CTEW7.js";import"./chunk-AY3AAV77.js";import"./chunk-ZMOW2YZ4.js";import"./chunk-B4OMIONW.js";import"./chunk-UU6UQ2QY.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-3PYDIBTX.js";import"./chunk-DOLVBTCB.js";import"./chunk-QGQWVA7N.js";import"./chunk-AE3IQG7S.js";import"./chunk-R4E2E4NN.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-3KGN6N7E.js";import"./chunk-S4KNPCW3.js";import"./chunk-CQAD5WML.js";import"./chunk-I5A6BPCP.js";import"./chunk-O472FAYX.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{a as FetchError,c as Request,b as Response,f as abortSignalFromRequestBehaviour,i as downloadFile,g as fetch,d as formData,e as requestMode,h as shopifyFetch};
@@ -1 +0,0 @@
1
- import{a,b,c,d,e,f}from"./chunk-OTMYJWIP.js";import"./chunk-LFOBYEWG.js";import"./chunk-YKDRUAY3.js";import"./chunk-ZDF5N422.js";import"./chunk-4WBWZIN5.js";import"./chunk-T4ZOTYOY.js";import"./chunk-3FZ4LE6A.js";import"./chunk-MPW2YJWU.js";import"./chunk-JIY6XWSC.js";import"./chunk-BFAOTQGH.js";import"./chunk-T7KHS6RF.js";import"./chunk-2KUM2RU4.js";import"./chunk-7Y7AZRL3.js";import"./chunk-25MYHE4W.js";import"./chunk-H4K3F7PP.js";import"./chunk-5HBIIYSK.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-2KFYIYLI.js";import"./chunk-QBRRFFMZ.js";import"./chunk-Z2AV4BWZ.js";import"./chunk-LG3KEHGD.js";import"./chunk-I3WRA2LH.js";import"./chunk-TD6JBHUS.js";import"./chunk-636CTEW7.js";import"./chunk-AY3AAV77.js";import"./chunk-ZMOW2YZ4.js";import"./chunk-B4OMIONW.js";import"./chunk-UU6UQ2QY.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-3PYDIBTX.js";import"./chunk-DOLVBTCB.js";import"./chunk-QGQWVA7N.js";import"./chunk-AE3IQG7S.js";import"./chunk-R4E2E4NN.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-3KGN6N7E.js";import"./chunk-S4KNPCW3.js";import"./chunk-CQAD5WML.js";import"./chunk-I5A6BPCP.js";import"./chunk-O472FAYX.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{c as fetchNotifications,d as fetchNotificationsInBackground,e as filterNotifications,b as getNotifications,a as showNotificationsIfNeeded,f as stringifyFilters};
@@ -1 +0,0 @@
1
- import{c,d,e,f,g,h,i}from"./chunk-SQL67BKI.js";import"./chunk-LGDWE3H3.js";import"./chunk-WE5KY6T6.js";import"./chunk-F5QKMDP3.js";import"./chunk-OTMYJWIP.js";import"./chunk-LFOBYEWG.js";import"./chunk-YKDRUAY3.js";import"./chunk-ZDF5N422.js";import"./chunk-4WBWZIN5.js";import"./chunk-T4ZOTYOY.js";import{s as a,t as b}from"./chunk-3FZ4LE6A.js";import"./chunk-MPW2YJWU.js";import"./chunk-JIY6XWSC.js";import"./chunk-BFAOTQGH.js";import"./chunk-T7KHS6RF.js";import"./chunk-2KUM2RU4.js";import"./chunk-7Y7AZRL3.js";import"./chunk-25MYHE4W.js";import"./chunk-H4K3F7PP.js";import"./chunk-5HBIIYSK.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-2KFYIYLI.js";import"./chunk-QBRRFFMZ.js";import"./chunk-Z2AV4BWZ.js";import"./chunk-LG3KEHGD.js";import"./chunk-I3WRA2LH.js";import"./chunk-TD6JBHUS.js";import"./chunk-636CTEW7.js";import"./chunk-AY3AAV77.js";import"./chunk-ZMOW2YZ4.js";import"./chunk-B4OMIONW.js";import"./chunk-UU6UQ2QY.js";import"./chunk-5B76DT7X.js";import"./chunk-JJZNUFPD.js";import"./chunk-3PYDIBTX.js";import"./chunk-DOLVBTCB.js";import"./chunk-QGQWVA7N.js";import"./chunk-AE3IQG7S.js";import"./chunk-R4E2E4NN.js";import"./chunk-JD5P5RAJ.js";import"./chunk-IWTNUJGY.js";import"./chunk-3KGN6N7E.js";import"./chunk-S4KNPCW3.js";import"./chunk-CQAD5WML.js";import"./chunk-I5A6BPCP.js";import"./chunk-O472FAYX.js";import"./chunk-IGE4Y5SE.js";import"./chunk-JFBCE4HN.js";import"./chunk-VKWPEFWQ.js";export{c as cliInstallCommand,a as getAutoUpgradeEnabled,i as getOutputUpdateCLIReminder,g as hasBlockingAutoUpgradeNotification,d as runCLIUpgrade,b as setAutoUpgradeEnabled,e as upgradeCLI,f as versionToAutoUpgrade,h as warnIfUpgradeAvailable};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-JIY6XWSC.js";import"./chunk-VKWPEFWQ.js";export{a as CLI_KIT_VERSION};
File without changes