@shopify/cli 4.6.0 → 4.6.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 (270) hide show
  1. package/dist/{analytics-E252SR3P.js → analytics-3ICKUTK2.js} +1 -1
  2. package/dist/{analytics-6S5JVSRO.js → analytics-73NVZI4Z.js} +1 -1
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-NA2ERJIJ.js → chunk-25Z36VJG.js} +1 -1
  5. package/dist/{chunk-KO4FB4QU.js → chunk-2AVFG5KT.js} +1 -1
  6. package/dist/{chunk-VFIVXK53.js → chunk-2DMTEIS3.js} +1 -1
  7. package/dist/{chunk-ZTE46E4Z.js → chunk-2GB3EAD3.js} +2 -2
  8. package/dist/{chunk-ZLT4DPHN.js → chunk-2NB4P6BB.js} +1 -1
  9. package/dist/{chunk-M5KKLAM6.js → chunk-2OYQHHKC.js} +1 -1
  10. package/dist/{chunk-4HB4VZJQ.js → chunk-2VJKXWLG.js} +1 -1
  11. package/dist/{chunk-2VIUGNYO.js → chunk-3Q5ESVIY.js} +1 -1
  12. package/dist/{chunk-4P7PWLUN.js → chunk-3XCIUG5P.js} +1 -1
  13. package/dist/{chunk-Z5DDPQ26.js → chunk-445NFHXL.js} +1 -1
  14. package/dist/{chunk-PXSX63RF.js → chunk-4BPFJDH3.js} +1 -1
  15. package/dist/{chunk-7XPFLQEM.js → chunk-4E5RGEJO.js} +1 -1
  16. package/dist/{chunk-XGMPC7KK.js → chunk-4IHSAT76.js} +1 -1
  17. package/dist/{chunk-2Y6CYLKF.js → chunk-4TANJ4JK.js} +1 -1
  18. package/dist/{chunk-RTW4RZWH.js → chunk-534U3DKZ.js} +1 -1
  19. package/dist/{chunk-53ZA2HD3.js → chunk-56T6YCU2.js} +1 -1
  20. package/dist/{chunk-NOKCVDYD.js → chunk-5HJTCBBV.js} +1 -1
  21. package/dist/{chunk-JS3X6BDT.js → chunk-5INBKZRD.js} +1 -1
  22. package/dist/{chunk-GCDEDRY7.js → chunk-5Q4WAGQL.js} +1 -1
  23. package/dist/{chunk-FMTPUYSH.js → chunk-5QDM4XIK.js} +1 -1
  24. package/dist/{chunk-HDXBZLHH.js → chunk-65CEF3SM.js} +1 -1
  25. package/dist/{chunk-4KZRP2JP.js → chunk-6HQMZ324.js} +1 -1
  26. package/dist/{chunk-V65P572N.js → chunk-6KAWCN3I.js} +1 -1
  27. package/dist/{chunk-TQNALMQH.js → chunk-6ZPHB5U2.js} +1 -1
  28. package/dist/{chunk-IDAWPBJM.js → chunk-7AWKXTNS.js} +1 -1
  29. package/dist/{chunk-6UTUJKKC.js → chunk-7EE7YOCR.js} +1 -1
  30. package/dist/{chunk-DODCPRXT.js → chunk-7L5AIZOP.js} +1 -1
  31. package/dist/{chunk-XERJY4IG.js → chunk-7MD5MIGN.js} +1 -1
  32. package/dist/{chunk-6BX62FFE.js → chunk-7TXWKLPY.js} +1 -1
  33. package/dist/{chunk-4JARSKED.js → chunk-7US4TVO2.js} +1 -1
  34. package/dist/{chunk-W4X3635B.js → chunk-A7IDVXF7.js} +1 -1
  35. package/dist/{chunk-EZ7EBYDT.js → chunk-AFM3UZQO.js} +3 -3
  36. package/dist/{chunk-JJTGHARS.js → chunk-AHLNB45E.js} +1 -1
  37. package/dist/{chunk-PALG4SNB.js → chunk-ARCAYYRW.js} +1 -1
  38. package/dist/{chunk-BCTMBKAU.js → chunk-B3U6GDHL.js} +1 -1
  39. package/dist/{chunk-3TFUSDHY.js → chunk-BCZMDFI2.js} +3 -3
  40. package/dist/{chunk-C256W7D2.js → chunk-BDDROQGK.js} +1 -1
  41. package/dist/{chunk-FT4HLDK7.js → chunk-BKJMVAI7.js} +1 -1
  42. package/dist/{chunk-U564K7SX.js → chunk-BPDUBZMU.js} +1 -1
  43. package/dist/{chunk-ELJ7SKMH.js → chunk-BQOKTPUU.js} +1 -1
  44. package/dist/{chunk-E3RDAVJT.js → chunk-C7LFLIRT.js} +1 -1
  45. package/dist/{chunk-G7QW5OSQ.js → chunk-CELVG4AL.js} +1 -1
  46. package/dist/{chunk-G3YYMKWG.js → chunk-CNI7ZUST.js} +1 -1
  47. package/dist/{chunk-VYITPC34.js → chunk-CONJQV7M.js} +1 -1
  48. package/dist/{chunk-4FEBSLSU.js → chunk-CV5ELBVU.js} +1 -1
  49. package/dist/{chunk-WPRAJ25Z.js → chunk-DC7TXY4K.js} +1 -1
  50. package/dist/{chunk-MDHJJVXA.js → chunk-DXUISRMZ.js} +1 -1
  51. package/dist/{chunk-VVFPW4ZQ.js → chunk-EHV7EKB3.js} +1 -1
  52. package/dist/{chunk-J3IHP46B.js → chunk-EQNJ2NQD.js} +1 -1
  53. package/dist/{chunk-TAFOSPBW.js → chunk-EVIO6OWW.js} +1 -1
  54. package/dist/{chunk-72GN655L.js → chunk-EZBB2ULE.js} +1 -1
  55. package/dist/{chunk-5Y2VD4I3.js → chunk-FBVNXRVB.js} +1 -1
  56. package/dist/{chunk-47URTBZF.js → chunk-FG5QXIQH.js} +1 -1
  57. package/dist/{chunk-P7XC5HS2.js → chunk-FGG6HXIZ.js} +1 -1
  58. package/dist/{chunk-GEE5MXHT.js → chunk-FJCZ4F6J.js} +1 -1
  59. package/dist/{chunk-57YF2UNT.js → chunk-FKH5ZF2C.js} +1 -1
  60. package/dist/{chunk-LWRDNTAD.js → chunk-GD5IRJBE.js} +1 -1
  61. package/dist/{chunk-FPWLEGKZ.js → chunk-GJEG7VGX.js} +1 -1
  62. package/dist/{chunk-QZ5FMWZS.js → chunk-GT6BJ2GK.js} +1 -1
  63. package/dist/{chunk-JIBLEZ57.js → chunk-GWNV44NZ.js} +1 -1
  64. package/dist/{chunk-WR2ZQGUR.js → chunk-GXO2RRV2.js} +1 -1
  65. package/dist/{chunk-2JFZ6GZC.js → chunk-H5I7BSNG.js} +1 -1
  66. package/dist/{chunk-OB62WVZ5.js → chunk-H5YC3EP6.js} +1 -1
  67. package/dist/{chunk-E3RQCWSC.js → chunk-HVMEBH24.js} +1 -1
  68. package/dist/{chunk-JQP3ZCAG.js → chunk-HY3INWPI.js} +1 -1
  69. package/dist/{chunk-Y4QC2YVE.js → chunk-I6ST5X56.js} +1 -1
  70. package/dist/{chunk-6FJBCRVK.js → chunk-ID6ASBGV.js} +1 -1
  71. package/dist/{chunk-ET2O5DAS.js → chunk-IDQT2UY7.js} +1 -1
  72. package/dist/{chunk-KPRKIZ5M.js → chunk-IIOFR25P.js} +1 -1
  73. package/dist/{chunk-3EPQ6UOK.js → chunk-IJEDTDSJ.js} +1 -1
  74. package/dist/{chunk-B2WK53GH.js → chunk-ILICQWUF.js} +1 -1
  75. package/dist/{chunk-KURWC4A5.js → chunk-IMWEC6NF.js} +1 -1
  76. package/dist/{chunk-TAV2ENJY.js → chunk-ITNFDLZ4.js} +1 -1
  77. package/dist/{chunk-KUN74JD4.js → chunk-IU5U6KKO.js} +1 -1
  78. package/dist/{chunk-EQTULRM7.js → chunk-IXCDFXMB.js} +1 -1
  79. package/dist/{chunk-7CPECP5P.js → chunk-J3D4KQOQ.js} +1 -1
  80. package/dist/{chunk-HZXY7RWJ.js → chunk-JRTJZAFJ.js} +1 -1
  81. package/dist/{chunk-5JPV3HPJ.js → chunk-JT7YTXJ7.js} +1 -1
  82. package/dist/{chunk-6YCGMS7X.js → chunk-JX4HSDDG.js} +2 -2
  83. package/dist/{chunk-OTT73YUA.js → chunk-K4M32VKU.js} +1 -1
  84. package/dist/{chunk-3EHRA4LA.js → chunk-K5GJNXDK.js} +1 -1
  85. package/dist/{chunk-ESZS7L6O.js → chunk-KCNOFNS5.js} +1 -1
  86. package/dist/{chunk-QV53BSQP.js → chunk-KM2R6O7V.js} +1 -1
  87. package/dist/{chunk-IDLDQ2JB.js → chunk-KNFDN3AP.js} +1 -1
  88. package/dist/{chunk-QU5NL2QT.js → chunk-LDWMX3KZ.js} +1 -1
  89. package/dist/{chunk-ZOBQKNGK.js → chunk-LEDVV6XK.js} +1 -1
  90. package/dist/chunk-LEEVJH4B.js +1 -0
  91. package/dist/{chunk-XGCJWCC4.js → chunk-LJZIIURR.js} +1 -1
  92. package/dist/{chunk-4YCMEC5R.js → chunk-LURVEPYP.js} +1 -1
  93. package/dist/{chunk-EBZ6MDEM.js → chunk-LXOBW4AW.js} +1 -1
  94. package/dist/{chunk-5EFQILLF.js → chunk-M5YGJYNI.js} +1 -1
  95. package/dist/{chunk-LH3RIIOB.js → chunk-MDQHEW7V.js} +1 -1
  96. package/dist/{chunk-MDXSLAIC.js → chunk-MMP3F6LO.js} +1 -1
  97. package/dist/{chunk-A3JE5LX3.js → chunk-MPYCIVRA.js} +1 -1
  98. package/dist/{chunk-XGRVAPLR.js → chunk-MY2H5XPY.js} +1 -1
  99. package/dist/{chunk-7HAFBCL3.js → chunk-N4RYVOXT.js} +1 -1
  100. package/dist/{chunk-B34VYVGV.js → chunk-NB6HHZ36.js} +1 -1
  101. package/dist/{chunk-SEV3S3WH.js → chunk-NEK2KNKR.js} +1 -1
  102. package/dist/{chunk-QG7TELFC.js → chunk-NENUUNWB.js} +1 -1
  103. package/dist/{chunk-2SNT7U7B.js → chunk-NJONAV7V.js} +1 -1
  104. package/dist/{chunk-3NO6PWNL.js → chunk-NKBSS7YL.js} +1 -1
  105. package/dist/{chunk-IKYZ5L3F.js → chunk-NKT5U6IJ.js} +1 -1
  106. package/dist/{chunk-WWX265PC.js → chunk-NVQOAHID.js} +1 -1
  107. package/dist/{chunk-QXXA2EQY.js → chunk-OHQTOHUX.js} +1 -1
  108. package/dist/{chunk-HSKB5OTM.js → chunk-P2P2MAZQ.js} +1 -1
  109. package/dist/{chunk-ERCJPRN3.js → chunk-PCTVUTV3.js} +1 -1
  110. package/dist/{chunk-PB37BTPE.js → chunk-PKR6HS4T.js} +1 -1
  111. package/dist/{chunk-YNJZ2VXV.js → chunk-PKRDBS7O.js} +1 -1
  112. package/dist/{chunk-WEEYQX3M.js → chunk-PMD6S7YG.js} +1 -1
  113. package/dist/{chunk-PWYRKTJ4.js → chunk-PUOCHFFI.js} +1 -1
  114. package/dist/{chunk-H4MYBJ6C.js → chunk-Q2DPBMV4.js} +1 -1
  115. package/dist/{chunk-QDPDB5EP.js → chunk-Q6XT3YKV.js} +1 -1
  116. package/dist/{chunk-UM3OHLCX.js → chunk-QARALFHD.js} +1 -1
  117. package/dist/{chunk-K7IZMKBR.js → chunk-QEL3F2NY.js} +1 -1
  118. package/dist/{chunk-IYU72M55.js → chunk-R2W5B7YI.js} +1 -1
  119. package/dist/chunk-REABQXMP.js +1 -0
  120. package/dist/{chunk-6Q5VRSRN.js → chunk-RMF3YNWE.js} +1 -1
  121. package/dist/{chunk-46NA23I7.js → chunk-RTPVI7LE.js} +1 -1
  122. package/dist/{chunk-ZK7VJZ6V.js → chunk-SFZQFEZB.js} +1 -1
  123. package/dist/{chunk-VZKR2YFM.js → chunk-STCLJWHD.js} +1 -1
  124. package/dist/{chunk-BBEHNPKK.js → chunk-STJWHL36.js} +1 -1
  125. package/dist/{chunk-LWWBU7ET.js → chunk-SZJHOXS6.js} +1 -1
  126. package/dist/{chunk-TUJNCWHZ.js → chunk-TEPMNVJN.js} +1 -1
  127. package/dist/{chunk-JIKIYMCT.js → chunk-TNSMROUR.js} +1 -1
  128. package/dist/{chunk-OUUOML3D.js → chunk-U3P5TIIR.js} +1 -1
  129. package/dist/{chunk-DKHMLETG.js → chunk-UDDJQ34Y.js} +1 -1
  130. package/dist/{chunk-WO7LKJCJ.js → chunk-UOQBCBKY.js} +1 -1
  131. package/dist/{chunk-OT52JOML.js → chunk-UQWT2PFO.js} +1 -1
  132. package/dist/{chunk-2I62GKIH.js → chunk-UTK6V2NE.js} +2 -2
  133. package/dist/{chunk-L3D2CASO.js → chunk-V26QBVCN.js} +1 -1
  134. package/dist/{chunk-MBLHXPGK.js → chunk-VVEQ4IHW.js} +1 -1
  135. package/dist/chunk-VXBHTSMX.js +20 -0
  136. package/dist/{chunk-B6SY4BIK.js → chunk-W2357IN2.js} +1 -1
  137. package/dist/chunk-WDCCITSG.js +1 -0
  138. package/dist/{chunk-AJ6VOBXU.js → chunk-WE3VLC2S.js} +1 -1
  139. package/dist/{chunk-BGUHH7AW.js → chunk-WGMYSPR2.js} +1 -1
  140. package/dist/{chunk-2MCH43SL.js → chunk-WHT2RCAD.js} +3 -3
  141. package/dist/{chunk-W2GMKXM7.js → chunk-WOYI6SDK.js} +1 -1
  142. package/dist/{chunk-6SXB44CE.js → chunk-WXJGZGQS.js} +1 -1
  143. package/dist/{chunk-J4KJQHNS.js → chunk-X4AZV5A2.js} +1 -1
  144. package/dist/{chunk-KGZH4RFA.js → chunk-X5RH4ALT.js} +1 -1
  145. package/dist/{chunk-5LJ5H4TD.js → chunk-XBBP5BWC.js} +1 -1
  146. package/dist/{chunk-L7DZTIHJ.js → chunk-XH32NPYG.js} +1 -1
  147. package/dist/{chunk-JHRZCUBE.js → chunk-XZ2KUBFJ.js} +2 -2
  148. package/dist/{chunk-HT6MOPLW.js → chunk-Y7A7Z2V3.js} +1 -1
  149. package/dist/{chunk-LBDAYBIF.js → chunk-YE7XCF44.js} +1 -1
  150. package/dist/{chunk-ILQXBASM.js → chunk-YHH3JA36.js} +1 -1
  151. package/dist/{chunk-O6XSWAP2.js → chunk-YIFT67BD.js} +1 -1
  152. package/dist/{chunk-CXWLHQKA.js → chunk-YR7K4NQT.js} +1 -1
  153. package/dist/{chunk-FE24P4UQ.js → chunk-Z36JS7OX.js} +1 -1
  154. package/dist/{chunk-EZNJDFFK.js → chunk-ZHPPBTNE.js} +1 -1
  155. package/dist/{chunk-R26GJEH3.js → chunk-ZMSE5SQB.js} +1 -1
  156. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  157. package/dist/cli/commands/app/build.js +1 -1
  158. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  159. package/dist/cli/commands/app/bulk/execute.js +1 -1
  160. package/dist/cli/commands/app/bulk/status.js +1 -1
  161. package/dist/cli/commands/app/config/link.js +1 -1
  162. package/dist/cli/commands/app/config/pull.js +1 -1
  163. package/dist/cli/commands/app/config/use.js +1 -1
  164. package/dist/cli/commands/app/config/validate.js +1 -1
  165. package/dist/cli/commands/app/demo/watcher.js +1 -1
  166. package/dist/cli/commands/app/deploy.js +1 -1
  167. package/dist/cli/commands/app/dev/clean.js +1 -1
  168. package/dist/cli/commands/app/dev.js +1 -1
  169. package/dist/cli/commands/app/env/pull.js +1 -1
  170. package/dist/cli/commands/app/env/show.js +1 -1
  171. package/dist/cli/commands/app/execute.js +1 -1
  172. package/dist/cli/commands/app/function/build.js +1 -1
  173. package/dist/cli/commands/app/function/info.js +1 -1
  174. package/dist/cli/commands/app/function/replay.js +1 -1
  175. package/dist/cli/commands/app/function/run.js +1 -1
  176. package/dist/cli/commands/app/function/schema.js +1 -1
  177. package/dist/cli/commands/app/function/typegen.js +1 -1
  178. package/dist/cli/commands/app/generate/extension.js +1 -1
  179. package/dist/cli/commands/app/graphiql.js +1 -1
  180. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  181. package/dist/cli/commands/app/import-extensions.js +1 -1
  182. package/dist/cli/commands/app/info.js +1 -1
  183. package/dist/cli/commands/app/init.js +1 -1
  184. package/dist/cli/commands/app/logs.js +1 -1
  185. package/dist/cli/commands/app/release.js +1 -1
  186. package/dist/cli/commands/app/versions/list.js +1 -1
  187. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  188. package/dist/cli/commands/auth/login.js +1 -1
  189. package/dist/cli/commands/auth/logout.js +1 -1
  190. package/dist/cli/commands/cache/clear.js +1 -1
  191. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  192. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  193. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  194. package/dist/cli/commands/debug/command-flags.js +1 -1
  195. package/dist/cli/commands/doc/fetch.js +1 -1
  196. package/dist/cli/commands/doc/search.js +1 -1
  197. package/dist/cli/commands/docs/generate.js +1 -1
  198. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  199. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  200. package/dist/cli/commands/help.js +1 -1
  201. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  202. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  203. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  204. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  205. package/dist/cli/commands/notifications/generate.js +1 -1
  206. package/dist/cli/commands/notifications/list.js +1 -1
  207. package/dist/cli/commands/organization/list.js +1 -1
  208. package/dist/cli/commands/search.js +1 -1
  209. package/dist/cli/commands/theme/check.js +1 -1
  210. package/dist/cli/commands/theme/console.js +1 -1
  211. package/dist/cli/commands/theme/delete.js +1 -1
  212. package/dist/cli/commands/theme/dev.js +1 -1
  213. package/dist/cli/commands/theme/duplicate.js +1 -1
  214. package/dist/cli/commands/theme/info.js +1 -1
  215. package/dist/cli/commands/theme/init.js +1 -1
  216. package/dist/cli/commands/theme/language-server.js +1 -1
  217. package/dist/cli/commands/theme/list.js +1 -1
  218. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  219. package/dist/cli/commands/theme/open.js +1 -1
  220. package/dist/cli/commands/theme/package.js +1 -1
  221. package/dist/cli/commands/theme/preview.js +1 -1
  222. package/dist/cli/commands/theme/profile.js +1 -1
  223. package/dist/cli/commands/theme/publish.js +1 -1
  224. package/dist/cli/commands/theme/pull.js +1 -1
  225. package/dist/cli/commands/theme/push.js +1 -1
  226. package/dist/cli/commands/theme/rename.js +1 -1
  227. package/dist/cli/commands/theme/share.js +1 -1
  228. package/dist/cli/commands/upgrade.js +1 -1
  229. package/dist/cli/commands/version.js +1 -1
  230. package/dist/command-registry.js +1 -1
  231. package/dist/{conf-store-N5P2ZEAD.js → conf-store-YW3NWYCN.js} +1 -1
  232. package/dist/{deprecations-4TY4DNME.js → deprecations-VW7UIMZX.js} +1 -1
  233. package/dist/{dist-6ZJS4I57.js → dist-I3VCRVOE.js} +1 -1
  234. package/dist/dist-MP4AU5F4.js +1 -0
  235. package/dist/{environments-TR5WW2MD.js → environments-5P57CTOG.js} +1 -1
  236. package/dist/{error-VJQM4MFE.js → error-U7DOQOWG.js} +1 -1
  237. package/dist/{error-handler-IYGE3Z72.js → error-handler-AOEXPYI7.js} +1 -1
  238. package/dist/{fs-EOQL26C3.js → fs-K5NT4W2Q.js} +1 -1
  239. package/dist/hooks/app-init.js +1 -1
  240. package/dist/hooks/did-you-mean.js +1 -1
  241. package/dist/hooks/hydrogen-init.js +1 -1
  242. package/dist/hooks/postrun.js +1 -1
  243. package/dist/hooks/prerun.js +1 -1
  244. package/dist/hooks/public-metadata.js +1 -1
  245. package/dist/hooks/sensitive-metadata.js +1 -1
  246. package/dist/hooks/tunnel-provider.js +1 -1
  247. package/dist/hooks/tunnel-start.js +1 -1
  248. package/dist/index.js +1 -1
  249. package/dist/{is-global-RQCPBQA3.js → is-global-CFYYUAIJ.js} +1 -1
  250. package/dist/{local-TW3HCZ2S.js → local-BRRQOCGY.js} +1 -1
  251. package/dist/{local-storage-T6FKS53K.js → local-storage-FVSI2IBZ.js} +1 -1
  252. package/dist/{metadata-TYZDEER5.js → metadata-HVSGVFUQ.js} +1 -1
  253. package/dist/{node-package-manager-6SWUZILX.js → node-package-manager-6JURLQKU.js} +1 -1
  254. package/dist/{notifications-system-SMHMV2UW.js → notifications-system-BTEFKXCS.js} +1 -1
  255. package/dist/{output-JG5I2TEL.js → output-EXMTVS2V.js} +1 -1
  256. package/dist/{system-D4Z32GDS.js → system-DUJDILSL.js} +1 -1
  257. package/dist/tsconfig.tsbuildinfo +1 -1
  258. package/dist/{ui-6M3XZ6MR.js → ui-AX6ZMY6P.js} +1 -1
  259. package/dist/{upgrade-EKAG4IV7.js → upgrade-5TEVQNLY.js} +1 -1
  260. package/dist/version-7LKOAVDW.js +1 -0
  261. package/dist/{version-XRU7TEAI.js → version-PRFBZAWQ.js} +1 -1
  262. package/dist/{workerd-LXBSJULF.js → workerd-MFV7EBVM.js} +1 -1
  263. package/oclif.manifest.json +1 -1
  264. package/package.json +7 -7
  265. package/dist/chunk-DHU767C3.js +0 -1
  266. package/dist/chunk-F34LB7M4.js +0 -20
  267. package/dist/chunk-M4BEPPA3.js +0 -1
  268. package/dist/chunk-M4YPMHIM.js +0 -1
  269. package/dist/dist-7W2KJOYN.js +0 -1
  270. package/dist/version-6UBWZCNS.js +0 -1
