@shopify/cli 4.5.0 → 4.5.2

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 (283) hide show
  1. package/dist/{analytics-GAPN4I6R.js → analytics-M7ZU437S.js} +1 -1
  2. package/dist/{analytics-DMUNCDGT.js → analytics-ZRM4FEOE.js} +1 -1
  3. package/dist/assets/hydrogen/starter/CHANGELOG.md +8 -0
  4. package/dist/assets/hydrogen/starter/README.md +4 -4
  5. package/dist/assets/hydrogen/starter/package.json +1 -1
  6. package/dist/assets/hydrogen/starter/vite.config.ts +6 -0
  7. package/dist/bootstrap.js +1 -1
  8. package/dist/{chunk-WFB3FHKV.js → chunk-23LZNWB5.js} +1 -1
  9. package/dist/{chunk-LMPD55L6.js → chunk-2ACN7JIZ.js} +1 -1
  10. package/dist/{chunk-B367FOQA.js → chunk-2TJ6LOCC.js} +1 -1
  11. package/dist/{chunk-KUKYAIOR.js → chunk-34SINZ7L.js} +1 -1
  12. package/dist/{chunk-3OE5HXHO.js → chunk-35FS2NTM.js} +1 -1
  13. package/dist/{chunk-P3RGC53U.js → chunk-3EJGRQTH.js} +1 -1
  14. package/dist/{chunk-K2CIMJJW.js → chunk-3IFZECSI.js} +1 -1
  15. package/dist/{chunk-SF53RKMO.js → chunk-3OCR7P3S.js} +1 -1
  16. package/dist/{chunk-XXUWTD7A.js → chunk-42RVM4EZ.js} +1 -1
  17. package/dist/{chunk-KJQAJUDU.js → chunk-4MLEL3VK.js} +1 -1
  18. package/dist/{chunk-JGN7YG5X.js → chunk-4P54DKG4.js} +1 -1
  19. package/dist/chunk-4ROX2TCK.js +1 -0
  20. package/dist/{chunk-RY2ESY3P.js → chunk-4UJNCOE6.js} +1 -1
  21. package/dist/{chunk-2MZACB7V.js → chunk-4VJ5VBSR.js} +1 -1
  22. package/dist/{chunk-WU6GIY22.js → chunk-523SJVNT.js} +1 -1
  23. package/dist/{chunk-QCBAFI6Z.js → chunk-5CV7GFWZ.js} +1 -1
  24. package/dist/{chunk-6I3FNLT3.js → chunk-5GVE4ILZ.js} +1 -1
  25. package/dist/{chunk-GOAKZ2IL.js → chunk-5N7H4PJJ.js} +1 -1
  26. package/dist/{chunk-F447QKVX.js → chunk-5VC4XXYH.js} +1 -1
  27. package/dist/{chunk-NJLSZS27.js → chunk-5VRU3BT5.js} +1 -1
  28. package/dist/{chunk-K7I5BGFC.js → chunk-6AWRW3GS.js} +1 -1
  29. package/dist/{chunk-SY2AH7C2.js → chunk-6K4DVV37.js} +1 -1
  30. package/dist/{chunk-ZFOWAMFK.js → chunk-6VR22Z5R.js} +1 -1
  31. package/dist/{chunk-2IPVQRMI.js → chunk-6ZWMXMNM.js} +1 -1
  32. package/dist/{chunk-ICXHUPP5.js → chunk-75DBVSVI.js} +1 -1
  33. package/dist/{chunk-N5U5Q2MG.js → chunk-7AY6HLQG.js} +1 -1
  34. package/dist/{chunk-4LML2QWN.js → chunk-7AYYQUJG.js} +1 -1
  35. package/dist/{chunk-J5U2FUIX.js → chunk-7KWBVZPI.js} +1 -1
  36. package/dist/{chunk-2MDFREEW.js → chunk-7PVNAILK.js} +1 -1
  37. package/dist/{chunk-I3Y6XTKN.js → chunk-7RJPTSL6.js} +1 -1
  38. package/dist/{chunk-PH7F4BMG.js → chunk-7TQ6HVHN.js} +1 -1
  39. package/dist/{chunk-KZDI2BXR.js → chunk-AAK3WGD7.js} +1 -1
  40. package/dist/chunk-AATUQ2AY.js +278 -0
  41. package/dist/{chunk-WPITBIL5.js → chunk-ADKFAPED.js} +1 -1
  42. package/dist/{chunk-P4243GCY.js → chunk-ANH2V6DJ.js} +1 -1
  43. package/dist/{chunk-N4LCWB56.js → chunk-AUAUAK6P.js} +1 -1
  44. package/dist/chunk-B5MFFERE.js +1 -0
  45. package/dist/{chunk-DLZPP33V.js → chunk-BLSWUNOK.js} +1 -1
  46. package/dist/{chunk-QJL3SXYA.js → chunk-BQARKSGG.js} +1 -1
  47. package/dist/{chunk-24RF5KN3.js → chunk-BUVP2UUA.js} +1 -1
  48. package/dist/{chunk-2VUG6LRN.js → chunk-BVWQZKNK.js} +1 -1
  49. package/dist/{chunk-UQZ7HZ47.js → chunk-CEBDKIVH.js} +1 -1
  50. package/dist/{chunk-3JZKWK2V.js → chunk-CX44CQFL.js} +1 -1
  51. package/dist/{chunk-663TS34D.js → chunk-DELISRUH.js} +1 -1
  52. package/dist/{chunk-UFGDNIYX.js → chunk-DI5ZPWNA.js} +1 -1
  53. package/dist/{chunk-QHWF3S7U.js → chunk-DIPTSBQM.js} +1 -1
  54. package/dist/{chunk-235JVI2J.js → chunk-DN3BB4IO.js} +2 -2
  55. package/dist/{chunk-FJOEHMXM.js → chunk-DZMXYETH.js} +1 -1
  56. package/dist/{chunk-P375IGKT.js → chunk-EAOT5CK5.js} +1 -1
  57. package/dist/{chunk-YYLEWVO6.js → chunk-EEEKSYWV.js} +1 -1
  58. package/dist/{chunk-N5YIZJ4S.js → chunk-EOJNSPIH.js} +1 -1
  59. package/dist/{chunk-YF4HKJB5.js → chunk-FSVSM57K.js} +1 -1
  60. package/dist/{chunk-PK6NOLT5.js → chunk-G6BFXMOV.js} +1 -1
  61. package/dist/{chunk-UTLRP527.js → chunk-GMAZ2BQY.js} +1 -1
  62. package/dist/{chunk-QAM7VCLV.js → chunk-HOAVZLEG.js} +1 -1
  63. package/dist/{chunk-A2O3MBPH.js → chunk-HQE5B2CF.js} +1 -1
  64. package/dist/{chunk-XZWAX4FI.js → chunk-HSVZU7MP.js} +1 -1
  65. package/dist/{chunk-N625VE5T.js → chunk-HYF3VJYS.js} +1 -1
  66. package/dist/{chunk-7ZIO3X22.js → chunk-I5X3IP6T.js} +1 -1
  67. package/dist/{chunk-UTPJAU5S.js → chunk-ICRQZAXP.js} +1 -1
  68. package/dist/{chunk-AUZCENYI.js → chunk-IIFRDOYG.js} +1 -1
  69. package/dist/{chunk-YJAX22JK.js → chunk-JADXT2DY.js} +1 -1
  70. package/dist/{chunk-VKFDDZD3.js → chunk-JOKLZMTP.js} +1 -1
  71. package/dist/{chunk-KNEF6NAG.js → chunk-K4APB7O3.js} +1 -1
  72. package/dist/{chunk-ROQXPIEZ.js → chunk-KB6H5LQJ.js} +1 -1
  73. package/dist/{chunk-BCEWCYZD.js → chunk-KFUOVO3X.js} +1 -1
  74. package/dist/{chunk-3JAC5SI7.js → chunk-KIAMA3L2.js} +1 -1
  75. package/dist/{chunk-XSXX75VV.js → chunk-KMQE7WFZ.js} +1 -1
  76. package/dist/{chunk-JC3PRJJS.js → chunk-KPNNGJAW.js} +1 -1
  77. package/dist/{chunk-52H2R2FU.js → chunk-KQTVJMV6.js} +1 -1
  78. package/dist/{chunk-7BVXGS44.js → chunk-L42FYXFW.js} +144 -144
  79. package/dist/{chunk-V774I3FW.js → chunk-LGFOE4XL.js} +1 -1
  80. package/dist/{chunk-4EYTWWYF.js → chunk-LSCDB36D.js} +1 -1
  81. package/dist/{chunk-BNX4MZMV.js → chunk-LVLDPYH5.js} +1 -1
  82. package/dist/{chunk-PVD544NN.js → chunk-LXOBFJZO.js} +1 -1
  83. package/dist/{chunk-VNYKNAT5.js → chunk-MC466GSO.js} +2 -2
  84. package/dist/{chunk-32KQKGSY.js → chunk-ML6SILEL.js} +1 -1
  85. package/dist/{chunk-ICHNVDFU.js → chunk-MYQTAM77.js} +1 -1
  86. package/dist/{chunk-H3V6Y5JO.js → chunk-N6IFIMC6.js} +1 -1
  87. package/dist/{chunk-S5JJL3BP.js → chunk-NGCPVRDM.js} +1 -1
  88. package/dist/{chunk-5O7PY44R.js → chunk-NIVGP4LB.js} +1 -1
  89. package/dist/{chunk-HHA322FT.js → chunk-NSADN5S2.js} +47 -47
  90. package/dist/{chunk-CVRAATZ5.js → chunk-NVA2354A.js} +1 -1
  91. package/dist/{chunk-BH34ZLZ4.js → chunk-NWH3TAHK.js} +1 -1
  92. package/dist/{chunk-QRETBFXI.js → chunk-NYG2VQFQ.js} +1 -1
  93. package/dist/{chunk-UJVYIWUI.js → chunk-OC5PD4ID.js} +1 -1
  94. package/dist/{chunk-AP6FNGTA.js → chunk-OCBGHOH2.js} +1 -1
  95. package/dist/{chunk-YT3NPMWK.js → chunk-ODSMT2ZC.js} +1 -1
  96. package/dist/{chunk-DKVU7LYY.js → chunk-OJZT3NA2.js} +1 -1
  97. package/dist/{chunk-ZZ3SMI2A.js → chunk-OMXKQY2L.js} +1 -1
  98. package/dist/{chunk-VUACOGOX.js → chunk-P2SBE77Z.js} +1 -1
  99. package/dist/{chunk-TKW3Z7XL.js → chunk-P6LVSNTT.js} +1 -1
  100. package/dist/{chunk-FA25RL4G.js → chunk-P7OSUECN.js} +1 -1
  101. package/dist/chunk-P7U6BWKN.js +1 -0
  102. package/dist/{chunk-6LTJMYUD.js → chunk-PEYYIWP6.js} +1 -1
  103. package/dist/{chunk-J2ZES5K5.js → chunk-Q7DSLGTN.js} +1 -1
  104. package/dist/{chunk-BU7R7NFL.js → chunk-QEVGRNUE.js} +1 -1
  105. package/dist/{chunk-DQOS54HN.js → chunk-QFXJNFMI.js} +1 -1
  106. package/dist/{chunk-7DYZVU7H.js → chunk-R6A754UW.js} +1 -1
  107. package/dist/{chunk-UEC23KAO.js → chunk-R7QYSC6T.js} +1 -1
  108. package/dist/{chunk-E4GW6OXT.js → chunk-RE652L3G.js} +1 -1
  109. package/dist/{chunk-KESQOMEW.js → chunk-RFOALCVH.js} +1 -1
  110. package/dist/{chunk-5A7EMVAP.js → chunk-RLB5QHWG.js} +1 -1
  111. package/dist/{chunk-RUKK4KXX.js → chunk-RTINXD5Z.js} +1 -1
  112. package/dist/{chunk-HP3NDE7S.js → chunk-SG5TRPJ7.js} +1 -1
  113. package/dist/{chunk-BBATKR3B.js → chunk-SH6Q5CLM.js} +1 -1
  114. package/dist/{chunk-HX3TALXV.js → chunk-SSDEWKDZ.js} +2 -2
  115. package/dist/{chunk-MGPLKG23.js → chunk-SZM6ANMN.js} +1 -1
  116. package/dist/{chunk-V66IHWQO.js → chunk-T35C6NC7.js} +1 -1
  117. package/dist/{chunk-BXDZX3BS.js → chunk-TB7HFPBB.js} +3 -3
  118. package/dist/{chunk-3NMVMCOM.js → chunk-TH6CLNGO.js} +1 -1
  119. package/dist/{chunk-3EQY5B4S.js → chunk-TIU7MMRT.js} +1 -1
  120. package/dist/{chunk-7KHYEIA7.js → chunk-TM44Z7U7.js} +1 -1
  121. package/dist/{chunk-BVHBMOIB.js → chunk-TNUY66EE.js} +1 -1
  122. package/dist/{chunk-G6YOP2SJ.js → chunk-TPGREOWO.js} +1 -1
  123. package/dist/{chunk-4U3NC3UU.js → chunk-TSEPNC3O.js} +1 -1
  124. package/dist/{chunk-TEXYUUTD.js → chunk-TTEY5PLR.js} +1 -1
  125. package/dist/{chunk-RY5CY3ZW.js → chunk-U3MSTPZP.js} +1 -1
  126. package/dist/{chunk-UGGFSV7N.js → chunk-U4HLIXRH.js} +1 -1
  127. package/dist/{chunk-74IG3ZE3.js → chunk-UAYIFFYJ.js} +3 -3
  128. package/dist/chunk-UHIP5CFI.js +1 -0
  129. package/dist/{chunk-H2JU5BGK.js → chunk-UHMRDG6J.js} +1 -1
  130. package/dist/{chunk-XA5JA7DK.js → chunk-UMB4BWCK.js} +1 -1
  131. package/dist/{chunk-UP7H24B3.js → chunk-UMFVRG33.js} +1 -1
  132. package/dist/{chunk-5EVFLUUA.js → chunk-UVIGXZMV.js} +1 -1
  133. package/dist/{chunk-IFVYCKX5.js → chunk-UW6YEKST.js} +1 -1
  134. package/dist/{chunk-BLI7DUNV.js → chunk-V6QZF5YS.js} +1 -1
  135. package/dist/{chunk-57IRHKV3.js → chunk-VCWESQBC.js} +1 -1
  136. package/dist/{chunk-AYSS2ERL.js → chunk-VGSH33QU.js} +1 -1
  137. package/dist/{chunk-6V37CHBZ.js → chunk-VJQJ5PTQ.js} +1 -1
  138. package/dist/{chunk-PFEC2NUB.js → chunk-WDSBR7KX.js} +1 -1
  139. package/dist/{chunk-TGM7L6RV.js → chunk-WN5VTUWJ.js} +1 -1
  140. package/dist/{chunk-7HZG7FBK.js → chunk-WTRKTFVE.js} +1 -1
  141. package/dist/{chunk-4Q54UDO3.js → chunk-X3VG75LO.js} +1 -1
  142. package/dist/{chunk-ZKBWEHIY.js → chunk-XCGV3IJ5.js} +1 -1
  143. package/dist/{chunk-RBOYWA2D.js → chunk-XDV4PRFT.js} +1 -1
  144. package/dist/{chunk-DBBU6OVN.js → chunk-XHTICMA7.js} +1 -1
  145. package/dist/{chunk-ZZWSMRKT.js → chunk-XS7WK4YK.js} +1 -1
  146. package/dist/{chunk-2ROG5NK3.js → chunk-XSUZPWYV.js} +1 -1
  147. package/dist/{chunk-7EOQVQND.js → chunk-XUAAQI5N.js} +1 -1
  148. package/dist/{chunk-WTYH2O47.js → chunk-XXLGM6OZ.js} +1 -1
  149. package/dist/{chunk-S442LGHR.js → chunk-YKNMNGV7.js} +1 -1
  150. package/dist/{chunk-AYKRKE6O.js → chunk-YNX4DT2O.js} +1 -1
  151. package/dist/{chunk-IE4SSSXU.js → chunk-YWQPSMRZ.js} +1 -1
  152. package/dist/{chunk-JZVNNQWE.js → chunk-YXNKDX56.js} +1 -1
  153. package/dist/{chunk-MSJDZLZT.js → chunk-Z33MWGCG.js} +1 -1
  154. package/dist/{chunk-LXZM6Z4F.js → chunk-Z6VNPAY7.js} +1 -1
  155. package/dist/{chunk-O7OQK2OC.js → chunk-ZAN7AZTX.js} +1 -1
  156. package/dist/{chunk-ABCU552E.js → chunk-ZIM2G3EP.js} +1 -1
  157. package/dist/{chunk-U44HRKSU.js → chunk-ZSYMRT3S.js} +1 -1
  158. package/dist/{chunk-TM534QSE.js → chunk-ZT4PUH7L.js} +1 -1
  159. package/dist/{chunk-Z66NZ2HC.js → chunk-ZUWEGJA7.js} +1 -1
  160. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  161. package/dist/cli/commands/app/build.js +1 -1
  162. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  163. package/dist/cli/commands/app/bulk/execute.js +1 -1
  164. package/dist/cli/commands/app/bulk/status.js +1 -1
  165. package/dist/cli/commands/app/config/link.js +1 -1
  166. package/dist/cli/commands/app/config/pull.js +1 -1
  167. package/dist/cli/commands/app/config/use.js +1 -1
  168. package/dist/cli/commands/app/config/validate.js +1 -1
  169. package/dist/cli/commands/app/demo/watcher.js +1 -1
  170. package/dist/cli/commands/app/deploy.js +1 -1
  171. package/dist/cli/commands/app/dev/clean.js +1 -1
  172. package/dist/cli/commands/app/dev.js +1 -1
  173. package/dist/cli/commands/app/env/pull.js +1 -1
  174. package/dist/cli/commands/app/env/show.js +1 -1
  175. package/dist/cli/commands/app/execute.js +1 -1
  176. package/dist/cli/commands/app/function/build.js +1 -1
  177. package/dist/cli/commands/app/function/info.js +1 -1
  178. package/dist/cli/commands/app/function/replay.js +1 -1
  179. package/dist/cli/commands/app/function/run.js +1 -1
  180. package/dist/cli/commands/app/function/schema.js +1 -1
  181. package/dist/cli/commands/app/function/typegen.js +1 -1
  182. package/dist/cli/commands/app/generate/extension.js +1 -1
  183. package/dist/cli/commands/app/graphiql.js +1 -1
  184. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  185. package/dist/cli/commands/app/import-extensions.js +1 -1
  186. package/dist/cli/commands/app/info.js +1 -1
  187. package/dist/cli/commands/app/init.js +1 -1
  188. package/dist/cli/commands/app/logs.js +1 -1
  189. package/dist/cli/commands/app/release.js +1 -1
  190. package/dist/cli/commands/app/versions/list.js +1 -1
  191. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  192. package/dist/cli/commands/auth/login.js +1 -1
  193. package/dist/cli/commands/auth/logout.js +1 -1
  194. package/dist/cli/commands/cache/clear.js +1 -1
  195. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  196. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  197. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  198. package/dist/cli/commands/debug/command-flags.js +1 -1
  199. package/dist/cli/commands/doc/fetch.js +1 -1
  200. package/dist/cli/commands/doc/search.js +1 -1
  201. package/dist/cli/commands/docs/generate.js +1 -1
  202. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  203. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  204. package/dist/cli/commands/help.js +1 -1
  205. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  206. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  207. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  208. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  209. package/dist/cli/commands/notifications/generate.js +1 -1
  210. package/dist/cli/commands/notifications/list.js +1 -1
  211. package/dist/cli/commands/organization/list.js +1 -1
  212. package/dist/cli/commands/search.js +1 -1
  213. package/dist/cli/commands/theme/check.js +1 -1
  214. package/dist/cli/commands/theme/console.js +1 -1
  215. package/dist/cli/commands/theme/delete.js +1 -1
  216. package/dist/cli/commands/theme/dev.js +1 -1
  217. package/dist/cli/commands/theme/duplicate.js +1 -1
  218. package/dist/cli/commands/theme/info.js +1 -1
  219. package/dist/cli/commands/theme/init.js +1 -1
  220. package/dist/cli/commands/theme/language-server.js +1 -1
  221. package/dist/cli/commands/theme/list.js +1 -1
  222. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  223. package/dist/cli/commands/theme/open.js +1 -1
  224. package/dist/cli/commands/theme/package.js +1 -1
  225. package/dist/cli/commands/theme/preview.js +1 -1
  226. package/dist/cli/commands/theme/profile.js +1 -1
  227. package/dist/cli/commands/theme/publish.js +1 -1
  228. package/dist/cli/commands/theme/pull.js +1 -1
  229. package/dist/cli/commands/theme/push.js +1 -1
  230. package/dist/cli/commands/theme/rename.js +1 -1
  231. package/dist/cli/commands/theme/share.js +1 -1
  232. package/dist/cli/commands/upgrade.js +1 -1
  233. package/dist/cli/commands/version.js +1 -1
  234. package/dist/command-registry.js +1 -1
  235. package/dist/{conf-store-V6ILVUUO.js → conf-store-HOA62HKK.js} +1 -1
  236. package/dist/configs/all.yml +3 -0
  237. package/dist/configs/recommended.yml +3 -0
  238. package/dist/data/filters.json +1 -1
  239. package/dist/data/objects.json +30 -3
  240. package/dist/data/shopify_system_translations.json +48 -4
  241. package/dist/{deprecations-MOEFN6OW.js → deprecations-2FTB7JEW.js} +1 -1
  242. package/dist/{dist-E6QKEULH.js → dist-63JMGNUL.js} +1 -1
  243. package/dist/dist-6TY6L7OW.js +1 -0
  244. package/dist/{environments-5KA3OBIZ.js → environments-XVYTKHRZ.js} +1 -1
  245. package/dist/{error-NYYI6HVX.js → error-SDU6RPQQ.js} +1 -1
  246. package/dist/{error-handler-BOESDKZA.js → error-handler-4YEBBCUH.js} +1 -1
  247. package/dist/{fs-XE6SBVBF.js → fs-B4UJTUCD.js} +1 -1
  248. package/dist/hooks/app-init.js +1 -1
  249. package/dist/hooks/did-you-mean.js +1 -1
  250. package/dist/hooks/hydrogen-init.js +1 -1
  251. package/dist/hooks/postrun.js +1 -1
  252. package/dist/hooks/prerun.js +1 -1
  253. package/dist/hooks/public-metadata.js +1 -1
  254. package/dist/hooks/sensitive-metadata.js +1 -1
  255. package/dist/hooks/tunnel-provider.js +1 -1
  256. package/dist/hooks/tunnel-start.js +1 -1
  257. package/dist/index.js +1 -1
  258. package/dist/{is-global-JOHCPSKZ.js → is-global-5LFZDDNH.js} +1 -1
  259. package/dist/{local-BTQDUX72.js → local-VTYGIJVD.js} +1 -1
  260. package/dist/{local-storage-WUSIVDTQ.js → local-storage-A6NBLBB2.js} +1 -1
  261. package/dist/{metadata-APVOKTBV.js → metadata-FREAI3KR.js} +1 -1
  262. package/dist/{node-package-manager-AC34ZJZD.js → node-package-manager-N5SUT2WN.js} +1 -1
  263. package/dist/notifications-system-P3SUTD25.js +1 -0
  264. package/dist/{output-EAPQ7OWD.js → output-VUR2QZPW.js} +1 -1
  265. package/dist/{system-D7CH26HU.js → system-OXF2P5CT.js} +1 -1
  266. package/dist/tsconfig.tsbuildinfo +1 -1
  267. package/dist/{ui-AXZBGWIQ.js → ui-N2C5FC3G.js} +1 -1
  268. package/dist/upgrade-AJ36IT7H.js +1 -0
  269. package/dist/{version-FAU37PQN.js → version-DSFP332V.js} +1 -1
  270. package/dist/version-HUOO3XOE.js +1 -0
  271. package/dist/{workerd-XXPWKQOM.js → workerd-KPQTFQD4.js} +1 -1
  272. package/oclif.manifest.json +20 -2
  273. package/package.json +8 -8
  274. package/dist/chunk-63NFEXJR.js +0 -275
  275. package/dist/chunk-E64BQS4D.js +0 -1
  276. package/dist/chunk-PLHJQQVZ.js +0 -1
  277. package/dist/chunk-Q3WOWDUU.js +0 -1
  278. package/dist/chunk-Z2Y6G2QF.js +0 -1
  279. package/dist/dist-2BL5GGMG.js +0 -1
  280. package/dist/notifications-system-4ODOESG2.js +0 -1
  281. package/dist/upgrade-SLPJF6LD.js +0 -1
  282. package/dist/version-3IYH4V5U.js +0 -1
  283. /package/dist/{morph-CG6HEMCQ.js → morph-QZGREMO2.js} +0 -0
