@shopify/cli 4.4.0 → 4.5.1

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 (278) hide show
  1. package/dist/{analytics-DWUYMFHO.js → analytics-CIKTYXZ6.js} +1 -1
  2. package/dist/{analytics-SOXP4UBD.js → analytics-DM7CBV2M.js} +1 -1
  3. package/dist/assets/hydrogen/starter/CHANGELOG.md +8 -0
  4. package/dist/assets/hydrogen/starter/README.md +4 -4
  5. package/dist/assets/hydrogen/starter/package.json +1 -1
  6. package/dist/assets/hydrogen/starter/vite.config.ts +6 -0
  7. package/dist/bootstrap.js +1 -1
  8. package/dist/{chunk-DLNBTHKL.js → chunk-2FIDORHT.js} +1 -1
  9. package/dist/{chunk-HA6NISOZ.js → chunk-2GDACKZF.js} +1 -1
  10. package/dist/{chunk-5W443CKL.js → chunk-2HZMOK4U.js} +2 -2
  11. package/dist/{chunk-7UOPCYMV.js → chunk-2MNOWKMI.js} +1 -1
  12. package/dist/{chunk-J3HXFQ2L.js → chunk-2WDKXDFM.js} +1 -1
  13. package/dist/{chunk-ZEENHLSC.js → chunk-3GMW7IEC.js} +2 -2
  14. package/dist/{chunk-WRRUFK4Y.js → chunk-3QVXHF6I.js} +1 -1
  15. package/dist/{chunk-POAICASX.js → chunk-3SJHCEQR.js} +1 -1
  16. package/dist/{chunk-7LATYPLU.js → chunk-3YCTWCHH.js} +1 -1
  17. package/dist/{chunk-2EROVVCL.js → chunk-4E354M4H.js} +1 -1
  18. package/dist/{chunk-47MGPVED.js → chunk-4TC4M4RC.js} +1 -1
  19. package/dist/{chunk-J5TNYNR5.js → chunk-5JCREGSD.js} +1 -1
  20. package/dist/{chunk-QPN2M26G.js → chunk-5K4DONQJ.js} +1 -1
  21. package/dist/{chunk-2NWWMNU5.js → chunk-5NY4HKJF.js} +1 -1
  22. package/dist/{chunk-BIMOHK2P.js → chunk-5PLLJPEW.js} +1 -1
  23. package/dist/{chunk-PJYNAUQB.js → chunk-5T3OVTF5.js} +1 -1
  24. package/dist/{chunk-73W5BGAZ.js → chunk-5U6MXSNY.js} +1 -1
  25. package/dist/{chunk-AY4GIVME.js → chunk-5UXPTCSD.js} +1 -1
  26. package/dist/{chunk-G2I2ZUBV.js → chunk-6XLVKD6Q.js} +1 -1
  27. package/dist/{chunk-DZLA2RJP.js → chunk-6Y3QXASG.js} +1 -1
  28. package/dist/{chunk-DHBYYHBT.js → chunk-6ZMNEURG.js} +1 -1
  29. package/dist/chunk-6ZRHK4ON.js +1 -0
  30. package/dist/{chunk-GTUKM3ZW.js → chunk-72K36DID.js} +1 -1
  31. package/dist/{chunk-FPLUMESQ.js → chunk-7USHLXEN.js} +1 -1
  32. package/dist/{chunk-ZAMDXIVC.js → chunk-7XQDZF73.js} +1 -1
  33. package/dist/{chunk-OORCODNK.js → chunk-7ZLKT2TB.js} +1 -1
  34. package/dist/{chunk-HCN6HXA5.js → chunk-AH2ZJ73H.js} +1 -1
  35. package/dist/{chunk-SP2WUATO.js → chunk-AI756VJI.js} +1 -1
  36. package/dist/{chunk-UYK6CXAU.js → chunk-ALQKJAHP.js} +1 -1
  37. package/dist/{chunk-PMXCJIBP.js → chunk-APYASWBA.js} +1 -1
  38. package/dist/{chunk-J2WCMQZZ.js → chunk-ASOT7VNB.js} +1 -1
  39. package/dist/{chunk-MFLQRQQT.js → chunk-AVMNXIXF.js} +1 -1
  40. package/dist/{chunk-7SVMAJTR.js → chunk-BEXQB4RT.js} +1 -1
  41. package/dist/{chunk-Y3WIZSRU.js → chunk-BVFIJSD7.js} +1 -1
  42. package/dist/{chunk-45MEVWH5.js → chunk-BZAZMLII.js} +1 -1
  43. package/dist/{chunk-HZYRCG4R.js → chunk-C5U4NLNU.js} +1 -1
  44. package/dist/{chunk-PETINPMX.js → chunk-CGULQAB5.js} +1 -1
  45. package/dist/{chunk-HZSAUZBX.js → chunk-CNOL26GA.js} +1 -1
  46. package/dist/{chunk-V3RZ3DTW.js → chunk-COTYR5RC.js} +1 -1
  47. package/dist/{chunk-NADNFSKS.js → chunk-DA4LHFJQ.js} +1 -1
  48. package/dist/{chunk-Y66GQ6V2.js → chunk-DCUAVLTM.js} +1 -1
  49. package/dist/{chunk-FA4K3JRN.js → chunk-DDVT2K7E.js} +1 -1
  50. package/dist/{chunk-OQORDQLH.js → chunk-DE3WCNP6.js} +1 -1
  51. package/dist/{chunk-V6ZSIUO3.js → chunk-DKKBJ4H5.js} +1 -1
  52. package/dist/{chunk-ZZFZBFVM.js → chunk-DQE7XRCK.js} +1 -1
  53. package/dist/{chunk-PZYP3MCL.js → chunk-DU5LZYQX.js} +1 -1
  54. package/dist/{chunk-6EZ7JWBK.js → chunk-E24W34C4.js} +4 -4
  55. package/dist/{chunk-TKG42KLM.js → chunk-E7OLCSAL.js} +1 -1
  56. package/dist/{chunk-5QWYIBE6.js → chunk-EAXEV45I.js} +1 -1
  57. package/dist/{chunk-I73E3BD5.js → chunk-EDSKA6UB.js} +1 -1
  58. package/dist/{chunk-WKBVT5WG.js → chunk-ELIH6GCC.js} +1 -1
  59. package/dist/{chunk-QJ7TI6CK.js → chunk-EXQXGSGY.js} +1 -1
  60. package/dist/{chunk-DONEJHDG.js → chunk-EYDNSYYE.js} +2 -2
  61. package/dist/{chunk-SKLUHLS2.js → chunk-FO6FNY6P.js} +1 -1
  62. package/dist/{chunk-UUC5YKAS.js → chunk-FOPGI6GO.js} +1 -1
  63. package/dist/{chunk-H6WN7GP4.js → chunk-FPCPFECH.js} +1 -1
  64. package/dist/{chunk-YGKQCEVG.js → chunk-G7QLHXVA.js} +1 -1
  65. package/dist/{chunk-3OZ6ZZ4T.js → chunk-GAYQKMOM.js} +1 -1
  66. package/dist/{chunk-SWI3LCPE.js → chunk-GKQ6CSJZ.js} +1 -1
  67. package/dist/{chunk-IPQH2RHD.js → chunk-GQG6WELZ.js} +1 -1
  68. package/dist/{chunk-YQH2JHFA.js → chunk-GXUZ3V7S.js} +1 -1
  69. package/dist/{chunk-TJGUNVRI.js → chunk-H3QZN45D.js} +1 -1
  70. package/dist/{chunk-X4DIJTIK.js → chunk-H7DDRARV.js} +1 -1
  71. package/dist/{chunk-G24L7MB3.js → chunk-H7PNMMDO.js} +1 -1
  72. package/dist/{chunk-733R5OKQ.js → chunk-HHSUBF73.js} +1 -1
  73. package/dist/{chunk-IX4KP6E3.js → chunk-HXYWEKMS.js} +1 -1
  74. package/dist/{chunk-GKRCTMWY.js → chunk-IBBFRL3Y.js} +1 -1
  75. package/dist/{chunk-5GVXMNC4.js → chunk-ICFFBMFB.js} +1 -1
  76. package/dist/{chunk-UKK5P74A.js → chunk-IDKUJQIG.js} +3 -3
  77. package/dist/{chunk-EKHWL542.js → chunk-IHUCBI6L.js} +47 -47
  78. package/dist/{chunk-G2S346IS.js → chunk-IIHPONSQ.js} +1 -1
  79. package/dist/{chunk-JAW32T6G.js → chunk-IOU6EKTT.js} +1 -1
  80. package/dist/{chunk-3CYHS4W2.js → chunk-IQYZAALJ.js} +1 -1
  81. package/dist/{chunk-442S5SDM.js → chunk-IRH6IGFT.js} +1 -1
  82. package/dist/{chunk-WNWQSHEC.js → chunk-IRTCLR3F.js} +1 -1
  83. package/dist/chunk-J3KRY2SD.js +1 -0
  84. package/dist/{chunk-KKUDXLK2.js → chunk-JCNRQYRP.js} +1 -1
  85. package/dist/{chunk-F5QG42MA.js → chunk-JNEGEJH6.js} +1 -1
  86. package/dist/{chunk-J7UQBC45.js → chunk-JO4ZHVOD.js} +1 -1
  87. package/dist/{chunk-JOZXRV5K.js → chunk-JOYM7AEQ.js} +1 -1
  88. package/dist/{chunk-ZULTG2D2.js → chunk-JVMYTC3J.js} +1 -1
  89. package/dist/{chunk-PUAMSBXS.js → chunk-KC2TN7AR.js} +1 -1
  90. package/dist/{chunk-CD5O2BIT.js → chunk-KHXDP3SF.js} +1 -1
  91. package/dist/{chunk-6YPEONHB.js → chunk-KOB6T6NK.js} +1 -1
  92. package/dist/{chunk-YLGSM42I.js → chunk-KOUKBXOZ.js} +1 -1
  93. package/dist/{chunk-KN3FTJDU.js → chunk-LUG2BZJP.js} +1 -1
  94. package/dist/{chunk-AT2GDXN7.js → chunk-M2AS5BWX.js} +1 -1
  95. package/dist/{chunk-67KMRBSZ.js → chunk-MCATVWHC.js} +1 -1
  96. package/dist/{chunk-DQ4HA72R.js → chunk-MKCXLBQ4.js} +1 -1
  97. package/dist/{chunk-C3CVLSLS.js → chunk-MMKBIMMC.js} +1 -1
  98. package/dist/{chunk-2MMGFZDP.js → chunk-MOCD7GFI.js} +1 -1
  99. package/dist/{chunk-XH6ZP7M5.js → chunk-MQXSMZQZ.js} +1 -1
  100. package/dist/{chunk-VQW35HIQ.js → chunk-MYQQOOGA.js} +1 -1
  101. package/dist/{chunk-75LJTY7F.js → chunk-N5HGT3TE.js} +1 -1
  102. package/dist/{chunk-VFWWZMOQ.js → chunk-NGPJXONG.js} +1 -1
  103. package/dist/{chunk-U73TPLFE.js → chunk-NV5IDANV.js} +1 -1
  104. package/dist/{chunk-GFCLUGAG.js → chunk-O2PI2PYG.js} +1 -1
  105. package/dist/{chunk-KSZ5K6LJ.js → chunk-O7MONSF7.js} +1 -1
  106. package/dist/{chunk-VOJWKGCW.js → chunk-OASPW2P2.js} +1 -1
  107. package/dist/{chunk-Z4LC3WE5.js → chunk-OCYPWE2O.js} +1 -1
  108. package/dist/{chunk-SXTDVUT3.js → chunk-ODH2U44N.js} +1 -1
  109. package/dist/{chunk-4N6YTHFD.js → chunk-OHASEW7T.js} +1 -1
  110. package/dist/{chunk-IIOIDMG3.js → chunk-OVLTFTZW.js} +1 -1
  111. package/dist/{chunk-Z74QYLNC.js → chunk-P6S5YLOP.js} +1 -1
  112. package/dist/{chunk-GUO7S4NW.js → chunk-PGKP7W5T.js} +1 -1
  113. package/dist/{chunk-LOHUNOQ7.js → chunk-PGN5EZTI.js} +1 -1
  114. package/dist/chunk-PGODIZ64.js +1 -0
  115. package/dist/{chunk-D6YDSGR4.js → chunk-PTIJDS6I.js} +1 -1
  116. package/dist/{chunk-3FBSBMSQ.js → chunk-Q2UHGP2Z.js} +1 -1
  117. package/dist/{chunk-RF6NUGCU.js → chunk-Q2X7IXPQ.js} +1 -1
  118. package/dist/{chunk-H5C3QTOO.js → chunk-Q6LCSRIW.js} +1 -1
  119. package/dist/{chunk-ZIREP3EZ.js → chunk-QDYDB7DY.js} +1 -1
  120. package/dist/{chunk-WLO5H255.js → chunk-QMSYJIAU.js} +1 -1
  121. package/dist/{chunk-T5GSCWN5.js → chunk-QPJQ67GU.js} +1 -1
  122. package/dist/{chunk-QS3FMN67.js → chunk-QPY6WJTT.js} +1 -1
  123. package/dist/{chunk-WAGAC3YI.js → chunk-QVYZZNAS.js} +1 -1
  124. package/dist/{chunk-CZXGQ53M.js → chunk-RFDT525K.js} +1 -1
  125. package/dist/{chunk-NY5OGHM5.js → chunk-RIRSTGFU.js} +1 -1
  126. package/dist/{chunk-APN3VWN4.js → chunk-SFMXFH33.js} +1 -1
  127. package/dist/{chunk-NWDP5IZ2.js → chunk-SKM44SK5.js} +1 -1
  128. package/dist/{chunk-O6KTFMCD.js → chunk-SRAHMYWJ.js} +1 -1
  129. package/dist/{chunk-OAI7VSLW.js → chunk-T3AJL2M5.js} +1 -1
  130. package/dist/{chunk-B7S23DLF.js → chunk-T5DF2GGD.js} +1 -1
  131. package/dist/{chunk-6DIHOMCB.js → chunk-TDCY3BRI.js} +1 -1
  132. package/dist/{chunk-5JNEWYD5.js → chunk-TDSR2X7X.js} +1 -1
  133. package/dist/{chunk-IG6LPVS4.js → chunk-TVU4YD2H.js} +1 -1
  134. package/dist/{chunk-FZKKKGUJ.js → chunk-TXJEP4FB.js} +1 -1
  135. package/dist/{chunk-LOQIRLTD.js → chunk-U2LQBJJL.js} +1 -1
  136. package/dist/{chunk-WZVQHMGI.js → chunk-U7ZRDNZU.js} +1 -1
  137. package/dist/{chunk-RYGZCBO4.js → chunk-UB5BVO76.js} +1 -1
  138. package/dist/{chunk-LCPD2BYX.js → chunk-UHJ65YFN.js} +1 -1
  139. package/dist/{chunk-5QQN3SKH.js → chunk-UYNCJGMC.js} +1 -1
  140. package/dist/{chunk-ATXODH6C.js → chunk-UZ7U322K.js} +1 -1
  141. package/dist/{chunk-HZMP62GK.js → chunk-VHAZBDFE.js} +1 -1
  142. package/dist/{chunk-GW3VY3FZ.js → chunk-VRRDIXFQ.js} +2 -2
  143. package/dist/{chunk-MZMYBFZQ.js → chunk-VSZS3FAJ.js} +1 -1
  144. package/dist/{chunk-B7BUEEBR.js → chunk-WIXW233Y.js} +1 -1
  145. package/dist/{chunk-CPE7XCC6.js → chunk-WMDYHUPS.js} +1 -1
  146. package/dist/{chunk-DO2SHYFU.js → chunk-WO5YOBQ7.js} +1 -1
  147. package/dist/{chunk-4TST2MNC.js → chunk-XDEAZP2I.js} +1 -1
  148. package/dist/{chunk-GBZL4TTY.js → chunk-XH5FCMS5.js} +1 -1
  149. package/dist/chunk-XU6CCL4P.js +278 -0
  150. package/dist/{chunk-XV3I45NA.js → chunk-XWQ72WTQ.js} +1 -1
  151. package/dist/chunk-YB3SGPFF.js +1 -0
  152. package/dist/{chunk-QMXKGSFH.js → chunk-YBFCDINU.js} +1 -1
  153. package/dist/{chunk-BCD4KTLJ.js → chunk-YJCJDCVP.js} +1 -1
  154. package/dist/{chunk-TQUSREKP.js → chunk-YYHCPLBX.js} +1 -1
  155. package/dist/{chunk-6RL7FUPD.js → chunk-YZY4M6IH.js} +1 -1
  156. package/dist/{chunk-WVHB2HCQ.js → chunk-ZDQNCYRH.js} +1 -1
  157. package/dist/{chunk-7EJ4UVYI.js → chunk-ZHPXJRHR.js} +1 -1
  158. package/dist/{chunk-YYL356OX.js → chunk-ZNWFTUFV.js} +1 -1
  159. package/dist/{chunk-ZQ5JVD5X.js → chunk-ZVQBSXE4.js} +1 -1
  160. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  161. package/dist/cli/commands/app/build.js +1 -1
  162. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  163. package/dist/cli/commands/app/bulk/execute.js +1 -1
  164. package/dist/cli/commands/app/bulk/status.js +1 -1
  165. package/dist/cli/commands/app/config/link.js +1 -1
  166. package/dist/cli/commands/app/config/pull.js +1 -1
  167. package/dist/cli/commands/app/config/use.js +1 -1
  168. package/dist/cli/commands/app/config/validate.js +1 -1
  169. package/dist/cli/commands/app/demo/watcher.js +1 -1
  170. package/dist/cli/commands/app/deploy.js +1 -1
  171. package/dist/cli/commands/app/dev/clean.js +1 -1
  172. package/dist/cli/commands/app/dev.js +1 -1
  173. package/dist/cli/commands/app/env/pull.js +1 -1
  174. package/dist/cli/commands/app/env/show.js +1 -1
  175. package/dist/cli/commands/app/execute.js +1 -1
  176. package/dist/cli/commands/app/function/build.js +1 -1
  177. package/dist/cli/commands/app/function/info.js +1 -1
  178. package/dist/cli/commands/app/function/replay.js +1 -1
  179. package/dist/cli/commands/app/function/run.js +1 -1
  180. package/dist/cli/commands/app/function/schema.js +1 -1
  181. package/dist/cli/commands/app/function/typegen.js +1 -1
  182. package/dist/cli/commands/app/generate/extension.js +1 -1
  183. package/dist/cli/commands/app/graphiql.js +1 -1
  184. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  185. package/dist/cli/commands/app/import-extensions.js +1 -1
  186. package/dist/cli/commands/app/info.js +1 -1
  187. package/dist/cli/commands/app/init.js +1 -1
  188. package/dist/cli/commands/app/logs.js +1 -1
  189. package/dist/cli/commands/app/release.js +1 -1
  190. package/dist/cli/commands/app/versions/list.js +1 -1
  191. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  192. package/dist/cli/commands/auth/login.js +1 -1
  193. package/dist/cli/commands/auth/logout.js +1 -1
  194. package/dist/cli/commands/cache/clear.js +1 -1
  195. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  196. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  197. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  198. package/dist/cli/commands/debug/command-flags.js +1 -1
  199. package/dist/cli/commands/doc/fetch.js +1 -1
  200. package/dist/cli/commands/doc/search.js +1 -1
  201. package/dist/cli/commands/docs/generate.js +1 -1
  202. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  203. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  204. package/dist/cli/commands/help.js +1 -1
  205. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  206. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  207. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  208. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  209. package/dist/cli/commands/notifications/generate.js +1 -1
  210. package/dist/cli/commands/notifications/list.js +1 -1
  211. package/dist/cli/commands/organization/list.js +1 -1
  212. package/dist/cli/commands/search.js +1 -1
  213. package/dist/cli/commands/theme/check.js +1 -1
  214. package/dist/cli/commands/theme/console.js +1 -1
  215. package/dist/cli/commands/theme/delete.js +1 -1
  216. package/dist/cli/commands/theme/dev.js +1 -1
  217. package/dist/cli/commands/theme/duplicate.js +1 -1
  218. package/dist/cli/commands/theme/info.js +1 -1
  219. package/dist/cli/commands/theme/init.js +1 -1
  220. package/dist/cli/commands/theme/language-server.js +1 -1
  221. package/dist/cli/commands/theme/list.js +1 -1
  222. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  223. package/dist/cli/commands/theme/open.js +1 -1
  224. package/dist/cli/commands/theme/package.js +1 -1
  225. package/dist/cli/commands/theme/preview.js +1 -1
  226. package/dist/cli/commands/theme/profile.js +1 -1
  227. package/dist/cli/commands/theme/publish.js +1 -1
  228. package/dist/cli/commands/theme/pull.js +1 -1
  229. package/dist/cli/commands/theme/push.js +1 -1
  230. package/dist/cli/commands/theme/rename.js +1 -1
  231. package/dist/cli/commands/theme/share.js +1 -1
  232. package/dist/cli/commands/upgrade.js +1 -1
  233. package/dist/cli/commands/version.js +1 -1
  234. package/dist/command-registry.js +1 -1
  235. package/dist/{conf-store-C2LOYIOU.js → conf-store-OC4XCP45.js} +1 -1
  236. package/dist/{deprecations-QOHE6JG6.js → deprecations-M5JGGK47.js} +1 -1
  237. package/dist/dist-3SP7TISC.js +1 -0
  238. package/dist/{dist-FF6C4ZHS.js → dist-Z4H2OM7V.js} +1 -1
  239. package/dist/{environments-EGD263DV.js → environments-ZLSO534C.js} +1 -1
  240. package/dist/{error-66U2HJ37.js → error-ZBG2MA5U.js} +1 -1
  241. package/dist/{error-handler-SW2ALZ5Z.js → error-handler-MCUV4RZV.js} +1 -1
  242. package/dist/{fs-JPQRUGZI.js → fs-7LCRIUF3.js} +1 -1
  243. package/dist/hooks/app-init.js +1 -1
  244. package/dist/hooks/did-you-mean.js +1 -1
  245. package/dist/hooks/hydrogen-init.js +1 -1
  246. package/dist/hooks/postrun.js +1 -1
  247. package/dist/hooks/prerun.js +1 -1
  248. package/dist/hooks/public-metadata.js +1 -1
  249. package/dist/hooks/sensitive-metadata.js +1 -1
  250. package/dist/hooks/tunnel-provider.js +1 -1
  251. package/dist/hooks/tunnel-start.js +1 -1
  252. package/dist/index.js +14 -14
  253. package/dist/{is-global-QWTDUPNR.js → is-global-RURDJZDU.js} +1 -1
  254. package/dist/{local-FRYN3NWL.js → local-5AKD7T5X.js} +1 -1
  255. package/dist/{local-storage-DFH3LT5G.js → local-storage-TJU77VRQ.js} +1 -1
  256. package/dist/{metadata-KZVLHQII.js → metadata-D5GLZOLV.js} +1 -1
  257. package/dist/{node-package-manager-LVFBY4LY.js → node-package-manager-FA3Y6DPG.js} +1 -1
  258. package/dist/notifications-system-76GJJAJP.js +1 -0
  259. package/dist/{output-NH4I5Y3C.js → output-FYS764MJ.js} +1 -1
  260. package/dist/{system-GNOF6HMI.js → system-KDM2BB7R.js} +1 -1
  261. package/dist/tsconfig.tsbuildinfo +1 -1
  262. package/dist/{ui-QOGKADWB.js → ui-QIHGXICT.js} +1 -1
  263. package/dist/upgrade-DY4L43H4.js +1 -0
  264. package/dist/{version-FJFTTOZU.js → version-LULWCT5R.js} +1 -1
  265. package/dist/version-WIERCO5R.js +1 -0
  266. package/dist/{workerd-U6WWWY73.js → workerd-N25GY5MX.js} +1 -1
  267. package/oclif.manifest.json +21 -7
  268. package/package.json +8 -8
  269. package/dist/chunk-FU232KQ7.js +0 -1
  270. package/dist/chunk-HM5H7WBE.js +0 -1
  271. package/dist/chunk-MQICT2LR.js +0 -1
  272. package/dist/chunk-UMT7DWR4.js +0 -1
  273. package/dist/chunk-ZIXWWU2N.js +0 -275
  274. package/dist/dist-Q676YGVI.js +0 -1
  275. package/dist/notifications-system-DP443VTE.js +0 -1
  276. package/dist/upgrade-K4S6JW64.js +0 -1
  277. package/dist/version-ZI4GZX72.js +0 -1
  278. /package/dist/{morph-CG6HEMCQ.js → morph-QZGREMO2.js} +0 -0
