shopify 4.9.4 → 4.9.6

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 (335) hide show
  1. package/dist/analytics-BTM7UNF6.js +1 -0
  2. package/dist/analytics-KFRP2KGG.js +1 -0
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-2YVSZFXJ.js → chunk-242NOO4T.js} +1 -1
  5. package/dist/{chunk-4ES7BJEK.js → chunk-27WWE5QN.js} +1 -1
  6. package/dist/{chunk-GPRZYFDE.js → chunk-2EFFU2J3.js} +1 -1
  7. package/dist/{chunk-3V4VL3SD.js → chunk-2TCPTRLF.js} +3 -3
  8. package/dist/{chunk-R7YJNDXW.js → chunk-36TJJREK.js} +1 -1
  9. package/dist/{chunk-LYIXRMQJ.js → chunk-3CSRZM3Q.js} +1 -1
  10. package/dist/{chunk-7HWMURCW.js → chunk-3EY3ULS6.js} +1 -1
  11. package/dist/{chunk-W4KE7AO6.js → chunk-3LR3IQRE.js} +1 -1
  12. package/dist/chunk-3OSGEQWG.js +4 -0
  13. package/dist/{chunk-C6IBY7NW.js → chunk-3QBQSNON.js} +1 -1
  14. package/dist/chunk-3WNWP3ZV.js +20 -0
  15. package/dist/{chunk-AVMNIZAJ.js → chunk-3XFVLDKZ.js} +1 -1
  16. package/dist/{chunk-Y3PY5LP7.js → chunk-43RTNZ6T.js} +1 -1
  17. package/dist/{chunk-TVCWDEVS.js → chunk-4CH5XVYP.js} +1 -1
  18. package/dist/{chunk-3LHE4GIX.js → chunk-4GD2RMV4.js} +1 -1
  19. package/dist/{chunk-AMLCWRHU.js → chunk-4LUOXUQX.js} +1 -1
  20. package/dist/{chunk-FEQHCE2E.js → chunk-4MLDRZ3X.js} +2 -2
  21. package/dist/{chunk-J4J2YXH3.js → chunk-4SOWK7OZ.js} +1 -1
  22. package/dist/{chunk-6YDLNP4G.js → chunk-4UROHXMF.js} +1 -1
  23. package/dist/{chunk-GSE6FXZU.js → chunk-4XDMN6DI.js} +1 -1
  24. package/dist/{chunk-43URS56H.js → chunk-4XVDLMXZ.js} +1 -1
  25. package/dist/{chunk-A2VCTDKH.js → chunk-5EVQSYMN.js} +1 -1
  26. package/dist/chunk-5IQ42V5M.js +11 -0
  27. package/dist/{chunk-LKXFHYLI.js → chunk-5K7B3MYY.js} +1 -1
  28. package/dist/chunk-5LDJ4CAJ.js +3 -0
  29. package/dist/{chunk-AYIU6Z4C.js → chunk-5W3YFFC2.js} +1 -1
  30. package/dist/{chunk-UQ6ALA3Y.js → chunk-5WN5FGRS.js} +1 -1
  31. package/dist/{chunk-73D5O7A3.js → chunk-5YMLUN2H.js} +1 -1
  32. package/dist/{chunk-EMH7OHCW.js → chunk-6AFURA34.js} +1 -1
  33. package/dist/{chunk-PFXNBHQQ.js → chunk-6ALQJACW.js} +1 -1
  34. package/dist/{chunk-4O7LK5RG.js → chunk-6HC6JBXZ.js} +1 -1
  35. package/dist/{chunk-ZTICX3AO.js → chunk-6I5ATJK6.js} +1 -1
  36. package/dist/{chunk-RXTLNUPF.js → chunk-6KWTCDUU.js} +1 -1
  37. package/dist/{chunk-RUHQNF2W.js → chunk-6LHYAB44.js} +1 -1
  38. package/dist/{chunk-LLPB6JN5.js → chunk-6M36S2RZ.js} +1 -1
  39. package/dist/{chunk-DSS4ECIH.js → chunk-6MELTJU3.js} +1 -1
  40. package/dist/{chunk-PHG4DASY.js → chunk-6R4CZJEP.js} +1 -1
  41. package/dist/{chunk-R3KSOCMB.js → chunk-6XKLKUE3.js} +1 -1
  42. package/dist/chunk-77G2GTZU.js +1 -0
  43. package/dist/{chunk-EO4YJFMY.js → chunk-7JAZMNHL.js} +1 -1
  44. package/dist/{chunk-QAJZUJR5.js → chunk-7VH257QN.js} +1 -1
  45. package/dist/{chunk-Q43LBSPT.js → chunk-7VHNMRXX.js} +1 -1
  46. package/dist/{chunk-PVAZCZSY.js → chunk-7XGP35CV.js} +1 -1
  47. package/dist/{chunk-LWU5TKNA.js → chunk-A5RXJNQ5.js} +1 -1
  48. package/dist/{chunk-RSC5NQAT.js → chunk-A7KQUQLZ.js} +1 -1
  49. package/dist/{chunk-N55MSO3X.js → chunk-AQRJ76WH.js} +1 -1
  50. package/dist/{chunk-7HNRK2CR.js → chunk-AY5OUOJX.js} +1 -1
  51. package/dist/{chunk-7VAKNVFD.js → chunk-B6BTX7WU.js} +1 -1
  52. package/dist/{chunk-NGSEF3UX.js → chunk-BAAM465I.js} +1 -1
  53. package/dist/{chunk-IPZ6LUJV.js → chunk-BAPGKXWM.js} +1 -1
  54. package/dist/chunk-BSNPN72J.js +5 -0
  55. package/dist/{chunk-4O5GQ3DS.js → chunk-BUERBYLS.js} +1 -1
  56. package/dist/{chunk-D3KFKT4D.js → chunk-BYZU7YS7.js} +1 -1
  57. package/dist/{chunk-UU6BRRYS.js → chunk-CNHSSTET.js} +1 -1
  58. package/dist/{chunk-67EBF76X.js → chunk-CUKGLLVJ.js} +1 -1
  59. package/dist/{chunk-K3HUQLIC.js → chunk-CYXIVHAF.js} +1 -1
  60. package/dist/{chunk-VGBUN3CZ.js → chunk-D2XXDJOB.js} +1 -1
  61. package/dist/{chunk-HQJ62PII.js → chunk-D65CUTKT.js} +1 -1
  62. package/dist/{chunk-KQFA5YTT.js → chunk-DP64USHX.js} +1 -1
  63. package/dist/{chunk-NU5WLZ6Y.js → chunk-DWMRVMKX.js} +1 -1
  64. package/dist/{chunk-ALK66U3O.js → chunk-DXDKHVOZ.js} +1 -1
  65. package/dist/{chunk-TPHHQAUD.js → chunk-DXVMT37F.js} +1 -1
  66. package/dist/{chunk-TFXUDHCP.js → chunk-EBAV3Z54.js} +1 -1
  67. package/dist/{chunk-YHESTFMZ.js → chunk-ECUMY7EP.js} +1 -1
  68. package/dist/{chunk-4JGWKUJN.js → chunk-EDUQUCXK.js} +1 -1
  69. package/dist/chunk-EGWRLGF4.js +1 -0
  70. package/dist/{chunk-S36VGP37.js → chunk-FASYFQVN.js} +1 -1
  71. package/dist/{chunk-NYYXH2SX.js → chunk-FJUE4LQ6.js} +1 -1
  72. package/dist/{chunk-XNVOKAF2.js → chunk-FLKGDGRR.js} +1 -1
  73. package/dist/{chunk-GM4EFJJF.js → chunk-FMFU75ON.js} +1 -1
  74. package/dist/{chunk-MW3IMZJ5.js → chunk-FMT52ZOY.js} +1 -1
  75. package/dist/{chunk-YBSX53QP.js → chunk-FRHB4IFP.js} +1 -1
  76. package/dist/{chunk-4ZNBEMRT.js → chunk-FSWOB535.js} +3 -3
  77. package/dist/{chunk-HJHS23Q3.js → chunk-FUJAJKL2.js} +1 -1
  78. package/dist/{chunk-HPM3HF7A.js → chunk-FX27WXGC.js} +1 -1
  79. package/dist/{chunk-SNE4RHM4.js → chunk-G73DLMVM.js} +1 -1
  80. package/dist/{chunk-ZEBMW5KS.js → chunk-G76W6NZP.js} +1 -1
  81. package/dist/chunk-G7HOEDC3.js +6 -0
  82. package/dist/{chunk-SQAS5RVZ.js → chunk-GAWWWWUZ.js} +1 -1
  83. package/dist/{chunk-6IMHGT7F.js → chunk-GB3AA3X5.js} +1 -1
  84. package/dist/{chunk-ONF7XXEL.js → chunk-GDNCENVE.js} +1 -1
  85. package/dist/{chunk-IGDVKRB4.js → chunk-HCKLWXCL.js} +1 -1
  86. package/dist/{chunk-Z6X2GT6Q.js → chunk-HK3GFNMW.js} +1 -1
  87. package/dist/{chunk-XGKCPD6W.js → chunk-HP4GSH4V.js} +1 -1
  88. package/dist/{chunk-4IFY7V7W.js → chunk-HUWP2XMA.js} +1 -1
  89. package/dist/{chunk-J4NBPC57.js → chunk-HYLSV7GC.js} +1 -1
  90. package/dist/{chunk-MCNK5SJ6.js → chunk-I3QLXR5S.js} +1 -1
  91. package/dist/{chunk-6MC2BEW4.js → chunk-IAFTSCIL.js} +1 -1
  92. package/dist/{chunk-OE3HSNSE.js → chunk-ICRQVAFM.js} +1 -1
  93. package/dist/{chunk-NCVGCVQ5.js → chunk-IRF43DMG.js} +1 -1
  94. package/dist/{chunk-5BTLE67Z.js → chunk-ITO5UZMZ.js} +1 -1
  95. package/dist/{chunk-MMQZO2W2.js → chunk-J47LE4T7.js} +1 -1
  96. package/dist/{chunk-47IQIIFX.js → chunk-J6XOTLT5.js} +1 -1
  97. package/dist/{chunk-DMDLJRLW.js → chunk-JDAQL76H.js} +1 -1
  98. package/dist/{chunk-QPQS2YU3.js → chunk-JNHEAOMV.js} +1 -1
  99. package/dist/{chunk-UEBUGSBT.js → chunk-JTEP5MP2.js} +1 -1
  100. package/dist/{chunk-XWQM2NZ2.js → chunk-KACAGYNQ.js} +1 -1
  101. package/dist/{chunk-MW3JKGJH.js → chunk-KCO5GEOP.js} +1 -1
  102. package/dist/{chunk-3G2ZQ2EF.js → chunk-KK6PJIJT.js} +1 -1
  103. package/dist/{chunk-QTLGMJDW.js → chunk-KW5SQ6PG.js} +1 -1
  104. package/dist/{chunk-DEF2G7S4.js → chunk-LXCVWQK4.js} +1 -1
  105. package/dist/{chunk-PG4S5HJJ.js → chunk-MEWNJLRS.js} +1 -1
  106. package/dist/{chunk-B3M3KIOU.js → chunk-MJIGXNI3.js} +1 -1
  107. package/dist/{chunk-WEXOA4C4.js → chunk-MKNCBJVY.js} +1 -1
  108. package/dist/{chunk-I5PQZRYM.js → chunk-MLZAI55C.js} +1 -1
  109. package/dist/{chunk-66YRAUWX.js → chunk-MNYLFNXN.js} +1 -1
  110. package/dist/{chunk-SZI6G247.js → chunk-N5YS4PAM.js} +1 -1
  111. package/dist/{chunk-VNFUCH6T.js → chunk-NB2KT7G6.js} +1 -1
  112. package/dist/{chunk-RJSQMKKS.js → chunk-NLXVPUOO.js} +1 -1
  113. package/dist/{chunk-GE4MLO3C.js → chunk-NQ5PKMPV.js} +1 -1
  114. package/dist/{chunk-YTR5JHNJ.js → chunk-NQVG4W5U.js} +1 -1
  115. package/dist/{chunk-PB5ZZET5.js → chunk-NY5ESCDK.js} +1 -1
  116. package/dist/{chunk-QUXQM3S3.js → chunk-O4Q3UXIN.js} +1 -1
  117. package/dist/{chunk-GZ7VGCVW.js → chunk-ON4RFEHN.js} +1 -1
  118. package/dist/{chunk-CLD3NZYD.js → chunk-OPIEU37B.js} +1 -1
  119. package/dist/{chunk-4TFJ5RW7.js → chunk-OTQUZLAC.js} +1 -1
  120. package/dist/{chunk-WEPO4J2F.js → chunk-OYMJI3MD.js} +1 -1
  121. package/dist/{chunk-UIC7K2HX.js → chunk-PCWXGO4K.js} +1 -1
  122. package/dist/{chunk-K7D53KSJ.js → chunk-PDAOTRLF.js} +1 -1
  123. package/dist/{chunk-IDKRJ2F4.js → chunk-PI6M7EZF.js} +1 -1
  124. package/dist/{chunk-G7JW4UIM.js → chunk-PJ273A7N.js} +1 -1
  125. package/dist/{chunk-YHCP326A.js → chunk-PUMOQZDB.js} +1 -1
  126. package/dist/{chunk-O5FFMTJE.js → chunk-PZA7BBAC.js} +4 -4
  127. package/dist/{chunk-Q37WAD6F.js → chunk-QF453PH7.js} +1 -1
  128. package/dist/{chunk-Q2XLIWG4.js → chunk-QFMATBKM.js} +1 -1
  129. package/dist/chunk-QG3GJSLN.js +15 -0
  130. package/dist/chunk-QLHPTMIH.js +1 -0
  131. package/dist/{chunk-JYGZD4HM.js → chunk-QMFD6EWX.js} +1 -1
  132. package/dist/{chunk-37BGAWAW.js → chunk-QREFTU4W.js} +1 -1
  133. package/dist/{chunk-UWI76E2L.js → chunk-QY73XOBU.js} +3 -3
  134. package/dist/{chunk-FQL2WEKX.js → chunk-QYV5QN44.js} +1 -1
  135. package/dist/{chunk-BOE2ST6J.js → chunk-ROUPL6WR.js} +1 -1
  136. package/dist/{chunk-VMNOSVPT.js → chunk-RV54HI5A.js} +1 -1
  137. package/dist/{chunk-6A4H3HPY.js → chunk-S43YCHAN.js} +1 -1
  138. package/dist/chunk-SAA32TAK.js +5 -0
  139. package/dist/{chunk-XNPUZRWP.js → chunk-SBVYAGNC.js} +1 -1
  140. package/dist/{chunk-YYA5VGDW.js → chunk-SFQGGQDB.js} +1 -1
  141. package/dist/{chunk-FK7GA4QQ.js → chunk-SM3X5GTB.js} +1 -1
  142. package/dist/{chunk-F3PZGSOY.js → chunk-SNBJDHF2.js} +1 -1
  143. package/dist/{chunk-HASIOUH2.js → chunk-SPWX6OQR.js} +1 -1
  144. package/dist/{chunk-LJIJEGND.js → chunk-ST75AW7Z.js} +1 -1
  145. package/dist/{chunk-45SZ5PSE.js → chunk-SUIVO7GI.js} +1 -1
  146. package/dist/{chunk-7556AIVG.js → chunk-T2RE2K3N.js} +1 -1
  147. package/dist/{chunk-HLPAVELJ.js → chunk-TC63IUVI.js} +1 -1
  148. package/dist/{chunk-PO5T44H3.js → chunk-TFVIG4I7.js} +1 -1
  149. package/dist/{chunk-7SJHVJ3W.js → chunk-TJ2QQ2YQ.js} +1 -1
  150. package/dist/{chunk-MUM34KUM.js → chunk-TM3PHZKF.js} +1 -1
  151. package/dist/{chunk-N5AZZYQA.js → chunk-TV37VCLT.js} +1 -1
  152. package/dist/{chunk-YT27FIQN.js → chunk-TYBZNIRM.js} +2 -2
  153. package/dist/{chunk-QO5RNGWA.js → chunk-U5U5E7K5.js} +1 -1
  154. package/dist/chunk-UPAV44WQ.js +1 -0
  155. package/dist/{chunk-WLWHCUPZ.js → chunk-UQPAHTBH.js} +1 -1
  156. package/dist/{chunk-PP4VCR4Y.js → chunk-UZR3JSH2.js} +1 -1
  157. package/dist/{chunk-XSMCQLJW.js → chunk-V2XUMMTV.js} +1 -1
  158. package/dist/{chunk-4OCVXE5Y.js → chunk-VEYIT46B.js} +1 -1
  159. package/dist/{chunk-J6LQR2F6.js → chunk-VI7XF2HZ.js} +1 -1
  160. package/dist/{chunk-HQY6JM6G.js → chunk-VMMPBOTN.js} +1 -1
  161. package/dist/{chunk-ENQXB532.js → chunk-VOVBMABU.js} +1 -1
  162. package/dist/{chunk-FO2R6KHG.js → chunk-VVHUYIID.js} +1 -1
  163. package/dist/{chunk-DYPZX7MW.js → chunk-VWKMTYCN.js} +1 -1
  164. package/dist/chunk-VYEPVORB.js +2 -0
  165. package/dist/{chunk-Y62EMOQA.js → chunk-W2PLTMI4.js} +1 -1
  166. package/dist/{chunk-BVB3DTNE.js → chunk-WPVPRCCD.js} +1 -1
  167. package/dist/{chunk-4TZCRMBJ.js → chunk-WQG4QDC5.js} +1 -1
  168. package/dist/{chunk-YPCXVZ2N.js → chunk-WYAOSSZV.js} +1 -1
  169. package/dist/{chunk-UNHT4ZFP.js → chunk-X4767EMJ.js} +1 -1
  170. package/dist/chunk-X5VPFSL3.js +16 -0
  171. package/dist/{chunk-HSYMUYEZ.js → chunk-XAATRAER.js} +1 -1
  172. package/dist/{chunk-MJZSSCGD.js → chunk-XEL7K7VT.js} +1 -1
  173. package/dist/chunk-XUZXQC5H.js +1 -0
  174. package/dist/{chunk-NCRWOW6F.js → chunk-XWQIX3T7.js} +1 -1
  175. package/dist/{chunk-6HPUOCFF.js → chunk-Y4USH7MD.js} +1 -1
  176. package/dist/{chunk-RK2V6OIJ.js → chunk-Y54LCKE7.js} +1 -1
  177. package/dist/{chunk-2PDVBGQH.js → chunk-YMB7HPMN.js} +1 -1
  178. package/dist/{chunk-35WQTGN3.js → chunk-Z5RA2TNT.js} +1 -1
  179. package/dist/{chunk-ZEE32UH6.js → chunk-Z6TXDTXR.js} +1 -1
  180. package/dist/{chunk-LOWSU4BB.js → chunk-ZG4M63GT.js} +1 -1
  181. package/dist/chunk-ZHTG2T5Y.js +1 -0
  182. package/dist/{chunk-VS7QVU3Z.js → chunk-ZY353ZNN.js} +1 -1
  183. package/dist/{chunk-NT4A37HG.js → chunk-ZYZU37KT.js} +1 -1
  184. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  185. package/dist/cli/commands/app/build.js +1 -1
  186. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  187. package/dist/cli/commands/app/bulk/execute.js +1 -1
  188. package/dist/cli/commands/app/bulk/status.js +1 -1
  189. package/dist/cli/commands/app/config/link.js +1 -1
  190. package/dist/cli/commands/app/config/pull.js +1 -1
  191. package/dist/cli/commands/app/config/use.js +1 -1
  192. package/dist/cli/commands/app/config/validate.js +1 -1
  193. package/dist/cli/commands/app/demo/watcher.js +1 -1
  194. package/dist/cli/commands/app/deploy.js +1 -1
  195. package/dist/cli/commands/app/dev/clean.js +1 -1
  196. package/dist/cli/commands/app/dev.js +1 -1
  197. package/dist/cli/commands/app/env/pull.js +1 -1
  198. package/dist/cli/commands/app/env/show.js +1 -1
  199. package/dist/cli/commands/app/execute.js +1 -1
  200. package/dist/cli/commands/app/function/build.js +1 -1
  201. package/dist/cli/commands/app/function/info.js +1 -1
  202. package/dist/cli/commands/app/function/replay.js +1 -1
  203. package/dist/cli/commands/app/function/run.js +1 -1
  204. package/dist/cli/commands/app/function/schema.js +1 -1
  205. package/dist/cli/commands/app/function/typegen.js +1 -1
  206. package/dist/cli/commands/app/generate/extension.js +1 -1
  207. package/dist/cli/commands/app/graphiql.js +1 -1
  208. package/dist/cli/commands/app/import/channel-config.js +1 -1
  209. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  210. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  211. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  212. package/dist/cli/commands/app/import-extensions.js +1 -1
  213. package/dist/cli/commands/app/info.js +1 -1
  214. package/dist/cli/commands/app/init.js +1 -1
  215. package/dist/cli/commands/app/logs.js +1 -1
  216. package/dist/cli/commands/app/release.js +1 -1
  217. package/dist/cli/commands/app/security/check.js +1 -1
  218. package/dist/cli/commands/app/security/clean.js +1 -1
  219. package/dist/cli/commands/app/security/instructions.js +1 -1
  220. package/dist/cli/commands/app/security/record.js +1 -1
  221. package/dist/cli/commands/app/security/review.js +1 -1
  222. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  223. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  224. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  225. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  226. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  227. package/dist/cli/commands/app/versions/list.js +1 -1
  228. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  229. package/dist/cli/commands/auth/login.js +1 -1
  230. package/dist/cli/commands/auth/logout.js +1 -1
  231. package/dist/cli/commands/cache/clear.js +1 -1
  232. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  233. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  234. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  235. package/dist/cli/commands/debug/command-flags.js +1 -1
  236. package/dist/cli/commands/doc/fetch.js +1 -1
  237. package/dist/cli/commands/doc/search.js +1 -1
  238. package/dist/cli/commands/docs/generate.js +1 -1
  239. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  240. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  241. package/dist/cli/commands/help.js +1 -1
  242. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  243. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  244. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  245. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  246. package/dist/cli/commands/notifications/generate.js +1 -1
  247. package/dist/cli/commands/notifications/list.js +1 -1
  248. package/dist/cli/commands/organization/list.js +1 -1
  249. package/dist/cli/commands/search.js +1 -1
  250. package/dist/cli/commands/send-analytics.js +1 -1
  251. package/dist/cli/commands/theme/check.js +1 -1
  252. package/dist/cli/commands/theme/console.js +1 -1
  253. package/dist/cli/commands/theme/delete.js +1 -1
  254. package/dist/cli/commands/theme/dev.js +1 -1
  255. package/dist/cli/commands/theme/duplicate.js +1 -1
  256. package/dist/cli/commands/theme/info.js +1 -1
  257. package/dist/cli/commands/theme/init.js +1 -1
  258. package/dist/cli/commands/theme/language-server.js +1 -1
  259. package/dist/cli/commands/theme/list.js +1 -1
  260. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  261. package/dist/cli/commands/theme/open.js +1 -1
  262. package/dist/cli/commands/theme/package.js +1 -1
  263. package/dist/cli/commands/theme/preview.js +1 -1
  264. package/dist/cli/commands/theme/profile.js +1 -1
  265. package/dist/cli/commands/theme/publish.js +1 -1
  266. package/dist/cli/commands/theme/pull.js +1 -1
  267. package/dist/cli/commands/theme/push.js +1 -1
  268. package/dist/cli/commands/theme/rename.js +1 -1
  269. package/dist/cli/commands/theme/share.js +1 -1
  270. package/dist/cli/commands/upgrade.js +1 -1
  271. package/dist/cli/commands/version.js +1 -1
  272. package/dist/cli/help.js +1 -1
  273. package/dist/{command-json-schema-SS4GDJTQ.js → command-json-schema-V4OTY4MX.js} +1 -1
  274. package/dist/command-registry.js +1 -1
  275. package/dist/{conf-store-54YJCIDK.js → conf-store-LWBJNYPC.js} +1 -1
  276. package/dist/{custom-oclif-loader-3UBH7Q7R.js → custom-oclif-loader-KS3MBI4W.js} +1 -1
  277. package/dist/{deprecations-ZX7ZKF6L.js → deprecations-NAJ4JNON.js} +1 -1
  278. package/dist/dist-HTXIQ6TQ.js +1 -0
  279. package/dist/dist-XYFXZS4I.js +1 -0
  280. package/dist/environments-65BJOXLA.js +1 -0
  281. package/dist/{error-AA6LW3PN.js → error-TTZRUUUI.js} +1 -1
  282. package/dist/error-handler-TJG7IDLT.js +1 -0
  283. package/dist/{fs-4QZCAEP7.js → fs-VHUA5OHC.js} +1 -1
  284. package/dist/hooks/did-you-mean.js +1 -1
  285. package/dist/hooks/hydrogen-init.js +1 -1
  286. package/dist/hooks/postrun.js +1 -1
  287. package/dist/hooks/prerun.js +1 -1
  288. package/dist/hooks/public-metadata.js +1 -1
  289. package/dist/hooks/sensitive-metadata.js +1 -1
  290. package/dist/hooks/tunnel-provider.js +1 -1
  291. package/dist/hooks/tunnel-start.js +1 -1
  292. package/dist/index.js +1 -1
  293. package/dist/{is-global-FKG327CG.js → is-global-7BDGLRND.js} +1 -1
  294. package/dist/{json-error-32ETFU3V.js → json-error-OSDR2S56.js} +1 -1
  295. package/dist/{local-R3UAQN7T.js → local-BQ5FJYX6.js} +1 -1
  296. package/dist/{metadata-JWJG4JV4.js → metadata-GFLDQ2I7.js} +1 -1
  297. package/dist/{node-package-manager-M4XHUTQR.js → node-package-manager-FQZ7XFU4.js} +1 -1
  298. package/dist/notifications-system-BESW6Q65.js +1 -0
  299. package/dist/{os-FEHBQQKP.js → os-GPZXOHDI.js} +1 -1
  300. package/dist/{output-2LS5AOAH.js → output-TLYSXAUL.js} +1 -1
  301. package/dist/{system-TMD2LYZM.js → system-KVPOFMPA.js} +1 -1
  302. package/dist/tsconfig.tsbuildinfo +1 -1
  303. package/dist/{ui-FNPICAAH.js → ui-CM3VQLC2.js} +1 -1
  304. package/dist/upgrade-CPOWDAOD.js +1 -0
  305. package/dist/version-ILYYDNX7.js +1 -0
  306. package/dist/version-SN7J7ZYL.js +1 -0
  307. package/dist/{workerd-TKVRZK2F.js → workerd-SBI5B2H5.js} +1 -1
  308. package/oclif.manifest.json +1 -1
  309. package/package.json +7 -7
  310. package/dist/analytics-APDNTBDE.js +0 -1
  311. package/dist/analytics-LX52KYSE.js +0 -1
  312. package/dist/chunk-3C4WVKSO.js +0 -6
  313. package/dist/chunk-5JIJDUXX.js +0 -20
  314. package/dist/chunk-7A3RW2VM.js +0 -1
  315. package/dist/chunk-BIWG3FQQ.js +0 -5
  316. package/dist/chunk-BQ3U3CQV.js +0 -1
  317. package/dist/chunk-CQF5NDTJ.js +0 -4
  318. package/dist/chunk-CVFPY2SH.js +0 -3
  319. package/dist/chunk-DMNWSUKV.js +0 -5
  320. package/dist/chunk-GN66BRYF.js +0 -1
  321. package/dist/chunk-KTD7VLHL.js +0 -2
  322. package/dist/chunk-L4DFMMOI.js +0 -1
  323. package/dist/chunk-LJZTSQRD.js +0 -11
  324. package/dist/chunk-PWS4VFSD.js +0 -1
  325. package/dist/chunk-R74WHKHH.js +0 -15
  326. package/dist/chunk-XUUIBSLW.js +0 -1
  327. package/dist/chunk-Y743UVBS.js +0 -16
  328. package/dist/dist-JMNE7MP6.js +0 -1
  329. package/dist/dist-M2AXGBOL.js +0 -1
  330. package/dist/environments-KD2IDYPG.js +0 -1
  331. package/dist/error-handler-4VW3AV2G.js +0 -1
  332. package/dist/notifications-system-QVM2JWKB.js +0 -1
  333. package/dist/upgrade-YYPP5VZY.js +0 -1
  334. package/dist/version-OX3MORI6.js +0 -1
  335. package/dist/version-P7D5ME4Z.js +0 -1