@@ -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-ZKBWEHIY.js";import{a as oe}from"./chunk-E4GW6OXT.js";import{a as se}from"./chunk-PLHJQQVZ.js";import{a as z}from"./chunk-6V37CHBZ.js";import{F as X,Fa as re,_ as ee,ba as te,m as W}from"./chunk-KJQAJUDU.js";import{ea as Z}from"./chunk-UEC23KAO.js";import{z as G}from"./chunk-3EQY5B4S.js";import{b as Y,c as K}from"./chunk-S5JJL3BP.js";import{i as H,u as Q}from"./chunk-YYLEWVO6.js";import{d as _}from"./chunk-AUZCENYI.js";import{Lb as M,Mb as S,da as $,eb as F,fb as f,gb as o}from"./chunk-BXDZX3BS.js";import{j as V}from"./chunk-773TIA5M.js";import{r as _e}from"./chunk-T6CC5WUU.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-XCGV3IJ5.js";import{a as oe}from"./chunk-RE652L3G.js";import{a as se}from"./chunk-UHIP5CFI.js";import{a as z}from"./chunk-VJQJ5PTQ.js";import{F as X,Fa as re,_ as ee,ba as te,m as W}from"./chunk-4MLEL3VK.js";import{ea as Z}from"./chunk-R7QYSC6T.js";import{z as G}from"./chunk-TIU7MMRT.js";import{b as Y,c as K}from"./chunk-NGCPVRDM.js";import{i as H,u as Q}from"./chunk-EEEKSYWV.js";import{d as _}from"./chunk-IIFRDOYG.js";import{Lb as M,Mb as S,da as $,eb as F,fb as f,gb as o}from"./chunk-TB7HFPBB.js";import{j as V}from"./chunk-773TIA5M.js";import{r as _e}from"./chunk-T6CC5WUU.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};
@@ -1 +1 @@
1
- import{c as d}from"./chunk-7ZIO3X22.js";import{xa as i}from"./chunk-3EQY5B4S.js";import{A as s,D as a,w as m,x as u}from"./chunk-YYLEWVO6.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();function f(e){return[`'${e.name}'`,{subdued:`(#${e.id})`}]}function y(e){return{list:{items:e.map(f)}}}async function T(e,r="It doesn't seem like you're running this command in a theme directory.",o,n){if(e)return!0;if(n)return u({headline:o?`Environment: ${o}`:"",body:r}),!1;if(m({body:r}),!process.stdout.isTTY)return!0;let t=await s({message:"Do you want to proceed?"});return i(`theme-service:confirm-directory:${t}`),t}async function v(e,r,o){if(e.role!==d||!process.stdout.isTTY||o)return!0;let n=`You're about to ${r} on your live theme "${e.name}". This will make changes visible to customers. Are you sure you want to proceed?`,t=await s({message:n,confirmationMessage:"Yes, proceed with live theme",cancellationMessage:"No, cancel"});return i(`theme-service:confirm-live-theme:${t}`),t}async function E(e,r,o=!1){e.length>0&&await a(e,{renderOptions:{stdout:r??process.stderr},noProgressBar:o})}export{f as a,y as b,T as c,v as d,E as e};
1
+ import{c as d}from"./chunk-I5X3IP6T.js";import{xa as i}from"./chunk-TIU7MMRT.js";import{A as s,D as a,w as m,x as u}from"./chunk-EEEKSYWV.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();function f(e){return[`'${e.name}'`,{subdued:`(#${e.id})`}]}function y(e){return{list:{items:e.map(f)}}}async function T(e,r="It doesn't seem like you're running this command in a theme directory.",o,n){if(e)return!0;if(n)return u({headline:o?`Environment: ${o}`:"",body:r}),!1;if(m({body:r}),!process.stdout.isTTY)return!0;let t=await s({message:"Do you want to proceed?"});return i(`theme-service:confirm-directory:${t}`),t}async function v(e,r,o){if(e.role!==d||!process.stdout.isTTY||o)return!0;let n=`You're about to ${r} on your live theme "${e.name}". This will make changes visible to customers. Are you sure you want to proceed?`,t=await s({message:n,confirmationMessage:"Yes, proceed with live theme",cancellationMessage:"No, cancel"});return i(`theme-service:confirm-live-theme:${t}`),t}async function E(e,r,o=!1){e.length>0&&await a(e,{renderOptions:{stdout:r??process.stderr},noProgressBar:o})}export{f as a,y as b,T as c,v as d,E as e};
@@ -1 +1 @@
1
- import{a as c,c as u}from"./chunk-NNOSZ447.js";import{r as C}from"./chunk-T6CC5WUU.js";import{e as h,g as i}from"./chunk-VKWPEFWQ.js";i();i();import{fileURLToPath as L}from"node:url";async function f(e){let{isDevelopment:o}=await import("./local-BTQDUX72.js"),{ShopifyConfig:n}=await import("./custom-oclif-loader-3AICQCNU.js"),t=await import("./lib-QJDPPAWN.js"),{run:a,flush:p,Errors:d,settings:m}=t.default??t;o()&&(m.debug=!0);try{let r=new n({root:L(e.moduleURL)});await r.load(),e.lazyCommandLoader&&r.setLazyCommandLoader(e.lazyCommandLoader),await a(e.argv,r),await p()}catch(r){let{errorHandler:l}=await import("./error-handler-BOESDKZA.js");return await l(r),d.handle(r)}}var s=h(C());async function y(e=process.versions){let o=e.node,n=Number(o.split(".")[0]);if(n<18){let{renderError:a}=await import("./ui-AXZBGWIQ.js");a({headline:"Upgrade to a supported Node version now.",body:[`Node ${n} has reached end-of-life and poses security risks. When you upgrade to a`,{link:{url:"https://nodejs.dev/en/about/previous-releases",label:"supported version"}},{char:","},"you'll be able to use Shopify CLI without interruption."]}),process.exit(1)}}function I(e,o=process.argv,n=process.env){o.includes("--verbose")&&(n.DEBUG=n.DEBUG??"*"),e.development&&(n.SHOPIFY_CLI_ENV=n.SHOPIFY_CLI_ENV??"development")}function b(e=process.argv,o=process.env){(e.includes("--no-color")||e.includes("--json")||e.includes("-j")||c(o.NO_COLOR)||c(o.SHOPIFY_FLAG_NO_COLOR)||c(o[u.json])||o.TERM==="dumb")&&(o.FORCE_COLOR="0")}async function _(e,o=f,n=process.argv,t=process.env,a=process.versions){return I(e,n,t),e.runInCreateMode&&await O(e,n),b(n,t),await y(a),o({moduleURL:e.moduleURL,lazyCommandLoader:e.lazyCommandLoader})}async function O(e,o=process.argv){let{findUpAndReadPackageJson:n}=await import("./node-package-manager-AC34ZJZD.js"),{moduleDirectory:t}=await import("./path-MBXP7ZIC.js"),d=(await n(t(e.moduleURL))).content.name.replace("@shopify/create-","");if(o.findIndex(r=>r.includes("init"))===-1){let r=o.findIndex(l=>l.match(new RegExp(`bin(\\/|\\\\)+(create-${d}|dev|run)`)))+1;o.splice(r,0,"init")}}var F={"no-color":s.Flags.boolean({hidden:!1,description:"Disable color output.",env:"SHOPIFY_FLAG_NO_COLOR"}),verbose:s.Flags.boolean({hidden:!1,description:"Increase the verbosity of the output.",env:"SHOPIFY_FLAG_VERBOSE"})},E={json:s.Flags.boolean({char:"j",description:"Output the result as JSON. Automatically disables color output.",hidden:!1,default:!1,env:u.json})},S=(e={})=>{let o=[e.description,"Must be between 1 and 65535."].filter(Boolean).join(" ");return s.Flags.integer({min:1,max:65535,...e,description:o})};async function j(){let{cacheClear:e}=await import("./conf-store-V6ILVUUO.js");e()}export{_ as a,F as b,E as c,S as d,j as e};
1
+ import{a as c,c as u}from"./chunk-NNOSZ447.js";import{r as C}from"./chunk-T6CC5WUU.js";import{e as h,g as i}from"./chunk-VKWPEFWQ.js";i();i();import{fileURLToPath as L}from"node:url";async function f(e){let{isDevelopment:o}=await import("./local-VTYGIJVD.js"),{ShopifyConfig:n}=await import("./custom-oclif-loader-3AICQCNU.js"),t=await import("./lib-QJDPPAWN.js"),{run:a,flush:p,Errors:d,settings:m}=t.default??t;o()&&(m.debug=!0);try{let r=new n({root:L(e.moduleURL)});await r.load(),e.lazyCommandLoader&&r.setLazyCommandLoader(e.lazyCommandLoader),await a(e.argv,r),await p()}catch(r){let{errorHandler:l}=await import("./error-handler-4YEBBCUH.js");return await l(r),d.handle(r)}}var s=h(C());async function y(e=process.versions){let o=e.node,n=Number(o.split(".")[0]);if(n<18){let{renderError:a}=await import("./ui-N2C5FC3G.js");a({headline:"Upgrade to a supported Node version now.",body:[`Node ${n} has reached end-of-life and poses security risks. When you upgrade to a`,{link:{url:"https://nodejs.dev/en/about/previous-releases",label:"supported version"}},{char:","},"you'll be able to use Shopify CLI without interruption."]}),process.exit(1)}}function I(e,o=process.argv,n=process.env){o.includes("--verbose")&&(n.DEBUG=n.DEBUG??"*"),e.development&&(n.SHOPIFY_CLI_ENV=n.SHOPIFY_CLI_ENV??"development")}function b(e=process.argv,o=process.env){(e.includes("--no-color")||e.includes("--json")||e.includes("-j")||c(o.NO_COLOR)||c(o.SHOPIFY_FLAG_NO_COLOR)||c(o[u.json])||o.TERM==="dumb")&&(o.FORCE_COLOR="0")}async function _(e,o=f,n=process.argv,t=process.env,a=process.versions){return I(e,n,t),e.runInCreateMode&&await O(e,n),b(n,t),await y(a),o({moduleURL:e.moduleURL,lazyCommandLoader:e.lazyCommandLoader})}async function O(e,o=process.argv){let{findUpAndReadPackageJson:n}=await import("./node-package-manager-N5SUT2WN.js"),{moduleDirectory:t}=await import("./path-MBXP7ZIC.js"),d=(await n(t(e.moduleURL))).content.name.replace("@shopify/create-","");if(o.findIndex(r=>r.includes("init"))===-1){let r=o.findIndex(l=>l.match(new RegExp(`bin(\\/|\\\\)+(create-${d}|dev|run)`)))+1;o.splice(r,0,"init")}}var F={"no-color":s.Flags.boolean({hidden:!1,description:"Disable color output.",env:"SHOPIFY_FLAG_NO_COLOR"}),verbose:s.Flags.boolean({hidden:!1,description:"Increase the verbosity of the output.",env:"SHOPIFY_FLAG_VERBOSE"})},E={json:s.Flags.boolean({char:"j",description:"Output the result as JSON. Automatically disables color output.",hidden:!1,default:!1,env:u.json})},S=(e={})=>{let o=[e.description,"Must be between 1 and 65535."].filter(Boolean).join(" ");return s.Flags.integer({min:1,max:65535,...e,description:o})};async function j(){let{cacheClear:e}=await import("./conf-store-HOA62HKK.js");e()}export{_ as a,F as b,E as c,S as d,j as e};
@@ -1 +1 @@
1
- import{d as i,i as r,p as s}from"./chunk-773TIA5M.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as f,readFileSync as u}from"fs";import{fileURLToPath as p,pathToFileURL as g}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(p(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"app:logs:sources":"dist/cli/commands/app/app-logs/sources.js","demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function l(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=l(n),e=i(d,o);return f(e)?d:y(t)}async function j(n,t){let o=l(n),e=w(n,t);return(await import(g(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-2BL5GGMG.js");return o?.[n]}if(t==="@oclif/plugin-commands"){let{commands:o}=await import("./lib-UCG2DNMS.js");return o[n]}if(t==="@oclif/plugin-plugins"){let{commands:o}=await import("./lib-NOROGV6N.js");return o[n]}if(t==="@shopify/plugin-did-you-mean"){let{DidYouMeanCommands:o}=await import("./dist-E6QKEULH.js");return o[n]}}export{D as a};
1
+ import{d as i,i as r,p as s}from"./chunk-773TIA5M.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as f,readFileSync as u}from"fs";import{fileURLToPath as p,pathToFileURL as g}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(p(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"app:logs:sources":"dist/cli/commands/app/app-logs/sources.js","demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function l(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=l(n),e=i(d,o);return f(e)?d:y(t)}async function j(n,t){let o=l(n),e=w(n,t);return(await import(g(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-6TY6L7OW.js");return o?.[n]}if(t==="@oclif/plugin-commands"){let{commands:o}=await import("./lib-UCG2DNMS.js");return o[n]}if(t==="@oclif/plugin-plugins"){let{commands:o}=await import("./lib-NOROGV6N.js");return o[n]}if(t==="@shopify/plugin-did-you-mean"){let{DidYouMeanCommands:o}=await import("./dist-63JMGNUL.js");return o[n]}}export{D as a};