@@ -1 +1 @@
1
- import{na as a,oa as b,pa as c}from"./chunk-EZ7EBYDT.js";import"./chunk-ZDF5N422.js";import"./chunk-MPW2YJWU.js";import"./chunk-G7QW5OSQ.js";import"./chunk-WR2ZQGUR.js";import"./chunk-V65P572N.js";import"./chunk-6YCGMS7X.js";import"./chunk-EJDWYASP.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-M4BEPPA3.js";import"./chunk-B6SY4BIK.js";import"./chunk-VZKR2YFM.js";import"./chunk-Y4QC2YVE.js";import"./chunk-ZTE46E4Z.js";import"./chunk-3TFUSDHY.js";import"./chunk-A4SBXDZB.js";import"./chunk-BOAGJ6P5.js";import"./chunk-LD6ZCTZ3.js";import"./chunk-JJZNUFPD.js";import"./chunk-J3IHP46B.js";import"./chunk-T7KHS6RF.js";import"./chunk-UKQ7NE5V.js";import"./chunk-773TIA5M.js";import"./chunk-CTNBSUVU.js";import"./chunk-636CTEW7.js";import"./chunk-TR4OWSEX.js";import"./chunk-2KD4LHRT.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{b as getEnvironmentData,c as getSensitiveEnvironmentData,a as startAnalytics};
1
+ import{na as a,oa as b,pa as c}from"./chunk-AFM3UZQO.js";import"./chunk-ZDF5N422.js";import"./chunk-MPW2YJWU.js";import"./chunk-CELVG4AL.js";import"./chunk-GXO2RRV2.js";import"./chunk-6KAWCN3I.js";import"./chunk-JX4HSDDG.js";import"./chunk-EJDWYASP.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-REABQXMP.js";import"./chunk-W2357IN2.js";import"./chunk-STCLJWHD.js";import"./chunk-I6ST5X56.js";import"./chunk-2GB3EAD3.js";import"./chunk-BCZMDFI2.js";import"./chunk-A4SBXDZB.js";import"./chunk-BOAGJ6P5.js";import"./chunk-LD6ZCTZ3.js";import"./chunk-JJZNUFPD.js";import"./chunk-EQNJ2NQD.js";import"./chunk-T7KHS6RF.js";import"./chunk-UKQ7NE5V.js";import"./chunk-773TIA5M.js";import"./chunk-CTNBSUVU.js";import"./chunk-636CTEW7.js";import"./chunk-TR4OWSEX.js";import"./chunk-2KD4LHRT.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{b as getEnvironmentData,c as getSensitiveEnvironmentData,a as startAnalytics};
@@ -1 +1 @@
1
- import{qa as a,ra as b,sa as c,ta as d,ua as e,va as f}from"./chunk-EZ7EBYDT.js";import"./chunk-ZDF5N422.js";import"./chunk-MPW2YJWU.js";import"./chunk-G7QW5OSQ.js";import"./chunk-WR2ZQGUR.js";import"./chunk-V65P572N.js";import"./chunk-6YCGMS7X.js";import"./chunk-EJDWYASP.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-M4BEPPA3.js";import"./chunk-B6SY4BIK.js";import"./chunk-VZKR2YFM.js";import"./chunk-Y4QC2YVE.js";import"./chunk-ZTE46E4Z.js";import"./chunk-3TFUSDHY.js";import"./chunk-A4SBXDZB.js";import"./chunk-BOAGJ6P5.js";import"./chunk-LD6ZCTZ3.js";import"./chunk-JJZNUFPD.js";import"./chunk-J3IHP46B.js";import"./chunk-T7KHS6RF.js";import"./chunk-UKQ7NE5V.js";import"./chunk-773TIA5M.js";import"./chunk-CTNBSUVU.js";import"./chunk-636CTEW7.js";import"./chunk-TR4OWSEX.js";import"./chunk-2KD4LHRT.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{f as compileData,c as recordError,e as recordEvent,d as recordRetry,b as recordTiming,a as reportAnalyticsEvent};
1
+ import{qa as a,ra as b,sa as c,ta as d,ua as e,va as f}from"./chunk-AFM3UZQO.js";import"./chunk-ZDF5N422.js";import"./chunk-MPW2YJWU.js";import"./chunk-CELVG4AL.js";import"./chunk-GXO2RRV2.js";import"./chunk-6KAWCN3I.js";import"./chunk-JX4HSDDG.js";import"./chunk-EJDWYASP.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-REABQXMP.js";import"./chunk-W2357IN2.js";import"./chunk-STCLJWHD.js";import"./chunk-I6ST5X56.js";import"./chunk-2GB3EAD3.js";import"./chunk-BCZMDFI2.js";import"./chunk-A4SBXDZB.js";import"./chunk-BOAGJ6P5.js";import"./chunk-LD6ZCTZ3.js";import"./chunk-JJZNUFPD.js";import"./chunk-EQNJ2NQD.js";import"./chunk-T7KHS6RF.js";import"./chunk-UKQ7NE5V.js";import"./chunk-773TIA5M.js";import"./chunk-CTNBSUVU.js";import"./chunk-636CTEW7.js";import"./chunk-TR4OWSEX.js";import"./chunk-2KD4LHRT.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{f as compileData,c as recordError,e as recordEvent,d as recordRetry,b as recordTiming,a as reportAnalyticsEvent};
package/dist/bootstrap.js CHANGED
@@ -1,3 +1,3 @@
1
- import{a as p}from"./chunk-6QDOCBD4.js";import{a as e}from"./chunk-2Y6CYLKF.js";import{a as s}from"./chunk-TAFOSPBW.js";import"./chunk-T7KHS6RF.js";import"./chunk-UKQ7NE5V.js";import"./chunk-773TIA5M.js";import"./chunk-CTNBSUVU.js";import"./chunk-TR4OWSEX.js";import"./chunk-2KD4LHRT.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-CRALWNNO.js";import{e as m,g as t}from"./chunk-VKWPEFWQ.js";t();var r=m(p(),1);import n from"fs";(0,r.createGlobalProxyAgent)({environmentVariableNamespace:"SHOPIFY_",forceGlobalAgent:!0,socketConnectionTimeout:6e4});process.on("uncaughtException",async o=>{try{let{FatalError:c}=await import("./error-VJQM4MFE.js");if(o instanceof c){let{renderFatalError:i}=await import("./ui-6M3XZ6MR.js");i(o)}else n.writeSync(process.stderr.fd,`${o.stack??o.message??o}
1
+ import{a as p}from"./chunk-6QDOCBD4.js";import{a as e}from"./chunk-4TANJ4JK.js";import{a as s}from"./chunk-EVIO6OWW.js";import"./chunk-T7KHS6RF.js";import"./chunk-UKQ7NE5V.js";import"./chunk-773TIA5M.js";import"./chunk-CTNBSUVU.js";import"./chunk-TR4OWSEX.js";import"./chunk-2KD4LHRT.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-CRALWNNO.js";import{e as m,g as t}from"./chunk-VKWPEFWQ.js";t();var r=m(p(),1);import n from"fs";(0,r.createGlobalProxyAgent)({environmentVariableNamespace:"SHOPIFY_",forceGlobalAgent:!0,socketConnectionTimeout:6e4});process.on("uncaughtException",async o=>{try{let{FatalError:c}=await import("./error-U7DOQOWG.js");if(o instanceof c){let{renderFatalError:i}=await import("./ui-AX6ZMY6P.js");i(o)}else n.writeSync(process.stderr.fd,`${o.stack??o.message??o}
2
2
  `)}catch{n.writeSync(process.stderr.fd,`${o.stack??o.message??o}
3
3
  `)}process.exit(1)});var f=["SIGINT","SIGTERM","SIGQUIT"];f.forEach(o=>{process.on(o,()=>{process.exit(1)})});var a=Number(process.env.SHOPIFY_CLI_COLUMNS);isNaN(a)||(process.stdout.columns=a);async function l({development:o}){await e({moduleURL:import.meta.url,development:o,lazyCommandLoader:s})}var S=l;export{S as default};
@@ -1 +1 @@
1
- import{a as u}from"./chunk-B6SY4BIK.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-TYZDEER5.js"),{commandStartOptions:e}=t.getAllSensitiveMetadata();e&&await t.addSensitiveMetadata(()=>({commandStartOptions:{...e,endTime:new Date().getTime()}}));let{postrun:i}=await import("./deprecations-4TY4DNME.js");i(o);let{outputDebug:n}=await import("./output-JG5I2TEL.js"),r=o.id.replace(/:/g," ");n(`Completed command ${r}`),!r.includes("notifications")&&!r.includes("upgrade")&&await M();let{reportAnalyticsEvent:p}=await import("./analytics-6S5JVSRO.js");await p({config:a,exitMode:"ok"}),m=!0};async function M(){let{versionToAutoUpgrade:a,warnIfUpgradeAvailable:o}=await import("./upgrade-EKAG4IV7.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-N5P2ZEAD.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:p},s]=await Promise.all([import("./version-6UBWZCNS.js"),import("./version-XRU7TEAI.js"),import("./output-JG5I2TEL.js"),import("./upgrade-EKAG4IV7.js"),import("./metadata-TYZDEER5.js")]);if(t(o,a)){e(n(a,!0)),await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"major_version"}));return}if(await p()){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 c=`Auto-upgrade failed: ${f}`;i(c),e(n(a)),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!1}));let[{sendErrorToBugsnag:g},{inferPackageManagerForGlobalCLI:w}]=await Promise.all([import("./error-handler-IYGE3Z72.js"),import("./is-global-RQCPBQA3.js")]),_=Object.assign(new Error(c),{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-TYZDEER5.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-W2357IN2.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-HVSGVFUQ.js"),{commandStartOptions:e}=t.getAllSensitiveMetadata();e&&await t.addSensitiveMetadata(()=>({commandStartOptions:{...e,endTime:new Date().getTime()}}));let{postrun:i}=await import("./deprecations-VW7UIMZX.js");i(o);let{outputDebug:n}=await import("./output-EXMTVS2V.js"),r=o.id.replace(/:/g," ");n(`Completed command ${r}`),!r.includes("notifications")&&!r.includes("upgrade")&&await M();let{reportAnalyticsEvent:p}=await import("./analytics-73NVZI4Z.js");await p({config:a,exitMode:"ok"}),m=!0};async function M(){let{versionToAutoUpgrade:a,warnIfUpgradeAvailable:o}=await import("./upgrade-5TEVQNLY.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-YW3NWYCN.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:p},s]=await Promise.all([import("./version-7LKOAVDW.js"),import("./version-PRFBZAWQ.js"),import("./output-EXMTVS2V.js"),import("./upgrade-5TEVQNLY.js"),import("./metadata-HVSGVFUQ.js")]);if(t(o,a)){e(n(a,!0)),await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"major_version"}));return}if(await p()){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 c=`Auto-upgrade failed: ${f}`;i(c),e(n(a)),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!1}));let[{sendErrorToBugsnag:g},{inferPackageManagerForGlobalCLI:w}]=await Promise.all([import("./error-handler-AOEXPYI7.js"),import("./is-global-CFYYUAIJ.js")]),_=Object.assign(new Error(c),{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-HVSGVFUQ.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 +1 @@
1
- import{b as f,c as o,d as h}from"./chunk-RTW4RZWH.js";import{a as l}from"./chunk-DHU767C3.js";import{a as c}from"./chunk-QG7TELFC.js";import{ta as m}from"./chunk-NOKCVDYD.js";import{b as d}from"./chunk-2Y6CYLKF.js";import{Mb as e}from"./chunk-3TFUSDHY.js";import{u as r}from"./chunk-A4SBXDZB.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();var t=class g extends l{async run(){let{flags:a}=await this.parse(g),{app:s}=await m({directory:a.path,clientId:a["client-id"],forceRelink:a.reset,userProvidedConfigName:a.config}),i=new h(s);return await i.start(),e(`Watching for changes in ${s.name}...`),i.onEvent(async({app:y,extensionEvents:u,startTime:w,path:x})=>{e(`\u{1F195} Event [${f(w)}ms]`),e(` \u{1F4C2} ${x}`),u.forEach(n=>{switch(n.type){case o.Created:e(` \u2705 Extension created - ${r.green(n.extension.handle)}`);break;case o.Deleted:e(` \u274C Extension deleted: ${r.red(n.extension.handle)}`);break;case o.Updated:e(` \u{1F504} Updated: ${r.yellow(n.extension.handle)}`);break}})}),setInterval(()=>{},1<<30),{app:s}}};t.summary="Watch and prints out changes to an app.";t.hidden=!0;t.flags={...d,...c};var F=t;export{F as a};
1
+ import{b as f,c as o,d as h}from"./chunk-534U3DKZ.js";import{a as l}from"./chunk-WDCCITSG.js";import{a as c}from"./chunk-NENUUNWB.js";import{ta as m}from"./chunk-5HJTCBBV.js";import{b as d}from"./chunk-4TANJ4JK.js";import{Mb as e}from"./chunk-BCZMDFI2.js";import{u as r}from"./chunk-A4SBXDZB.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();var t=class g extends l{async run(){let{flags:a}=await this.parse(g),{app:s}=await m({directory:a.path,clientId:a["client-id"],forceRelink:a.reset,userProvidedConfigName:a.config}),i=new h(s);return await i.start(),e(`Watching for changes in ${s.name}...`),i.onEvent(async({app:y,extensionEvents:u,startTime:w,path:x})=>{e(`\u{1F195} Event [${f(w)}ms]`),e(` \u{1F4C2} ${x}`),u.forEach(n=>{switch(n.type){case o.Created:e(` \u2705 Extension created - ${r.green(n.extension.handle)}`);break;case o.Deleted:e(` \u274C Extension deleted: ${r.red(n.extension.handle)}`);break;case o.Updated:e(` \u{1F504} Updated: ${r.yellow(n.extension.handle)}`);break}})}),setInterval(()=>{},1<<30),{app:s}}};t.summary="Watch and prints out changes to an app.";t.hidden=!0;t.flags={...d,...c};var F=t;export{F as a};
@@ -1,2 +1,2 @@
1
- import{A as x,a as ne,b as ie,c as L,d as ae,e as le,g as P,i as v,j as ce,k as ue,m as pe,n as me,o as fe,r as de,s as ge,t as Ee,u as he,v as U,w as ye,x as Te,y as we,z as A}from"./chunk-K7IZMKBR.js";import{a as oe}from"./chunk-72GN655L.js";import{a as se}from"./chunk-DHU767C3.js";import{a as z}from"./chunk-QG7TELFC.js";import{C as X,S as ee,U as te,l as W,ta as re}from"./chunk-NOKCVDYD.js";import{ba as Z}from"./chunk-6UTUJKKC.js";import{b as Y,c as K}from"./chunk-2Y6CYLKF.js";import{y as G}from"./chunk-EZ7EBYDT.js";import{i as H,u as Q}from"./chunk-6YCGMS7X.js";import{m as _}from"./chunk-ZTE46E4Z.js";import{Lb as M,Mb as S,ca as $,eb as F,fb as f,gb as o}from"./chunk-3TFUSDHY.js";import{j as V}from"./chunk-773TIA5M.js";import{a as _e}from"./chunk-CTNBSUVU.js";import{e as N,g as E}from"./chunk-VKWPEFWQ.js";E();E();E();E();E();E();var C=N(F(),1);function be(t){let s=(0,C.useRef)(t);(0,C.useEffect)(()=>{s.current=t},[t]),(0,C.useEffect)(()=>{let n;function i(){s.current().then(({retryIntervalMs:a})=>{a&&(n=setTimeout(i,a))}).catch(()=>{})}return n=setTimeout(i,0),()=>n&&clearTimeout(n)},[])}E();var B=async({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:i,organizationId:l})=>{let a=await i.appLogs({jwtToken:t,cursor:s},l),{errors:p,status:u}=a;if(u!==200){if(u===401||u===429||u>=500)return{errors:p.map(T=>({status:u,message:T}))};throw new _(`${p.join(", ")} while fetching app logs`)}let{cursor:r,app_logs:c}=a,d=Ce(c,n);return{cursor:r,appLogs:d}};function Ce(t,s){let n=t;return(s.status!==void 0||s.sources!==void 0)&&(n=n.filter(i=>{let l=s.status===void 0?!0:i.status===s.status,a=s.sources===void 0?!0:s.sources.includes(`${i.source_namespace}.${i.source}`);return l&&a})),n}var b=N(F(),1);async function Fe({jwtToken:t,cursor:s,filters:n,storeNameById:i,organizationId:l,setErrors:a,setAppLogOutputs:p,resubscribeCallback:u,developerPlatformClient:r}){let c=t,d=P,T=s,R=await B({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:r,organizationId:l}),m="not_attempted",w=R;if(w.errors){let h=await U({response:w,onThrottle:g=>{a(["Request throttled while polling app logs.",`Retrying in ${g/1e3}s`])},onUnknownError:g=>{a(["Error while polling app logs",`Retrying in ${g/1e3}s`])},onResubscribe:()=>u()});m=h.resubscribeResult,h.nextJwtToken&&(c=h.nextJwtToken),d=h.retryIntervalMs}else{a(g=>g.length?[]:g);let{appLogs:h}=R;if(T=R.cursor,h)for(let g of h){let y,k,q,j=i.get(g.shop_id.toString());if(j===void 0)continue;switch(g.log_type){case ue:y=de(g.payload),k=`export "${y.export}" executed in ${(y.fuelConsumed/ce).toFixed(4)}M instructions`;break;case pe:y=ge(g.payload),k="network access response retrieved from cache";break;case me:y=Ee(g.payload),k="network access request executing in background";break;case fe:y=he(g.payload),q=y.connectTimeMs&&y.writeReadTimeMs?y.connectTimeMs+y.writeReadTimeMs:null,k=`network access request executed${q?` in ${q} ms`:""}`;break;default:continue}let ke={status:g.status==="success"?"Success":"Failure",source:g.source,storeName:j,description:k,logTimestamp:$(g.log_timestamp)};y&&p(Ne=>[...Ne,{appLog:y,prefix:ke}])}}return{nextJwtToken:c,retryIntervalMs:d,cursor:T??s,resubscribeResult:m}}function Re({initialJwt:t,filters:s,resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a}){let[p,u]=(0,b.useState)([]),[r,c]=(0,b.useState)([]),d=(0,b.useRef)(t),T=(0,b.useRef)(0),R=(0,b.useRef)(""),m=(0,b.useRef)(0),w=(0,b.useCallback)(async()=>{let h=await Fe({jwtToken:d.current,cursor:R.current,filters:s,storeNameById:i,setErrors:u,setAppLogOutputs:c,resubscribeCallback:n,developerPlatformClient:l,organizationId:a});if(h.resubscribeResult==="failed"){if(m.current+=1,m.current>=v)return u(["App log streaming session has expired. Please restart your dev session."]),{retryIntervalMs:0}}else h.resubscribeResult==="succeeded"&&(m.current=0);return d.current=h.nextJwtToken,R.current=h.cursor,T.current=h.retryIntervalMs,{retryIntervalMs:T.current}},[]);return be(w),{appLogOutputs:r,errors:p}}var e=N(F(),1);var Me=t=>{switch(t){case L.NoCachedResponse:return"No cached response available";case L.CacheAboutToExpire:return"Cache is about to expire";case L.Unknown:return"Unknown reason"}},xe=({pollOptions:{jwtToken:t,filters:s},resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a})=>{let{appLogOutputs:p,errors:u}=Re({filters:s,initialJwt:t,resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a});return e.default.createElement(e.default.Fragment,null,p.map(({appLog:r,prefix:c},d)=>e.default.createElement(f,{flexDirection:"column",key:d},e.default.createElement(f,{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(f,{flexDirection:"column",marginLeft:4},r instanceof ne&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,r.logs),r.inputQueryVariablesMetafieldKey&&r.inputQueryVariablesMetafieldNamespace?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input Query Variables:"),e.default.createElement(f,{flexDirection:"row",marginLeft:1,marginTop:1},e.default.createElement(o,{dimColor:!0},"Namespace:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldNamespace)),e.default.createElement(f,{flexDirection:"row",marginLeft:1},e.default.createElement(o,{dimColor:!0},"Key:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldKey)),e.default.createElement(f,{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(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input ",e.default.createElement(o,{dimColor:!0},"(",r.inputBytes," bytes):")),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.input)))):null,r.output?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Output ",e.default.createElement(o,{dimColor:!0},"(",r.outputBytes," bytes):")),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.output)))):null),r instanceof ie&&e.default.createElement(f,{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 ae&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Reason: ",Me(r.reason)),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest))),r instanceof le&&e.default.createElement(f,{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(f,{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(f,{flexDirection:"column"},u.map((r,c)=>e.default.createElement(f,{key:c},e.default.createElement(o,{color:"red"},r)))))};var Ie=N(F(),1);async function Se({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:l}){let a=async()=>A(n,s,l);return H(Ie.default.createElement(xe,{pollOptions:t,resubscribeCallback:a,storeNameById:i,developerPlatformClient:n,organizationId:l}))}E();async function D({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:l,consecutiveResubscribeFailures:a=0}){let p=await B({pollOptions:t,developerPlatformClient:n,organizationId:l}),u=P,r=t.jwtToken,c=a,d=p;if(d.errors){let m=await U({response:d,onThrottle:w=>{S(JSON.stringify({message:"Request throttled while polling app logs.",retry_in_ms:w}))},onUnknownError:w=>{S(JSON.stringify({message:"Error while polling app logs.",retry_in_ms:w}))},onResubscribe:()=>A(n,s,l)});if(m.resubscribeResult==="failed"){if(c+=1,c>=v){S(JSON.stringify({message:"App log streaming session has expired. Please restart your dev session."}));return}}else m.resubscribeResult==="succeeded"&&(c=0);m.nextJwtToken&&(r=m.nextJwtToken),u=m.retryIntervalMs}else c=0;let{cursor:T,appLogs:R}=p;R&&R.forEach(m=>{let w=i.get(m.shop_id?.toString());w!==void 0&&M(Te({appLog:m,appLogPayload:we(m.payload,m.log_type),storeName:w,prettyPrint:!1}))}),setTimeout(()=>{D({options:{variables:s,developerPlatformClient:n},pollOptions:{jwtToken:r||t.jwtToken,cursor:T??t.cursor,filters:t.filters},storeNameById:i,organizationId:l,consecutiveResubscribeFailures:c}).catch(m=>{throw m})},u)}async function Ae(t){let{app:s,remoteApp:n,developerPlatformClient:i}=t,l=await Le(t),a=ye(s);if(a.length===0)throw new _("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 d=t.sources.filter(T=>!a.includes(T));if(d.length)throw new _(`Invalid sources: ${d.join(", ")}. Valid sources are: ${a.join(", ")}`)}let p={shopIds:l.storeIds.map(Number),apiKey:n.apiKey},u=await A(i,p,t.organization.id),r={status:t.status,sources:t.sources},c={jwtToken:u,filters:r};t.format==="json"?(M(JSON.stringify({subscribedToStores:t.storeFqdns})),S(JSON.stringify({message:"Waiting for app logs..."})),await D({options:{variables:p,developerPlatformClient:i},pollOptions:c,storeNameById:l.storeNameById,organizationId:t.organization.id})):(S(`Waiting for app logs...
1
+ import{A as x,a as ne,b as ie,c as L,d as ae,e as le,g as P,i as v,j as ce,k as ue,m as pe,n as me,o as fe,r as de,s as ge,t as Ee,u as he,v as U,w as ye,x as Te,y as we,z as A}from"./chunk-QEL3F2NY.js";import{a as oe}from"./chunk-EZBB2ULE.js";import{a as se}from"./chunk-WDCCITSG.js";import{a as z}from"./chunk-NENUUNWB.js";import{C as X,S as ee,U as te,l as W,ta as re}from"./chunk-5HJTCBBV.js";import{ba as Z}from"./chunk-7EE7YOCR.js";import{b as Y,c as K}from"./chunk-4TANJ4JK.js";import{y as G}from"./chunk-AFM3UZQO.js";import{i as H,u as Q}from"./chunk-JX4HSDDG.js";import{m as _}from"./chunk-2GB3EAD3.js";import{Lb as M,Mb as S,ca as $,eb as F,fb as f,gb as o}from"./chunk-BCZMDFI2.js";import{j as V}from"./chunk-773TIA5M.js";import{a as _e}from"./chunk-CTNBSUVU.js";import{e as N,g as E}from"./chunk-VKWPEFWQ.js";E();E();E();E();E();E();var C=N(F(),1);function be(t){let s=(0,C.useRef)(t);(0,C.useEffect)(()=>{s.current=t},[t]),(0,C.useEffect)(()=>{let n;function i(){s.current().then(({retryIntervalMs:a})=>{a&&(n=setTimeout(i,a))}).catch(()=>{})}return n=setTimeout(i,0),()=>n&&clearTimeout(n)},[])}E();var B=async({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:i,organizationId:l})=>{let a=await i.appLogs({jwtToken:t,cursor:s},l),{errors:p,status:u}=a;if(u!==200){if(u===401||u===429||u>=500)return{errors:p.map(T=>({status:u,message:T}))};throw new _(`${p.join(", ")} while fetching app logs`)}let{cursor:r,app_logs:c}=a,d=Ce(c,n);return{cursor:r,appLogs:d}};function Ce(t,s){let n=t;return(s.status!==void 0||s.sources!==void 0)&&(n=n.filter(i=>{let l=s.status===void 0?!0:i.status===s.status,a=s.sources===void 0?!0:s.sources.includes(`${i.source_namespace}.${i.source}`);return l&&a})),n}var b=N(F(),1);async function Fe({jwtToken:t,cursor:s,filters:n,storeNameById:i,organizationId:l,setErrors:a,setAppLogOutputs:p,resubscribeCallback:u,developerPlatformClient:r}){let c=t,d=P,T=s,R=await B({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:r,organizationId:l}),m="not_attempted",w=R;if(w.errors){let h=await U({response:w,onThrottle:g=>{a(["Request throttled while polling app logs.",`Retrying in ${g/1e3}s`])},onUnknownError:g=>{a(["Error while polling app logs",`Retrying in ${g/1e3}s`])},onResubscribe:()=>u()});m=h.resubscribeResult,h.nextJwtToken&&(c=h.nextJwtToken),d=h.retryIntervalMs}else{a(g=>g.length?[]:g);let{appLogs:h}=R;if(T=R.cursor,h)for(let g of h){let y,k,q,j=i.get(g.shop_id.toString());if(j===void 0)continue;switch(g.log_type){case ue:y=de(g.payload),k=`export "${y.export}" executed in ${(y.fuelConsumed/ce).toFixed(4)}M instructions`;break;case pe:y=ge(g.payload),k="network access response retrieved from cache";break;case me:y=Ee(g.payload),k="network access request executing in background";break;case fe:y=he(g.payload),q=y.connectTimeMs&&y.writeReadTimeMs?y.connectTimeMs+y.writeReadTimeMs:null,k=`network access request executed${q?` in ${q} ms`:""}`;break;default:continue}let ke={status:g.status==="success"?"Success":"Failure",source:g.source,storeName:j,description:k,logTimestamp:$(g.log_timestamp)};y&&p(Ne=>[...Ne,{appLog:y,prefix:ke}])}}return{nextJwtToken:c,retryIntervalMs:d,cursor:T??s,resubscribeResult:m}}function Re({initialJwt:t,filters:s,resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a}){let[p,u]=(0,b.useState)([]),[r,c]=(0,b.useState)([]),d=(0,b.useRef)(t),T=(0,b.useRef)(0),R=(0,b.useRef)(""),m=(0,b.useRef)(0),w=(0,b.useCallback)(async()=>{let h=await Fe({jwtToken:d.current,cursor:R.current,filters:s,storeNameById:i,setErrors:u,setAppLogOutputs:c,resubscribeCallback:n,developerPlatformClient:l,organizationId:a});if(h.resubscribeResult==="failed"){if(m.current+=1,m.current>=v)return u(["App log streaming session has expired. Please restart your dev session."]),{retryIntervalMs:0}}else h.resubscribeResult==="succeeded"&&(m.current=0);return d.current=h.nextJwtToken,R.current=h.cursor,T.current=h.retryIntervalMs,{retryIntervalMs:T.current}},[]);return be(w),{appLogOutputs:r,errors:p}}var e=N(F(),1);var Me=t=>{switch(t){case L.NoCachedResponse:return"No cached response available";case L.CacheAboutToExpire:return"Cache is about to expire";case L.Unknown:return"Unknown reason"}},xe=({pollOptions:{jwtToken:t,filters:s},resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a})=>{let{appLogOutputs:p,errors:u}=Re({filters:s,initialJwt:t,resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a});return e.default.createElement(e.default.Fragment,null,p.map(({appLog:r,prefix:c},d)=>e.default.createElement(f,{flexDirection:"column",key:d},e.default.createElement(f,{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(f,{flexDirection:"column",marginLeft:4},r instanceof ne&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,r.logs),r.inputQueryVariablesMetafieldKey&&r.inputQueryVariablesMetafieldNamespace?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input Query Variables:"),e.default.createElement(f,{flexDirection:"row",marginLeft:1,marginTop:1},e.default.createElement(o,{dimColor:!0},"Namespace:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldNamespace)),e.default.createElement(f,{flexDirection:"row",marginLeft:1},e.default.createElement(o,{dimColor:!0},"Key:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldKey)),e.default.createElement(f,{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(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input ",e.default.createElement(o,{dimColor:!0},"(",r.inputBytes," bytes):")),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.input)))):null,r.output?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Output ",e.default.createElement(o,{dimColor:!0},"(",r.outputBytes," bytes):")),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.output)))):null),r instanceof ie&&e.default.createElement(f,{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 ae&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Reason: ",Me(r.reason)),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest))),r instanceof le&&e.default.createElement(f,{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(f,{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(f,{flexDirection:"column"},u.map((r,c)=>e.default.createElement(f,{key:c},e.default.createElement(o,{color:"red"},r)))))};var Ie=N(F(),1);async function Se({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:l}){let a=async()=>A(n,s,l);return H(Ie.default.createElement(xe,{pollOptions:t,resubscribeCallback:a,storeNameById:i,developerPlatformClient:n,organizationId:l}))}E();async function D({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:l,consecutiveResubscribeFailures:a=0}){let p=await B({pollOptions:t,developerPlatformClient:n,organizationId:l}),u=P,r=t.jwtToken,c=a,d=p;if(d.errors){let m=await U({response:d,onThrottle:w=>{S(JSON.stringify({message:"Request throttled while polling app logs.",retry_in_ms:w}))},onUnknownError:w=>{S(JSON.stringify({message:"Error while polling app logs.",retry_in_ms:w}))},onResubscribe:()=>A(n,s,l)});if(m.resubscribeResult==="failed"){if(c+=1,c>=v){S(JSON.stringify({message:"App log streaming session has expired. Please restart your dev session."}));return}}else m.resubscribeResult==="succeeded"&&(c=0);m.nextJwtToken&&(r=m.nextJwtToken),u=m.retryIntervalMs}else c=0;let{cursor:T,appLogs:R}=p;R&&R.forEach(m=>{let w=i.get(m.shop_id?.toString());w!==void 0&&M(Te({appLog:m,appLogPayload:we(m.payload,m.log_type),storeName:w,prettyPrint:!1}))}),setTimeout(()=>{D({options:{variables:s,developerPlatformClient:n},pollOptions:{jwtToken:r||t.jwtToken,cursor:T??t.cursor,filters:t.filters},storeNameById:i,organizationId:l,consecutiveResubscribeFailures:c}).catch(m=>{throw m})},u)}async function Ae(t){let{app:s,remoteApp:n,developerPlatformClient:i}=t,l=await Le(t),a=ye(s);if(a.length===0)throw new _("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 d=t.sources.filter(T=>!a.includes(T));if(d.length)throw new _(`Invalid sources: ${d.join(", ")}. Valid sources are: ${a.join(", ")}`)}let p={shopIds:l.storeIds.map(Number),apiKey:n.apiKey},u=await A(i,p,t.organization.id),r={status:t.status,sources:t.sources},c={jwtToken:u,filters:r};t.format==="json"?(M(JSON.stringify({subscribedToStores:t.storeFqdns})),S(JSON.stringify({message:"Waiting for app logs..."})),await D({options:{variables:p,developerPlatformClient:i},pollOptions:c,storeNameById:l.storeNameById,organizationId:t.organization.id})):(S(`Waiting for app logs...
2
2
  `),await Se({options:{variables:p,developerPlatformClient:i},pollOptions:c,storeNameById:l.storeNameById,organizationId:t.organization.id}))}async function Le(t){let{app:s,remoteApp:n,developerPlatformClient:i,primaryStore:l,organization:a}=t,p=V(s.configPath);t.format==="text"&&Pe(n.title,l.shopDomain,t.storeFqdns,p,a.businessName);let u=new Map;return u.set(l.shopId,l.shopDomain),t.storeFqdns&&t.storeFqdns.length>1&&await Promise.all(t.storeFqdns?.slice(1).map(async c=>{let d=await Z(a,c,i);u.set(d.shopId,c)})),{storeIds:Array.from(u.keys()),storeNameById:u}}function Pe(t,s,n,i,l){let a=[];n&&n.length>0?n.forEach(u=>a.push(u)):a.push(s);let p=i?W(i):void 0;Q({headline:i?`Using ${p} for default values:`:"Using these settings:",body:ee({appName:t,org:l,devStores:a,messages:[te]})})}var O=N(_e(),1);var J,I=class extends se{async run(){let{flags:s}=await this.parse(J);await X(s.path);let n=await re({directory:s.path,clientId:s["client-id"],forceRelink:s.reset,userProvidedConfigName:s.config}),i=await oe({appContextResult:n,storeFqdn:s.store?.[0],forceReselectStore:s.reset}),l={...n,primaryStore:i,storeFqdns:s.store,sources:s.source,status:s.status,format:s.json?"json":"text"};return await Ae(l),{app:n.app}}};J=I;I.summary="Stream detailed logs for your Shopify app.";I.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 ";I.description=J.descriptionWithoutMarkdown();I.flags={...Y,...z,...K,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 t=>G(t)}),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"})};var _t=I;export{_t as a};