@@ -1 +1 @@
1
- import{b as n}from"./chunk-UKK5P74A.js";import{u as t}from"./chunk-6EZ7JWBK.js";import{k as r}from"./chunk-KKUDXLK2.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class extends n{static{this.description="Run CLI doctor-release tests"}static{this.hidden=!0}async run(){r()&&t({headline:"Shopify CLI Doctor Release.",body:["Available doctor-release commands:",""," shopify doctor-release theme -e <environment> Run all theme command tests","","The -e/--environment flag is required to specify the store configuration.","Use --help with any command for more options."]})}};export{e as a};
1
+ import{b as n}from"./chunk-IDKUJQIG.js";import{u as t}from"./chunk-E24W34C4.js";import{k as r}from"./chunk-JCNRQYRP.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class extends n{static{this.description="Run CLI doctor-release tests"}static{this.hidden=!0}async run(){r()&&t({headline:"Shopify CLI Doctor Release.",body:["Available doctor-release commands:",""," shopify doctor-release theme -e <environment> Run all theme command tests","","The -e/--environment flag is required to specify the store configuration.","Use --help with any command for more options."]})}};export{e as a};
@@ -1 +1 @@
1
- import{Q as r}from"./chunk-5W443CKL.js";import{b as c}from"./chunk-UKK5P74A.js";import{Nb as a}from"./chunk-DONEJHDG.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var o=class extends c{static{this.description="Logs you out of the Shopify account or Partner account and store."}async run(){await r(),a("Logged out from all the accounts")}};export{o as a};
1
+ import{Q as r}from"./chunk-2HZMOK4U.js";import{b as c}from"./chunk-IDKUJQIG.js";import{Nb as a}from"./chunk-EYDNSYYE.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var o=class extends c{static{this.description="Logs you out of the Shopify account or Partner account and store."}async run(){await r(),a("Logged out from all the accounts")}};export{o as a};
@@ -1 +1 @@
1
- import{A as e,B as r,F as o,G as s,k as n,z as h}from"./chunk-6EZ7JWBK.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function y(){await h({message:"Associate your project with the org Castile Ventures?",choices:[{label:"first",value:"first",disabled:!0},{label:"second",value:"second"},{label:"third (limit reached)",value:"third",disabled:!0},{label:"fourth (limit reached)",value:"fourth",disabled:!0},{label:"fifth",value:"fifth",group:"Automations",disabled:!0},{label:"sixth",value:"sixth",group:"Automations"},{label:"seventh",value:"seventh"},{label:"eighth (limit reached)",value:"eighth",group:"Merchant Admin",disabled:!0},{label:"ninth",value:"ninth",group:"Merchant Admin"},{label:"tenth",value:"tenth"}],infoTable:[{header:"add",items:["new-ext"],bullet:"+"},{header:"remove",items:["integrated-demand-ext","order-discount"],bullet:"-"}]}),await o({message:"App project name (can be changed later)",defaultValue:"expansive commerce app",validate:t=>{if(t.includes("shopify"))return`Can't include "shopify" in the name`}});let l=[{label:"first",value:"first"},{label:"second",value:"second"},{label:"third",value:"third"},{label:"fourth",value:"fourth"},{label:"fifth",value:"fifth"},{label:"sixth",value:"sixth"},{label:"seventh",value:"seventh"},{label:"eighth",value:"eighth"},{label:"ninth",value:"ninth"},{label:"tenth",value:"tenth"},{label:"eleventh",value:"eleventh"},{label:"twelfth",value:"twelfth"},{label:"thirteenth",value:"thirteenth"},{label:"fourteenth",value:"fourteenth"},{label:"fifteenth",value:"fifteenth"},{label:"sixteenth",value:"sixteenth"},{label:"seventeenth",value:"seventeenth"},{label:"eighteenth",value:"eighteenth"},{label:"nineteenth",value:"nineteenth"},{label:"twentieth",value:"twentieth"},{label:"twenty-first",value:"twenty-first"},{label:"twenty-second",value:"twenty-second"},{label:"twenty-third",value:"twenty-third"},{label:"twenty-fourth",value:"twenty-fourth"},{label:"twenty-fifth",value:"twenty-fifth"},{label:"twenty-sixth",value:"twenty-sixth"},{label:"twenty-seventh",value:"twenty-seventh"},{label:"twenty-eighth",value:"twenty-eighth"},{label:"twenty-ninth",value:"twenty-ninth"},{label:"thirtieth",value:"thirtieth"},{label:"thirty-first",value:"thirty-first"},{label:"thirty-second",value:"thirty-second"},{label:"thirty-third",value:"thirty-third"},{label:"thirty-fourth",value:"thirty-fourth"},{label:"thirty-fifth",value:"thirty-fifth"},{label:"thirty-sixth",value:"thirty-sixth"},{label:"thirty-seventh",value:"thirty-seventh"},{label:"thirty-eighth",value:"thirty-eighth"},{label:"thirty-ninth",value:"thirty-ninth"},{label:"fortieth",value:"fortieth"},{label:"forty-first",value:"forty-first"},{label:"forty-second",value:"forty-second"},{label:"forty-third",value:"forty-third"},{label:"forty-fourth",value:"forty-fourth"},{label:"forty-fifth",value:"forty-fifth"},{label:"forty-sixth",value:"forty-sixth"},{label:"forty-seventh",value:"forty-seventh"},{label:"forty-eighth",value:"forty-eighth"},{label:"forty-ninth",value:"forty-ninth"},{label:"fiftieth",value:"fiftieth"}];await r({message:"Template",choices:l,search(t){return Promise.resolve({data:l.filter(f=>f.label.includes(t))})}});let a=[["first theme",{subdued:"(#1)"}],["second theme",{subdued:"(#2)"}]];await e({message:"Add the following themes to the store?",infoTable:{"":a},confirmationMessage:"Yes, add them",cancellationMessage:"Cancel"});let u={title:{color:"red",text:`${n.warning} This can't be undone.`},body:"The action you are executing should be confirmed to proceed."};await e({message:"Delete the following themes from the store?",infoTable:{"":a},infoMessage:u,confirmationMessage:"Yes, delete them",cancellationMessage:"Cancel",defaultValue:!1}),await e({message:["Make the following changes to your",{filePath:".env"},"file?"],defaultValue:!0,confirmationMessage:"Yes, confirm changes",cancellationMessage:"No, make changes later"}),await s({message:"Release this version of Mega App?",infoTable:[{header:"Includes",items:["My subscription extension","Order discount function","Subscription cancelled trigger","Add subscription action"],bullet:"+"},{header:"Removes",items:["product-discount-function","product-subscription-extension"],bullet:"-"}],confirmation:"Mega App"})}export{y as a};
1
+ import{A as e,B as r,F as o,G as s,k as n,z as h}from"./chunk-E24W34C4.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function y(){await h({message:"Associate your project with the org Castile Ventures?",choices:[{label:"first",value:"first",disabled:!0},{label:"second",value:"second"},{label:"third (limit reached)",value:"third",disabled:!0},{label:"fourth (limit reached)",value:"fourth",disabled:!0},{label:"fifth",value:"fifth",group:"Automations",disabled:!0},{label:"sixth",value:"sixth",group:"Automations"},{label:"seventh",value:"seventh"},{label:"eighth (limit reached)",value:"eighth",group:"Merchant Admin",disabled:!0},{label:"ninth",value:"ninth",group:"Merchant Admin"},{label:"tenth",value:"tenth"}],infoTable:[{header:"add",items:["new-ext"],bullet:"+"},{header:"remove",items:["integrated-demand-ext","order-discount"],bullet:"-"}]}),await o({message:"App project name (can be changed later)",defaultValue:"expansive commerce app",validate:t=>{if(t.includes("shopify"))return`Can't include "shopify" in the name`}});let l=[{label:"first",value:"first"},{label:"second",value:"second"},{label:"third",value:"third"},{label:"fourth",value:"fourth"},{label:"fifth",value:"fifth"},{label:"sixth",value:"sixth"},{label:"seventh",value:"seventh"},{label:"eighth",value:"eighth"},{label:"ninth",value:"ninth"},{label:"tenth",value:"tenth"},{label:"eleventh",value:"eleventh"},{label:"twelfth",value:"twelfth"},{label:"thirteenth",value:"thirteenth"},{label:"fourteenth",value:"fourteenth"},{label:"fifteenth",value:"fifteenth"},{label:"sixteenth",value:"sixteenth"},{label:"seventeenth",value:"seventeenth"},{label:"eighteenth",value:"eighteenth"},{label:"nineteenth",value:"nineteenth"},{label:"twentieth",value:"twentieth"},{label:"twenty-first",value:"twenty-first"},{label:"twenty-second",value:"twenty-second"},{label:"twenty-third",value:"twenty-third"},{label:"twenty-fourth",value:"twenty-fourth"},{label:"twenty-fifth",value:"twenty-fifth"},{label:"twenty-sixth",value:"twenty-sixth"},{label:"twenty-seventh",value:"twenty-seventh"},{label:"twenty-eighth",value:"twenty-eighth"},{label:"twenty-ninth",value:"twenty-ninth"},{label:"thirtieth",value:"thirtieth"},{label:"thirty-first",value:"thirty-first"},{label:"thirty-second",value:"thirty-second"},{label:"thirty-third",value:"thirty-third"},{label:"thirty-fourth",value:"thirty-fourth"},{label:"thirty-fifth",value:"thirty-fifth"},{label:"thirty-sixth",value:"thirty-sixth"},{label:"thirty-seventh",value:"thirty-seventh"},{label:"thirty-eighth",value:"thirty-eighth"},{label:"thirty-ninth",value:"thirty-ninth"},{label:"fortieth",value:"fortieth"},{label:"forty-first",value:"forty-first"},{label:"forty-second",value:"forty-second"},{label:"forty-third",value:"forty-third"},{label:"forty-fourth",value:"forty-fourth"},{label:"forty-fifth",value:"forty-fifth"},{label:"forty-sixth",value:"forty-sixth"},{label:"forty-seventh",value:"forty-seventh"},{label:"forty-eighth",value:"forty-eighth"},{label:"forty-ninth",value:"forty-ninth"},{label:"fiftieth",value:"fiftieth"}];await r({message:"Template",choices:l,search(t){return Promise.resolve({data:l.filter(f=>f.label.includes(t))})}});let a=[["first theme",{subdued:"(#1)"}],["second theme",{subdued:"(#2)"}]];await e({message:"Add the following themes to the store?",infoTable:{"":a},confirmationMessage:"Yes, add them",cancellationMessage:"Cancel"});let u={title:{color:"red",text:`${n.warning} This can't be undone.`},body:"The action you are executing should be confirmed to proceed."};await e({message:"Delete the following themes from the store?",infoTable:{"":a},infoMessage:u,confirmationMessage:"Yes, delete them",cancellationMessage:"Cancel",defaultValue:!1}),await e({message:["Make the following changes to your",{filePath:".env"},"file?"],defaultValue:!0,confirmationMessage:"Yes, confirm changes",cancellationMessage:"No, make changes later"}),await s({message:"Release this version of Mega App?",infoTable:[{header:"Includes",items:["My subscription extension","Order discount function","Subscription cancelled trigger","Add subscription action"],bullet:"+"},{header:"Removes",items:["product-discount-function","product-subscription-extension"],bullet:"-"}],confirmation:"Mega App"})}export{y as a};
@@ -1,4 +1,4 @@
1
- import{a as w0,b as b0}from"./chunk-XH6ZP7M5.js";import{b as C0,o as QB}from"./chunk-VDN6MEYI.js";import{a as JB}from"./chunk-VJEKDBGZ.js";import{a as v0}from"./chunk-GUO7S4NW.js";import{$ as Ld,A as Zo,B as Fn,C as Ie,D as Dr,E as _i,F as Yc,G as O0,H as rn,I as T0,J as Gc,K as I0,L as B0,M as Kc,N as Jc,R as R0,S as M0,T as N0,U as j0,V as $0,W as L0,X as U0,Z as k0,_ as q0,ba as W0,c as E0,da as Qc,e as Md,f as $n,g as Jo,k as Hc,l as zc,m as Nd,n as jd,p as Vc,q as x0,r as gi,s as A0,t as $d,u as S0,v as Ge,w as Qo,x as Xo,y as P0,z as hr}from"./chunk-442S5SDM.js";import{aa as KB}from"./chunk-T5GSCWN5.js";import{a as F0}from"./chunk-G24L7MB3.js";import{b as vs,c as lt}from"./chunk-J2WCMQZZ.js";import{a as r0,b as i0}from"./chunk-5GVXMNC4.js";import{a as y0}from"./chunk-YYL356OX.js";import{a as nn}from"./chunk-J5TNYNR5.js";import{$ as $c,H as Ky,I as Jy,N as Qy,T as Xy,U as Zy,V as zB,W as VB,X as e0,Y as YB,Z as hi,_ as Di,aa as t0,ba as vt,d as qy,da as _s,ea as n0,g as WB,j as Wy,n as Hy,p as zy,r as F,t as Vy,z as Yy}from"./chunk-5W443CKL.js";import{m as Lc,n as u0,s as s0,t as a0,w as Uc,x as c0}from"./chunk-GW3VY3FZ.js";import{o as Gy}from"./chunk-KN3FTJDU.js";import{a as wd}from"./chunk-FU232KQ7.js";import{a as $r,b as io}from"./chunk-SXTDVUT3.js";import{a as HB,b as Td}from"./chunk-47MGPVED.js";import{a as gs,c as Nc,d as jc}from"./chunk-5C7HDTHJ.js";import{A as Ct,B as Fs,D as p0,F as Es,G as d0,I as h0,O as mi,R as D0,q as GB,u as oo,v as ys,w as kc,x as l0,z as f0}from"./chunk-6EZ7JWBK.js";import{f as Id}from"./chunk-WRRUFK4Y.js";import{d as k,f as tn,g as jn}from"./chunk-WKBVT5WG.js";import{$ as Od,$a as pr,Ba as Ny,Ea as di,F as LB,Fa as jy,Fb as xe,Ga as Ic,Gb as qc,Hb as Ae,Ka as $y,L as ro,La as Ly,Mb as Ko,N as It,O as Ad,Oa as Bc,Ob as Wc,P as Sd,Pa as Uy,Pb as ce,Qb as Lr,R as UB,S as kB,Sb as g0,Ta as Z,Tb as _0,U as Iy,Ua as Ut,W as Ds,Wa as Ve,Xa as ky,Y as Lt,Z as Pd,b as BB,ba as Pc,bb as Rc,c as RB,db as Mc,ea as By,f as Ay,fa as Go,i as MB,ia as Ry,k as NB,ka as Oc,m as Py,ma as $e,n as Oy,na as jr,oa as ms,pa as Mn,q as jB,qa as Tc,u as Ty,ua as Et,v as $B,va as My,w as xd,wa as Nn,yb as o0}from"./chunk-DONEJHDG.js";import{b as TB,c as IB,e as xy,f as Sy,j as qB,u as dr}from"./chunk-A4SBXDZB.js";import{l as Bd,m as Rd,n as m0}from"./chunk-KKUDXLK2.js";import{a as hs}from"./chunk-NNOSZ447.js";import{d as R,e as no,f as Nr,g as Oe,h as Cy,i as De,j as Te,k as Ac,l as wy,n as Sc,s as by,t as bd}from"./chunk-773TIA5M.js";import{a as ze,c as B,e as fr,f as OB,g as d}from"./chunk-VKWPEFWQ.js";var pF=B((Zc,fF)=>{d();(function(e,t){typeof Zc=="object"&&typeof fF<"u"?t(Zc,(kB(),OB(UB)),WB()):typeof define=="function"&&define.amd?define(["exports","tslib","graphql"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["graphql-tag"]={},e.tslib,e.graphql))})(Zc,(function(e,t,n){"use strict";var r=new Map,i=new Map,s=!0,a=!1;function l(q){return q.replace(/[\s,]+/g," ").trim()}function p(q){return l(q.source.body.substring(q.start,q.end))}function h(q){var Q=new Set,X=[];return q.definitions.forEach(function(fe){if(fe.kind==="FragmentDefinition"){var ye=fe.name.value,We=p(fe.loc),mt=i.get(ye);mt&&!mt.has(We)?s&&console.warn("Warning: fragment with name "+ye+` already exists.
1
+ import{a as w0,b as b0}from"./chunk-MQXSMZQZ.js";import{b as C0,o as QB}from"./chunk-VDN6MEYI.js";import{a as JB}from"./chunk-VJEKDBGZ.js";import{a as v0}from"./chunk-PGKP7W5T.js";import{$ as Ld,A as Zo,B as Fn,C as Ie,D as Dr,E as _i,F as Yc,G as O0,H as rn,I as T0,J as Gc,K as I0,L as B0,M as Kc,N as Jc,R as R0,S as M0,T as N0,U as j0,V as $0,W as L0,X as U0,Z as k0,_ as q0,ba as W0,c as E0,da as Qc,e as Md,f as $n,g as Jo,k as Hc,l as zc,m as Nd,n as jd,p as Vc,q as x0,r as gi,s as A0,t as $d,u as S0,v as Ge,w as Qo,x as Xo,y as P0,z as hr}from"./chunk-IRH6IGFT.js";import{aa as KB}from"./chunk-QPJQ67GU.js";import{a as F0}from"./chunk-H7PNMMDO.js";import{b as vs,c as lt}from"./chunk-ASOT7VNB.js";import{a as r0,b as i0}from"./chunk-ICFFBMFB.js";import{a as y0}from"./chunk-ZNWFTUFV.js";import{a as nn}from"./chunk-5JCREGSD.js";import{$ as $c,H as Ky,I as Jy,N as Qy,T as Xy,U as Zy,V as zB,W as VB,X as e0,Y as YB,Z as hi,_ as Di,aa as t0,ba as vt,d as qy,da as _s,ea as n0,g as WB,j as Wy,n as Hy,p as zy,r as F,t as Vy,z as Yy}from"./chunk-2HZMOK4U.js";import{m as Lc,n as u0,s as s0,t as a0,w as Uc,x as c0}from"./chunk-VRRDIXFQ.js";import{o as Gy}from"./chunk-LUG2BZJP.js";import{a as wd}from"./chunk-J3KRY2SD.js";import{a as $r,b as io}from"./chunk-ODH2U44N.js";import{a as HB,b as Td}from"./chunk-4TC4M4RC.js";import{a as gs,c as Nc,d as jc}from"./chunk-5C7HDTHJ.js";import{A as Ct,B as Fs,D as p0,F as Es,G as d0,I as h0,O as mi,R as D0,q as GB,u as oo,v as ys,w as kc,x as l0,z as f0}from"./chunk-E24W34C4.js";import{f as Id}from"./chunk-3QVXHF6I.js";import{d as k,f as tn,g as jn}from"./chunk-ELIH6GCC.js";import{$ as Od,$a as pr,Ba as Ny,Ea as di,F as LB,Fa as jy,Fb as xe,Ga as Ic,Gb as qc,Hb as Ae,Ka as $y,L as ro,La as Ly,Mb as Ko,N as It,O as Ad,Oa as Bc,Ob as Wc,P as Sd,Pa as Uy,Pb as ce,Qb as Lr,R as UB,S as kB,Sb as g0,Ta as Z,Tb as _0,U as Iy,Ua as Ut,W as Ds,Wa as Ve,Xa as ky,Y as Lt,Z as Pd,b as BB,ba as Pc,bb as Rc,c as RB,db as Mc,ea as By,f as Ay,fa as Go,i as MB,ia as Ry,k as NB,ka as Oc,m as Py,ma as $e,n as Oy,na as jr,oa as ms,pa as Mn,q as jB,qa as Tc,u as Ty,ua as Et,v as $B,va as My,w as xd,wa as Nn,yb as o0}from"./chunk-EYDNSYYE.js";import{b as TB,c as IB,e as xy,f as Sy,j as qB,u as dr}from"./chunk-A4SBXDZB.js";import{l as Bd,m as Rd,n as m0}from"./chunk-JCNRQYRP.js";import{a as hs}from"./chunk-NNOSZ447.js";import{d as R,e as no,f as Nr,g as Oe,h as Cy,i as De,j as Te,k as Ac,l as wy,n as Sc,s as by,t as bd}from"./chunk-773TIA5M.js";import{a as ze,c as B,e as fr,f as OB,g as d}from"./chunk-VKWPEFWQ.js";var pF=B((Zc,fF)=>{d();(function(e,t){typeof Zc=="object"&&typeof fF<"u"?t(Zc,(kB(),OB(UB)),WB()):typeof define=="function"&&define.amd?define(["exports","tslib","graphql"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["graphql-tag"]={},e.tslib,e.graphql))})(Zc,(function(e,t,n){"use strict";var r=new Map,i=new Map,s=!0,a=!1;function l(q){return q.replace(/[\s,]+/g," ").trim()}function p(q){return l(q.source.body.substring(q.start,q.end))}function h(q){var Q=new Set,X=[];return q.definitions.forEach(function(fe){if(fe.kind==="FragmentDefinition"){var ye=fe.name.value,We=p(fe.loc),mt=i.get(ye);mt&&!mt.has(We)?s&&console.warn("Warning: fragment with name "+ye+` already exists.
2
2
  graphql-tag enforces all fragment names across your application to be unique; read more about
3
3
  this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):mt||i.set(ye,mt=new Set),mt.add(We),Q.has(We)||(Q.add(We),X.push(fe))}else X.push(fe)}),t.__assign(t.__assign({},q),{definitions:X})}function m(q){var Q=new Set(q.definitions);Q.forEach(function(fe){fe.loc&&delete fe.loc,Object.keys(fe).forEach(function(ye){var We=fe[ye];We&&typeof We=="object"&&Q.add(We)})});var X=q.loc;return X&&(delete X.startToken,delete X.endToken),q}function _(q){var Q=l(q);if(!r.has(Q)){var X=n.parse(q,{experimentalFragmentVariables:a,allowLegacyFragmentVariables:a});if(!X||X.kind!=="Document")throw new Error("Not a valid GraphQL document.");r.set(Q,m(h(X)))}return r.get(Q)}function C(q){for(var Q=[],X=1;X<arguments.length;X++)Q[X-1]=arguments[X];typeof q=="string"&&(q=[q]);var fe=q[0];return Q.forEach(function(ye,We){ye&&ye.kind==="Document"?fe+=ye.loc.source.body:fe+=ye,fe+=q[We+1]}),_(fe)}function v(){r.clear(),i.clear()}function b(){s=!1}function A(){a=!0}function O(){a=!1}var T={gql:C,resetCaches:v,disableFragmentWarnings:b,enableExperimentalFragmentVariables:A,disableExperimentalFragmentVariables:O};(function(q){q.gql=T.gql,q.resetCaches=T.resetCaches,q.disableFragmentWarnings=T.disableFragmentWarnings,q.enableExperimentalFragmentVariables=T.enableExperimentalFragmentVariables,q.disableExperimentalFragmentVariables=T.disableExperimentalFragmentVariables})(C||(C={})),C.default=C;var L=C;e.default=L,e.disableExperimentalFragmentVariables=O,e.disableFragmentWarnings=b,e.enableExperimentalFragmentVariables=A,e.gql=C,e.resetCaches=v,Object.defineProperty(e,"__esModule",{value:!0})}))});var hF=B((Rz,dF)=>{d();dF.exports=pF().gql});var vF=B(EF=>{d();var m8=Object.create,el=Object.defineProperty,g8=Object.getPrototypeOf,_8=Object.prototype.hasOwnProperty,y8=Object.getOwnPropertyNames,F8=Object.getOwnPropertyDescriptor,mF=e=>el(e,"__esModule",{value:!0}),E8=(e,t)=>{mF(e);for(var n in t)el(e,n,{get:t[n],enumerable:!0})},v8=(e,t,n)=>{if(mF(e),t&&typeof t=="object"||typeof t=="function")for(let r of y8(t))!_8.call(e,r)&&r!=="default"&&el(e,r,{get:()=>t[r],enumerable:!(n=F8(t,r))||n.enumerable});return e},tl=e=>e&&e.__esModule?e:v8(el(e!=null?m8(g8(e)):{},"default",{value:e,enumerable:!0}),e);E8(EF,{default:()=>T8,generateContentsFromGraphqlString:()=>FF,generateGraphQLString:()=>_F});var C8=tl(ze("fs")),w8=tl(hF()),b8=tl(ze("readline")),DF=tl(ze("path")),gF=(e,t)=>{let n=t?t(e):e;return JSON.stringify(n,(r,i)=>i===void 0?"__undefined":i).replace(/"__undefined"/g,"undefined")},x8=(e,t)=>{let n=new Set,r=[],i=s=>{n.has(s)||(n.add(s),s.imports.forEach(a=>{let l=t[a.absolutePath];i(l)}),r.unshift(s))};return e.forEach(i),r},A8=e=>new Promise(t=>{let n=b8.default.createInterface({input:C8.default.createReadStream(e)}),r="",i=[],s=!1,a=(l,p)=>{let h=p.replace(l,""),m=h.replace(/"|'/g,""),_=DF.default.join(DF.default.dirname(e),m);i.push({absolutePath:_,relativePath:h})};n.on("line",l=>{l.startsWith("#import ")?a("#import ",l):l.startsWith("# import ")?a("# import ",l):s?r+=l+`
4
4
  `:l[0]!=="#"&&l!==""&&(s=!0,r+=l+`
@@ -1,4 +1,4 @@
1
- import{a as qr}from"./chunk-KSZ5K6LJ.js";import{a as Mt}from"./chunk-UOHNRH6E.js";import{a as Ir}from"./chunk-H6WN7GP4.js";import{a as Lr}from"./chunk-Z4LC3WE5.js";import{a as Mr}from"./chunk-4TST2MNC.js";import{a as kr}from"./chunk-J7UQBC45.js";import{a as Dr}from"./chunk-X4DIJTIK.js";import{b as Fr}from"./chunk-TKG42KLM.js";import{a as Or}from"./chunk-MFLQRQQT.js";import{a as Nr}from"./chunk-B7S23DLF.js";import{a as Pr}from"./chunk-FA4K3JRN.js";import{a as Er}from"./chunk-NADNFSKS.js";import{a as br}from"./chunk-PZYP3MCL.js";import{a as Sr}from"./chunk-DO2SHYFU.js";import{a as Ur}from"./chunk-6DIHOMCB.js";import{a as Rr}from"./chunk-LOHUNOQ7.js";import{a as Tr,b as Ar,c as _r,d as Cr}from"./chunk-OORCODNK.js";import{a as $r}from"./chunk-DQ4HA72R.js";import{g as xr}from"./chunk-2NWWMNU5.js";import{a as Lo,b as ko}from"./chunk-733R5OKQ.js";import{a as gr}from"./chunk-YGKQCEVG.js";import{a as vr}from"./chunk-HZSAUZBX.js";import{a as gt}from"./chunk-J3HXFQ2L.js";import{a as yr}from"./chunk-CZXGQ53M.js";import{c as ht,m as wt}from"./chunk-6YPEONHB.js";import{b as wr,g as je,j as ft}from"./chunk-PJYNAUQB.js";import{c as Yo}from"./chunk-NWDP5IZ2.js";import{a as fr,b as hr,c as Ye,d as Co,e as Pt,f as Io,g as Do}from"./chunk-CPE7XCC6.js";import{a as O,b as mt}from"./chunk-O6KTFMCD.js";import{a as cr,b as lr,d as Ee,f as pr,m as Ge,n as ee,s as W,u as ur,v as dr,w as mr}from"./chunk-Q7BOSHWX.js";import{c as Wr}from"./chunk-G2I2ZUBV.js";import{a as ir}from"./chunk-ZEENHLSC.js";import{a as bo,b as vt,c as te,d as So}from"./chunk-5JNEWYD5.js";import{a as $o,f as Mo,g as Fo,h as xt,i as Oo,j as No,k as qo,l as Wo,m as Ho,n as Bo,o as Go,p as jo,q as Ko,v as zo,x as Vo,z as Et}from"./chunk-6RL7FUPD.js";import{a as Uo,b as Ro,c as To,d as Ao,e as _o}from"./chunk-73W5BGAZ.js";import{a as Br}from"./chunk-2MMGFZDP.js";import{a as Eo}from"./chunk-JOZXRV5K.js";import{a as xo}from"./chunk-HM5H7WBE.js";import{a as Hr}from"./chunk-ZAMDXIVC.js";import{a as Qe}from"./chunk-U73TPLFE.js";import{Aa as Ve,F as no,Fa as Po,H as so,J as fe,R as ao,U as uo,V as mo,Z as fo,aa as ho,fa as go,g as Gr,i as Kr,ia as wo,j as zr,ja as yo,k as J,ka as vo,l as Vr,n as Yr,o as Qr,r as yt,s as Jr,u as Xr,v as Zr,w as eo,x as to,y as ro,z as oo,za as ze}from"./chunk-ATXODH6C.js";import{O as io,P as co,Z as lo,ca as po,e as Ke,j as be,p as jr}from"./chunk-442S5SDM.js";import{c as sr}from"./chunk-J2WCMQZZ.js";import{a as H}from"./chunk-J5TNYNR5.js";import{$ as Yt,N as Vt,Z as de,a as Wt,c as Ht,h as Bt,l as Gt,n as jt,q as Kt,t as zt,ta as Qt,u as ke,z as De}from"./chunk-5W443CKL.js";import{b as ar,d as Be}from"./chunk-H5C3QTOO.js";import{a as lt,c as qt}from"./chunk-5C7HDTHJ.js";import{D as Ne,H as Zt,J as Z,O as qe,P as xe,Q as dt,R as tr,T as rr,a as Nt,i as pt,j as $e,k as M,l as F,m as Me,n as ut,o as Xt,p as Fe,u as Oe,w as ne}from"./chunk-6EZ7JWBK.js";import{a as Zn}from"./chunk-7UNQOKZW.js";import{d as Jt}from"./chunk-WRRUFK4Y.js";import{d as _,g as me,l as er}from"./chunk-WKBVT5WG.js";import{$a as ve,Ea as Dt,Fb as U,Gb as nr,Hb as R,Mb as Q,Na as Ie,Pb as y,Q as ct,Qb as k,Ta as X,Wa as Le,cb as $t,eb as Pe,fb as L,gb as S,jb as le,kb as pe,ma as I,mb as Ft,nb as Ot,tb as ue,ua as _e,wa as Ce}from"./chunk-DONEJHDG.js";import{d as or,f as We,j as He}from"./chunk-KKUDXLK2.js";import{a as Re}from"./chunk-NNOSZ447.js";import{d as T,f as it,g as Te,i as ce,j as Lt,k as Ae,o as kt,p as ye}from"./chunk-773TIA5M.js";import{r as Xn}from"./chunk-T6CC5WUU.js";import{e as oe,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();p();p();p();var es=300*1e3,ts='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 Qo(t,e,r=Date.now()){for(;await rs(t,e,r););}async function rs(t,e,r){let o=await je(t,e);if(!o||os(o,r))throw new _(ts);return await xe(3),o.processing}function os(t,e){return t.processing&&Date.now()-e>=es}var ns="https://codeload.github.com/Shopify/dawn/zip/refs/tags/v15.0.0",ss="https://cdn.shopify.com/theme-store/uhrdefhlndzaoyrgylhto59sx2i7.jpg",bt=3,Je=class extends yr{constructor(e,r={devPreview:!1}){super(e),this.context="App Ext. Host",this.themeId=Tr(e.storeFqdn),this.devPreview=r.devPreview}async findOrCreate(){let e=await this.fetch();return e??(e=this.devPreview?await this.createHostTheme():await this.create()),e}setTheme(e){Ar(this.adminSession.storeFqdn,e)}removeTheme(){_r(this.adminSession.storeFqdn)}async createHostTheme(){let e={role:wr,name:this.generateThemeName(this.context),src:ns};for(let o=0;o<bt;o++){y(`Attempt ${o}/${bt}: Creating theme with name "${e.name}" and role "${e.role}"`);try{let n=await ft(e,this.adminSession);if(n)return this.setTheme(n.id.toString()),y(`Waiting for theme with id "${n.id}" to be processed`),await Qo(n.id,this.adminSession),n;throw new Error}catch{y(`Failed to create theme with name "${e.name}" and role "${e.role}". Retrying...`)}}y(`Theme creation failed after ${bt} retries. Creating theme using fallback theme zip`);let r=await ft({...e,src:ss},this.adminSession);if(!r)throw y("Theme creation failed. Exiting process."),new me(`Could not create theme with name "${e.name}" and role "${e.role}"`);return r}};p();var as={"theme:init":Ur,"theme:check":gr,"theme:console":vr,"theme:delete":Pr,"theme:dev":Er,"theme:duplicate":br,"theme:info":Sr,"theme:language-server":Rr,"theme:list":Cr,"theme:metafields:pull":$r,"theme:open":Ir,"theme:package":Lr,"theme:profile":kr,"theme:publish":Dr,"theme:preview":Mr,"theme:pull":Fr,"theme:push":Or,"theme:rename":Nr,"theme:share":qr},oi=as;async function Jo(t){let{remoteApp:e,localApp:r}=t,n=r.allExtensions.filter(v=>v.isThemeExtension);if(n.length===0)return;let a=n[0].directory,i=t.themeExtensionPort??9293,[l,u]=await Promise.all([Vt(t.storeFqdn),ls(e)]),c=l.storeFqdn,[m,h]=await Promise.all([wt(l),ht(l)]),g=h?await gt(void 0,c,m):void 0,d=await cs(l,t.theme),f=d.id.toString();return Oe({headline:"The theme app extension development server is ready.",orderedNextSteps:!0,nextSteps:[[{link:{label:"Install your app in your development store",url:u}}],[{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:is,options:{theme:d,adminSession:l,storefrontPassword:g,crawlerSignatureHeaders:m,themeExtensionDirectory:a,themeExtensionPort:i}}}var is=async(t,{theme:e,adminSession:r,storefrontPassword:o,crawlerSignatureHeaders:n,themeExtensionDirectory:s,themeExtensionPort:a})=>{await(await xr(e,{adminSession:r,storefrontPassword:o,crawlerSignatureHeaders:n,themeExtensionDirectory:s,themeExtensionPort:a})).start()};async function cs(t,e){let r;if(e)y(`Fetching theme with provided id ${e}`),r=await je(parseInt(e,10),t);else{let o=new Je(t,{devPreview:!0});await Ne([{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 ls(t){return t.developerPlatformClient?.clientName===lo.AppManagement?`https://${await ke()}/?organization_id=${t.organizationId}&no_redirect=true&redirect=/oauth/redirect_from_developer_dashboard?client_id%3D${t.apiKey}`:`https://${await zt()}/${t.organizationId}/apps/${t.id}/test`}p();p();p();p();p();p();async function ps(t){let e=T(t.directory,"locales");return Le([T(e,"*.json")])}async function Xo(t,e){let r=await ps(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),us(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 us(t,e,r,o,n){let s;try{s=await I(e),r.translations[t]=JSON.parse(s)}catch(a){let i=`Error parsing ${t} locale for ${o.handle} at ${e}: ${a.message}`;throw k(i,n.stderr),new er.ExtendableError(i)}}p();function Xe(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:""}}}async function he(t,e,r,o){return F({outputPrefix:t.outputPrefix},async()=>{o?.clear();let n=t.getOutputPathForDirectory(e),s=`${r.url}/extensions/${t.devUUID}`,{localization:a,status:i}=await Xo(t,r),l=await Vr(t),u=t.outputRelativePath?ce(n):n,c=await ds(t,s,u,o),m=null;return"metafields"in t.configuration&&Array.isArray(t.configuration.metafields)&&t.configuration.metafields.length>0&&(m=t.configuration.metafields),{assets:{main:Se(c)&&c[0]?.assets?.main?c[0].assets.main:{name:"main",url:`${s}/assets/${t.outputFileName}`,lastUpdated:await Ie(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:Xe(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:m,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 ds(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"}]),Se(s)){let a=await ms(r);return Promise.all(s.map(async i=>{let{target:l,resource:u}=i,c={...i,surface:Ve(l),root:{url:`${e}/${l}`},resource:u||{url:""}},m=a?.[l];if(!m)return c;let g=await ys(m,{target:l,extensionPoint:i,url:e,extension:t,buildDirectory:r,resolver:o});return{...c,...g}}))}return s}async function ms(t){try{let e=T(t,"manifest.json"),r=await I(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 fs({target:t,extensionPoint:e,url:r,extension:o,resolver:n},s,a){let i=`${t}/${s}`,l=e[s];if(typeof l=="string"){let g=await Ze(s,i,typeof a=="string"?a:l,r,o,n,typeof a=="string"?l:void 0);return{assets:{[g.name]:g}}}let c=e.build_manifest?.assets?.[s];if(c?.filepath){let m=await Ze(s,i,c.filepath,r,o,n,c.module);return{assets:{[m.name]:m}}}return{}}async function hs({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 Ie(T(r,i))??0));return{assets:{[n]:{name:n,url:`${e}/assets/${t}/`,lastUpdated:Math.max(...a)}}}}async function gs({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 u=i.schema,c=s[l]?.schema,m=typeof c=="string"?c:u,h=typeof c=="string"?u:void 0;return{...i,schema:await Ze("schema",`${t}/intents/${l}/schema`,m,r,o,n,h)}}))}:{}}async function ws({target:t,url:e,extension:r,resolver:o},n,s){let a=await Ze(n,`${t}/${n}`,s,e,r,o);return{assets:{[a.name]:a}}}async function ys(t,e){return(await Promise.all(Object.keys(t).map(async o=>{let n=t[o];return vs(o,n)?gs(e,n):Ps(o,n)?ws(e,o,n):xs(o,n)?hs(e,o,n):fs(e,o,n)}))).reduce((o,n)=>({...o,...n,assets:{...o.assets,...n.assets}}),{})}function Se(t){return Array.isArray(t)&&t.every(e=>typeof e=="object")}async function Ze(t,e,r,o,n,s,a){let i=`${e}${Ae(r)}`;return s?.set(i,r),{name:t,url:`${o}/assets/${i}`,lastUpdated:await Ie(T(n.directory,a??r))??0}}function vs(t,e){return t==="intents"&&Array.isArray(e)}function Ps(t,e){return(t==="main"||t==="should_render")&&typeof e=="string"}function xs(t,e){return t==="assets"&&Array.isArray(e)&&e.every(r=>typeof r=="string")}import{EventEmitter as Es}from"events";var Ue;(function(t){t.Update="PayloadUpdatedEvent:UPDATE"})(Ue||(Ue={}));async function Zo(t,e,r){return{app:{title:t.appName,apiKey:t.apiKey,url:Ye(t.storeFqdn,t.apiKey),mobileUrl:Io(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=>he(n,e,t,r&&St(r,n.devUUID))))}}function St(t,e){let r=t.get(e);return r||(r=new Map,t.set(e,r)),r}var et=class extends Es{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=de(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(Se(n.extensionPoints)&&Se(o.extensionPoints)){let s=n.extensionPoints.reduce((l,u)=>({...l,[u.target]:u}),{});o.extensionPoints=de(o.extensionPoints,n.extensionPoints,l=>l.map(u=>{let c=s[u.target];return c?de(u,c,(m,h)=>h):u}));let{extensionPoints:a,...i}=n;return de(o,i)}return de(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(R`Could not updateExtension() for extension with uuid: ${e.devUUID}`,r.stderr);return}s[a]=await he(e,o,{...this.options,currentDevelopmentPayload:n??{status:s[a]?.development.status},currentLocalizationPayload:s[a]?.localization},St(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 he(e,r,this.options,St(this.assetResolvers,e.devUUID))),this.emitUpdate([e.devUUID])}emitUpdate(e){this.emit(Ue.Update,e)}};p();p();var se;(function(t){t.Update="update",t.Dispatch="dispatch",t.Log="log"})(se||(se={}));function en(t,e){return(r,o,n)=>{r.url==="/extensions"&&(y("Upgrading HTTP request to a websocket connection",e.stdout),t.handleUpgrade(r,o,n,bs(t,e)))}}function bs(t,e){return r=>{y("Websocket connection successfully established",e.stdout);let o={event:"connected",data:e.payloadStore.getConnectedPayload(),version:e.manifestVersion};y(R`Sending connected payload: ${U.json(o)}`,e.stdout),r.send(JSON.stringify(o)),r.on("message",As(t,e))}}function Ss(t){try{let e=JSON.parse(t);if(!Array.isArray(e))return t;let r=e.map(o=>typeof o=="object"&&o!==null?U.json(o).output():String(o)).join(" ");return R`${r}`.value}catch(e){if(e instanceof SyntaxError)return t;throw e}}var Us={debug:t=>U.gray(t),warn:t=>U.yellow(t),error:t=>U.errorText(t)};function Rs({type:t,message:e}){let r=Ss(e);switch(t){case"debug":case"warn":case"error":return R`${Us[t](t.toUpperCase())}: ${r}`.value;case"log":case"info":return r;default:return`${t.toUpperCase()}: ${r}`}}function Ts(t,e){F({outputPrefix:t.extensionName,stripAnsi:!1},()=>{e.stdout.write(Rs(t))})}function As(t,e){return r=>{let o=JSON.parse(r.toString()),{event:n,data:s}=o;if(y(R`Received websocket message with event type ${n} and data:
1
+ import{a as qr}from"./chunk-O7MONSF7.js";import{a as Mt}from"./chunk-UOHNRH6E.js";import{a as Ir}from"./chunk-FPCPFECH.js";import{a as Lr}from"./chunk-OCYPWE2O.js";import{a as Mr}from"./chunk-XDEAZP2I.js";import{a as kr}from"./chunk-JO4ZHVOD.js";import{a as Dr}from"./chunk-H7DDRARV.js";import{b as Fr}from"./chunk-E7OLCSAL.js";import{a as Or}from"./chunk-AVMNXIXF.js";import{a as Nr}from"./chunk-T5DF2GGD.js";import{a as Pr}from"./chunk-DDVT2K7E.js";import{a as Er}from"./chunk-DA4LHFJQ.js";import{a as br}from"./chunk-DU5LZYQX.js";import{a as Sr}from"./chunk-WO5YOBQ7.js";import{a as Ur}from"./chunk-TDCY3BRI.js";import{a as Rr}from"./chunk-PGN5EZTI.js";import{a as Tr,b as Ar,c as _r,d as Cr}from"./chunk-7ZLKT2TB.js";import{a as $r}from"./chunk-MKCXLBQ4.js";import{g as xr}from"./chunk-5NY4HKJF.js";import{a as Lo,b as ko}from"./chunk-HHSUBF73.js";import{a as gr}from"./chunk-G7QLHXVA.js";import{a as vr}from"./chunk-CNOL26GA.js";import{a as gt}from"./chunk-2WDKXDFM.js";import{a as yr}from"./chunk-RFDT525K.js";import{c as ht,m as wt}from"./chunk-KOB6T6NK.js";import{b as wr,g as je,j as ft}from"./chunk-5T3OVTF5.js";import{c as Yo}from"./chunk-SKM44SK5.js";import{a as fr,b as hr,c as Ye,d as Co,e as Pt,f as Io,g as Do}from"./chunk-WMDYHUPS.js";import{a as O,b as mt}from"./chunk-SRAHMYWJ.js";import{a as cr,b as lr,d as Ee,f as pr,m as Ge,n as ee,s as W,u as ur,v as dr,w as mr}from"./chunk-Q7BOSHWX.js";import{c as Wr}from"./chunk-6XLVKD6Q.js";import{a as ir}from"./chunk-3GMW7IEC.js";import{a as bo,b as vt,c as te,d as So}from"./chunk-TDSR2X7X.js";import{a as $o,f as Mo,g as Fo,h as xt,i as Oo,j as No,k as qo,l as Wo,m as Ho,n as Bo,o as Go,p as jo,q as Ko,v as zo,x as Vo,z as Et}from"./chunk-YZY4M6IH.js";import{a as Uo,b as Ro,c as To,d as Ao,e as _o}from"./chunk-5U6MXSNY.js";import{a as Br}from"./chunk-MOCD7GFI.js";import{a as Eo}from"./chunk-JOYM7AEQ.js";import{a as xo}from"./chunk-6ZRHK4ON.js";import{a as Hr}from"./chunk-7XQDZF73.js";import{a as Qe}from"./chunk-NV5IDANV.js";import{Aa as Ve,F as no,Fa as Po,H as so,J as fe,R as ao,U as uo,V as mo,Z as fo,aa as ho,fa as go,g as Gr,i as Kr,ia as wo,j as zr,ja as yo,k as J,ka as vo,l as Vr,n as Yr,o as Qr,r as yt,s as Jr,u as Xr,v as Zr,w as eo,x as to,y as ro,z as oo,za as ze}from"./chunk-UZ7U322K.js";import{O as io,P as co,Z as lo,ca as po,e as Ke,j as be,p as jr}from"./chunk-IRH6IGFT.js";import{c as sr}from"./chunk-ASOT7VNB.js";import{a as H}from"./chunk-5JCREGSD.js";import{$ as Yt,N as Vt,Z as de,a as Wt,c as Ht,h as Bt,l as Gt,n as jt,q as Kt,t as zt,ta as Qt,u as ke,z as De}from"./chunk-2HZMOK4U.js";import{b as ar,d as Be}from"./chunk-Q6LCSRIW.js";import{a as lt,c as qt}from"./chunk-5C7HDTHJ.js";import{D as Ne,H as Zt,J as Z,O as qe,P as xe,Q as dt,R as tr,T as rr,a as Nt,i as pt,j as $e,k as M,l as F,m as Me,n as ut,o as Xt,p as Fe,u as Oe,w as ne}from"./chunk-E24W34C4.js";import{a as Zn}from"./chunk-7UNQOKZW.js";import{d as Jt}from"./chunk-3QVXHF6I.js";import{d as _,g as me,l as er}from"./chunk-ELIH6GCC.js";import{$a as ve,Ea as Dt,Fb as U,Gb as nr,Hb as R,Mb as Q,Na as Ie,Pb as y,Q as ct,Qb as k,Ta as X,Wa as Le,cb as $t,eb as Pe,fb as L,gb as S,jb as le,kb as pe,ma as I,mb as Ft,nb as Ot,tb as ue,ua as _e,wa as Ce}from"./chunk-EYDNSYYE.js";import{d as or,f as We,j as He}from"./chunk-JCNRQYRP.js";import{a as Re}from"./chunk-NNOSZ447.js";import{d as T,f as it,g as Te,i as ce,j as Lt,k as Ae,o as kt,p as ye}from"./chunk-773TIA5M.js";import{r as Xn}from"./chunk-T6CC5WUU.js";import{e as oe,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();p();p();p();var es=300*1e3,ts='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 Qo(t,e,r=Date.now()){for(;await rs(t,e,r););}async function rs(t,e,r){let o=await je(t,e);if(!o||os(o,r))throw new _(ts);return await xe(3),o.processing}function os(t,e){return t.processing&&Date.now()-e>=es}var ns="https://codeload.github.com/Shopify/dawn/zip/refs/tags/v15.0.0",ss="https://cdn.shopify.com/theme-store/uhrdefhlndzaoyrgylhto59sx2i7.jpg",bt=3,Je=class extends yr{constructor(e,r={devPreview:!1}){super(e),this.context="App Ext. Host",this.themeId=Tr(e.storeFqdn),this.devPreview=r.devPreview}async findOrCreate(){let e=await this.fetch();return e??(e=this.devPreview?await this.createHostTheme():await this.create()),e}setTheme(e){Ar(this.adminSession.storeFqdn,e)}removeTheme(){_r(this.adminSession.storeFqdn)}async createHostTheme(){let e={role:wr,name:this.generateThemeName(this.context),src:ns};for(let o=0;o<bt;o++){y(`Attempt ${o}/${bt}: Creating theme with name "${e.name}" and role "${e.role}"`);try{let n=await ft(e,this.adminSession);if(n)return this.setTheme(n.id.toString()),y(`Waiting for theme with id "${n.id}" to be processed`),await Qo(n.id,this.adminSession),n;throw new Error}catch{y(`Failed to create theme with name "${e.name}" and role "${e.role}". Retrying...`)}}y(`Theme creation failed after ${bt} retries. Creating theme using fallback theme zip`);let r=await ft({...e,src:ss},this.adminSession);if(!r)throw y("Theme creation failed. Exiting process."),new me(`Could not create theme with name "${e.name}" and role "${e.role}"`);return r}};p();var as={"theme:init":Ur,"theme:check":gr,"theme:console":vr,"theme:delete":Pr,"theme:dev":Er,"theme:duplicate":br,"theme:info":Sr,"theme:language-server":Rr,"theme:list":Cr,"theme:metafields:pull":$r,"theme:open":Ir,"theme:package":Lr,"theme:profile":kr,"theme:publish":Dr,"theme:preview":Mr,"theme:pull":Fr,"theme:push":Or,"theme:rename":Nr,"theme:share":qr},oi=as;async function Jo(t){let{remoteApp:e,localApp:r}=t,n=r.allExtensions.filter(v=>v.isThemeExtension);if(n.length===0)return;let a=n[0].directory,i=t.themeExtensionPort??9293,[l,u]=await Promise.all([Vt(t.storeFqdn),ls(e)]),c=l.storeFqdn,[m,h]=await Promise.all([wt(l),ht(l)]),g=h?await gt(void 0,c,m):void 0,d=await cs(l,t.theme),f=d.id.toString();return Oe({headline:"The theme app extension development server is ready.",orderedNextSteps:!0,nextSteps:[[{link:{label:"Install your app in your development store",url:u}}],[{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:is,options:{theme:d,adminSession:l,storefrontPassword:g,crawlerSignatureHeaders:m,themeExtensionDirectory:a,themeExtensionPort:i}}}var is=async(t,{theme:e,adminSession:r,storefrontPassword:o,crawlerSignatureHeaders:n,themeExtensionDirectory:s,themeExtensionPort:a})=>{await(await xr(e,{adminSession:r,storefrontPassword:o,crawlerSignatureHeaders:n,themeExtensionDirectory:s,themeExtensionPort:a})).start()};async function cs(t,e){let r;if(e)y(`Fetching theme with provided id ${e}`),r=await je(parseInt(e,10),t);else{let o=new Je(t,{devPreview:!0});await Ne([{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 ls(t){return t.developerPlatformClient?.clientName===lo.AppManagement?`https://${await ke()}/?organization_id=${t.organizationId}&no_redirect=true&redirect=/oauth/redirect_from_developer_dashboard?client_id%3D${t.apiKey}`:`https://${await zt()}/${t.organizationId}/apps/${t.id}/test`}p();p();p();p();p();p();async function ps(t){let e=T(t.directory,"locales");return Le([T(e,"*.json")])}async function Xo(t,e){let r=await ps(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),us(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 us(t,e,r,o,n){let s;try{s=await I(e),r.translations[t]=JSON.parse(s)}catch(a){let i=`Error parsing ${t} locale for ${o.handle} at ${e}: ${a.message}`;throw k(i,n.stderr),new er.ExtendableError(i)}}p();function Xe(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:""}}}async function he(t,e,r,o){return F({outputPrefix:t.outputPrefix},async()=>{o?.clear();let n=t.getOutputPathForDirectory(e),s=`${r.url}/extensions/${t.devUUID}`,{localization:a,status:i}=await Xo(t,r),l=await Vr(t),u=t.outputRelativePath?ce(n):n,c=await ds(t,s,u,o),m=null;return"metafields"in t.configuration&&Array.isArray(t.configuration.metafields)&&t.configuration.metafields.length>0&&(m=t.configuration.metafields),{assets:{main:Se(c)&&c[0]?.assets?.main?c[0].assets.main:{name:"main",url:`${s}/assets/${t.outputFileName}`,lastUpdated:await Ie(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:Xe(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:m,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 ds(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"}]),Se(s)){let a=await ms(r);return Promise.all(s.map(async i=>{let{target:l,resource:u}=i,c={...i,surface:Ve(l),root:{url:`${e}/${l}`},resource:u||{url:""}},m=a?.[l];if(!m)return c;let g=await ys(m,{target:l,extensionPoint:i,url:e,extension:t,buildDirectory:r,resolver:o});return{...c,...g}}))}return s}async function ms(t){try{let e=T(t,"manifest.json"),r=await I(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 fs({target:t,extensionPoint:e,url:r,extension:o,resolver:n},s,a){let i=`${t}/${s}`,l=e[s];if(typeof l=="string"){let g=await Ze(s,i,typeof a=="string"?a:l,r,o,n,typeof a=="string"?l:void 0);return{assets:{[g.name]:g}}}let c=e.build_manifest?.assets?.[s];if(c?.filepath){let m=await Ze(s,i,c.filepath,r,o,n,c.module);return{assets:{[m.name]:m}}}return{}}async function hs({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 Ie(T(r,i))??0));return{assets:{[n]:{name:n,url:`${e}/assets/${t}/`,lastUpdated:Math.max(...a)}}}}async function gs({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 u=i.schema,c=s[l]?.schema,m=typeof c=="string"?c:u,h=typeof c=="string"?u:void 0;return{...i,schema:await Ze("schema",`${t}/intents/${l}/schema`,m,r,o,n,h)}}))}:{}}async function ws({target:t,url:e,extension:r,resolver:o},n,s){let a=await Ze(n,`${t}/${n}`,s,e,r,o);return{assets:{[a.name]:a}}}async function ys(t,e){return(await Promise.all(Object.keys(t).map(async o=>{let n=t[o];return vs(o,n)?gs(e,n):Ps(o,n)?ws(e,o,n):xs(o,n)?hs(e,o,n):fs(e,o,n)}))).reduce((o,n)=>({...o,...n,assets:{...o.assets,...n.assets}}),{})}function Se(t){return Array.isArray(t)&&t.every(e=>typeof e=="object")}async function Ze(t,e,r,o,n,s,a){let i=`${e}${Ae(r)}`;return s?.set(i,r),{name:t,url:`${o}/assets/${i}`,lastUpdated:await Ie(T(n.directory,a??r))??0}}function vs(t,e){return t==="intents"&&Array.isArray(e)}function Ps(t,e){return(t==="main"||t==="should_render")&&typeof e=="string"}function xs(t,e){return t==="assets"&&Array.isArray(e)&&e.every(r=>typeof r=="string")}import{EventEmitter as Es}from"events";var Ue;(function(t){t.Update="PayloadUpdatedEvent:UPDATE"})(Ue||(Ue={}));async function Zo(t,e,r){return{app:{title:t.appName,apiKey:t.apiKey,url:Ye(t.storeFqdn,t.apiKey),mobileUrl:Io(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=>he(n,e,t,r&&St(r,n.devUUID))))}}function St(t,e){let r=t.get(e);return r||(r=new Map,t.set(e,r)),r}var et=class extends Es{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=de(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(Se(n.extensionPoints)&&Se(o.extensionPoints)){let s=n.extensionPoints.reduce((l,u)=>({...l,[u.target]:u}),{});o.extensionPoints=de(o.extensionPoints,n.extensionPoints,l=>l.map(u=>{let c=s[u.target];return c?de(u,c,(m,h)=>h):u}));let{extensionPoints:a,...i}=n;return de(o,i)}return de(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(R`Could not updateExtension() for extension with uuid: ${e.devUUID}`,r.stderr);return}s[a]=await he(e,o,{...this.options,currentDevelopmentPayload:n??{status:s[a]?.development.status},currentLocalizationPayload:s[a]?.localization},St(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 he(e,r,this.options,St(this.assetResolvers,e.devUUID))),this.emitUpdate([e.devUUID])}emitUpdate(e){this.emit(Ue.Update,e)}};p();p();var se;(function(t){t.Update="update",t.Dispatch="dispatch",t.Log="log"})(se||(se={}));function en(t,e){return(r,o,n)=>{r.url==="/extensions"&&(y("Upgrading HTTP request to a websocket connection",e.stdout),t.handleUpgrade(r,o,n,bs(t,e)))}}function bs(t,e){return r=>{y("Websocket connection successfully established",e.stdout);let o={event:"connected",data:e.payloadStore.getConnectedPayload(),version:e.manifestVersion};y(R`Sending connected payload: ${U.json(o)}`,e.stdout),r.send(JSON.stringify(o)),r.on("message",As(t,e))}}function Ss(t){try{let e=JSON.parse(t);if(!Array.isArray(e))return t;let r=e.map(o=>typeof o=="object"&&o!==null?U.json(o).output():String(o)).join(" ");return R`${r}`.value}catch(e){if(e instanceof SyntaxError)return t;throw e}}var Us={debug:t=>U.gray(t),warn:t=>U.yellow(t),error:t=>U.errorText(t)};function Rs({type:t,message:e}){let r=Ss(e);switch(t){case"debug":case"warn":case"error":return R`${Us[t](t.toUpperCase())}: ${r}`.value;case"log":case"info":return r;default:return`${t.toUpperCase()}: ${r}`}}function Ts(t,e){F({outputPrefix:t.extensionName,stripAnsi:!1},()=>{e.stdout.write(Rs(t))})}function As(t,e){return r=>{let o=JSON.parse(r.toString()),{event:n,data:s}=o;if(y(R`Received websocket message with event type ${n} and data:
2
2
  ${U.json(s)}
3
3
  `,e.stdout),n===se.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===se.Dispatch){let a=_s(o,e);rn(t,a,e)}else n===se.Log&&Ts(s,e)}}function tn(t,e){return r=>{let o={event:se.Update,version:e.manifestVersion,data:{...e.payloadStore.getRawPayloadFilteredByExtensionIds(r)}};y(R`Sending websocket update event to the websocket clients:
4
4
  ${U.json(o)}
@@ -1,5 +1,5 @@
1
- import{j as W,l as B}from"./chunk-KN3FTJDU.js";import{O as v,a as O}from"./chunk-6EZ7JWBK.js";import{f as h}from"./chunk-WRRUFK4Y.js";import{d as u,g as T}from"./chunk-WKBVT5WG.js";import{$a as S,Bb as L,Fb as o,Hb as s,Pb as d,Ta as w,Ua as i,Wa as D,ma as x,ua as b}from"./chunk-DONEJHDG.js";import{d as c,i as k}from"./chunk-773TIA5M.js";import{a as I}from"./chunk-CX5CC6P5.js";import{e as R,g}from"./chunk-VKWPEFWQ.js";g();g();function M(e,n){try{return JSON.parse(e)}catch(a){let r=a instanceof Error?a.message:String(a),t=n?` from ${n}`:"";throw new u(`Failed to parse JSON${t}.
2
- ${r}`)}}var l=R(I()),N="yarn.lock",j="package-lock.json",J="pnpm-lock.yaml",$="bun.lockb",C="bun.lock",V="pnpm-workspace.yaml",ke=[N,J,j,$,C],we={yarn:[N],npm:[j],pnpm:[J],bun:[$,C],homebrew:[],unknown:[]},E=["yarn","npm","pnpm","bun","homebrew","unknown"],_=class extends u{constructor(){super("Unknown package manager")}},y=class extends u{constructor(n){super(s`The directory ${o.path(n)} doesn't have a package.json.`)}},P=class extends T{constructor(n){super(s`Couldn't find a a package.json traversing directories from ${o.path(n)}`)}};function A(e=process.env){return e.npm_config_user_agent?.includes("yarn")?"yarn":e.npm_config_user_agent?.includes("pnpm")?"pnpm":e.npm_config_user_agent?.includes("bun")?"bun":e.npm_config_user_agent?.includes("npm")?"npm":"unknown"}function U(e){return i(c(e,$))||i(c(e,C))}function G(e){switch(e){case"yarn":case"npm":case"pnpm":case"bun":return e;case"homebrew":case"unknown":return"npm"}}function K(e,n,...a){switch(e){case"npm":return{command:"npm",args:["exec","--",n,...a]};case"pnpm":return{command:"pnpm",args:["exec",n,...a]};case"yarn":return{command:"yarn",args:["run",n,...a]};case"bun":return{command:"bun",args:["x",n,...a]}}}async function F(e){let n=e;for(d(s`Looking for a lockfile in ${o.path(n)}...`);;){if(i(c(n,N)))return"yarn";if(i(c(n,J))||i(c(n,V)))return"pnpm";if(U(n))return"bun";if(i(c(n,j)))return"npm";let r=k(n);if(r===n)break;n=r}let a=A();return a!=="unknown"?a:"npm"}async function he(e,n,...a){let r=G(await F(e));return K(r,n,...a)}async function ye(e){let n=await D(c(e.directory,"**/package.json"),{ignore:[c(e.directory,"node_modules/**/package.json")],cwd:e.directory,onlyFiles:!0,deep:e.deep}),a=new O;try{await Promise.all(n.map(async r=>{let t=k(r);await z({directory:t,packageManager:e.packageManager,stdout:void 0,stderr:void 0,signal:a.signal,args:[]})}))}catch(r){throw a.abort(),r}}async function z(e){let n={cwd:e.directory,stdin:void 0,stdout:e.stdout,stderr:e.stderr,signal:e.signal},a=["install"];e.args&&(a=a.concat(e.args)),await h("cmd_all_timing_network_ms")(async()=>{await v(e.packageManager,a,n)})}async function xe(e){return(await f(e)).name}async function be(e){return(await f(e)).version}async function H(e){let n=await f(e),a=n.dependencies??{},r=n.devDependencies??{};return{...a,...r}}async function ve(e){let n=c(e,"package.json"),a=await f(n),r=c(e,V);return!!a.workspaces||w(r)}async function Me(e,n,{cacheExpiryInHours:a=0}={}){let r=async()=>(d(s`Checking if there's a version of ${e} newer than ${n}`),ne(e)),t=`npm-package-${e}`,p;try{p=await W(t,r,a*3600*1e3)}catch{return}if(p&&new l.SemVer(n).compare(p)<0)return p}function _e(e,n){let a=`npm-package-${e}`,r=B(a)?.value;if(r&&new l.SemVer(n).compare(r)<0)return r}function Pe(e,n){return(0,l.satisfies)(e,n)}async function f(e){if(!await w(e))throw new y(k(e));return M(await x(e),e)}async function Y(e,n){d(s`Adding the following dependencies if needed:
1
+ import{j as W,l as B}from"./chunk-LUG2BZJP.js";import{O as v,a as O}from"./chunk-E24W34C4.js";import{f as h}from"./chunk-3QVXHF6I.js";import{d as u,g as T}from"./chunk-ELIH6GCC.js";import{$a as S,Bb as L,Fb as o,Hb as s,Pb as d,Ta as w,Ua as i,Wa as D,ma as x,ua as b}from"./chunk-EYDNSYYE.js";import{d as c,i as k}from"./chunk-773TIA5M.js";import{a as I}from"./chunk-CX5CC6P5.js";import{e as R,g}from"./chunk-VKWPEFWQ.js";g();g();function M(e,n){try{return JSON.parse(e)}catch(a){let r=a instanceof Error?a.message:String(a),t=n?` from ${n}`:"";throw new u(`Failed to parse JSON${t}.
2
+ ${r}`)}}var l=R(I(),1),N="yarn.lock",j="package-lock.json",J="pnpm-lock.yaml",$="bun.lockb",C="bun.lock",V="pnpm-workspace.yaml",ke=[N,J,j,$,C],we={yarn:[N],npm:[j],pnpm:[J],bun:[$,C],homebrew:[],unknown:[]},E=["yarn","npm","pnpm","bun","homebrew","unknown"],_=class extends u{constructor(){super("Unknown package manager")}},y=class extends u{constructor(n){super(s`The directory ${o.path(n)} doesn't have a package.json.`)}},P=class extends T{constructor(n){super(s`Couldn't find a a package.json traversing directories from ${o.path(n)}`)}};function A(e=process.env){return e.npm_config_user_agent?.includes("yarn")?"yarn":e.npm_config_user_agent?.includes("pnpm")?"pnpm":e.npm_config_user_agent?.includes("bun")?"bun":e.npm_config_user_agent?.includes("npm")?"npm":"unknown"}function U(e){return i(c(e,$))||i(c(e,C))}function G(e){switch(e){case"yarn":case"npm":case"pnpm":case"bun":return e;case"homebrew":case"unknown":return"npm"}}function K(e,n,...a){switch(e){case"npm":return{command:"npm",args:["exec","--",n,...a]};case"pnpm":return{command:"pnpm",args:["exec",n,...a]};case"yarn":return{command:"yarn",args:["run",n,...a]};case"bun":return{command:"bun",args:["x",n,...a]}}}async function F(e){let n=e;for(d(s`Looking for a lockfile in ${o.path(n)}...`);;){if(i(c(n,N)))return"yarn";if(i(c(n,J))||i(c(n,V)))return"pnpm";if(U(n))return"bun";if(i(c(n,j)))return"npm";let r=k(n);if(r===n)break;n=r}let a=A();return a!=="unknown"?a:"npm"}async function he(e,n,...a){let r=G(await F(e));return K(r,n,...a)}async function ye(e){let n=await D(c(e.directory,"**/package.json"),{ignore:[c(e.directory,"node_modules/**/package.json")],cwd:e.directory,onlyFiles:!0,deep:e.deep}),a=new O;try{await Promise.all(n.map(async r=>{let t=k(r);await z({directory:t,packageManager:e.packageManager,stdout:void 0,stderr:void 0,signal:a.signal,args:[]})}))}catch(r){throw a.abort(),r}}async function z(e){let n={cwd:e.directory,stdin:void 0,stdout:e.stdout,stderr:e.stderr,signal:e.signal},a=["install"];e.args&&(a=a.concat(e.args)),await h("cmd_all_timing_network_ms")(async()=>{await v(e.packageManager,a,n)})}async function xe(e){return(await f(e)).name}async function be(e){return(await f(e)).version}async function H(e){let n=await f(e),a=n.dependencies??{},r=n.devDependencies??{};return{...a,...r}}async function ve(e){let n=c(e,"package.json"),a=await f(n),r=c(e,V);return!!a.workspaces||w(r)}async function Me(e,n,{cacheExpiryInHours:a=0}={}){let r=async()=>(d(s`Checking if there's a version of ${e} newer than ${n}`),ne(e)),t=`npm-package-${e}`,p;try{p=await W(t,r,a*3600*1e3)}catch{return}if(p&&new l.SemVer(n).compare(p)<0)return p}function _e(e,n){let a=`npm-package-${e}`,r=B(a)?.value;if(r&&new l.SemVer(n).compare(r)<0)return r}function Pe(e,n){return(0,l.satisfies)(e,n)}async function f(e){if(!await w(e))throw new y(k(e));return M(await x(e),e)}async function Y(e,n){d(s`Adding the following dependencies if needed:
3
3
  ${o.json(e)}
4
4
  With options:
5
5
  ${o.json(n)}
@@ -1,3 +1,3 @@
1
- import{a as R}from"./chunk-VJEKDBGZ.js";import{e as l}from"./chunk-6EZ7JWBK.js";import{f as I}from"./chunk-WRRUFK4Y.js";import{d as n}from"./chunk-WKBVT5WG.js";import{Ea as b,Fb as a,Hb as s,Pb as f,Ta as G,Wa as C}from"./chunk-DONEJHDG.js";import{a as k,r as w}from"./chunk-KKUDXLK2.js";import{q as g}from"./chunk-773TIA5M.js";import{e as D,g as $}from"./chunk-VKWPEFWQ.js";$();var A=D(R());async function r(t,e){try{return(await l("git",t,{cwd:e})).stdout}catch(o){if(o instanceof Error){let i=new n(o.message);throw i.stack=o.stack,"exitCode"in o&&Object.assign(i,{exitCode:o.exitCode}),i}throw o}}async function K(t,e="main"){f(s`Initializing git repository at ${a.path(t)}...`),await h(),await r(["init"],t),await r(["checkout","-b",e],t)}async function Q(t,e){try{return(await r(["check-ignore",...e],t)).split(`
1
+ import{a as R}from"./chunk-VJEKDBGZ.js";import{e as l}from"./chunk-E24W34C4.js";import{f as I}from"./chunk-3QVXHF6I.js";import{d as n}from"./chunk-ELIH6GCC.js";import{Ea as b,Fb as a,Hb as s,Pb as f,Ta as G,Wa as C}from"./chunk-EYDNSYYE.js";import{a as k,r as w}from"./chunk-JCNRQYRP.js";import{q as g}from"./chunk-773TIA5M.js";import{e as D,g as $}from"./chunk-VKWPEFWQ.js";$();var A=D(R());async function r(t,e){try{return(await l("git",t,{cwd:e})).stdout}catch(o){if(o instanceof Error){let i=new n(o.message);throw i.stack=o.stack,"exitCode"in o&&Object.assign(i,{exitCode:o.exitCode}),i}throw o}}async function K(t,e="main"){f(s`Initializing git repository at ${a.path(t)}...`),await h(),await r(["init"],t),await r(["checkout","-b",e],t)}async function Q(t,e){try{return(await r(["check-ignore",...e],t)).split(`
2
2
  `).filter(Boolean)}catch(o){if(o instanceof n&&"exitCode"in o&&o.exitCode===1)return[];throw o}}async function V(t){return I("cmd_all_timing_network_ms")(async()=>{let{repoUrl:e,destination:o,shallow:i,latestTag:m}=t;if(f(s`Git-cloning repository ${e} into ${a.path(o)}...`),await h(),await G(o)){if(!await b(o))throw new n(s`Can't clone to ${a.path(o)}`,"The path exists but isn't a directory.");if((await C(["*",".*"],{cwd:o,deep:1,onlyFiles:!1})).length>0)throw new n(s`Directory ${a.path(o)} already exists and is not empty`,s`Choose a different name or remove the existing directory first.`)}let[v,d]=e.split("#");if(d&&m)throw new n("Error cloning the repository. Git can't clone the latest release with a 'branch'.");if(i&&m)throw new n("Error cloning the repository. Git can't clone the latest release with the 'shallow' property.");let u=["clone","--recurse-submodules"];d&&u.push("--branch",d),i&&u.push("--depth","1"),k()||u.push("-c","core.askpass=true"),u.push(v,o);try{if(await l("git",u),m){let c=await S(o,e);await r(["checkout",c],o)}}catch(c){if(c instanceof n)throw c;if(c instanceof Error){let x=new n(c.message);throw x.stack=c.stack,x}throw c}})}async function S(t,e){let o=await F(t);if(!o)throw new n(`Couldn't obtain the most recent tag of the repository ${e}`);return o}async function X(t){let o=await r(["log","-1","--format=%H%x00%ai%x00%s%x00%D%x00%b%x00%an%x00%ae"],t);if(!o.trim())throw new n("Must have at least one commit to run command",s`Run ${a.genericShellCommand("git commit -m 'Initial commit'")} to create your first commit.`);let i=o.split("\0");return{hash:i[0],date:i[1],message:i[2],refs:i[3],body:i[4],author_name:i[5],author_email:i[6]}}async function Y(t){await r(["add","--all"],t)}async function Z(t,e){let o=["commit","-m",t];return e?.author&&o.push("--author",e.author),await r(o,e?.directory),(await r(["rev-parse","HEAD"],e?.directory)).trim()}async function h(){if(!await w())throw new n("Git is necessary in the environment to continue",s`Install ${a.link("git","https://git-scm.com/book/en/v2/Getting-Started-Installing-Git")}`)}var p=class extends n{};async function N(t){if(await h(),!await E(t))throw new p(`${a.path(t??g())} is not a Git directory`)}async function tt(t){return await w()?E(t):!1}async function E(t){try{return await l("git",["rev-parse","--git-dir"],{cwd:t}),!0}catch(e){if(e instanceof Error&&"exitCode"in e&&e.exitCode===128)return!1;throw e}}var y=class extends n{};async function et(t){if(!await T(t))throw new y(`${a.path(t??g())} is not a clean Git directory`)}async function T(t){return(await r(["status","--porcelain"],t)).trim()===""}async function F(t){try{return(await r(["describe","--tags","--abbrev=0"],t)).trim()||void 0}catch(e){if(e instanceof n&&"exitCode"in e&&e.exitCode===128)return;throw e}}async function ot(t,e="origin"){if(f(s`Removing git remote ${e} from ${a.path(t)}...`),await h(),!(await r(["remote"],t)).split(`
3
3
  `).filter(Boolean).includes(e)){f(s`Remote ${e} does not exist, no action needed`);return}await r(["remote","remove",e],t)}export{K as a,Q as b,V as c,X as d,Y as e,Z as f,N as g,tt as h,y as i,et as j,T as k,ot as l};
@@ -1,4 +1,4 @@
1
- import{b as m}from"./chunk-UKK5P74A.js";import{C as f}from"./chunk-6EZ7JWBK.js";import{Lb as c}from"./chunk-DONEJHDG.js";import{r as N}from"./chunk-T6CC5WUU.js";import{e as v,g}from"./chunk-VKWPEFWQ.js";g();var d=v(N(),1),i=class h extends m{static{this.description="View all the available command flags"}static{this.hidden=!0}static{this.flags={csv:d.Flags.boolean({description:"Output as CSV",env:"SHOPIFY_FLAG_OUTPUT_CSV",default:!1})}}async run(){let{flags:p}=await this.parse(h),s=[];for(let[t,a]of this.config.plugins)for(let o of a.commands){let l=await o.load(),n;a.name.startsWith("@shopify")?n=a.name.substring(9):n=a.name.startsWith("@oclif")?a.name.substring(7):a.name;let e=l.flags;if(e)for(let[u,r]of Object.entries(e))s.push({pluginName:n,command:o.id,flagName:`--${u}`,flagChar:r.char?`-${r.char}`:"",flagEnv:r.env})}if(p.csv){let t=["pluginName","command","flagName","flagChar","flagEnv"],a=`${t.join(",")}
1
+ import{b as m}from"./chunk-IDKUJQIG.js";import{C as f}from"./chunk-E24W34C4.js";import{Lb as c}from"./chunk-EYDNSYYE.js";import{r as N}from"./chunk-T6CC5WUU.js";import{e as v,g}from"./chunk-VKWPEFWQ.js";g();var d=v(N(),1),i=class h extends m{static{this.description="View all the available command flags"}static{this.hidden=!0}static{this.flags={csv:d.Flags.boolean({description:"Output as CSV",env:"SHOPIFY_FLAG_OUTPUT_CSV",default:!1})}}async run(){let{flags:p}=await this.parse(h),s=[];for(let[t,a]of this.config.plugins)for(let o of a.commands){let l=await o.load(),n;a.name.startsWith("@shopify")?n=a.name.substring(9):n=a.name.startsWith("@oclif")?a.name.substring(7):a.name;let e=l.flags;if(e)for(let[u,r]of Object.entries(e))s.push({pluginName:n,command:o.id,flagName:`--${u}`,flagChar:r.char?`-${r.char}`:"",flagEnv:r.env})}if(p.csv){let t=["pluginName","command","flagName","flagChar","flagEnv"],a=`${t.join(",")}
2
2
  `,o=s.map(n=>t.map(e=>n[e]).join(",")).join(`
3
3
  `),l=`${a}${o}
4
4
  `;c(l)}else f({rows:s,columns:{pluginName:{header:"plugin",color:"red"},command:{},flagName:{header:"long flag",color:"green"},flagChar:{header:"short flag",color:"green"},flagEnv:{header:"env variable",color:"blueBright"}}})}};export{i as a};
@@ -1,4 +1,4 @@
1
- import{c as gI,e as nA,f as mI,h as oA,l as y7,n as Bu,s as $5,u as iA,v as lA,w as cA}from"./chunk-Q7BOSHWX.js";import{a as fI}from"./chunk-ZEENHLSC.js";import{a as aA}from"./chunk-ATXODH6C.js";import{c as tA,e as rA}from"./chunk-G24L7MB3.js";import{A as vI,S as pCe,g as mCe,n as R4,z as tf}from"./chunk-5W443CKL.js";import{a as jF}from"./chunk-FU232KQ7.js";import{g as $F}from"./chunk-6EZ7JWBK.js";import{d as eA}from"./chunk-WKBVT5WG.js";import{Pb as b7,eb as b}from"./chunk-DONEJHDG.js";import{a as j5,c as m,e as ps,g as o}from"./chunk-VKWPEFWQ.js";var uA=m(Vi=>{"use strict";o();var bCe=b();function sA(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function e1(){}var Gi={d:{f:e1,r:function(){throw Error(sA(522))},D:e1,C:e1,L:e1,m:e1,X:e1,S:e1,M:e1},p:0,findDOMNode:null},yCe=Symbol.for("react.portal");function ICe(e,t,r){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yCe,key:a==null?null:""+a,children:e,containerInfo:t,implementation:r}}var rf=bCe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function k4(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Vi.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Gi;Vi.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(sA(299));return ICe(e,t,null,r)};Vi.flushSync=function(e){var t=rf.T,r=Gi.p;try{if(rf.T=null,Gi.p=2,e)return e()}finally{rf.T=t,Gi.p=r,Gi.d.f()}};Vi.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Gi.d.C(e,t))};Vi.prefetchDNS=function(e){typeof e=="string"&&Gi.d.D(e)};Vi.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,a=k4(r,t.crossOrigin),n=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?Gi.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:n,fetchPriority:i}):r==="script"&&Gi.d.X(e,{crossOrigin:a,integrity:n,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Vi.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=k4(t.as,t.crossOrigin);Gi.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Gi.d.M(e)};Vi.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,a=k4(r,t.crossOrigin);Gi.d.L(e,r,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Vi.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=k4(t.as,t.crossOrigin);Gi.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Gi.d.m(e)};Vi.requestFormReset=function(e){Gi.d.r(e)};Vi.unstable_batchedUpdates=function(e,t){return e(t)};Vi.useFormState=function(e,t,r){return rf.H.useFormState(e,t,r)};Vi.useFormStatus=function(){return rf.H.useHostTransitionStatus()};Vi.version="19.2.4"});var dA=m(Yi=>{"use strict";o();process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(y){return""+y}function r(y,S,E){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(w);var M=!1}catch{M=!0}return M&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object"),t(w)),{$$typeof:f,key:w==null?null:""+w,children:y,containerInfo:S,implementation:E}}function a(y,S){if(y==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}function n(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":'something with type "'+typeof y+'"'}function i(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":typeof y=="string"?JSON.stringify(y):typeof y=="number"?"`"+y+"`":'something with type "'+typeof y+'"'}function u(){var y=I.H;return y===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1
+ import{c as gI,e as nA,f as mI,h as oA,l as y7,n as Bu,s as $5,u as iA,v as lA,w as cA}from"./chunk-Q7BOSHWX.js";import{a as fI}from"./chunk-3GMW7IEC.js";import{a as aA}from"./chunk-UZ7U322K.js";import{c as tA,e as rA}from"./chunk-H7PNMMDO.js";import{A as vI,S as pCe,g as mCe,n as R4,z as tf}from"./chunk-2HZMOK4U.js";import{a as jF}from"./chunk-J3KRY2SD.js";import{g as $F}from"./chunk-E24W34C4.js";import{d as eA}from"./chunk-ELIH6GCC.js";import{Pb as b7,eb as b}from"./chunk-EYDNSYYE.js";import{a as j5,c as m,e as ps,g as o}from"./chunk-VKWPEFWQ.js";var uA=m(Vi=>{"use strict";o();var bCe=b();function sA(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function e1(){}var Gi={d:{f:e1,r:function(){throw Error(sA(522))},D:e1,C:e1,L:e1,m:e1,X:e1,S:e1,M:e1},p:0,findDOMNode:null},yCe=Symbol.for("react.portal");function ICe(e,t,r){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yCe,key:a==null?null:""+a,children:e,containerInfo:t,implementation:r}}var rf=bCe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function k4(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Vi.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Gi;Vi.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(sA(299));return ICe(e,t,null,r)};Vi.flushSync=function(e){var t=rf.T,r=Gi.p;try{if(rf.T=null,Gi.p=2,e)return e()}finally{rf.T=t,Gi.p=r,Gi.d.f()}};Vi.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Gi.d.C(e,t))};Vi.prefetchDNS=function(e){typeof e=="string"&&Gi.d.D(e)};Vi.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,a=k4(r,t.crossOrigin),n=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?Gi.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:n,fetchPriority:i}):r==="script"&&Gi.d.X(e,{crossOrigin:a,integrity:n,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Vi.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=k4(t.as,t.crossOrigin);Gi.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Gi.d.M(e)};Vi.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,a=k4(r,t.crossOrigin);Gi.d.L(e,r,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Vi.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=k4(t.as,t.crossOrigin);Gi.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Gi.d.m(e)};Vi.requestFormReset=function(e){Gi.d.r(e)};Vi.unstable_batchedUpdates=function(e,t){return e(t)};Vi.useFormState=function(e,t,r){return rf.H.useFormState(e,t,r)};Vi.useFormStatus=function(){return rf.H.useHostTransitionStatus()};Vi.version="19.2.4"});var dA=m(Yi=>{"use strict";o();process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(y){return""+y}function r(y,S,E){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(w);var M=!1}catch{M=!0}return M&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object"),t(w)),{$$typeof:f,key:w==null?null:""+w,children:y,containerInfo:S,implementation:E}}function a(y,S){if(y==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}function n(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":'something with type "'+typeof y+'"'}function i(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":typeof y=="string"?JSON.stringify(y):typeof y=="number"?"`"+y+"`":'something with type "'+typeof y+'"'}function u(){var y=I.H;return y===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
2
2
  1. You might have mismatching versions of React and the renderer (such as React DOM)
3
3
  2. You might be breaking the Rules of Hooks
4
4
  3. You might have more than one copy of React in the same app
@@ -1 +1 @@
1
- import{a as E}from"./chunk-BCD4KTLJ.js";import{a as _}from"./chunk-VOJWKGCW.js";import{a as I,b as w}from"./chunk-STJ3LWFL.js";import{f as a,g as u,p as S,v as b}from"./chunk-D6YDSGR4.js";import{ua as f,xa as p}from"./chunk-5W443CKL.js";import{b as T,c as g}from"./chunk-H5C3QTOO.js";import{g as s,u as c}from"./chunk-6EZ7JWBK.js";import{d as v}from"./chunk-WKBVT5WG.js";import{Lb as l}from"./chunk-DONEJHDG.js";import{r as x}from"./chunk-T6CC5WUU.js";import{e as L,g as m}from"./chunk-VKWPEFWQ.js";m();m();function A(o,e){return{theme:{id:o.id,name:o.name,role:o.role,shop:e.storeFqdn,preview_url:I(o,e),editor_url:w(o,e)}}}function D(o){let{platform:e,arch:n}=s(),t=a(),r=null;return t&&(r=Number(u())||null),{store:t??"Not configured",development_theme_id:r,cli_version:o.cliVersion,os:`${e}-${n}`,shell:process.env.SHELL??"unknown",node_version:process.version}}async function O(o,e){let n;if(e.development)n=await new E(o).findOrCreate();else{let t={filter:{theme:e.theme}};n=await _(o,t)}return n?A(n,o):void 0}async function y(o){return[M(),await j(o)]}function M(){let o=a()??"Not configured",e=u();return p(`theme-command:info:dev-theme-loaded:${e}`),N("Theme Configuration",[["Store",o],["Development Theme ID",e?`#${e}`:{subdued:"Not set"}]])}async function j(o){let{platform:e,arch:n}=s();return N("Tooling and System",[["Shopify CLI",o.cliVersion],["OS",`${e}-${n}`],["Shell",process.env.SHELL??"unknown"],["Node version",process.version]])}function N(o,e){return{title:o,body:{tabularData:e,firstColumnSubdued:!0}}}async function F(o,e){let n=Object.entries(o.theme).map(([t,r])=>{if(t==="editor_url"||t==="preview_url"){let C=String(r),$=t==="editor_url"?"Open in Theme Editor":"Preview Theme";return[d(t),{link:{url:C,label:$}}]}else return t==="id"?[d(t),`#${r}`]:[d(t),`${r}`]});return{customSections:[...e.environment?[{title:"Theme information",body:[{subdued:`Environment name: ${e.environment}`}]}]:[],{title:"Theme Details",body:{tabularData:n,firstColumnSubdued:!0}}]}}function d(o){return o.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}var h=L(x(),1);var i=class extends b{async command(e,n){if(f("theme-command:info"),e.theme||e.development){let t=await O(n,e);if(!t)throw new v("Theme not found!");if(e.json)return l(JSON.stringify(t,null,2));let r=await F(t,e);c(r)}else{if(e.json)return l(JSON.stringify(D({cliVersion:this.config.version}),null,2));let t=await y({cliVersion:this.config.version});c({customSections:t})}f("theme-command:info")}};i.description="Displays information about your theme environment, including your current store. Can also retrieve information about a specific theme.";i.flags={...T,...g,...S,development:h.Flags.boolean({char:"d",description:"Retrieve info from your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),theme:h.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"})};i.multiEnvironmentsFlags=["store","password"];var k=i;export{k as a};
1
+ import{a as E}from"./chunk-YJCJDCVP.js";import{a as _}from"./chunk-OASPW2P2.js";import{a as I,b as w}from"./chunk-STJ3LWFL.js";import{f as a,g as u,p as S,v as b}from"./chunk-PTIJDS6I.js";import{ua as f,xa as p}from"./chunk-2HZMOK4U.js";import{b as T,c as g}from"./chunk-Q6LCSRIW.js";import{g as s,u as c}from"./chunk-E24W34C4.js";import{d as v}from"./chunk-ELIH6GCC.js";import{Lb as l}from"./chunk-EYDNSYYE.js";import{r as x}from"./chunk-T6CC5WUU.js";import{e as L,g as m}from"./chunk-VKWPEFWQ.js";m();m();function A(o,e){return{theme:{id:o.id,name:o.name,role:o.role,shop:e.storeFqdn,preview_url:I(o,e),editor_url:w(o,e)}}}function D(o){let{platform:e,arch:n}=s(),t=a(),r=null;return t&&(r=Number(u())||null),{store:t??"Not configured",development_theme_id:r,cli_version:o.cliVersion,os:`${e}-${n}`,shell:process.env.SHELL??"unknown",node_version:process.version}}async function O(o,e){let n;if(e.development)n=await new E(o).findOrCreate();else{let t={filter:{theme:e.theme}};n=await _(o,t)}return n?A(n,o):void 0}async function y(o){return[M(),await j(o)]}function M(){let o=a()??"Not configured",e=u();return p(`theme-command:info:dev-theme-loaded:${e}`),N("Theme Configuration",[["Store",o],["Development Theme ID",e?`#${e}`:{subdued:"Not set"}]])}async function j(o){let{platform:e,arch:n}=s();return N("Tooling and System",[["Shopify CLI",o.cliVersion],["OS",`${e}-${n}`],["Shell",process.env.SHELL??"unknown"],["Node version",process.version]])}function N(o,e){return{title:o,body:{tabularData:e,firstColumnSubdued:!0}}}async function F(o,e){let n=Object.entries(o.theme).map(([t,r])=>{if(t==="editor_url"||t==="preview_url"){let C=String(r),$=t==="editor_url"?"Open in Theme Editor":"Preview Theme";return[d(t),{link:{url:C,label:$}}]}else return t==="id"?[d(t),`#${r}`]:[d(t),`${r}`]});return{customSections:[...e.environment?[{title:"Theme information",body:[{subdued:`Environment name: ${e.environment}`}]}]:[],{title:"Theme Details",body:{tabularData:n,firstColumnSubdued:!0}}]}}function d(o){return o.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}var h=L(x(),1);var i=class extends b{async command(e,n){if(f("theme-command:info"),e.theme||e.development){let t=await O(n,e);if(!t)throw new v("Theme not found!");if(e.json)return l(JSON.stringify(t,null,2));let r=await F(t,e);c(r)}else{if(e.json)return l(JSON.stringify(D({cliVersion:this.config.version}),null,2));let t=await y({cliVersion:this.config.version});c({customSections:t})}f("theme-command:info")}};i.description="Displays information about your theme environment, including your current store. Can also retrieve information about a specific theme.";i.flags={...T,...g,...S,development:h.Flags.boolean({char:"d",description:"Retrieve info from your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),theme:h.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"})};i.multiEnvironmentsFlags=["store","password"];var k=i;export{k as a};
@@ -1 +1 @@
1
- import{b}from"./chunk-IX4KP6E3.js";import{a as F}from"./chunk-VOJWKGCW.js";import{j as h,l as u,o as T}from"./chunk-6YPEONHB.js";import{p as y,v as O}from"./chunk-D6YDSGR4.js";import{o as f,ua as v}from"./chunk-5W443CKL.js";import{b as I}from"./chunk-H5C3QTOO.js";import{v as _}from"./chunk-6EZ7JWBK.js";import{d as s}from"./chunk-WKBVT5WG.js";import{Mb as S,Ua as l,ma as c}from"./chunk-DONEJHDG.js";import{r as U}from"./chunk-T6CC5WUU.js";import{e as A,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();async function P({session:e,overridesContent:r,themeId:t}){v("theme-preview:create");let w=`${u(e)}/theme_preview.json?preview_theme_id=${t}`,o=await h(e,{headers:{"Content-Type":"application/json"}}),i=await f(w,{method:"POST",body:r,headers:o});if(!i.ok)throw new s(`Theme preview request failed with status ${i.status}: ${i.statusText}`);let a=await J(i);return v("theme-preview:create"),a}async function g({session:e,overridesContent:r,themeId:t,previewIdentifier:d}){v("theme-preview:update");let o=`${u(e)}/theme_preview.json?preview_theme_id=${t}&preview_identifier=${encodeURIComponent(d)}`,i=await h(e,{headers:{"Content-Type":"application/json"}}),a=await f(o,{method:"POST",body:r,headers:i});if(!a.ok)throw new s(`Theme preview request failed with status ${a.status}: ${a.statusText}`);let x=await J(a);return v("theme-preview:update"),x}async function J(e){let r=await e.json();if(r.error)throw new s(`Theme preview failed: ${r.error}`);if(!r.url||!r.preview_identifier)throw new s("Theme preview returned an unexpected response");return{url:r.url,preview_identifier:r.preview_identifier}}async function $(e){if(!l(e.overrideJson))throw new s(`Override file not found: ${e.overrideJson}`);let r=await c(e.overrideJson),t;try{t=JSON.parse(r)}catch(i){let a=i instanceof Error?i.message:String(i);throw new s(`Failed to parse override file: ${e.overrideJson}`,a)}let d=await T(e.themeId,e.adminSession,e.password),w=JSON.stringify(t),o=e.previewIdentifier?await g({session:d,overridesContent:w,themeId:e.themeId,previewIdentifier:e.previewIdentifier}):await P({session:d,overridesContent:w,themeId:e.themeId});e.json?S(JSON.stringify({url:o.url,preview_identifier:o.preview_identifier})):_({body:[{list:{title:e.previewIdentifier?"Preview updated":"Preview is ready",items:[{link:{url:o.url}},`Preview ID: ${o.preview_identifier}`]}}]}),e.open&&b(o.url,"theme preview")}var m=A(U(),1);var E,n=class extends O{async command(r,t){let d=await F(t,{filter:{theme:r.theme}});await $({adminSession:t,overrideJson:r.overrides,themeId:d.id.toString(),previewIdentifier:r["preview-id"],open:r.open,password:r.password,json:r.json})}};E=n;n.summary="Applies JSON overrides to a theme and returns a preview URL.";n.descriptionWithMarkdown="Applies a JSON overrides file to a theme and creates or updates a preview. This lets you quickly preview changes.\n\n The command returns a preview URL and a preview identifier. You can reuse the preview identifier with `--preview-id` to update an existing preview instead of creating a new one.";n.description=E.descriptionWithoutMarkdown();n.flags={...I,...y,theme:m.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID",required:!0}),overrides:m.Flags.string({description:"Path to a JSON overrides file.",env:"SHOPIFY_FLAG_OVERRIDES",required:!0}),"preview-id":m.Flags.string({description:"An existing preview identifier to update instead of creating a new preview.",env:"SHOPIFY_FLAG_PREVIEW_ID"}),open:m.Flags.boolean({description:"Automatically launch the theme preview in your default web browser.",env:"SHOPIFY_FLAG_OPEN",default:!1}),json:m.Flags.boolean({description:"Output the preview URL and identifier as JSON.",env:"SHOPIFY_FLAG_JSON",default:!1})};n.multiEnvironmentsFlags=null;var ee=n;export{ee as a};
1
+ import{b}from"./chunk-HXYWEKMS.js";import{a as F}from"./chunk-OASPW2P2.js";import{j as h,l as u,o as T}from"./chunk-KOB6T6NK.js";import{p as y,v as O}from"./chunk-PTIJDS6I.js";import{o as f,ua as v}from"./chunk-2HZMOK4U.js";import{b as I}from"./chunk-Q6LCSRIW.js";import{v as _}from"./chunk-E24W34C4.js";import{d as s}from"./chunk-ELIH6GCC.js";import{Mb as S,Ua as l,ma as c}from"./chunk-EYDNSYYE.js";import{r as U}from"./chunk-T6CC5WUU.js";import{e as A,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();async function P({session:e,overridesContent:r,themeId:t}){v("theme-preview:create");let w=`${u(e)}/theme_preview.json?preview_theme_id=${t}`,o=await h(e,{headers:{"Content-Type":"application/json"}}),i=await f(w,{method:"POST",body:r,headers:o});if(!i.ok)throw new s(`Theme preview request failed with status ${i.status}: ${i.statusText}`);let a=await J(i);return v("theme-preview:create"),a}async function g({session:e,overridesContent:r,themeId:t,previewIdentifier:d}){v("theme-preview:update");let o=`${u(e)}/theme_preview.json?preview_theme_id=${t}&preview_identifier=${encodeURIComponent(d)}`,i=await h(e,{headers:{"Content-Type":"application/json"}}),a=await f(o,{method:"POST",body:r,headers:i});if(!a.ok)throw new s(`Theme preview request failed with status ${a.status}: ${a.statusText}`);let x=await J(a);return v("theme-preview:update"),x}async function J(e){let r=await e.json();if(r.error)throw new s(`Theme preview failed: ${r.error}`);if(!r.url||!r.preview_identifier)throw new s("Theme preview returned an unexpected response");return{url:r.url,preview_identifier:r.preview_identifier}}async function $(e){if(!l(e.overrideJson))throw new s(`Override file not found: ${e.overrideJson}`);let r=await c(e.overrideJson),t;try{t=JSON.parse(r)}catch(i){let a=i instanceof Error?i.message:String(i);throw new s(`Failed to parse override file: ${e.overrideJson}`,a)}let d=await T(e.themeId,e.adminSession,e.password),w=JSON.stringify(t),o=e.previewIdentifier?await g({session:d,overridesContent:w,themeId:e.themeId,previewIdentifier:e.previewIdentifier}):await P({session:d,overridesContent:w,themeId:e.themeId});e.json?S(JSON.stringify({url:o.url,preview_identifier:o.preview_identifier})):_({body:[{list:{title:e.previewIdentifier?"Preview updated":"Preview is ready",items:[{link:{url:o.url}},`Preview ID: ${o.preview_identifier}`]}}]}),e.open&&b(o.url,"theme preview")}var m=A(U(),1);var E,n=class extends O{async command(r,t){let d=await F(t,{filter:{theme:r.theme}});await $({adminSession:t,overrideJson:r.overrides,themeId:d.id.toString(),previewIdentifier:r["preview-id"],open:r.open,password:r.password,json:r.json})}};E=n;n.summary="Applies JSON overrides to a theme and returns a preview URL.";n.descriptionWithMarkdown="Applies a JSON overrides file to a theme and creates or updates a preview. This lets you quickly preview changes.\n\n The command returns a preview URL and a preview identifier. You can reuse the preview identifier with `--preview-id` to update an existing preview instead of creating a new one.";n.description=E.descriptionWithoutMarkdown();n.flags={...I,...y,theme:m.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID",required:!0}),overrides:m.Flags.string({description:"Path to a JSON overrides file.",env:"SHOPIFY_FLAG_OVERRIDES",required:!0}),"preview-id":m.Flags.string({description:"An existing preview identifier to update instead of creating a new preview.",env:"SHOPIFY_FLAG_PREVIEW_ID"}),open:m.Flags.boolean({description:"Automatically launch the theme preview in your default web browser.",env:"SHOPIFY_FLAG_OPEN",default:!1}),json:m.Flags.boolean({description:"Output the preview URL and identifier as JSON.",env:"SHOPIFY_FLAG_JSON",default:!1})};n.multiEnvironmentsFlags=null;var ee=n;export{ee as a};
@@ -1,2 +1,2 @@
1
- import{w as h}from"./chunk-6RL7FUPD.js";import{a as d}from"./chunk-HM5H7WBE.js";import{a as f}from"./chunk-ZAMDXIVC.js";import{Fa as l}from"./chunk-ATXODH6C.js";import{b as m}from"./chunk-H5C3QTOO.js";import{Lb as c,Xb as u}from"./chunk-DONEJHDG.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();function g(p){let e=h(p),o=new Map;e.forEach(s=>{let r=s.split(".");if(r.length>=2){let i=r[0];o.has(i)||o.set(i,[]),o.set(i,[...o.get(i),s])}});for(let[s,r]of o)c(u(s,r.join(`
1
+ import{w as h}from"./chunk-YZY4M6IH.js";import{a as d}from"./chunk-6ZRHK4ON.js";import{a as f}from"./chunk-7XQDZF73.js";import{Fa as l}from"./chunk-UZ7U322K.js";import{b as m}from"./chunk-Q6LCSRIW.js";import{Lb as c,Xb as u}from"./chunk-EYDNSYYE.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();function g(p){let e=h(p),o=new Map;e.forEach(s=>{let r=s.split(".");if(r.length>=2){let i=r[0];o.has(i)||o.set(i,[]),o.set(i,[...o.get(i),s])}});for(let[s,r]of o)c(u(s,r.join(`
2
2
  `)))}var a,t=class extends d{async run(){let{flags:e}=await this.parse(a),{app:o}=await l({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config});return o.errors.isEmpty()?g(o):process.exit(2),{app:o}}};a=t;t.summary="Print out a list of sources that may be used with the logs command.";t.descriptionWithMarkdown="The output source names can be used with the `--source` argument of `shopify app logs` to filter log output. Currently only function extensions are supported as sources.";t.description=a.descriptionWithoutMarkdown();t.flags={...m,...f};var N=t;export{N as a};