@@ -1,6 +1,6 @@
1
- import{a as A,b as S,c as E,d as i,e as k,f as F,g as L,h as H,i as _}from"./chunk-FQL2WEKX.js";import{a as I}from"./chunk-PWS4VFSD.js";import{a as b}from"./chunk-PO5T44H3.js";import{Ha as T,ia as P}from"./chunk-UNHT4ZFP.js";import{f as l}from"./chunk-NU5WLZ6Y.js";import{D as p,F as g,J as v}from"./chunk-47IQIIFX.js";import{Lb as h,Ob as m,Qb as w}from"./chunk-UWI76E2L.js";import{b as G}from"./chunk-I3J63RFV.js";import{i as y}from"./chunk-6IDEDOXW.js";import{e as q,g as a}from"./chunk-VKWPEFWQ.js";a();a();a();a();async function M(e,t,r){let o={api_version:t},{webhookTopics:s}=await e.topics(o,r);return s}a();async function V(e){let t=e.map(o=>({label:o,value:o}));return await g({message:"Webhook Topic",choices:t})}async function C(e){return p({message:"Webhook ApiVersion",choices:e.map(t=>({label:t,value:t}))})}async function R(){return p({message:"Delivery method",choices:[{label:"HTTP",value:i.HTTP},{label:"Google Pub/Sub",value:i.PUBSUB},{label:"Amazon EventBridge",value:i.EVENTBRIDGE}]})}async function D(e){return(await v({message:"Address for delivery",validate:r=>{let o=r.trim();if(o.length===0)return"Address can't be empty";if(!k(o,e))return`Invalid address.
2
- ${d(e)}`}})).trim()}function U(e){return e===i.HTTP?["For remote HTTP testing, use a URL that starts with https://","For local HTTP testing, use http://localhost:{port}/{url-path}"]:e===i.PUBSUB?["For Google Pub/Sub, use pubsub://{project-id}:{topic-id}"]:e===i.EVENTBRIDGE?["For Amazon EventBridge, use an Amazon Resource Name (ARN) starting with arn:aws:events:"]:[]}function d(e){return U(e).map(t=>` \xB7 ${w(t)}`).join(`
3
- `)}async function x(e,t){let{clientSecret:r,clientId:o,remoteApp:s,app:c}=e;return r&&(o||t!==i.EVENTBRIDGE)?{clientSecret:r,apiKey:o}:(P({appName:s.title,configFile:y(c.configPath)}),{clientSecret:s.apiSecretKeys.find(f=>f.secret).secret,apiKey:s.apiKey})}async function O(e,t,r){let o=await A(e,r);return t?L(t,o):C(o)}async function B(e,t,r,o){let s=await M(e,t,o);return r?H(r,t,s):V(s)}async function N(e,t){let r=e??_(t)??await R(),o=t??await D(r);return F(o,r)}async function Y(e){let t=await z(e);await W(t)}async function z(e){let t=await O(e.developerPlatformClient,e.apiVersion,e.organizationId),r=await B(e.developerPlatformClient,t,e.topic,e.organizationId),[o,s]=await N(e.deliveryMethod,e.address),c=await x(e,s);return{topic:r,apiVersion:t,deliveryMethod:s,address:o,apiKey:c.apiKey,clientSecret:c.clientSecret,developerPlatformClient:e.developerPlatformClient,organizationId:e.organizationId}}async function W(e){let t={topic:e.topic,api_version:e.apiVersion,address:e.address,delivery_method:e.deliveryMethod,shared_secret:e.clientSecret,api_key:e.apiKey},r=await S(e.developerPlatformClient,t,e.organizationId);if(!r.success){m(`Request errors:
1
+ import{a as A,b as S,c as E,d as i,e as k,f as F,g as L,h as H,i as _}from"./chunk-QYV5QN44.js";import{a as I}from"./chunk-XUZXQC5H.js";import{a as w}from"./chunk-TFVIG4I7.js";import{Ha as T,ia as b}from"./chunk-X4767EMJ.js";import{ba as P}from"./chunk-X5VPFSL3.js";import{f as l}from"./chunk-DWMRVMKX.js";import{D as p,F as y,J as g}from"./chunk-J6XOTLT5.js";import{Lb as h,Ob as m,Qb as v}from"./chunk-QY73XOBU.js";import{b as G}from"./chunk-I3J63RFV.js";import{i as f}from"./chunk-6IDEDOXW.js";import{e as q,g as a}from"./chunk-VKWPEFWQ.js";a();a();a();a();async function M(e,t,r){let o={api_version:t},{webhookTopics:s}=await e.topics(o,r);return s}a();async function C(e){let t=e.map(o=>({label:o,value:o}));return await y({message:"Webhook Topic",choices:t})}async function V(e){return p({message:"Webhook ApiVersion",choices:e.map(t=>({label:t,value:t}))})}async function R(){return p({message:"Delivery method",choices:[{label:"HTTP",value:i.HTTP},{label:"Google Pub/Sub",value:i.PUBSUB},{label:"Amazon EventBridge",value:i.EVENTBRIDGE}]})}async function D(e){return(await g({message:"Address for delivery",validate:r=>{let o=r.trim();if(o.length===0)return"Address can't be empty";if(!k(o,e))return`Invalid address.
2
+ ${d(e)}`}})).trim()}function U(e){return e===i.HTTP?["For remote HTTP testing, use a URL that starts with https://","For local HTTP testing, use http://localhost:{port}/{url-path}"]:e===i.PUBSUB?["For Google Pub/Sub, use pubsub://{project-id}:{topic-id}"]:e===i.EVENTBRIDGE?["For Amazon EventBridge, use an Amazon Resource Name (ARN) starting with arn:aws:events:"]:[]}function d(e){return U(e).map(t=>` \xB7 ${v(t)}`).join(`
3
+ `)}async function x(e,t){let{clientSecret:r,clientId:o,remoteApp:s,app:c}=e;return r&&(o||t!==i.EVENTBRIDGE)?{clientSecret:r,apiKey:o}:(b({appName:s.title,configFile:f(c.configPath)}),r?{clientSecret:r,apiKey:s.apiKey}:{clientSecret:await P(s,"Pass the secret with the --client-secret flag."),apiKey:s.apiKey})}async function O(e,t,r){let o=await A(e,r);return t?L(t,o):V(o)}async function B(e,t,r,o){let s=await M(e,t,o);return r?H(r,t,s):C(s)}async function N(e,t){let r=e??_(t)??await R(),o=t??await D(r);return F(o,r)}async function Y(e){let t=await z(e);await W(t)}async function z(e){let t=await O(e.developerPlatformClient,e.apiVersion,e.organizationId),r=await B(e.developerPlatformClient,t,e.topic,e.organizationId),[o,s]=await N(e.deliveryMethod,e.address),c=await x(e,s);return{topic:r,apiVersion:t,deliveryMethod:s,address:o,apiKey:c.apiKey,clientSecret:c.clientSecret,developerPlatformClient:e.developerPlatformClient,organizationId:e.organizationId}}async function W(e){let t={topic:e.topic,api_version:e.apiVersion,address:e.address,delivery_method:e.deliveryMethod,shared_secret:e.clientSecret,api_key:e.apiKey},r=await S(e.developerPlatformClient,t,e.organizationId);if(!r.success){m(`Request errors:
4
4
  ${K(r.userErrors)}`);return}if(e.deliveryMethod===i.LOCALHOST){if(await E(e.address,r.samplePayload,r.headers)){h("Localhost delivery sucessful");return}m("Localhost delivery failed");return}r.samplePayload===JSON.stringify({})&&h("Webhook has been enqueued for delivery")}function K(e){try{return e.map(t=>JSON.parse(t.message).map(r=>` \xB7 ${r}`).join(`
5
5
  `)).join(`
6
6
  `)}catch{return JSON.stringify(e)}}var n=q(G(),1);var u=class e extends I{static summary="Trigger delivery of a sample webhook topic payload to a designated address.";static descriptionWithMarkdown=`
@@ -18,7 +18,7 @@ ${K(r.userErrors)}`);return}if(e.deliveryMethod===i.LOCALHOST){if(await E(e.addr
18
18
  - Webhooks triggered using this method aren't retried when they fail.
19
19
  - Trigger requests are rate-limited using the [Partner API rate limit](https://shopify.dev/docs/api/partner#rate_limits).
20
20
  - You can't use this method to validate your API webhook subscriptions.
21
- `;static description=this.descriptionForHelp();static flags={...b,help:n.Flags.help({required:!1,hidden:!1,env:"SHOPIFY_FLAG_HELP",description:"This help. When you run the trigger command the CLI will prompt you for any information that isn't passed using flags."}),topic:l(n.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_TOPIC",description:"The requested webhook topic."})),"api-version":l(n.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_API_VERSION",description:"The API Version of the webhook topic."})),"delivery-method":n.Flags.string({required:!1,hidden:!1,options:[i.HTTP,i.PUBSUB,i.EVENTBRIDGE],env:"SHOPIFY_FLAG_DELIVERY_METHOD",description:"Method chosen to deliver the topic payload. If not passed, it's inferred from the address."}),"client-secret":n.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_CLIENT_SECRET",description:"Your app's client secret. This secret allows us to return the X-Shopify-Hmac-SHA256 header that lets you validate the origin of the response that you receive."}),address:l(n.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_ADDRESS",description:`The URL where the webhook payload should be sent.
21
+ `;static description=this.descriptionForHelp();static flags={...w,help:n.Flags.help({required:!1,hidden:!1,env:"SHOPIFY_FLAG_HELP",description:"This help. When you run the trigger command the CLI will prompt you for any information that isn't passed using flags."}),topic:l(n.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_TOPIC",description:"The requested webhook topic."})),"api-version":l(n.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_API_VERSION",description:"The API Version of the webhook topic."})),"delivery-method":n.Flags.string({required:!1,hidden:!1,options:[i.HTTP,i.PUBSUB,i.EVENTBRIDGE],env:"SHOPIFY_FLAG_DELIVERY_METHOD",description:"Method chosen to deliver the topic payload. If not passed, it's inferred from the address."}),"client-secret":n.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_CLIENT_SECRET",description:"Your app's client secret. This secret allows us to return the X-Shopify-Hmac-SHA256 header that lets you validate the origin of the response that you receive."}),address:l(n.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_ADDRESS",description:`The URL where the webhook payload should be sent.
22
22
  You will need a different address type for each delivery-method:
23
23
  ${d(i.HTTP)}
24
24
  ${d(i.PUBSUB)}
@@ -1 +1 @@
1
- import{Bb as h,Jb as g,Qb as f,ib as E}from"./chunk-UWI76E2L.js";import{b as O}from"./chunk-I3J63RFV.js";import{d as m}from"./chunk-6IDEDOXW.js";import{e as P,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();var R=new Set(["THROTTLED","429"]),b=new Set(["ACCESS_DENIED","access_denied"]);function I(e){return Array.isArray(e)?e.flatMap(t=>{let s=[],n=t,r=n?.extensions?.code;typeof r=="string"&&s.push(r);let u=n?.extensions?.app_errors?.errors;if(Array.isArray(u))for(let p of u){let l=p?.category;typeof l=="string"&&s.push(l)}return s}):[]}function T(e){return e!==void 0&&R.has(e)}function _(e){return e!==void 0&&b.has(e)}function S(e){return I(e).some(T)}o();var C=new Set([502,503,504]);function x(e){return e!==void 0&&C.has(e)}var M=P(O(),1),i;(function(e){e[e.Abort=0]="Abort",e[e.AbortSilent=1]="AbortSilent",e[e.Bug=2]="Bug"})(i||(i={}));var y=class extends Error{},a=class extends Error{tryMessage;type;nextSteps;formattedMessage;customSections;code;details;skipOclifErrorHandling;constructor(t,s,n=null,r,u){let p=typeof t=="string"||"value"in t;super(p?f(t):E(t)),n?n instanceof h?this.tryMessage=f(n):this.tryMessage=n:this.tryMessage=null,this.type=s,this.nextSteps=r,this.customSections=u,this.skipOclifErrorHandling=!0,p||(this.formattedMessage=t)}},d=class extends a{constructor(t,s=null,n,r){super(t,i.Abort,s,n,r)}},w=class extends a{command;args;constructor(t,s,n,r=null){super(t,i.Abort,r),this.command=s,this.args=n}},A=class extends a{constructor(){super("",i.AbortSilent)}},c=class extends a{constructor(t,s=null){super(t,i.Bug,s)}};async function z(e){let t;if(k(e))t=e;else if(typeof e=="string")t=new c(e);else if(e instanceof Error)t=new c(e.message),t.stack=e.stack;else{let r=e;t=new c(r?.message??"Unknown error"),r?.stack&&(t.stack=r?.stack)}let{jsonOutputEnabled:s}=await import("./environment-RSUK27TA.js");if(s()){let{renderFatalErrorAsJson:r}=await import("./json-error-32ETFU3V.js");return r(t),await g(),e}let{renderFatalError:n}=await import("./ui-FNPICAAH.js");return n(t),Promise.resolve(e)}function J(e){if(e instanceof M.Errors.CLIError){let t=new d(e.message);return t.stack=e.stack,Promise.resolve(t)}else return Promise.resolve(e)}function k(e){try{return Object.prototype.hasOwnProperty.call(e,"type")}catch{return!1}}function Q(e){if(!k(e)){if(e instanceof Error){if(v(e))return!1;let t=e.message;return!L(t)}return!0}return e.type===i.Bug}function v(e){let t=e;if(typeof t.response!="object"||t.response===null||t.request===void 0)return!1;let s=t.response.status;return s===401||s===429||x(s)?!0:S(t.response.errors)}function W(e){return m(e).replace("file:/","/").replace(/^\/?[A-Z]:/,"")}function L(e){return["EPERM: operation not permitted, scandir","EPERM: operation not permitted, rename","EACCES: permission denied","EPERM: operation not permitted, symlink","This version of npm supports the following node versions","EBUSY: resource busy or locked","ENOTEMPTY: directory not empty","getaddrinfo ENOTFOUND","Client network socket disconnected before secure TLS connection was established","spawn EPERM","socket hang up","The user aborted a request.","write EPIPE","Unsupported platform"].some(n=>e.includes(n))}export{I as a,T as b,_ as c,S as d,x as e,i as f,y as g,a as h,d as i,w as j,A as k,c as l,z as m,J as n,Q as o,W as p};
1
+ import{Bb as h,Jb as g,Qb as f,ib as E}from"./chunk-QY73XOBU.js";import{b as O}from"./chunk-I3J63RFV.js";import{d as m}from"./chunk-6IDEDOXW.js";import{e as P,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();var R=new Set(["THROTTLED","429"]),b=new Set(["ACCESS_DENIED","access_denied"]);function I(e){return Array.isArray(e)?e.flatMap(t=>{let s=[],n=t,r=n?.extensions?.code;typeof r=="string"&&s.push(r);let u=n?.extensions?.app_errors?.errors;if(Array.isArray(u))for(let p of u){let l=p?.category;typeof l=="string"&&s.push(l)}return s}):[]}function T(e){return e!==void 0&&R.has(e)}function _(e){return e!==void 0&&b.has(e)}function S(e){return I(e).some(T)}o();var C=new Set([502,503,504]);function x(e){return e!==void 0&&C.has(e)}var M=P(O(),1),i;(function(e){e[e.Abort=0]="Abort",e[e.AbortSilent=1]="AbortSilent",e[e.Bug=2]="Bug"})(i||(i={}));var y=class extends Error{},a=class extends Error{tryMessage;type;nextSteps;formattedMessage;customSections;code;details;skipOclifErrorHandling;constructor(t,s,n=null,r,u){let p=typeof t=="string"||"value"in t;super(p?f(t):E(t)),n?n instanceof h?this.tryMessage=f(n):this.tryMessage=n:this.tryMessage=null,this.type=s,this.nextSteps=r,this.customSections=u,this.skipOclifErrorHandling=!0,p||(this.formattedMessage=t)}},d=class extends a{constructor(t,s=null,n,r){super(t,i.Abort,s,n,r)}},w=class extends a{command;args;constructor(t,s,n,r=null){super(t,i.Abort,r),this.command=s,this.args=n}},A=class extends a{constructor(){super("",i.AbortSilent)}},c=class extends a{constructor(t,s=null){super(t,i.Bug,s)}};async function z(e){let t;if(k(e))t=e;else if(typeof e=="string")t=new c(e);else if(e instanceof Error)t=new c(e.message),t.stack=e.stack;else{let r=e;t=new c(r?.message??"Unknown error"),r?.stack&&(t.stack=r?.stack)}let{jsonOutputEnabled:s}=await import("./environment-RSUK27TA.js");if(s()){let{renderFatalErrorAsJson:r}=await import("./json-error-OSDR2S56.js");return r(t),await g(),e}let{renderFatalError:n}=await import("./ui-CM3VQLC2.js");return n(t),Promise.resolve(e)}function J(e){if(e instanceof M.Errors.CLIError){let t=new d(e.message);return t.stack=e.stack,Promise.resolve(t)}else return Promise.resolve(e)}function k(e){try{return Object.prototype.hasOwnProperty.call(e,"type")}catch{return!1}}function Q(e){if(!k(e)){if(e instanceof Error){if(v(e))return!1;let t=e.message;return!L(t)}return!0}return e.type===i.Bug}function v(e){let t=e;if(typeof t.response!="object"||t.response===null||t.request===void 0)return!1;let s=t.response.status;return s===401||s===429||x(s)?!0:S(t.response.errors)}function W(e){return m(e).replace("file:/","/").replace(/^\/?[A-Z]:/,"")}function L(e){return["EPERM: operation not permitted, scandir","EPERM: operation not permitted, rename","EACCES: permission denied","EPERM: operation not permitted, symlink","This version of npm supports the following node versions","EBUSY: resource busy or locked","ENOTEMPTY: directory not empty","getaddrinfo ENOTFOUND","Client network socket disconnected before secure TLS connection was established","spawn EPERM","socket hang up","The user aborted a request.","write EPIPE","Unsupported platform"].some(n=>e.includes(n))}export{I as a,T as b,_ as c,S as d,x as e,i as f,y as g,a as h,d as i,w as j,A as k,c as l,z as m,J as n,Q as o,W as p};
@@ -1 +1 @@
1
- import{a as u}from"./chunk-4JGWKUJN.js";import{g as d}from"./chunk-VKWPEFWQ.js";d();var m=!1;function v(){return m}function y(){let t=0,e=!1,i=setInterval(()=>{if(!e){if(v()||t>=12e4){e=!0,clearInterval(i),u(process.pid,"SIGINT",!1,()=>{process.exit(0)});return}t+=100}},100)}var k=async({config:a,Command:o})=>{await I(o);let t=await import("./metadata-JWJG4JV4.js"),{commandStartOptions:e}=t.getAllSensitiveMetadata();e&&await t.addSensitiveMetadata(()=>({commandStartOptions:{...e,endTime:new Date().getTime()}}));let{postrun:i}=await import("./deprecations-ZX7ZKF6L.js");i(o);let{outputDebug:n}=await import("./output-2LS5AOAH.js"),r=o.id.replace(/:/g," ");n(`Completed command ${r}`),!r.includes("notifications")&&!r.includes("upgrade")&&!r.includes("send-analytics")&&await M();let{reportAnalyticsEvent:c}=await import("./analytics-APDNTBDE.js");await c({config:a,exitMode:"ok"}),m=!0};async function M(){let{versionToAutoUpgrade:a,warnIfUpgradeAvailable:o}=await import("./upgrade-YYPP5VZY.js"),t=a();if(!t){await o();return}if(process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1")await l(t);else{let{runAtMinimumInterval:i}=await import("./conf-store-54YJCIDK.js");await i("auto-upgrade",{days:1},async()=>{await l(t)})}}async function l(a){let[{CLI_KIT_VERSION:o},{isMajorVersionChange:t},{outputWarn:e,outputDebug:i},{getOutputUpdateCLIReminder:n,runCLIUpgrade:r,hasBlockingAutoUpgradeNotification:c},s]=await Promise.all([import("./version-OX3MORI6.js"),import("./version-P7D5ME4Z.js"),import("./output-2LS5AOAH.js"),import("./upgrade-YYPP5VZY.js"),import("./metadata-JWJG4JV4.js")]);if(t(o,a)){e(n(a,!0)),await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"major_version"}));return}if(await c()){await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"blocked_by_notification"}));return}try{await r({autoupgrade:!0}),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!0}))}catch(f){let p=`Auto-upgrade failed: ${f}`;i(p),e(n(a)),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!1}));let[{sendErrorToBugsnag:g},{inferPackageManagerForGlobalCLI:w}]=await Promise.all([import("./error-handler-4VW3AV2G.js"),import("./is-global-FKG327CG.js")]),_=Object.assign(new Error(p),{packageManager:w(),platform:process.platform,cliVersion:o});await g(_,"expected_error")}}async function I(a){let o=new Date().getTime();if(a&&"analyticsStopCommand"in a&&typeof a.analyticsStopCommand=="function"){let t=a.analyticsStopCommand();if(t){let e=await import("./metadata-JWJG4JV4.js"),{commandStartOptions:i}=e.getAllSensitiveMetadata();if(!i)return;await e.addSensitiveMetadata(()=>({commandStartOptions:{...i,startTime:o,startCommand:t}}))}}}export{y as a,k as b};
1
+ import{a as u}from"./chunk-EDUQUCXK.js";import{g as d}from"./chunk-VKWPEFWQ.js";d();var m=!1;function v(){return m}function y(){let t=0,e=!1,i=setInterval(()=>{if(!e){if(v()||t>=12e4){e=!0,clearInterval(i),u(process.pid,"SIGINT",!1,()=>{process.exit(0)});return}t+=100}},100)}var k=async({config:a,Command:o})=>{await I(o);let t=await import("./metadata-GFLDQ2I7.js"),{commandStartOptions:e}=t.getAllSensitiveMetadata();e&&await t.addSensitiveMetadata(()=>({commandStartOptions:{...e,endTime:new Date().getTime()}}));let{postrun:i}=await import("./deprecations-NAJ4JNON.js");i(o);let{outputDebug:n}=await import("./output-TLYSXAUL.js"),r=o.id.replace(/:/g," ");n(`Completed command ${r}`),!r.includes("notifications")&&!r.includes("upgrade")&&!r.includes("send-analytics")&&await M();let{reportAnalyticsEvent:c}=await import("./analytics-BTM7UNF6.js");await c({config:a,exitMode:"ok"}),m=!0};async function M(){let{versionToAutoUpgrade:a,warnIfUpgradeAvailable:o}=await import("./upgrade-CPOWDAOD.js"),t=a();if(!t){await o();return}if(process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1")await l(t);else{let{runAtMinimumInterval:i}=await import("./conf-store-LWBJNYPC.js");await i("auto-upgrade",{days:1},async()=>{await l(t)})}}async function l(a){let[{CLI_KIT_VERSION:o},{isMajorVersionChange:t},{outputWarn:e,outputDebug:i},{getOutputUpdateCLIReminder:n,runCLIUpgrade:r,hasBlockingAutoUpgradeNotification:c},s]=await Promise.all([import("./version-ILYYDNX7.js"),import("./version-SN7J7ZYL.js"),import("./output-TLYSXAUL.js"),import("./upgrade-CPOWDAOD.js"),import("./metadata-GFLDQ2I7.js")]);if(t(o,a)){e(n(a,!0)),await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"major_version"}));return}if(await c()){await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"blocked_by_notification"}));return}try{await r({autoupgrade:!0}),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!0}))}catch(f){let p=`Auto-upgrade failed: ${f}`;i(p),e(n(a)),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!1}));let[{sendErrorToBugsnag:g},{inferPackageManagerForGlobalCLI:w}]=await Promise.all([import("./error-handler-TJG7IDLT.js"),import("./is-global-7BDGLRND.js")]),_=Object.assign(new Error(p),{packageManager:w(),platform:process.platform,cliVersion:o});await g(_,"expected_error")}}async function I(a){let o=new Date().getTime();if(a&&"analyticsStopCommand"in a&&typeof a.analyticsStopCommand=="function"){let t=a.analyticsStopCommand();if(t){let e=await import("./metadata-GFLDQ2I7.js"),{commandStartOptions:i}=e.getAllSensitiveMetadata();if(!i)return;await e.addSensitiveMetadata(()=>({commandStartOptions:{...i,startTime:o,startCommand:t}}))}}}export{y as a,k as b};
@@ -0,0 +1,15 @@
1
+ import{a as V}from"./chunk-XUZXQC5H.js";import{a as Y}from"./chunk-TFVIG4I7.js";import{Ha as M,i as h,ja as K}from"./chunk-X4767EMJ.js";import{aa as W,da as H,q as b}from"./chunk-X5VPFSL3.js";import{b as $,c as D}from"./chunk-DWMRVMKX.js";import{D as F,E as T}from"./chunk-2TCPTRLF.js";import{a as f}from"./chunk-EGWRLGF4.js";import{y as N}from"./chunk-J6XOTLT5.js";import{d as g}from"./chunk-VWKMTYCN.js";import{a as j}from"./chunk-B6BTX7WU.js";import{Cb as m,Db as U,Eb as R,Ib as k,P as x,R as O,Ub as L,b as e}from"./chunk-QY73XOBU.js";import{b as pe}from"./chunk-I3J63RFV.js";import{f as u,i as w}from"./chunk-6IDEDOXW.js";import{e as ae,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();var l=e.record(e.unknown()),I=e.object({id:e.string(),name:e.string(),continueOnError:e.boolean().optional()}),q=e.array(e.object({lifecycle:e.literal("deploy"),steps:e.array(e.discriminatedUnion("type",[I.extend({type:e.literal("include_assets"),config:e.object({generatesAssetsManifest:e.boolean().optional(),inclusions:e.array(e.discriminatedUnion("type",[e.object({type:e.literal("pattern"),baseDir:e.string().optional(),include:e.array(e.string()).optional(),ignore:e.array(e.string()).optional(),destination:e.string().optional()}),e.object({type:e.literal("static"),source:e.string(),destination:e.string().optional()}),e.object({type:e.literal("configKey"),key:e.string(),destination:e.string().optional(),anchor:e.string().optional(),groupBy:e.string().optional(),preserveFilePaths:e.boolean().optional()})]))})}),I.extend({type:e.literal("bundle_ui"),config:e.object({generatesAssetsManifest:e.boolean().optional(),bundleFolder:e.string().optional()}).optional()}),I.extend({type:e.enum(["build_theme","bundle_theme","build_function","create_tax_stub"]),config:e.record(e.never()).optional()})]))})),v=e.object({identifier:e.string(),externalIdentifier:e.string(),externalName:e.string(),group:e.string().optional(),additionalIdentifiers:e.array(e.string()),partnersWebIdentifier:e.string(),surface:e.string(),registrationLimit:e.number(),experience:e.enum(["extension","configuration"]),uidStrategy:e.enum(["single","dynamic","uuid"]),dependency:e.string().optional(),graphQLType:e.string().optional(),clientSteps:q.optional(),loadedRemoteSpecs:e.boolean().optional()}),A=e.object({name:e.string(),type:e.string(),externalType:e.string(),humanName:e.string(),surface:e.string(),features:e.array(e.string()),dependency:e.string().optional(),entrySourceFilePath:e.string(),devUUID:e.string(),localIdentifier:e.string(),idEnvironmentVariableName:e.string(),directory:e.string(),configuration:l,configurationPath:e.string(),outputPath:e.string(),handle:e.string(),specification:v,uid:e.string()}).passthrough(),Q=e.object({directory:e.string(),configuration:l.optional()}).passthrough(),B=e.object({file:e.string(),message:e.string()}).passthrough(),y=e.object({id:e.string(),title:e.string(),apiKey:e.string(),organizationId:e.string(),appType:e.string().optional(),newApp:e.boolean().optional(),grantedScopes:e.array(e.string()),developmentStorePreviewEnabled:e.boolean().optional(),applicationUrl:e.string().optional(),redirectUrlWhitelist:e.array(e.string()).optional(),requestedAccessScopes:e.array(e.string()).optional(),webhookApiVersion:e.string().optional(),embedded:e.boolean().optional(),posEmbedded:e.boolean().optional(),preferencesUrl:e.string().optional(),gdprWebhooks:e.object({customerDeletionUrl:e.string().optional(),customerDataRequestUrl:e.string().optional(),shopDeletionUrl:e.string().optional()}).optional(),appProxy:e.object({subPath:e.string(),subPathPrefix:e.string(),url:e.string()}).optional(),configuration:l.optional(),flags:e.array(e.string())}),G=e.object({path:e.string(),message:e.string()}),E=e.object({path:e.string(),content:l,errors:e.array(G)}),X=e.object({directory:e.string(),appConfigFiles:e.array(E),extensionConfigFiles:e.array(E),webConfigFiles:e.array(E),dotenvFiles:e.array(e.object({path:e.string()})),errors:e.array(G)}),Z=e.object({cliVersion:e.string(),nodeVersion:e.string(),platform:e.string(),arch:e.string(),shell:e.string().optional()}),z=e.object({remoteApp:y,account:e.discriminatedUnion("type",[e.object({type:e.literal("UserAccount"),email:e.string()}),e.object({type:e.literal("ServiceAccount"),orgName:e.string()}),e.object({type:e.literal("UnknownAccount")})]),project:X,system:Z,devStoreUrl:e.string().optional(),name:e.string(),idEnvironmentVariableName:e.literal("SHOPIFY_API_KEY"),directory:e.string(),configPath:e.string(),configuration:l,webs:e.array(Q),dotenv:e.object({path:e.string(),variables:e.record(e.string())}).passthrough().optional(),errors:e.object({errors:e.array(B)}).passthrough(),specifications:e.array(v),remoteFlags:e.array(e.string()),realExtensions:e.array(A),devApplicationURLs:l.optional(),_hiddenConfig:l,packageManager:e.string(),nodeDependencies:e.record(e.string()),usesWorkspaces:e.boolean(),organization:e.object({id:e.string(),businessName:e.string(),source:e.string()}),allExtensions:e.array(A)}).passthrough(),J=e.object({SHOPIFY_API_KEY:e.string(),SHOPIFY_API_SECRET:e.string().optional(),SCOPES:e.string()}),d=j({name:"AppInfoResult",schema:e.union([J,z]),definitions:{AppInfo:z,AppInfoRemoteApp:y,AppInfoProject:X,AppInfoSystem:Z,AppInfoWebEnvironment:J,AppInfoExtension:A,AppInfoSpecification:v,AppInfoClientSteps:q,AppInfoWeb:Q,AppInfoConfigurationError:B}});async function te(o,t,r,n,i){if(i.webEnv){await K(t,r.source);let a=await W(t);return a||H(),{SHOPIFY_API_KEY:t.apiKey,...a?{SHOPIFY_API_SECRET:a}:{},SCOPES:h(o.configuration)}}let s={...o,packageManager:n.packageManager,nodeDependencies:n.nodeDependencies,usesWorkspaces:n.usesWorkspaces,organization:{id:r.id,businessName:r.businessName,source:r.source},remoteApp:y.parse(t),account:await t.developerPlatformClient.accountInfo(),project:{directory:n.directory,appConfigFiles:n.appConfigFiles.map(P),extensionConfigFiles:n.extensionConfigFiles.map(P),webConfigFiles:n.webConfigFiles.map(P),dotenvFiles:[...n.dotenvFiles.values()].map(({path:a})=>({path:a})),errors:(n.errors??[]).map(({path:a,message:se})=>({path:a,message:se}))},system:{cliVersion:f,nodeVersion:process.version,...g(),shell:process.env.SHELL},devStoreUrl:o.configuration.build?.dev_store_url??o.hiddenConfig.dev_store_url,allExtensions:ee(o.allExtensions.filter(a=>a.isReturnedAsInfo())),realExtensions:ee(o.realExtensions),specifications:o.specifications.map(ne)},p=JSON.parse(JSON.stringify(Object.fromEntries(Object.entries(s).filter(([a])=>a!=="configSchema"))));return d.validate(p)}function ne(o){return{identifier:o.identifier,externalIdentifier:o.externalIdentifier,externalName:o.externalName,group:o.group,additionalIdentifiers:o.additionalIdentifiers,partnersWebIdentifier:o.partnersWebIdentifier,surface:o.surface,registrationLimit:o.registrationLimit,experience:o.experience,uidStrategy:o.uidStrategy,dependency:o.dependency,graphQLType:o.graphQLType,clientSteps:o.clientSteps,..."loadedRemoteSpecs"in o?{loadedRemoteSpecs:o.loadedRemoteSpecs}:{}}}function P({path:o,content:t,errors:r}){return{path:o,content:t,errors:r.map(({path:n,message:i})=>({path:n,message:i}))}}function ee(o){return o.map(t=>({...t,name:t.name,type:t.type,externalType:t.externalType,humanName:t.humanName,surface:t.surface,features:t.features,dependency:t.dependency,specification:ne(t.specification)}))}c();async function ce(o){let{app:t,remoteApp:r,organization:n,project:i}=o,s=await r.developerPlatformClient.accountInfo();return new _(t,r,n,i,s).output()}async function oe(o){N({customSections:await ce(o)})}function le(o,t){if(t==="json")return d.encode(o);if(!("name"in o))return R`
2
+ ${m.green("SHOPIFY_API_KEY")}=${o.SHOPIFY_API_KEY}
3
+ ${m.green("SHOPIFY_API_SECRET")}=${o.SHOPIFY_API_SECRET??""}
4
+ ${m.green("SCOPES")}=${o.SCOPES}
5
+ `;throw new Error("App information text output requires the loaded app context.")}function re(o,t){k(le(o,t))}var ue="unknown",S={subdued:"Not yet configured"},de="NOT LOADED",_=class{app;remoteApp;organization;project;account;constructor(t,r,n,i,s){this.app=t,this.remoteApp=r,this.organization=n,this.project=i,this.account=s}async output(){return[...await this.devConfigsSection(),this.projectSettingsSection(),...await this.appComponentsSection(),await this.systemInfoSection()]}async devConfigsSection(){let t=S;this.app.configuration.build?.automatically_update_urls_on_dev!==void 0&&(t=this.app.configuration.build.automatically_update_urls_on_dev?"Yes":"No");let r=["User","unknown"],n=this.account;return T(n)?r=["Service account",n.orgName]:F(n)&&(r[1]=n.email),[this.tableSection("Current app configuration",[["Configuration file",{filePath:w(this.app.configPath)||b.app}],["App name",this.remoteApp.title?{userInput:this.remoteApp.title}:S],["Client ID",this.remoteApp.apiKey||S],["Organization",`${this.organization.businessName} (${this.organization.id})`],["Access scopes",h(this.app.configuration)],["Dev store",this.app.configuration.build?.dev_store_url??this.app.hiddenConfig.dev_store_url??S],["Update URLs",t],r],{isFirstItem:!0}),{body:["\u{1F4A1} To change these, run",{command:U(this.project.packageManager,"shopify app config link")}]}]}projectSettingsSection(){return this.tableSection("Your Project",[["Root location",{filePath:this.app.directory}]])}async appComponentsSection(){let t=this.webComponentsSection();return[{title:`
6
+ Directory components`.toUpperCase(),body:""},...t?[t]:[],...this.extensionsSections()]}webComponentsSection(){let t=[],r=[];if(this.app.webs[0])return this.app.webs.forEach(n=>{if(n.configuration)if(n.configuration.name){let{name:i,roles:s}=n.configuration,p=u(this.app.directory,n.directory);r.push([` \u{1F4C2} ${i}`,{filePath:p||"/"}]),s.length>0&&r.push([" roles",s.join(", ")])}else n.configuration.roles.forEach(i=>{r.push([` \u{1F4C2} ${i}`,{filePath:u(this.app.directory,n.directory)}])});else r.push([{subdued:` \u{1F4C2} ${ue}`},{filePath:u(this.app.directory,n.directory)}]);if(!this.app.errors.isEmpty()){let i=this.app.errors.getErrors(`${n.directory}/${b.web}`);t.push(...i.map(s=>s.message))}}),this.subtableSection("web",[["\u{1F4C2} web",""],...r,...t.map(n=>[{error:"error"},{error:this.formattedError(n)}])])}extensionsSections(){let t=this.app.allExtensions.filter(i=>i.isReturnedAsInfo()),n=O(t.map(i=>i.type)).map(i=>{let s=t.filter(p=>p.type===i);if(s[0])return this.subtableSection(s[0].externalType,s.flatMap(p=>this.extensionSubSection(p)))});return x(n)}extensionSubSection(t){let r=t.configuration,n=[[`\u{1F4C2} ${t.handle||de}`,{filePath:u(this.app.directory,t.directory)}],[" config file",{filePath:u(t.directory,t.configurationPath)}]];r&&"metafields"in r&&Array.isArray(r.metafields)&&r.metafields.length>0&&n.push([" metafields",`${r.metafields.length}`]);let i=this.app.errors.getErrors(t.configurationPath);for(let s of i)n.push([{error:" error"},{error:this.formattedError(s.message)}]);return n}formattedError(t){let r=t.trim();if(L())return r;let[n,...i]=r.split(`
7
+ `);return[`! ${n}`,...i.map(s=>` ${s}`)].join(`
8
+ `)}async systemInfoSection(){let{platform:t,arch:r}=g();return this.tableSection("Tooling and System",[["Shopify CLI",f],["Package manager",this.project.packageManager],["OS",`${t}-${r}`],["Shell",process.env.SHELL??"unknown"],["Node version",process.version]])}tableSection(t,r,{isFirstItem:n=!1}={}){return{title:`${n?"":`
9
+ `}${t.toUpperCase()}
10
+ `,body:{tabularData:r,firstColumnSubdued:!0}}}subtableSection(t,r){return{title:t,body:{tabularData:r,firstColumnSubdued:!0}}}};var ie=ae(pe(),1);var C=class o extends V{static summary="Print basic information about your app and extensions.";static descriptionWithMarkdown=`The information returned includes the following:
11
+
12
+ - The app and dev store that's used when you run the [dev](https://shopify.dev/docs/api/shopify-cli/app/app-dev) command. You can reset these configurations using [\`dev --reset\`](https://shopify.dev/docs/api/shopify-cli/app/app-dev#flags-propertydetail-reset).
13
+ - The [structure](https://shopify.dev/docs/apps/tools/cli/structure) of your app project.
14
+ - The [access scopes](https://shopify.dev/docs/api/usage) your app has requested.
15
+ - System information, including the package manager and version of Shopify CLI used in the project.`;static get jsonOutputSchema(){return d}static description=this.descriptionForHelp();static flags={...$,...Y,...D,"web-env":ie.Flags.boolean({hidden:!1,description:"Outputs environment variables necessary for running and deploying web/.",env:"SHOPIFY_FLAG_OUTPUT_WEB_ENV",default:!1})};async run(){let{flags:t}=await this.parse(o),{app:r,project:n,remoteApp:i,organization:s}=await M({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config,unsafeTolerateErrors:!0});if(t.json||t["web-env"]){let p=await te(r,i,s,n,{webEnv:t["web-env"]});re(p,t.json?"json":"text")}else await oe({app:r,remoteApp:i,organization:s,project:n});return r.errors.isEmpty()||process.exit(2),{app:r}}};export{C as a};
@@ -0,0 +1 @@
1
+ import{b as s}from"./chunk-I3J63RFV.js";import{a as o}from"./chunk-JD5P5RAJ.js";import{e as i,g as n}from"./chunk-VKWPEFWQ.js";n();var t=i(s(),1),a={"no-input":t.Flags.boolean({description:"Disable interactive prompts and browser authentication.",env:"SHOPIFY_FLAG_NO_INPUT"})};function u(r=process.argv,e=process.env){return r.includes("--no-input")||o(e.SHOPIFY_FLAG_NO_INPUT)}export{a,u as b};
@@ -1 +1 @@
1
- import{a as C}from"./chunk-PWS4VFSD.js";import{a as y}from"./chunk-PO5T44H3.js";import{Ca as k,Fa as w,Ga as A,Ha as P}from"./chunk-UNHT4ZFP.js";import{b as h}from"./chunk-NU5WLZ6Y.js";import{z as g}from"./chunk-47IQIIFX.js";import{i as u}from"./chunk-Q37WAD6F.js";import{i as r}from"./chunk-6IDEDOXW.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();async function s(p){let{directory:t,configName:o,configPath:e,configuration:a,remoteApp:i}=p;if(!a.client_id)throw new u("The selected configuration is not linked to a remote app.","Run `shopify app config link` first to link this configuration to a Shopify app.");let c=i.developerPlatformClient,l=await k({developerPlatformClient:c,app:i}),m=i.flags,b={directory:t,configName:o,developerPlatformClient:c,apiKey:a.client_id},d=await w(b,l,m,i.apiKey),v=r(e),x=await A({remoteApp:i,developerPlatformClient:c,specifications:l,flags:m,configFileName:v,appDirectory:d.appDirectory??t,localAppOptions:d});return{configPath:e,configuration:x,remoteApp:i}}var f=class p extends C{static summary="Refresh an already-linked app configuration without prompts.";static descriptionWithMarkdown="Pulls the latest configuration from the already-linked Shopify app and updates the selected configuration file.\n\nThis command reuses the existing linked app and organization and skips all interactive prompts. Use `--config` to target a specific configuration file, or omit it to use the default one.";static description=this.descriptionForHelp();static flags={...h,...y};async run(){let{flags:t}=await this.parse(p),{app:o,remoteApp:e}=await P({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),{configuration:a,configPath:i}=await s({directory:t.path,configName:t.config,configPath:o.configPath,configuration:o.configuration,remoteApp:e});return g({headline:`Pulled latest configuration for "${a.name}"`,body:`Updated ${r(i)} with the remote data.`}),{app:o}}};export{f as a};
1
+ import{a as C}from"./chunk-XUZXQC5H.js";import{a as y}from"./chunk-TFVIG4I7.js";import{Ca as k,Fa as w,Ga as A,Ha as P}from"./chunk-X4767EMJ.js";import{b as h}from"./chunk-DWMRVMKX.js";import{z as g}from"./chunk-J6XOTLT5.js";import{i as u}from"./chunk-QF453PH7.js";import{i as r}from"./chunk-6IDEDOXW.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();async function s(p){let{directory:t,configName:o,configPath:e,configuration:a,remoteApp:i}=p;if(!a.client_id)throw new u("The selected configuration is not linked to a remote app.","Run `shopify app config link` first to link this configuration to a Shopify app.");let c=i.developerPlatformClient,l=await k({developerPlatformClient:c,app:i}),m=i.flags,b={directory:t,configName:o,developerPlatformClient:c,apiKey:a.client_id},d=await w(b,l,m,i.apiKey),v=r(e),x=await A({remoteApp:i,developerPlatformClient:c,specifications:l,flags:m,configFileName:v,appDirectory:d.appDirectory??t,localAppOptions:d});return{configPath:e,configuration:x,remoteApp:i}}var f=class p extends C{static summary="Refresh an already-linked app configuration without prompts.";static descriptionWithMarkdown="Pulls the latest configuration from the already-linked Shopify app and updates the selected configuration file.\n\nThis command reuses the existing linked app and organization and skips all interactive prompts. Use `--config` to target a specific configuration file, or omit it to use the default one.";static description=this.descriptionForHelp();static flags={...h,...y};async run(){let{flags:t}=await this.parse(p),{app:o,remoteApp:e}=await P({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),{configuration:a,configPath:i}=await s({directory:t.path,configName:t.config,configPath:o.configPath,configuration:o.configuration,remoteApp:e});return g({headline:`Pulled latest configuration for "${a.name}"`,body:`Updated ${r(i)} with the remote data.`}),{app:o}}};export{f as a};
@@ -1,2 +1,2 @@
1
- import{A as x,a as oe,b as ne,c as M,d as ie,e as ae,g as L,i as P,j as le,k as ce,m as ue,n as pe,o as me,r as fe,s as de,t as ge,u as Ee,v,w as he,x as ye,y as Te,z as A}from"./chunk-GE4MLO3C.js";import{a as se}from"./chunk-EMH7OHCW.js";import{a as re}from"./chunk-PWS4VFSD.js";import{a as K}from"./chunk-PO5T44H3.js";import{Ha as te,I as z,aa as Z,ca as ee,l as X}from"./chunk-UNHT4ZFP.js";import{sa as W}from"./chunk-Y743UVBS.js";import{b as Q,c as Y}from"./chunk-NU5WLZ6Y.js";import{u as $}from"./chunk-3V4VL3SD.js";import{d as N,e as m,f as o,l as H,y as G}from"./chunk-47IQIIFX.js";import{i as C}from"./chunk-Q37WAD6F.js";import{Ib as F,Kb as I,ga as V}from"./chunk-UWI76E2L.js";import{b as Ce}from"./chunk-I3J63RFV.js";import{i as j}from"./chunk-6IDEDOXW.js";import{e as k,g}from"./chunk-VKWPEFWQ.js";g();g();g();g();g();g();var _=k(N(),1);function be(t){let s=(0,_.useRef)(t);(0,_.useEffect)(()=>{s.current=t},[t]),(0,_.useEffect)(()=>{let n;function i(){s.current().then(({retryIntervalMs:l})=>{l&&(n=setTimeout(i,l))}).catch(()=>{})}return n=setTimeout(i,0),()=>n&&clearTimeout(n)},[])}g();var U=async({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:i,organizationId:a})=>{let l=await i.appLogs({jwtToken:t,cursor:s},a),{errors:f,status:u}=l;if(u!==200){if(u===401||u===429||u>=500)return{errors:f.map(y=>({status:u,message:y}))};throw new C(`${f.join(", ")} while fetching app logs`)}let{cursor:r,app_logs:c}=l,E=_e(c,n);return{cursor:r,appLogs:E}};function _e(t,s){let n=t;return(s.status!==void 0||s.sources!==void 0)&&(n=n.filter(i=>{let a=s.status===void 0?!0:i.status===s.status,l=s.sources===void 0?!0:s.sources.includes(`${i.source_namespace}.${i.source}`);return a&&l})),n}var R=k(N(),1);async function Ne({jwtToken:t,cursor:s,filters:n,storeNameById:i,organizationId:a,setErrors:l,setAppLogOutputs:f,resubscribeCallback:u,developerPlatformClient:r}){let c=t,E=L,y=s,b=await U({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:r,organizationId:a}),p="not_attempted",w=b;if(w.errors){let h=await v({response:w,onThrottle:d=>{l(["Request throttled while polling app logs.",`Retrying in ${d/1e3}s`])},onUnknownError:d=>{l(["Error while polling app logs",`Retrying in ${d/1e3}s`])},onResubscribe:()=>u()});p=h.resubscribeResult,h.nextJwtToken&&(c=h.nextJwtToken),E=h.retryIntervalMs}else{l(d=>d.length?[]:d);let{appLogs:h}=b;if(y=b.cursor,h)for(let d of h){let T,S,q,J=i.get(d.shop_id.toString());if(J===void 0)continue;switch(d.log_type){case ce:T=fe(d.payload),S=`export "${T.export}" executed in ${(T.fuelConsumed/le).toFixed(4)}M instructions`;break;case ue:T=de(d.payload),S="network access response retrieved from cache";break;case pe:T=ge(d.payload),S="network access request executing in background";break;case me:T=Ee(d.payload),q=T.connectTimeMs&&T.writeReadTimeMs?T.connectTimeMs+T.writeReadTimeMs:null,S=`network access request executed${q?` in ${q} ms`:""}`;break;default:continue}let Se={status:d.status==="success"?"Success":"Failure",source:d.source,storeName:J,description:S,logTimestamp:V(d.log_timestamp)};T&&f(ke=>[...ke,{appLog:T,prefix:Se}])}}return{nextJwtToken:c,retryIntervalMs:E,cursor:y??s,resubscribeResult:p}}function we({initialJwt:t,filters:s,resubscribeCallback:n,storeNameById:i,developerPlatformClient:a,organizationId:l}){let[f,u]=(0,R.useState)([]),[r,c]=(0,R.useState)([]),E=(0,R.useRef)(t),y=(0,R.useRef)(0),b=(0,R.useRef)(""),p=(0,R.useRef)(0),w=(0,R.useCallback)(async()=>{let h=await Ne({jwtToken:E.current,cursor:b.current,filters:s,storeNameById:i,setErrors:u,setAppLogOutputs:c,resubscribeCallback:n,developerPlatformClient:a,organizationId:l});if(h.resubscribeResult==="failed"){if(p.current+=1,p.current>=P)return u(["App log streaming session has expired. Please restart your dev session."]),{retryIntervalMs:0}}else h.resubscribeResult==="succeeded"&&(p.current=0);return E.current=h.nextJwtToken,b.current=h.cursor,y.current=h.retryIntervalMs,{retryIntervalMs:y.current}},[]);return be(w),{appLogOutputs:r,errors:f}}var e=k(N(),1);var Fe=t=>{switch(t){case M.NoCachedResponse:return"No cached response available";case M.CacheAboutToExpire:return"Cache is about to expire";case M.Unknown:return"Unknown reason"}},Re=({pollOptions:{jwtToken:t,filters:s},resubscribeCallback:n,storeNameById:i,developerPlatformClient:a,organizationId:l})=>{let{appLogOutputs:f,errors:u}=we({filters:s,initialJwt:t,resubscribeCallback:n,storeNameById:i,developerPlatformClient:a,organizationId:l});return e.default.createElement(e.default.Fragment,null,f.map(({appLog:r,prefix:c},E)=>e.default.createElement(m,{flexDirection:"column",key:E},e.default.createElement(m,{flexDirection:"row",gap:1},e.default.createElement(o,null,e.default.createElement(o,{color:"green"},c.logTimestamp," "),e.default.createElement(o,{color:"blueBright"},`${c.storeName.split(".")[0]}`," "),e.default.createElement(o,{color:"blueBright"},c.source," "),e.default.createElement(o,{color:c.status==="Success"?"green":"red"},c.status," "),e.default.createElement(o,null,c.description))),e.default.createElement(m,{flexDirection:"column",marginLeft:4},r instanceof oe&&e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,r.logs),r.inputQueryVariablesMetafieldKey&&r.inputQueryVariablesMetafieldNamespace?e.default.createElement(m,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input Query Variables:"),e.default.createElement(m,{flexDirection:"row",marginLeft:1,marginTop:1},e.default.createElement(o,{dimColor:!0},"Namespace:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldNamespace)),e.default.createElement(m,{flexDirection:"row",marginLeft:1},e.default.createElement(o,{dimColor:!0},"Key:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldKey)),e.default.createElement(m,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.inputQueryVariablesMetafieldValue)??e.default.createElement(o,{color:"red"},"Metafield is not set")))):null,r.input?e.default.createElement(m,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input ",e.default.createElement(o,{dimColor:!0},"(",r.inputBytes," bytes):")),e.default.createElement(m,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.input)))):null,r.output?e.default.createElement(m,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Output ",e.default.createElement(o,{dimColor:!0},"(",r.outputBytes," bytes):")),e.default.createElement(m,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.output)))):null),r instanceof ne&&e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,"Cache write time: ",new Date(r.cacheEntryEpochMs).toISOString()),e.default.createElement(o,null,"Cache TTL: ",r.cacheTtlMs/1e3," s"),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))),r instanceof ie&&e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,"Reason: ",Fe(r.reason)),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest))),r instanceof ae&&e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,"Attempt: ",r.attempt),r.connectTimeMs?e.default.createElement(o,null,"Connect time: ",r.connectTimeMs," ms"):null,r.writeReadTimeMs?e.default.createElement(o,null,"Write read time: ",r.writeReadTimeMs," ms"):null,e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),r.httpResponse?e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))):null,r.error?e.default.createElement(o,null,"Error: ",r.error):null)))),u.length>0&&e.default.createElement(m,{flexDirection:"column"},u.map((r,c)=>e.default.createElement(m,{key:c},e.default.createElement(o,{color:"red"},r)))))};var xe=k(N(),1);async function Ie({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:a}){let l=async()=>A(n,s,a);return H(xe.default.createElement(Re,{pollOptions:t,resubscribeCallback:l,storeNameById:i,developerPlatformClient:n,organizationId:a}))}g();async function D({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:a,consecutiveResubscribeFailures:l=0}){let f=await U({pollOptions:t,developerPlatformClient:n,organizationId:a}),u=L,r=t.jwtToken,c=l,E=f;if(E.errors){let p=await v({response:E,onThrottle:w=>{I(JSON.stringify({message:"Request throttled while polling app logs.",retry_in_ms:w}))},onUnknownError:w=>{I(JSON.stringify({message:"Error while polling app logs.",retry_in_ms:w}))},onResubscribe:()=>A(n,s,a)});if(p.resubscribeResult==="failed"){if(c+=1,c>=P){I(JSON.stringify({message:"App log streaming session has expired. Please restart your dev session."}));return}}else p.resubscribeResult==="succeeded"&&(c=0);p.nextJwtToken&&(r=p.nextJwtToken),u=p.retryIntervalMs}else c=0;let{cursor:y,appLogs:b}=f;b&&b.forEach(p=>{let w=i.get(p.shop_id?.toString());w!==void 0&&F(ye({appLog:p,appLogPayload:Te(p.payload,p.log_type),storeName:w,prettyPrint:!1}))}),setTimeout(()=>{D({options:{variables:s,developerPlatformClient:n},pollOptions:{jwtToken:r||t.jwtToken,cursor:y??t.cursor,filters:t.filters},storeNameById:i,organizationId:a,consecutiveResubscribeFailures:c}).catch(p=>{throw p})},u)}async function Ae(t){let{app:s,remoteApp:n,developerPlatformClient:i}=t,a=await Me(t),l=he(s);if(l.length===0)throw new C("This app has no log sources. Learn more about app logs at https://shopify.dev/docs/api/shopify-cli/app/app-logs");if(t.sources){let y=t.sources.filter(b=>!l.includes(b));if(y.length)throw new C(`Invalid sources: ${y.join(", ")}. Valid sources are: ${l.join(", ")}`)}let f={shopIds:a.storeIds.map(Number),apiKey:n.apiKey},u=await A(i,f,t.organization.id),r={status:t.status,sources:t.sources},c={jwtToken:u,filters:r};t.format==="json"&&F(JSON.stringify({subscribedToStores:t.storeFqdns})),I(`Waiting for app logs...
1
+ import{A as x,a as oe,b as ne,c as M,d as ie,e as ae,g as L,i as P,j as le,k as ce,m as ue,n as pe,o as me,r as fe,s as de,t as ge,u as Ee,v,w as he,x as ye,y as Te,z as A}from"./chunk-NQ5PKMPV.js";import{a as se}from"./chunk-6AFURA34.js";import{a as re}from"./chunk-XUZXQC5H.js";import{a as K}from"./chunk-TFVIG4I7.js";import{Ha as te,I as z,aa as Z,ca as ee,l as X}from"./chunk-X4767EMJ.js";import{wa as W}from"./chunk-X5VPFSL3.js";import{b as Q,c as Y}from"./chunk-DWMRVMKX.js";import{u as $}from"./chunk-2TCPTRLF.js";import{d as N,e as m,f as o,l as H,y as G}from"./chunk-J6XOTLT5.js";import{i as C}from"./chunk-QF453PH7.js";import{Ib as F,Kb as I,ga as V}from"./chunk-QY73XOBU.js";import{b as Ce}from"./chunk-I3J63RFV.js";import{i as j}from"./chunk-6IDEDOXW.js";import{e as k,g}from"./chunk-VKWPEFWQ.js";g();g();g();g();g();g();var _=k(N(),1);function be(t){let s=(0,_.useRef)(t);(0,_.useEffect)(()=>{s.current=t},[t]),(0,_.useEffect)(()=>{let n;function i(){s.current().then(({retryIntervalMs:l})=>{l&&(n=setTimeout(i,l))}).catch(()=>{})}return n=setTimeout(i,0),()=>n&&clearTimeout(n)},[])}g();var U=async({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:i,organizationId:a})=>{let l=await i.appLogs({jwtToken:t,cursor:s},a),{errors:f,status:u}=l;if(u!==200){if(u===401||u===429||u>=500)return{errors:f.map(y=>({status:u,message:y}))};throw new C(`${f.join(", ")} while fetching app logs`)}let{cursor:r,app_logs:c}=l,E=_e(c,n);return{cursor:r,appLogs:E}};function _e(t,s){let n=t;return(s.status!==void 0||s.sources!==void 0)&&(n=n.filter(i=>{let a=s.status===void 0?!0:i.status===s.status,l=s.sources===void 0?!0:s.sources.includes(`${i.source_namespace}.${i.source}`);return a&&l})),n}var R=k(N(),1);async function Ne({jwtToken:t,cursor:s,filters:n,storeNameById:i,organizationId:a,setErrors:l,setAppLogOutputs:f,resubscribeCallback:u,developerPlatformClient:r}){let c=t,E=L,y=s,b=await U({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:r,organizationId:a}),p="not_attempted",w=b;if(w.errors){let h=await v({response:w,onThrottle:d=>{l(["Request throttled while polling app logs.",`Retrying in ${d/1e3}s`])},onUnknownError:d=>{l(["Error while polling app logs",`Retrying in ${d/1e3}s`])},onResubscribe:()=>u()});p=h.resubscribeResult,h.nextJwtToken&&(c=h.nextJwtToken),E=h.retryIntervalMs}else{l(d=>d.length?[]:d);let{appLogs:h}=b;if(y=b.cursor,h)for(let d of h){let T,S,q,J=i.get(d.shop_id.toString());if(J===void 0)continue;switch(d.log_type){case ce:T=fe(d.payload),S=`export "${T.export}" executed in ${(T.fuelConsumed/le).toFixed(4)}M instructions`;break;case ue:T=de(d.payload),S="network access response retrieved from cache";break;case pe:T=ge(d.payload),S="network access request executing in background";break;case me:T=Ee(d.payload),q=T.connectTimeMs&&T.writeReadTimeMs?T.connectTimeMs+T.writeReadTimeMs:null,S=`network access request executed${q?` in ${q} ms`:""}`;break;default:continue}let Se={status:d.status==="success"?"Success":"Failure",source:d.source,storeName:J,description:S,logTimestamp:V(d.log_timestamp)};T&&f(ke=>[...ke,{appLog:T,prefix:Se}])}}return{nextJwtToken:c,retryIntervalMs:E,cursor:y??s,resubscribeResult:p}}function we({initialJwt:t,filters:s,resubscribeCallback:n,storeNameById:i,developerPlatformClient:a,organizationId:l}){let[f,u]=(0,R.useState)([]),[r,c]=(0,R.useState)([]),E=(0,R.useRef)(t),y=(0,R.useRef)(0),b=(0,R.useRef)(""),p=(0,R.useRef)(0),w=(0,R.useCallback)(async()=>{let h=await Ne({jwtToken:E.current,cursor:b.current,filters:s,storeNameById:i,setErrors:u,setAppLogOutputs:c,resubscribeCallback:n,developerPlatformClient:a,organizationId:l});if(h.resubscribeResult==="failed"){if(p.current+=1,p.current>=P)return u(["App log streaming session has expired. Please restart your dev session."]),{retryIntervalMs:0}}else h.resubscribeResult==="succeeded"&&(p.current=0);return E.current=h.nextJwtToken,b.current=h.cursor,y.current=h.retryIntervalMs,{retryIntervalMs:y.current}},[]);return be(w),{appLogOutputs:r,errors:f}}var e=k(N(),1);var Fe=t=>{switch(t){case M.NoCachedResponse:return"No cached response available";case M.CacheAboutToExpire:return"Cache is about to expire";case M.Unknown:return"Unknown reason"}},Re=({pollOptions:{jwtToken:t,filters:s},resubscribeCallback:n,storeNameById:i,developerPlatformClient:a,organizationId:l})=>{let{appLogOutputs:f,errors:u}=we({filters:s,initialJwt:t,resubscribeCallback:n,storeNameById:i,developerPlatformClient:a,organizationId:l});return e.default.createElement(e.default.Fragment,null,f.map(({appLog:r,prefix:c},E)=>e.default.createElement(m,{flexDirection:"column",key:E},e.default.createElement(m,{flexDirection:"row",gap:1},e.default.createElement(o,null,e.default.createElement(o,{color:"green"},c.logTimestamp," "),e.default.createElement(o,{color:"blueBright"},`${c.storeName.split(".")[0]}`," "),e.default.createElement(o,{color:"blueBright"},c.source," "),e.default.createElement(o,{color:c.status==="Success"?"green":"red"},c.status," "),e.default.createElement(o,null,c.description))),e.default.createElement(m,{flexDirection:"column",marginLeft:4},r instanceof oe&&e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,r.logs),r.inputQueryVariablesMetafieldKey&&r.inputQueryVariablesMetafieldNamespace?e.default.createElement(m,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input Query Variables:"),e.default.createElement(m,{flexDirection:"row",marginLeft:1,marginTop:1},e.default.createElement(o,{dimColor:!0},"Namespace:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldNamespace)),e.default.createElement(m,{flexDirection:"row",marginLeft:1},e.default.createElement(o,{dimColor:!0},"Key:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldKey)),e.default.createElement(m,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.inputQueryVariablesMetafieldValue)??e.default.createElement(o,{color:"red"},"Metafield is not set")))):null,r.input?e.default.createElement(m,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input ",e.default.createElement(o,{dimColor:!0},"(",r.inputBytes," bytes):")),e.default.createElement(m,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.input)))):null,r.output?e.default.createElement(m,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Output ",e.default.createElement(o,{dimColor:!0},"(",r.outputBytes," bytes):")),e.default.createElement(m,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.output)))):null),r instanceof ne&&e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,"Cache write time: ",new Date(r.cacheEntryEpochMs).toISOString()),e.default.createElement(o,null,"Cache TTL: ",r.cacheTtlMs/1e3," s"),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))),r instanceof ie&&e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,"Reason: ",Fe(r.reason)),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest))),r instanceof ae&&e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,"Attempt: ",r.attempt),r.connectTimeMs?e.default.createElement(o,null,"Connect time: ",r.connectTimeMs," ms"):null,r.writeReadTimeMs?e.default.createElement(o,null,"Write read time: ",r.writeReadTimeMs," ms"):null,e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),r.httpResponse?e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))):null,r.error?e.default.createElement(o,null,"Error: ",r.error):null)))),u.length>0&&e.default.createElement(m,{flexDirection:"column"},u.map((r,c)=>e.default.createElement(m,{key:c},e.default.createElement(o,{color:"red"},r)))))};var xe=k(N(),1);async function Ie({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:a}){let l=async()=>A(n,s,a);return H(xe.default.createElement(Re,{pollOptions:t,resubscribeCallback:l,storeNameById:i,developerPlatformClient:n,organizationId:a}))}g();async function D({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:a,consecutiveResubscribeFailures:l=0}){let f=await U({pollOptions:t,developerPlatformClient:n,organizationId:a}),u=L,r=t.jwtToken,c=l,E=f;if(E.errors){let p=await v({response:E,onThrottle:w=>{I(JSON.stringify({message:"Request throttled while polling app logs.",retry_in_ms:w}))},onUnknownError:w=>{I(JSON.stringify({message:"Error while polling app logs.",retry_in_ms:w}))},onResubscribe:()=>A(n,s,a)});if(p.resubscribeResult==="failed"){if(c+=1,c>=P){I(JSON.stringify({message:"App log streaming session has expired. Please restart your dev session."}));return}}else p.resubscribeResult==="succeeded"&&(c=0);p.nextJwtToken&&(r=p.nextJwtToken),u=p.retryIntervalMs}else c=0;let{cursor:y,appLogs:b}=f;b&&b.forEach(p=>{let w=i.get(p.shop_id?.toString());w!==void 0&&F(ye({appLog:p,appLogPayload:Te(p.payload,p.log_type),storeName:w,prettyPrint:!1}))}),setTimeout(()=>{D({options:{variables:s,developerPlatformClient:n},pollOptions:{jwtToken:r||t.jwtToken,cursor:y??t.cursor,filters:t.filters},storeNameById:i,organizationId:a,consecutiveResubscribeFailures:c}).catch(p=>{throw p})},u)}async function Ae(t){let{app:s,remoteApp:n,developerPlatformClient:i}=t,a=await Me(t),l=he(s);if(l.length===0)throw new C("This app has no log sources. Learn more about app logs at https://shopify.dev/docs/api/shopify-cli/app/app-logs");if(t.sources){let y=t.sources.filter(b=>!l.includes(b));if(y.length)throw new C(`Invalid sources: ${y.join(", ")}. Valid sources are: ${l.join(", ")}`)}let f={shopIds:a.storeIds.map(Number),apiKey:n.apiKey},u=await A(i,f,t.organization.id),r={status:t.status,sources:t.sources},c={jwtToken:u,filters:r};t.format==="json"&&F(JSON.stringify({subscribedToStores:t.storeFqdns})),I(`Waiting for app logs...
2
2
  `),await(t.format==="json"?D:Ie)({options:{variables:f,developerPlatformClient:i},pollOptions:c,storeNameById:a.storeNameById,organizationId:t.organization.id})}async function Me(t){let{app:s,remoteApp:n,developerPlatformClient:i,primaryStore:a,organization:l}=t,f=j(s.configPath);Le(n.title,a.shopDomain,t.storeFqdns,f,l.businessName);let u=new Map;return u.set(a.shopId,a.shopDomain),t.storeFqdns&&t.storeFqdns.length>1&&await Promise.all(t.storeFqdns?.slice(1).map(async c=>{let E=await W(l,c,i);u.set(E.shopId,c)})),{storeIds:Array.from(u.keys()),storeNameById:u}}function Le(t,s,n,i,a){let l=n&&n.length>0?n:[s],f=i?X(i):void 0;G({headline:i?`Using ${f} for default values:`:"Using these settings:",body:Z({appName:t,org:a,devStores:l,messages:[ee]})})}var O=k(Ce(),1);var B=class t extends re{static summary="Stream detailed logs for your Shopify app.";static descriptionWithMarkdown="\n Opens a real-time stream of detailed app logs from the selected app and store.\n Use the `--source` argument to limit output to a particular log source, such as a specific Shopify Function handle. Use the `shopify app logs sources` command to view a list of sources.\n Use the `--status` argument to filter on status, either `success` or `failure`.\n ```\n shopify app logs --status=success --source=extension.discount-function\n ```\n ";static description=this.descriptionForHelp();static flags={...Q,...K,...Y,store:O.Flags.string({char:"s",description:"Store URL. Must be an existing development or Shopify Plus sandbox store.",env:"SHOPIFY_FLAG_STORE",multiple:!0,parse:async s=>$(s)}),source:O.Flags.string({description:"Filters output to the specified log source.",env:"SHOPIFY_FLAG_SOURCE",multiple:!0}),status:O.Flags.string({description:"Filters output to the specified status (success or failure).",options:["success","failure"],env:"SHOPIFY_FLAG_STATUS"})};async run(){let{flags:s}=await this.parse(t);await z(s.path);let n=await te({directory:s.path,clientId:s["client-id"],forceRelink:s.reset,userProvidedConfigName:s.config}),i=await se({appContextResult:n,storeFqdn:s.store?.[0],forceReselectStore:s.reset}),a={...n,primaryStore:i,storeFqdns:s.store,sources:s.source,status:s.status,format:s.json?"json":"text"};return await Ae(a),{app:n.app}}};export{B as a};