@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,3 +1,3 @@
1
- import{a as N}from"./chunk-DHU767C3.js";import{a as S}from"./chunk-QG7TELFC.js";import{A as x,B as V,ta as M,x as A,y as C}from"./chunk-NOKCVDYD.js";import{a as m}from"./chunk-KGZH4RFA.js";import{b as E,c as b}from"./chunk-2Y6CYLKF.js";import{v as j,x as g}from"./chunk-6YCGMS7X.js";import{m as w,o as n}from"./chunk-ZTE46E4Z.js";import{Lb as s,Sb as h,Vb as _}from"./chunk-3TFUSDHY.js";import{j as u}from"./chunk-773TIA5M.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();async function P(d,t){let r=new Set(t.map(e=>e.file)).size;await m.addPublicMetadata(()=>({cmd_app_validate_valid:d,cmd_app_validate_issue_count:t.length,cmd_app_validate_file_count:r}))}async function k(d,t={json:!1}){let r=d.errors;if(!r||r.isEmpty()){if(await P(!0,[]),t.json){s(JSON.stringify({valid:!0,issues:[]},null,2));return}j({headline:`App configuration '${u(d.configPath)}' is valid.`});return}let e=r.getErrors();if(await P(!1,e),t.json){let f=e.map(({file:c,message:a,path:i,code:o})=>({file:c,message:a,path:i,code:o}));throw s(JSON.stringify({valid:!1,issues:f},null,2)),new n}throw g({headline:"Validation errors found.",body:e.map(f=>`\u2022 ${V(f)}`).join(`
1
+ import{a as N}from"./chunk-WDCCITSG.js";import{a as S}from"./chunk-NENUUNWB.js";import{A as x,B as V,ta as M,x as A,y as C}from"./chunk-5HJTCBBV.js";import{a as m}from"./chunk-X5RH4ALT.js";import{b as E,c as b}from"./chunk-4TANJ4JK.js";import{v as j,x as g}from"./chunk-JX4HSDDG.js";import{m as w,o as n}from"./chunk-2GB3EAD3.js";import{Lb as s,Sb as h,Vb as _}from"./chunk-BCZMDFI2.js";import{j as u}from"./chunk-773TIA5M.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();async function P(d,t){let r=new Set(t.map(e=>e.file)).size;await m.addPublicMetadata(()=>({cmd_app_validate_valid:d,cmd_app_validate_issue_count:t.length,cmd_app_validate_file_count:r}))}async function k(d,t={json:!1}){let r=d.errors;if(!r||r.isEmpty()){if(await P(!0,[]),t.json){s(JSON.stringify({valid:!0,issues:[]},null,2));return}j({headline:`App configuration '${u(d.configPath)}' is valid.`});return}let e=r.getErrors();if(await P(!1,e),t.json){let f=e.map(({file:c,message:a,path:i,code:o})=>({file:c,message:a,path:i,code:o}));throw s(JSON.stringify({valid:!1,issues:f},null,2)),new n}throw g({headline:"Validation errors found.",body:e.map(f=>`\u2022 ${V(f)}`).join(`
2
2
  `)}),new n}var y;async function v(d,t){await m.addPublicMetadata(()=>({cmd_app_validate_valid:!1,cmd_app_validate_issue_count:d,cmd_app_validate_file_count:t}))}var l=class extends N{async run(){let{flags:t}=await this.parse(y);await m.addPublicMetadata(()=>({cmd_app_validate_json:t.json}));let r;try{r=await A.load(t.path)}catch(a){if(a instanceof w&&t.json){await v(1,1);let i=_(h(a.message)).trim();throw s(JSON.stringify({valid:!1,issues:[{message:i}]},null,2)),new n}throw a}let e;try{e=await x(r,t.config,{clientId:t["client-id"],skipPrompts:!!t["client-id"]})}catch(a){if(a instanceof w&&t.json){await v(1,1);let i=_(h(a.message)).trim();throw s(JSON.stringify({valid:!1,issues:[{message:i}]},null,2)),new n}throw a}let f=C(r,e.file);if(f.length>0){let a=f.map(o=>({file:o.path,message:o.message})),i=new Set(f.map(o=>o.path)).size;throw await v(a.length,i),t.json?(s(JSON.stringify({valid:!1,issues:a},null,2)),new n):(g({headline:"Validation errors found.",body:a.map(o=>`\u2022 ${o.message}`).join(`
3
3
  `)}),new n)}let c;try{c=(await M({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config??(t["client-id"]?u(e.file.path):void 0),unsafeTolerateErrors:!0})).app}catch(a){let i=a instanceof w?_(h(a.message)).trim():"";throw i.startsWith("Validation errors in ")&&t.json?(await v(1,1),s(JSON.stringify({valid:!1,issues:[{message:i}]},null,2)),new n):a}return await k(c,{json:t.json}),{app:c}}};y=l;l.summary="Validate your app configuration and extensions.";l.descriptionWithMarkdown="Validates the selected app configuration file and all extension configurations against their schemas and reports any errors found.";l.description=y.descriptionWithoutMarkdown();l.flags={...E,...S,...b};var tt=l;export{tt as a};
@@ -1,4 +1,4 @@
1
- import{a as S,b as I,c as E,d as i,e as k,f as F,g as _,h as L,i as M}from"./chunk-7CPECP5P.js";import{a as A}from"./chunk-DHU767C3.js";import{a as b}from"./chunk-QG7TELFC.js";import{Z as P,ta as T}from"./chunk-NOKCVDYD.js";import{B as g,F as v,z as p}from"./chunk-6YCGMS7X.js";import{Nb as h,Qb as u,Sb as w}from"./chunk-3TFUSDHY.js";import{j as y}from"./chunk-773TIA5M.js";import{a as G}from"./chunk-CTNBSUVU.js";import{e as q,g as a}from"./chunk-VKWPEFWQ.js";a();a();a();a();async function H(e,t,r){let o={api_version:t},{webhookTopics:s}=await e.topics(o,r);return s}a();async function V(e){let t=e.map(o=>({label:o,value:o}));return await g({message:"Webhook Topic",choices:t})}async function C(e){return p({message:"Webhook ApiVersion",choices:e.map(t=>({label:t,value:t}))})}async function R(){return p({message:"Delivery method",choices:[{label:"HTTP",value:i.HTTP},{label:"Google Pub/Sub",value:i.PUBSUB},{label:"Amazon EventBridge",value:i.EVENTBRIDGE}]})}async function D(e){return(await v({message:"Address for delivery",validate:r=>{let o=r.trim();if(o.length===0)return"Address can't be empty";if(!k(o,e))return`Invalid address.
1
+ import{a as S,b as I,c as E,d as i,e as k,f as F,g as _,h as L,i as M}from"./chunk-J3D4KQOQ.js";import{a as A}from"./chunk-WDCCITSG.js";import{a as b}from"./chunk-NENUUNWB.js";import{Z as P,ta as T}from"./chunk-5HJTCBBV.js";import{B as g,F as v,z as p}from"./chunk-JX4HSDDG.js";import{Nb as h,Qb as u,Sb as w}from"./chunk-BCZMDFI2.js";import{j as y}from"./chunk-773TIA5M.js";import{a as G}from"./chunk-CTNBSUVU.js";import{e as q,g as a}from"./chunk-VKWPEFWQ.js";a();a();a();a();async function H(e,t,r){let o={api_version:t},{webhookTopics:s}=await e.topics(o,r);return s}a();async function V(e){let t=e.map(o=>({label:o,value:o}));return await g({message:"Webhook Topic",choices:t})}async function C(e){return p({message:"Webhook ApiVersion",choices:e.map(t=>({label:t,value:t}))})}async function R(){return p({message:"Delivery method",choices:[{label:"HTTP",value:i.HTTP},{label:"Google Pub/Sub",value:i.PUBSUB},{label:"Amazon EventBridge",value:i.EVENTBRIDGE}]})}async function D(e){return(await v({message:"Address for delivery",validate:r=>{let o=r.trim();if(o.length===0)return"Address can't be empty";if(!k(o,e))return`Invalid address.
2
2
  ${c(e)}`}})).trim()}function U(e){return e===i.HTTP?["For remote HTTP testing, use a URL that starts with https://","For local HTTP testing, use http://localhost:{port}/{url-path}"]:e===i.PUBSUB?["For Google Pub/Sub, use pubsub://{project-id}:{topic-id}"]:e===i.EVENTBRIDGE?["For Amazon EventBridge, use an Amazon Resource Name (ARN) starting with arn:aws:events:"]:[]}function c(e){return U(e).map(t=>` \xB7 ${w(t)}`).join(`
3
3
  `)}async function x(e,t){let{clientSecret:r,clientId:o,remoteApp:s,app:l}=e;return r&&(o||t!==i.EVENTBRIDGE)?{clientSecret:r,apiKey:o}:(P({appName:s.title,configFile:y(l.configPath)}),{clientSecret:s.apiSecretKeys.find(f=>f.secret).secret,apiKey:s.apiKey})}async function O(e,t,r){let o=await S(e,r);return t?_(t,o):C(o)}async function B(e,t,r,o){let s=await H(e,t,o);return r?L(r,t,s):V(s)}async function Y(e,t){let r=e??M(t)??await R(),o=t??await D(r);return F(o,r)}async function N(e){let t=await W(e);await z(t)}async function W(e){let t=await O(e.developerPlatformClient,e.apiVersion,e.organizationId),r=await B(e.developerPlatformClient,t,e.topic,e.organizationId),[o,s]=await Y(e.deliveryMethod,e.address),l=await x(e,s);return{topic:r,apiVersion:t,deliveryMethod:s,address:o,apiKey:l.apiKey,clientSecret:l.clientSecret,developerPlatformClient:e.developerPlatformClient,organizationId:e.organizationId}}async function z(e){let t={topic:e.topic,api_version:e.apiVersion,address:e.address,delivery_method:e.deliveryMethod,shared_secret:e.clientSecret,api_key:e.apiKey},r=await I(e.developerPlatformClient,t,e.organizationId);if(!r.success){u(`Request errors:
4
4
  ${K(r.userErrors)}`);return}if(e.deliveryMethod===i.LOCALHOST){if(await E(e.address,r.samplePayload,r.headers)){h("Localhost delivery sucessful");return}u("Localhost delivery failed");return}r.samplePayload===JSON.stringify({})&&h("Webhook has been enqueued for delivery")}function K(e){try{return e.map(t=>JSON.parse(t.message).map(r=>` \xB7 ${r}`).join(`
@@ -1 +1 @@
1
- import{a as o}from"./chunk-OUUOML3D.js";import{b as a}from"./chunk-2MCH43SL.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var t=class extends a{static{this.description="View the UI kit components that process async tasks"}static{this.hidden=!0}async run(){await o()}};export{t as a};
1
+ import{a as o}from"./chunk-U3P5TIIR.js";import{b as a}from"./chunk-WHT2RCAD.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var t=class extends a{static{this.description="View the UI kit components that process async tasks"}static{this.hidden=!0}async run(){await o()}};export{t as a};
@@ -1,4 +1,4 @@
1
- import{b as f}from"./chunk-2MCH43SL.js";import{b as C}from"./chunk-V65P572N.js";import{A as S,u as i,y as x}from"./chunk-6YCGMS7X.js";import{m as v}from"./chunk-ZTE46E4Z.js";import{Pb as I}from"./chunk-3TFUSDHY.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();n();var m={on:"Autocorrect on. The system will automatically run commands even when you mistype them.",off:"Autocorrect off. You'll need to confirm corrections for mistyped commands."};n();function p(o=W()){return!!o.get("autocorrectEnabled")}function y(o,e=W()){e.set("autocorrectEnabled",o)}function W(){return b??(b=new C({projectName:"did-you-mean"})),b}var b;var A,s=class extends f{async run(){y(!0),i({body:m.on})}};A=s;s.summary="Enable autocorrect. Off by default.";s.descriptionWithMarkdown=`Enable autocorrect. Off by default.
1
+ import{b as f}from"./chunk-WHT2RCAD.js";import{b as C}from"./chunk-6KAWCN3I.js";import{A as S,u as i,y as x}from"./chunk-JX4HSDDG.js";import{m as v}from"./chunk-2GB3EAD3.js";import{Pb as I}from"./chunk-BCZMDFI2.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();n();var m={on:"Autocorrect on. The system will automatically run commands even when you mistype them.",off:"Autocorrect off. You'll need to confirm corrections for mistyped commands."};n();function p(o=W()){return!!o.get("autocorrectEnabled")}function y(o,e=W()){e.set("autocorrectEnabled",o)}function W(){return b??(b=new C({projectName:"did-you-mean"})),b}var b;var A,s=class extends f{async run(){y(!0),i({body:m.on})}};A=s;s.summary="Enable autocorrect. Off by default.";s.descriptionWithMarkdown=`Enable autocorrect. Off by default.
2
2
 
3
3
  When autocorrection is enabled, Shopify CLI automatically runs a corrected version of your command if a correction is available.
4
4
 
@@ -1 +1 @@
1
- import{h as l}from"./chunk-HT6MOPLW.js";import{O as c}from"./chunk-EZ7EBYDT.js";import{m as u}from"./chunk-ZTE46E4Z.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var s=["live","unpublished","development"];async function A(e,r){let t=await c(e,r);return p(t)}async function p(e){let r=e.storeFqdn,t=(await l(e)).filter(d);if(t.length===0)throw new u(`There are no themes in the ${r} store`);return t.sort(w)}function d(e){return s.includes(e.role)}function w(e,r){return s.indexOf(e.role)-s.indexOf(r.role)}i();function E(e,r,t){return y(e,r,t)??T(e,r,t)}function y(e,r,t){let o=t.role;if(!o)return;let n=`No themes on the store ${e} match the role "${o}"`;return m(r,h=>h.role===o).orThrow(n)}function T(e,r,t){return t.themeIdentifiers.flatMap(n=>{let h=`No themes on the store ${e} match the ID or name "${n}"`;return m(r,f=>`${f.id}`===n||f.name.toLowerCase()===n.toLowerCase()?!0:L(f.name.toLowerCase(),n.toLowerCase())).orThrow(h)})}function m(e,r){let t=e.filter(r);return t.length>0?{orThrow:o=>t}:{orThrow:o=>{throw new u(o)}}}var a=class{constructor(r){this.queryProps=r}get role(){for(let r of s)if(this.queryProps[r])return r}get themeIdentifiers(){return[this.queryProps.theme,this.queryProps.themes].flat().filter(t=>!!t)}any(){return Object.values(this.queryProps).some(r=>r?.length!==void 0?r.length>0:!!r)}};function L(e,r){let t=r.replace(/(^\*)|(\*$)/g,"");return r.startsWith("*")&&r.endsWith("*")?e.includes(t):r.startsWith("*")?e.endsWith(t):r.endsWith("*")?e.startsWith(t):!1}export{s as a,A as b,p as c,E as d,a as e};
1
+ import{h as l}from"./chunk-Y7A7Z2V3.js";import{O as c}from"./chunk-AFM3UZQO.js";import{m as u}from"./chunk-2GB3EAD3.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var s=["live","unpublished","development"];async function A(e,r){let t=await c(e,r);return p(t)}async function p(e){let r=e.storeFqdn,t=(await l(e)).filter(d);if(t.length===0)throw new u(`There are no themes in the ${r} store`);return t.sort(w)}function d(e){return s.includes(e.role)}function w(e,r){return s.indexOf(e.role)-s.indexOf(r.role)}i();function E(e,r,t){return y(e,r,t)??T(e,r,t)}function y(e,r,t){let o=t.role;if(!o)return;let n=`No themes on the store ${e} match the role "${o}"`;return m(r,h=>h.role===o).orThrow(n)}function T(e,r,t){return t.themeIdentifiers.flatMap(n=>{let h=`No themes on the store ${e} match the ID or name "${n}"`;return m(r,f=>`${f.id}`===n||f.name.toLowerCase()===n.toLowerCase()?!0:L(f.name.toLowerCase(),n.toLowerCase())).orThrow(h)})}function m(e,r){let t=e.filter(r);return t.length>0?{orThrow:o=>t}:{orThrow:o=>{throw new u(o)}}}var a=class{constructor(r){this.queryProps=r}get role(){for(let r of s)if(this.queryProps[r])return r}get themeIdentifiers(){return[this.queryProps.theme,this.queryProps.themes].flat().filter(t=>!!t)}any(){return Object.values(this.queryProps).some(r=>r?.length!==void 0?r.length>0:!!r)}};function L(e,r){let t=r.replace(/(^\*)|(\*$)/g,"");return r.startsWith("*")&&r.endsWith("*")?e.includes(t):r.startsWith("*")?e.endsWith(t):r.endsWith("*")?e.startsWith(t):!1}export{s as a,A as b,p as c,E as d,a as e};
@@ -1,4 +1,4 @@
1
- import{a as C}from"./chunk-DHU767C3.js";import{a as E}from"./chunk-QG7TELFC.js";import{P as F,Q as _,R as x,ta as R}from"./chunk-NOKCVDYD.js";import{b as I}from"./chunk-2Y6CYLKF.js";import{D as A,v,x as h}from"./chunk-6YCGMS7X.js";import{d as w}from"./chunk-VZKR2YFM.js";import{o as k}from"./chunk-ZTE46E4Z.js";import{a as y}from"./chunk-CTNBSUVU.js";import{e as b,g as l}from"./chunk-VKWPEFWQ.js";l();l();async function P(n){let{developerPlatformClient:e,app:p,remoteApp:s}=n,{extensionIdentifiersBreakdown:a,versionDetails:o}=await F(e,s,n.version),t=_({localApp:p,versionAppModules:o.appModuleVersions,activeAppVersion:await e.activeAppVersion(s)});if(!await x({configExtensionIdentifiersBreakdown:t,extensionIdentifiersBreakdown:a,appTitle:s.title,release:!0,allowUpdates:n.force||n.allowUpdates,allowDeletes:n.force||n.allowDeletes}))throw new k;let m=[{title:"Releasing version",task:async u=>{u.appRelease=await e.release({app:s,version:{versionId:o.uuid,appVersionId:o.id}})}}],{appRelease:{appRelease:i}}=await A(m),f=[{link:{label:o.versionTag??void 0,url:o.location}},o.message?`
1
+ import{a as C}from"./chunk-WDCCITSG.js";import{a as E}from"./chunk-NENUUNWB.js";import{P as F,Q as _,R as x,ta as R}from"./chunk-5HJTCBBV.js";import{b as I}from"./chunk-4TANJ4JK.js";import{D as A,v,x as h}from"./chunk-JX4HSDDG.js";import{d as w}from"./chunk-STCLJWHD.js";import{o as k}from"./chunk-2GB3EAD3.js";import{a as y}from"./chunk-CTNBSUVU.js";import{e as b,g as l}from"./chunk-VKWPEFWQ.js";l();l();async function P(n){let{developerPlatformClient:e,app:p,remoteApp:s}=n,{extensionIdentifiersBreakdown:a,versionDetails:o}=await F(e,s,n.version),t=_({localApp:p,versionAppModules:o.appModuleVersions,activeAppVersion:await e.activeAppVersion(s)});if(!await x({configExtensionIdentifiersBreakdown:t,extensionIdentifiersBreakdown:a,appTitle:s.title,release:!0,allowUpdates:n.force||n.allowUpdates,allowDeletes:n.force||n.allowDeletes}))throw new k;let m=[{title:"Releasing version",task:async u=>{u.appRelease=await e.release({app:s,version:{versionId:o.uuid,appVersionId:o.id}})}}],{appRelease:{appRelease:i}}=await A(m),f=[{link:{label:o.versionTag??void 0,url:o.location}},o.message?`
2
2
  ${o.message}`:""];if(i.userErrors&&i.userErrors.length>0){let u=i.userErrors?.map(T=>T.message).join(", ");h({headline:"Version couldn't be released.",body:[...f,`${f.length>0?`
3
3
 
4
4
  `:""}${u}`]})}else v({headline:"Version released to users.",body:f})}var d=b(y(),1);var g,r=class extends C{async run(){let{flags:e}=await this.parse(g),p=e["client-id"];await w(()=>({cmd_app_reset_used:e.reset}));let s=e["allow-updates"],a=e["allow-deletes"],o=!!(s&&a),t=[];!s&&!a&&t.push("allow-updates"),this.failMissingNonTTYFlags(e,t);let{app:c,remoteApp:m,developerPlatformClient:i}=await R({directory:e.path,clientId:p,forceRelink:e.reset,userProvidedConfigName:e.config});return await P({app:c,remoteApp:m,developerPlatformClient:i,force:o,allowUpdates:s,allowDeletes:a,version:e.version}),{app:c}}};g=r;r.summary="Release an app version.";r.usage="app release --version <version>";r.descriptionWithMarkdown="Releases an existing app version. Pass the name of the version that you want to release using the `--version` flag.";r.description=g.descriptionWithoutMarkdown();r.flags={...I,...E,"allow-updates":d.Flags.boolean({hidden:!1,description:"Allows adding and updating extensions and configuration without requiring user confirmation. Recommended option for CI/CD environments.",env:"SHOPIFY_FLAG_ALLOW_UPDATES"}),"allow-deletes":d.Flags.boolean({hidden:!1,description:"Allows removing extensions and configuration without requiring user confirmation. For CI/CD environments, the recommended flag is --allow-updates.",env:"SHOPIFY_FLAG_ALLOW_DELETES"}),version:d.Flags.string({hidden:!1,description:"The name of the app version to release.",env:"SHOPIFY_FLAG_VERSION",required:!0})};var G=r;export{G as a};
@@ -1,2 +1,2 @@
1
- import{a as B,b as E}from"./chunk-FMTPUYSH.js";import{b as y,c as A,l as C,n as F,o as S,t as x}from"./chunk-JS3X6BDT.js";import{a as D}from"./chunk-DHU767C3.js";import{a as w}from"./chunk-QG7TELFC.js";import{b as O}from"./chunk-2Y6CYLKF.js";import{y as f}from"./chunk-EZ7EBYDT.js";import{u as l,v as k,w as b,x as g}from"./chunk-6YCGMS7X.js";import{Fb as h,Hb as I}from"./chunk-3TFUSDHY.js";import{a as _}from"./chunk-CTNBSUVU.js";import{e as z,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function T(n){let{organization:a,storeFqdn:o,operationId:r,remoteApp:u}=n;l({headline:"Canceling bulk operation.",body:[{list:{items:[`ID: ${r}`,...E({organization:a,remoteApp:u,storeFqdn:o})]}}]});let v=await B(u,o),p=await C({adminSession:v,operationId:r});if(p?.userErrors?.length){F(p.userErrors,"Failed to cancel bulk operation.");return}let i=p?.bulkOperation;if(i){let t=S(i),d=i.status==="CANCELING"?[`This may take a few moments. Check the status with:
1
+ import{a as B,b as E}from"./chunk-5QDM4XIK.js";import{b as y,c as A,l as C,n as F,o as S,t as x}from"./chunk-5INBKZRD.js";import{a as D}from"./chunk-WDCCITSG.js";import{a as w}from"./chunk-NENUUNWB.js";import{b as O}from"./chunk-4TANJ4JK.js";import{y as f}from"./chunk-AFM3UZQO.js";import{u as l,v as k,w as b,x as g}from"./chunk-JX4HSDDG.js";import{Fb as h,Hb as I}from"./chunk-BCZMDFI2.js";import{a as _}from"./chunk-CTNBSUVU.js";import{e as z,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function T(n){let{organization:a,storeFqdn:o,operationId:r,remoteApp:u}=n;l({headline:"Canceling bulk operation.",body:[{list:{items:[`ID: ${r}`,...E({organization:a,remoteApp:u,storeFqdn:o})]}}]});let v=await B(u,o),p=await C({adminSession:v,operationId:r});if(p?.userErrors?.length){F(p.userErrors,"Failed to cancel bulk operation.");return}let i=p?.bulkOperation;if(i){let t=S(i),d=i.status==="CANCELING"?[`This may take a few moments. Check the status with:
2
2
  `,{command:`shopify app bulk status --id=${A(i.id)}`}]:t.body,c={headline:t.headline,...d&&{body:d},...t.customSections&&{customSections:t.customSections}};switch(t.renderType){case"success":k(c);break;case"warning":b(c);break;case"info":l(c);break}}else g({headline:"Bulk operation not found or could not be canceled.",body:I`ID: ${h.yellow(r)}`.value})}var m=z(_(),1);var q,e=class extends D{async run(){let{flags:a}=await this.parse(q),{appContextResult:o,store:r}=await x(a);return await T({organization:o.organization,storeFqdn:r.shopDomain,operationId:y(a.id),remoteApp:o.remoteApp}),{app:o.app}}};q=e;e.summary="Cancel a bulk operation.";e.description="Cancels a running bulk operation by ID.";e.flags={...O,...w,id:m.Flags.string({description:"The bulk operation ID to cancel (numeric ID or full GID).",env:"SHOPIFY_FLAG_ID",required:!0}),store:m.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async n=>f(n)})};var K=e;export{K as a};
@@ -1 +1 @@
1
- import{m as a}from"./chunk-EZ7EBYDT.js";import{m as s}from"./chunk-ZTE46E4Z.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var n={LOCALHOST:"localhost",HTTP:"http",PUBSUB:"google-pub-sub",EVENTBRIDGE:"event-bridge"},p={LOCALHOST:new RegExp("^http:","i"),HTTP:new RegExp("^https:","i"),PUBSUB:new RegExp("^pubsub:"),EVENTBRIDGE:new RegExp("^arn:aws:events:")};function c(t,e){let r=T(t);return r===n.LOCALHOST&&e===n.HTTP?!0:r===e}function l(t){return p.LOCALHOST.test(t)?new URL(t.toLowerCase()).hostname==="localhost":!1}function d(t,e){if(!c(t,e))throw new s(`Can't deliver your webhook payload to this address using '${e}'`,"Use a valid URL for address",f(e));let r=e;return l(t)&&(r=n.LOCALHOST),[t.trim(),r]}function f(t){return t===n.HTTP?["For remote HTTP testing, use a URL that starts with https://","For local HTTP testing, use http://localhost:{port}/{url-path}"]:t===n.PUBSUB?["For Google Pub/Sub, use pubsub://{project-id}:{topic-id}"]:t===n.EVENTBRIDGE?["For Amazon EventBridge, use an Amazon Resource Name (ARN) starting with arn:aws:events:"]:[]}function g(t,e){if(e.includes(t))return t;throw new s(`Api Version '${t}' does not exist`,`Allowed values: ${e.join(", ")}`,["Try again with a valid api-version value"])}function A(t,e,r){if(r.length===0)throw new s(`No topics found for '${e}'`);let o=h(t.trim(),r);if(o===void 0)throw new s(`Topic '${t}' does not exist for ApiVersion '${e}'`,`Allowed values: ${r.join(", ")}`,["Try again with a valid api-version - topic pair"]);return o}function h(t,e){return e.includes(t)?t:e.find(r=>r.toUpperCase().replace("/","_")===t)}function T(t){if(t){if(t.startsWith("pubsub:"))return n.PUBSUB;if(t.startsWith("arn:aws:events:"))return n.EVENTBRIDGE;if(l(t))return n.LOCALHOST;if(p.HTTP.test(t))return n.HTTP}}i();async function O(t,e,r){let{sendSampleWebhook:o}=await t.sendSampleWebhook(e,r);return o}i();async function H(t,e,r){let o={method:"POST",body:e,headers:{"Content-Type":"application/json",...JSON.parse(r)}},u=await a(t,o);return u.status>=200&&u.status<300}i();async function m(t,e){let{publicApiVersions:r}=await t.apiVersions(e),o=r.indexOf("unstable");return o===-1?r.sort().reverse():(r.splice(o,1),r.sort().reverse(),r.push("unstable")),r}export{m as a,O as b,H as c,n as d,c as e,d as f,g,A as h,T as i};
1
+ import{m as a}from"./chunk-AFM3UZQO.js";import{m as s}from"./chunk-2GB3EAD3.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var n={LOCALHOST:"localhost",HTTP:"http",PUBSUB:"google-pub-sub",EVENTBRIDGE:"event-bridge"},p={LOCALHOST:new RegExp("^http:","i"),HTTP:new RegExp("^https:","i"),PUBSUB:new RegExp("^pubsub:"),EVENTBRIDGE:new RegExp("^arn:aws:events:")};function c(t,e){let r=T(t);return r===n.LOCALHOST&&e===n.HTTP?!0:r===e}function l(t){return p.LOCALHOST.test(t)?new URL(t.toLowerCase()).hostname==="localhost":!1}function d(t,e){if(!c(t,e))throw new s(`Can't deliver your webhook payload to this address using '${e}'`,"Use a valid URL for address",f(e));let r=e;return l(t)&&(r=n.LOCALHOST),[t.trim(),r]}function f(t){return t===n.HTTP?["For remote HTTP testing, use a URL that starts with https://","For local HTTP testing, use http://localhost:{port}/{url-path}"]:t===n.PUBSUB?["For Google Pub/Sub, use pubsub://{project-id}:{topic-id}"]:t===n.EVENTBRIDGE?["For Amazon EventBridge, use an Amazon Resource Name (ARN) starting with arn:aws:events:"]:[]}function g(t,e){if(e.includes(t))return t;throw new s(`Api Version '${t}' does not exist`,`Allowed values: ${e.join(", ")}`,["Try again with a valid api-version value"])}function A(t,e,r){if(r.length===0)throw new s(`No topics found for '${e}'`);let o=h(t.trim(),r);if(o===void 0)throw new s(`Topic '${t}' does not exist for ApiVersion '${e}'`,`Allowed values: ${r.join(", ")}`,["Try again with a valid api-version - topic pair"]);return o}function h(t,e){return e.includes(t)?t:e.find(r=>r.toUpperCase().replace("/","_")===t)}function T(t){if(t){if(t.startsWith("pubsub:"))return n.PUBSUB;if(t.startsWith("arn:aws:events:"))return n.EVENTBRIDGE;if(l(t))return n.LOCALHOST;if(p.HTTP.test(t))return n.HTTP}}i();async function O(t,e,r){let{sendSampleWebhook:o}=await t.sendSampleWebhook(e,r);return o}i();async function H(t,e,r){let o={method:"POST",body:e,headers:{"Content-Type":"application/json",...JSON.parse(r)}},u=await a(t,o);return u.status>=200&&u.status<300}i();async function m(t,e){let{publicApiVersions:r}=await t.apiVersions(e),o=r.indexOf("unstable");return o===-1?r.sort().reverse():(r.splice(o,1),r.sort().reverse(),r.push("unstable")),r}export{m as a,O as b,H as c,n as d,c as e,d as f,g,A as h,T as i};
@@ -1,4 +1,4 @@
1
- import{p as R,v as G}from"./chunk-Z5DDPQ26.js";import{$ as re,aa as j}from"./chunk-DODCPRXT.js";import{b as E}from"./chunk-2Y6CYLKF.js";import{r as T}from"./chunk-G7QW5OSQ.js";import{u as F,v as L}from"./chunk-6YCGMS7X.js";import{$a as N,Lb as l,Mb as P,N as S,Nb as C,Pb as $,Ta as A,ua as I}from"./chunk-3TFUSDHY.js";import{d as w,p as b}from"./chunk-773TIA5M.js";import{a as ne}from"./chunk-CTNBSUVU.js";import{e as O,g as k}from"./chunk-VKWPEFWQ.js";k();k();var i=O(j(),1),y=O(re(),1);function oe(t){switch(t){case"error":return i.Severity.ERROR;case"suggestion":case"warning":return i.Severity.WARNING;case"style":case"info":return i.Severity.INFO;case"crash":return}}function U(t){switch(t){case i.Severity.ERROR:return"error";case i.Severity.WARNING:return"warning";case i.Severity.INFO:return"info"}}function ie(t){return new Map(t.map(e=>[e.uri,e.source]))}function se(t,e,r){let o=t.split(`
1
+ import{p as R,v as G}from"./chunk-445NFHXL.js";import{$ as re,aa as j}from"./chunk-7L5AIZOP.js";import{b as E}from"./chunk-4TANJ4JK.js";import{r as T}from"./chunk-CELVG4AL.js";import{u as F,v as L}from"./chunk-JX4HSDDG.js";import{$a as N,Lb as l,Mb as P,N as S,Nb as C,Pb as $,Ta as A,ua as I}from"./chunk-BCZMDFI2.js";import{d as w,p as b}from"./chunk-773TIA5M.js";import{a as ne}from"./chunk-CTNBSUVU.js";import{e as O,g as k}from"./chunk-VKWPEFWQ.js";k();k();var i=O(j(),1),y=O(re(),1);function oe(t){switch(t){case"error":return i.Severity.ERROR;case"suggestion":case"warning":return i.Severity.WARNING;case"style":case"info":return i.Severity.INFO;case"crash":return}}function U(t){switch(t){case i.Severity.ERROR:return"error";case i.Severity.WARNING:return"warning";case i.Severity.INFO:return"info"}}function ie(t){return new Map(t.map(e=>[e.uri,e.source]))}function se(t,e,r){let o=t.split(`
2
2
  `).slice(e,r+1),s=o.length===1;return o.map((c,a)=>{let u=e+a+1,h=s?c.trim():c;return`${u} ${h}`}).join(`
3
3
  `)}function ce(t){switch(t){case i.Severity.ERROR:return{error:`
4
4
  [error]:`};case i.Severity.WARNING:return{warn:`
@@ -1 +1 @@
1
- import{a as b}from"./chunk-DHU767C3.js";import{a as k}from"./chunk-QG7TELFC.js";import{Z as x,ta as N}from"./chunk-NOKCVDYD.js";import{b as C,c as R}from"./chunk-2Y6CYLKF.js";import{C as y}from"./chunk-6YCGMS7X.js";import{m as v}from"./chunk-ZTE46E4Z.js";import{Fb as w,Hb as E,Lb as L,Mb as m,Vb as T,ba as h}from"./chunk-3TFUSDHY.js";import{u as A}from"./chunk-A4SBXDZB.js";import{j as u}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();l();var M=12;async function S(p,t,o){let n=await p.appVersions(t);if(!n.app)throw new v(`Invalid API Key: ${t.apiKey}`);let a=n.app.appVersions.nodes.map(e=>{let r=e.message??"";return{...e,status:e.status==="active"&&!o?A.green(`\u2605 ${e.status}`):e.status,createdBy:e.createdBy?.displayName??"",createdAt:h(new Date(e.createdAt)),message:r}});if(!o){let e=(process.stdout.columns??75)-M,r=e;a.forEach(s=>{let f=s.message.length+(s.versionTag?.length??0)+T(s.status).length+s.createdAt.length+s.createdBy.length;if(f>e){let I=f-s.message.length,g=Math.max(e-I,10);g<r&&(r=g)}}),a.forEach(s=>{s.message.length>r&&(s.message=`${s.message.slice(0,r-3)}...`)})}return{appVersions:a,totalResults:n.app.appVersions.pageInfo.totalResults,app:n.app}}async function c(p){let{remoteApp:t,developerPlatformClient:o,organization:n}=p,{appVersions:a,totalResults:e}=await S(o,t,p.json);if(p.json)return L(JSON.stringify(a,null,2));if(x({org:n.businessName,appName:t.title,configFile:u(p.app.configPath)}),a.length===0){m("No app versions found for this app");return}y({rows:a,columns:{versionTag:{header:"VERSION"},status:{header:"STATUS"},message:{header:"MESSAGE"},createdAt:{header:"DATE CREATED"},createdBy:{header:"CREATED BY"}}});let r=w.link(o.webUiName,[await o.appDeepLink(t),"versions"].join("/"));m(E`\nView all ${String(e)} app versions in the ${r}`)}var d,i=class extends b{async run(){let{flags:t}=await this.parse(d),{app:o,remoteApp:n,developerPlatformClient:a,organization:e}=await N({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});return await c({app:o,remoteApp:n,organization:e,developerPlatformClient:a,json:t.json}),{app:o}}};d=i;i.summary="List deployed versions of your app.";i.descriptionWithMarkdown="Lists the deployed app versions. An app version is a snapshot of your app extensions.";i.description=d.descriptionWithoutMarkdown();i.flags={...C,...k,...R};var J=i;export{J as a};
1
+ import{a as b}from"./chunk-WDCCITSG.js";import{a as k}from"./chunk-NENUUNWB.js";import{Z as x,ta as N}from"./chunk-5HJTCBBV.js";import{b as C,c as R}from"./chunk-4TANJ4JK.js";import{C as y}from"./chunk-JX4HSDDG.js";import{m as v}from"./chunk-2GB3EAD3.js";import{Fb as w,Hb as E,Lb as L,Mb as m,Vb as T,ba as h}from"./chunk-BCZMDFI2.js";import{u as A}from"./chunk-A4SBXDZB.js";import{j as u}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();l();var M=12;async function S(p,t,o){let n=await p.appVersions(t);if(!n.app)throw new v(`Invalid API Key: ${t.apiKey}`);let a=n.app.appVersions.nodes.map(e=>{let r=e.message??"";return{...e,status:e.status==="active"&&!o?A.green(`\u2605 ${e.status}`):e.status,createdBy:e.createdBy?.displayName??"",createdAt:h(new Date(e.createdAt)),message:r}});if(!o){let e=(process.stdout.columns??75)-M,r=e;a.forEach(s=>{let f=s.message.length+(s.versionTag?.length??0)+T(s.status).length+s.createdAt.length+s.createdBy.length;if(f>e){let I=f-s.message.length,g=Math.max(e-I,10);g<r&&(r=g)}}),a.forEach(s=>{s.message.length>r&&(s.message=`${s.message.slice(0,r-3)}...`)})}return{appVersions:a,totalResults:n.app.appVersions.pageInfo.totalResults,app:n.app}}async function c(p){let{remoteApp:t,developerPlatformClient:o,organization:n}=p,{appVersions:a,totalResults:e}=await S(o,t,p.json);if(p.json)return L(JSON.stringify(a,null,2));if(x({org:n.businessName,appName:t.title,configFile:u(p.app.configPath)}),a.length===0){m("No app versions found for this app");return}y({rows:a,columns:{versionTag:{header:"VERSION"},status:{header:"STATUS"},message:{header:"MESSAGE"},createdAt:{header:"DATE CREATED"},createdBy:{header:"CREATED BY"}}});let r=w.link(o.webUiName,[await o.appDeepLink(t),"versions"].join("/"));m(E`\nView all ${String(e)} app versions in the ${r}`)}var d,i=class extends b{async run(){let{flags:t}=await this.parse(d),{app:o,remoteApp:n,developerPlatformClient:a,organization:e}=await N({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});return await c({app:o,remoteApp:n,organization:e,developerPlatformClient:a,json:t.json}),{app:o}}};d=i;i.summary="List deployed versions of your app.";i.descriptionWithMarkdown="Lists the deployed app versions. An app version is a snapshot of your app extensions.";i.description=d.descriptionWithoutMarkdown();i.flags={...C,...k,...R};var J=i;export{J as a};
@@ -1,4 +1,4 @@
1
- import{a as Ea,b as Sa}from"./chunk-EJDWYASP.js";import{a as bn}from"./chunk-RJ5VF3QY.js";import{a as ya}from"./chunk-7UNQOKZW.js";import{a as wa}from"./chunk-GB3YC4TI.js";import{a as wt}from"./chunk-B6SY4BIK.js";import{f as Ne}from"./chunk-VZKR2YFM.js";import{m as qe,n as Et,o as wn,p as En,t as Sn}from"./chunk-ZTE46E4Z.js";import{C as ca,Db as yn,E as ua,F as fa,Fb as Tn,H as ma,Hb as St,J as da,Pb as Ie,T as un,Vb as Ge,Wb as ke,a as ea,eb as N,f as ra,fb as g,gb as y,hb as sr,ib as mn,jb as xt,kb as fe,l as na,lb as dn,m as oa,mb as De,nb as yt,ob as pn,pb as ar,rb as ha,sb as ga,t as ir,tb as hn,u as ia,ub as Be,vb as $e,wb as gn,xb as V,y as aa,z as la}from"./chunk-3TFUSDHY.js";import{e as ta,g as sa,j as pa,l as fn,u as Ue}from"./chunk-A4SBXDZB.js";import{f as nt,n as vn}from"./chunk-J3IHP46B.js";import{a as or}from"./chunk-UKQ7NE5V.js";import{b as an,i as ln,q as cn}from"./chunk-773TIA5M.js";import{a as xn}from"./chunk-636CTEW7.js";import{j as ba}from"./chunk-TR4OWSEX.js";import{a as xa}from"./chunk-TOLPNBZK.js";import{a as ue,c as k,e as D,g as u}from"./chunk-VKWPEFWQ.js";var Dn=k((Hu,Ln)=>{u();Ln.exports=Rn;Rn.sync=Ta;var Cn=ue("fs");function va(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}function An(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:va(t,r)}function Rn(e,t,r){Cn.stat(e,function(n,o){r(n,n?!1:An(o,e,t))})}function Ta(e,t){return An(Cn.statSync(e),e,t)}});var In=k((Wu,Bn)=>{u();Bn.exports=Mn;Mn.sync=Ca;var kn=ue("fs");function Mn(e,t,r){kn.stat(e,function(n,o){r(n,n?!1:_n(o,t))})}function Ca(e,t){return _n(kn.statSync(e),t)}function _n(e,t){return e.isFile()&&Aa(e,t)}function Aa(e,t){var r=e.mode,n=e.uid,o=e.gid,i=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),s=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),f=parseInt("100",8),m=parseInt("010",8),d=parseInt("001",8),p=f|m,b=r&d||r&m&&o===s||r&f&&n===i||r&p&&i===0;return b}});var On=k((Xu,Pn)=>{u();var Vu=ue("fs"),vt;process.platform==="win32"||global.TESTING_WINDOWS?vt=Dn():vt=In();Pn.exports=lr;lr.sync=Ra;function lr(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,o){lr(e,t||{},function(i,s){i?o(i):n(s)})})}vt(e,t||{},function(n,o){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,o=!1),r(n,o)})}function Ra(e,t){try{return vt.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Hn=k((Yu,Gn)=>{u();var He=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Fn=ue("path"),La=He?";":":",Un=On(),$n=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Nn=(e,t)=>{let r=t.colon||La,n=e.match(/\//)||He&&e.match(/\\/)?[""]:[...He?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=He?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=He?o.split(r):[""];return He&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},qn=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:o,pathExtExe:i}=Nn(e,t),s=[],f=d=>new Promise((p,b)=>{if(d===n.length)return t.all&&s.length?p(s):b($n(e));let S=n[d],v=/^".*"$/.test(S)?S.slice(1,-1):S,w=Fn.join(v,e),A=!v&&/^\.[\\\/]/.test(e)?e.slice(0,2)+w:w;p(m(A,d,0))}),m=(d,p,b)=>new Promise((S,v)=>{if(b===o.length)return S(f(p+1));let w=o[b];Un(d+w,{pathExt:i},(A,C)=>{if(!A&&C)if(t.all)s.push(d+w);else return S(d+w);return S(m(d,p,b+1))})});return r?f(0).then(d=>r(null,d),r):f(0)},Da=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:o}=Nn(e,t),i=[];for(let s=0;s<r.length;s++){let f=r[s],m=/^".*"$/.test(f)?f.slice(1,-1):f,d=Fn.join(m,e),p=!m&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let b=0;b<n.length;b++){let S=p+n[b];try{if(Un.sync(S,{pathExt:o}))if(t.all)i.push(S);else return S}catch{}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw $n(e)};Gn.exports=qn;qn.sync=Da});var Wn=k((Qu,cr)=>{"use strict";u();var jn=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};cr.exports=jn;cr.exports.default=jn});var Kn=k((ef,Xn)=>{"use strict";u();var zn=ue("path"),ka=Hn(),Ma=Wn();function Vn(e,t){let r=e.options.env||process.env,n=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let s;try{s=ka.sync(e.command,{path:r[Ma({env:r})],pathExt:t?zn.delimiter:void 0})}catch{}finally{i&&process.chdir(n)}return s&&(s=zn.resolve(o?e.options.cwd:"",s)),s}function _a(e){return Vn(e)||Vn(e,!0)}Xn.exports=_a});var Yn=k((rf,fr)=>{"use strict";u();var ur=/([()\][%!^"`<>&|;, *?])/g;function Ba(e){return e=e.replace(ur,"^$1"),e}function Ia(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(ur,"^$1"),t&&(e=e.replace(ur,"^$1")),e}fr.exports.command=Ba;fr.exports.argument=Ia});var Qn=k((of,Zn)=>{"use strict";u();Zn.exports=/^#!(.*)/});var eo=k((af,Jn)=>{"use strict";u();var Pa=Qn();Jn.exports=(e="")=>{let t=e.match(Pa);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o}});var ro=k((cf,to)=>{"use strict";u();var mr=ue("fs"),Oa=eo();function Fa(e){let r=Buffer.alloc(150),n;try{n=mr.openSync(e,"r"),mr.readSync(n,r,0,150,0),mr.closeSync(n)}catch{}return Oa(r.toString())}to.exports=Fa});var so=k((ff,io)=>{"use strict";u();var Ua=ue("path"),no=Kn(),oo=Yn(),$a=ro(),Na=process.platform==="win32",qa=/\.(?:com|exe)$/i,Ga=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ha(e){e.file=no(e);let t=e.file&&$a(e.file);return t?(e.args.unshift(e.file),e.command=t,no(e)):e.file}function ja(e){if(!Na)return e;let t=Ha(e),r=!qa.test(t);if(e.options.forceShell||r){let n=Ga.test(t);e.command=Ua.normalize(e.command),e.command=oo.command(e.command),e.args=e.args.map(i=>oo.argument(i,n));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function Wa(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:ja(n)}io.exports=Wa});var co=k((df,lo)=>{"use strict";u();var dr=process.platform==="win32";function pr(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function za(e,t){if(!dr)return;let r=e.emit;e.emit=function(n,o){if(n==="exit"){let i=ao(o,t);if(i)return r.call(e,"error",i)}return r.apply(e,arguments)}}function ao(e,t){return dr&&e===1&&!t.file?pr(t.original,"spawn"):null}function Va(e,t){return dr&&e===1&&!t.file?pr(t.original,"spawnSync"):null}lo.exports={hookChildProcess:za,verifyENOENT:ao,verifyENOENTSync:Va,notFoundError:pr}});var mo=k((hf,je)=>{"use strict";u();var uo=ue("child_process"),hr=so(),gr=co();function fo(e,t,r){let n=hr(e,t,r),o=uo.spawn(n.command,n.args,n.options);return gr.hookChildProcess(o,n),o}function Xa(e,t,r){let n=hr(e,t,r),o=uo.spawnSync(n.command,n.args,n.options);return o.error=o.error||gr.verifyENOENTSync(o.status,n),o}je.exports=fo;je.exports.spawn=fo;je.exports.sync=Xa;je.exports._parse=hr;je.exports._enoent=gr});var ko=k((Qf,Do)=>{"use strict";u();var{PassThrough:bl}=ue("stream");Do.exports=function(){var e=[],t=new bl({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(r),t;function r(i){return Array.isArray(i)?(i.forEach(r),this):(e.push(i),i.once("end",o.bind(null,i)),i.once("error",t.emit.bind(t,"error")),i.pipe(t,{end:!1}),this)}function n(){return e.length==0}function o(i){e=e.filter(function(s){return s!==i}),!e.length&&t.readable&&t.end()}}});var Jo=k((cd,Qo)=>{u();var{EventEmitter:Ql}=ue("events"),Dt=class{constructor(){this.eventEmitter=new Ql,this.onabort=null,this.aborted=!1,this.reason=void 0}toString(){return"[object AbortSignal]"}get[Symbol.toStringTag](){return"AbortSignal"}removeEventListener(t,r){this.eventEmitter.removeListener(t,r)}addEventListener(t,r){this.eventEmitter.on(t,r)}dispatchEvent(t){let r={type:t,target:this},n=`on${t}`;typeof this[n]=="function"&&this[n](r),this.eventEmitter.emit(t,r)}throwIfAborted(){if(this.aborted)throw this.reason}static abort(t){let r=new st;return r.abort(),r.signal}static timeout(t){let r=new st;return setTimeout(()=>r.abort(new Error("TimeoutError")),t),r.signal}},st=class{constructor(){this.signal=new Dt}abort(t){this.signal.aborted||(this.signal.aborted=!0,t?this.signal.reason=t:this.signal.reason=new Error("AbortError"),this.signal.dispatchEvent("abort"))}toString(){return"[object AbortController]"}get[Symbol.toStringTag](){return"AbortController"}};Qo.exports={AbortController:st,AbortSignal:Dt}});var ui=k((fp,ci)=>{"use strict";u();ci.exports=class ye{constructor(t){try{t(r=>{this.setValue(r,!1)},r=>{this.setValue(r,!0)})}catch(r){this.setValue(r,!0)}}setValue(t,r){this.val=t instanceof ye?t.val:t,this.rejected=r||(t instanceof ye?t.rejected:!1)}static valueFrom(t){if(t instanceof ye){if(t.rejected)throw t.val;return t.val}else return t}then(t){try{if(!this.rejected)return ye.resolve(t(this.val))}catch(r){return ye.reject(r)}return this}catch(t){try{if(this.rejected)return ye.resolve(t(this.val))}catch(r){return ye.reject(r)}return this}static resolve(t){return new ye(r=>{r(t)})}static reject(t){return new ye((r,n)=>{n(t)})}}});var di=k((dp,mi)=>{"use strict";u();var fi=typeof window<"u"&&window.window===window&&window.navigator,hc=fi?window.location.href:process.cwd(),gc=new RegExp("^((https|http)://)?[a-z0-9A-Z]{3}.[a-z0-9A-Z][a-z0-9A-Z]{0,61}?[a-z0-9A-Z].com|net|cn|cc (:s[0-9]{1-4})?/$"),Ce=mi.exports={concat(e,t){let r=e[e.length-1]==="/",n=t[0]==="/";return e+(r||n?"":"/")+(r&&n?t.substring(1):t)},resolve(e){return Ce.isAbsolute(e)?Ce.normalize(e):Ce.normalize(Ce.concat(hc,e))},normalize(e){let t=[],r=0;e.split("/").reverse().filter(o=>o!==".").forEach(o=>{o===".."?r++:r===0?t.push(o):r--});let n=t.reverse().join("/");return(fi&&n[0]==="/"?n[1]==="/"?window.location.protocol:window.location.origin:"")+n},isData:e=>e.indexOf("data:")===0,isURL:e=>gc.test(e),isAbsolute:e=>e[0]==="/"||/^[^\/]*:/.test(e),relativeToFile(e,t){return Ce.isData(e)||Ce.isAbsolute(t)?Ce.normalize(t):Ce.normalize(Ce.concat(e.split("/").slice(0,-1).join("/"),t))}}});var hi=k((hp,pi)=>{"use strict";u();pi.exports=bc;function bc(e){if(!/^data\:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");var t=e.indexOf(",");if(t===-1||t<=4)throw new TypeError("malformed data: URI");for(var r=e.substring(5,t).split(";"),n=r[0]||"text/plain",o=n,i=!1,s="",f=1;f<r.length;f++)r[f]=="base64"?i=!0:(o+=";"+r[f],r[f].indexOf("charset=")==0&&(s=r[f].substring(8)));!r[0]&&!s.length&&(o+=";charset=US-ASCII",s="US-ASCII");var m=unescape(e.substring(t+1)),d=i?"base64":"ascii",p=Buffer.from?Buffer.from(m,d):new Buffer(m,d);return p.type=n,p.typeFull=o,p.charset=s,p}});var yi=k((bp,$t)=>{"use strict";u();var{assign:We}=Object,Pr=typeof window<"u"&&window.window===window&&window.navigator,xc=xa().SourceMapConsumer,Ut=ui(),Ir=di(),yc=hi(),bi=Pr?null:$t.require,gi=e=>{let t=r=>r in t.cache?t.cache[r]:t.cache[r]=e(r);return t.forgetEverything=()=>{t.cache=Object.create(null)},t.cache=Object.create(null),t};function xi(e,t){let r=t?Ut:Promise,n=gi(f=>o(f,e(f)));function o(f,m){return m===void 0?n(Ir.resolve(f)):r.resolve(m).then(d=>{let p,b,S,v=w=>(S=S||i(p))(w);return p={path:f,text:d,get lines(){return b=b||d.split(`
1
+ import{a as Ea,b as Sa}from"./chunk-EJDWYASP.js";import{a as bn}from"./chunk-RJ5VF3QY.js";import{a as ya}from"./chunk-7UNQOKZW.js";import{a as wa}from"./chunk-GB3YC4TI.js";import{a as wt}from"./chunk-W2357IN2.js";import{f as Ne}from"./chunk-STCLJWHD.js";import{m as qe,n as Et,o as wn,p as En,t as Sn}from"./chunk-2GB3EAD3.js";import{C as ca,Db as yn,E as ua,F as fa,Fb as Tn,H as ma,Hb as St,J as da,Pb as Ie,T as un,Vb as Ge,Wb as ke,a as ea,eb as N,f as ra,fb as g,gb as y,hb as sr,ib as mn,jb as xt,kb as fe,l as na,lb as dn,m as oa,mb as De,nb as yt,ob as pn,pb as ar,rb as ha,sb as ga,t as ir,tb as hn,u as ia,ub as Be,vb as $e,wb as gn,xb as V,y as aa,z as la}from"./chunk-BCZMDFI2.js";import{e as ta,g as sa,j as pa,l as fn,u as Ue}from"./chunk-A4SBXDZB.js";import{f as nt,n as vn}from"./chunk-EQNJ2NQD.js";import{a as or}from"./chunk-UKQ7NE5V.js";import{b as an,i as ln,q as cn}from"./chunk-773TIA5M.js";import{a as xn}from"./chunk-636CTEW7.js";import{j as ba}from"./chunk-TR4OWSEX.js";import{a as xa}from"./chunk-TOLPNBZK.js";import{a as ue,c as k,e as D,g as u}from"./chunk-VKWPEFWQ.js";var Dn=k((Hu,Ln)=>{u();Ln.exports=Rn;Rn.sync=Ta;var Cn=ue("fs");function va(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}function An(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:va(t,r)}function Rn(e,t,r){Cn.stat(e,function(n,o){r(n,n?!1:An(o,e,t))})}function Ta(e,t){return An(Cn.statSync(e),e,t)}});var In=k((Wu,Bn)=>{u();Bn.exports=Mn;Mn.sync=Ca;var kn=ue("fs");function Mn(e,t,r){kn.stat(e,function(n,o){r(n,n?!1:_n(o,t))})}function Ca(e,t){return _n(kn.statSync(e),t)}function _n(e,t){return e.isFile()&&Aa(e,t)}function Aa(e,t){var r=e.mode,n=e.uid,o=e.gid,i=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),s=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),f=parseInt("100",8),m=parseInt("010",8),d=parseInt("001",8),p=f|m,b=r&d||r&m&&o===s||r&f&&n===i||r&p&&i===0;return b}});var On=k((Xu,Pn)=>{u();var Vu=ue("fs"),vt;process.platform==="win32"||global.TESTING_WINDOWS?vt=Dn():vt=In();Pn.exports=lr;lr.sync=Ra;function lr(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,o){lr(e,t||{},function(i,s){i?o(i):n(s)})})}vt(e,t||{},function(n,o){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,o=!1),r(n,o)})}function Ra(e,t){try{return vt.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Hn=k((Yu,Gn)=>{u();var He=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Fn=ue("path"),La=He?";":":",Un=On(),$n=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Nn=(e,t)=>{let r=t.colon||La,n=e.match(/\//)||He&&e.match(/\\/)?[""]:[...He?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=He?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=He?o.split(r):[""];return He&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},qn=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:o,pathExtExe:i}=Nn(e,t),s=[],f=d=>new Promise((p,b)=>{if(d===n.length)return t.all&&s.length?p(s):b($n(e));let S=n[d],v=/^".*"$/.test(S)?S.slice(1,-1):S,w=Fn.join(v,e),A=!v&&/^\.[\\\/]/.test(e)?e.slice(0,2)+w:w;p(m(A,d,0))}),m=(d,p,b)=>new Promise((S,v)=>{if(b===o.length)return S(f(p+1));let w=o[b];Un(d+w,{pathExt:i},(A,C)=>{if(!A&&C)if(t.all)s.push(d+w);else return S(d+w);return S(m(d,p,b+1))})});return r?f(0).then(d=>r(null,d),r):f(0)},Da=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:o}=Nn(e,t),i=[];for(let s=0;s<r.length;s++){let f=r[s],m=/^".*"$/.test(f)?f.slice(1,-1):f,d=Fn.join(m,e),p=!m&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let b=0;b<n.length;b++){let S=p+n[b];try{if(Un.sync(S,{pathExt:o}))if(t.all)i.push(S);else return S}catch{}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw $n(e)};Gn.exports=qn;qn.sync=Da});var Wn=k((Qu,cr)=>{"use strict";u();var jn=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};cr.exports=jn;cr.exports.default=jn});var Kn=k((ef,Xn)=>{"use strict";u();var zn=ue("path"),ka=Hn(),Ma=Wn();function Vn(e,t){let r=e.options.env||process.env,n=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let s;try{s=ka.sync(e.command,{path:r[Ma({env:r})],pathExt:t?zn.delimiter:void 0})}catch{}finally{i&&process.chdir(n)}return s&&(s=zn.resolve(o?e.options.cwd:"",s)),s}function _a(e){return Vn(e)||Vn(e,!0)}Xn.exports=_a});var Yn=k((rf,fr)=>{"use strict";u();var ur=/([()\][%!^"`<>&|;, *?])/g;function Ba(e){return e=e.replace(ur,"^$1"),e}function Ia(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(ur,"^$1"),t&&(e=e.replace(ur,"^$1")),e}fr.exports.command=Ba;fr.exports.argument=Ia});var Qn=k((of,Zn)=>{"use strict";u();Zn.exports=/^#!(.*)/});var eo=k((af,Jn)=>{"use strict";u();var Pa=Qn();Jn.exports=(e="")=>{let t=e.match(Pa);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o}});var ro=k((cf,to)=>{"use strict";u();var mr=ue("fs"),Oa=eo();function Fa(e){let r=Buffer.alloc(150),n;try{n=mr.openSync(e,"r"),mr.readSync(n,r,0,150,0),mr.closeSync(n)}catch{}return Oa(r.toString())}to.exports=Fa});var so=k((ff,io)=>{"use strict";u();var Ua=ue("path"),no=Kn(),oo=Yn(),$a=ro(),Na=process.platform==="win32",qa=/\.(?:com|exe)$/i,Ga=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ha(e){e.file=no(e);let t=e.file&&$a(e.file);return t?(e.args.unshift(e.file),e.command=t,no(e)):e.file}function ja(e){if(!Na)return e;let t=Ha(e),r=!qa.test(t);if(e.options.forceShell||r){let n=Ga.test(t);e.command=Ua.normalize(e.command),e.command=oo.command(e.command),e.args=e.args.map(i=>oo.argument(i,n));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function Wa(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:ja(n)}io.exports=Wa});var co=k((df,lo)=>{"use strict";u();var dr=process.platform==="win32";function pr(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function za(e,t){if(!dr)return;let r=e.emit;e.emit=function(n,o){if(n==="exit"){let i=ao(o,t);if(i)return r.call(e,"error",i)}return r.apply(e,arguments)}}function ao(e,t){return dr&&e===1&&!t.file?pr(t.original,"spawn"):null}function Va(e,t){return dr&&e===1&&!t.file?pr(t.original,"spawnSync"):null}lo.exports={hookChildProcess:za,verifyENOENT:ao,verifyENOENTSync:Va,notFoundError:pr}});var mo=k((hf,je)=>{"use strict";u();var uo=ue("child_process"),hr=so(),gr=co();function fo(e,t,r){let n=hr(e,t,r),o=uo.spawn(n.command,n.args,n.options);return gr.hookChildProcess(o,n),o}function Xa(e,t,r){let n=hr(e,t,r),o=uo.spawnSync(n.command,n.args,n.options);return o.error=o.error||gr.verifyENOENTSync(o.status,n),o}je.exports=fo;je.exports.spawn=fo;je.exports.sync=Xa;je.exports._parse=hr;je.exports._enoent=gr});var ko=k((Qf,Do)=>{"use strict";u();var{PassThrough:bl}=ue("stream");Do.exports=function(){var e=[],t=new bl({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(r),t;function r(i){return Array.isArray(i)?(i.forEach(r),this):(e.push(i),i.once("end",o.bind(null,i)),i.once("error",t.emit.bind(t,"error")),i.pipe(t,{end:!1}),this)}function n(){return e.length==0}function o(i){e=e.filter(function(s){return s!==i}),!e.length&&t.readable&&t.end()}}});var Jo=k((cd,Qo)=>{u();var{EventEmitter:Ql}=ue("events"),Dt=class{constructor(){this.eventEmitter=new Ql,this.onabort=null,this.aborted=!1,this.reason=void 0}toString(){return"[object AbortSignal]"}get[Symbol.toStringTag](){return"AbortSignal"}removeEventListener(t,r){this.eventEmitter.removeListener(t,r)}addEventListener(t,r){this.eventEmitter.on(t,r)}dispatchEvent(t){let r={type:t,target:this},n=`on${t}`;typeof this[n]=="function"&&this[n](r),this.eventEmitter.emit(t,r)}throwIfAborted(){if(this.aborted)throw this.reason}static abort(t){let r=new st;return r.abort(),r.signal}static timeout(t){let r=new st;return setTimeout(()=>r.abort(new Error("TimeoutError")),t),r.signal}},st=class{constructor(){this.signal=new Dt}abort(t){this.signal.aborted||(this.signal.aborted=!0,t?this.signal.reason=t:this.signal.reason=new Error("AbortError"),this.signal.dispatchEvent("abort"))}toString(){return"[object AbortController]"}get[Symbol.toStringTag](){return"AbortController"}};Qo.exports={AbortController:st,AbortSignal:Dt}});var ui=k((fp,ci)=>{"use strict";u();ci.exports=class ye{constructor(t){try{t(r=>{this.setValue(r,!1)},r=>{this.setValue(r,!0)})}catch(r){this.setValue(r,!0)}}setValue(t,r){this.val=t instanceof ye?t.val:t,this.rejected=r||(t instanceof ye?t.rejected:!1)}static valueFrom(t){if(t instanceof ye){if(t.rejected)throw t.val;return t.val}else return t}then(t){try{if(!this.rejected)return ye.resolve(t(this.val))}catch(r){return ye.reject(r)}return this}catch(t){try{if(this.rejected)return ye.resolve(t(this.val))}catch(r){return ye.reject(r)}return this}static resolve(t){return new ye(r=>{r(t)})}static reject(t){return new ye((r,n)=>{n(t)})}}});var di=k((dp,mi)=>{"use strict";u();var fi=typeof window<"u"&&window.window===window&&window.navigator,hc=fi?window.location.href:process.cwd(),gc=new RegExp("^((https|http)://)?[a-z0-9A-Z]{3}.[a-z0-9A-Z][a-z0-9A-Z]{0,61}?[a-z0-9A-Z].com|net|cn|cc (:s[0-9]{1-4})?/$"),Ce=mi.exports={concat(e,t){let r=e[e.length-1]==="/",n=t[0]==="/";return e+(r||n?"":"/")+(r&&n?t.substring(1):t)},resolve(e){return Ce.isAbsolute(e)?Ce.normalize(e):Ce.normalize(Ce.concat(hc,e))},normalize(e){let t=[],r=0;e.split("/").reverse().filter(o=>o!==".").forEach(o=>{o===".."?r++:r===0?t.push(o):r--});let n=t.reverse().join("/");return(fi&&n[0]==="/"?n[1]==="/"?window.location.protocol:window.location.origin:"")+n},isData:e=>e.indexOf("data:")===0,isURL:e=>gc.test(e),isAbsolute:e=>e[0]==="/"||/^[^\/]*:/.test(e),relativeToFile(e,t){return Ce.isData(e)||Ce.isAbsolute(t)?Ce.normalize(t):Ce.normalize(Ce.concat(e.split("/").slice(0,-1).join("/"),t))}}});var hi=k((hp,pi)=>{"use strict";u();pi.exports=bc;function bc(e){if(!/^data\:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");var t=e.indexOf(",");if(t===-1||t<=4)throw new TypeError("malformed data: URI");for(var r=e.substring(5,t).split(";"),n=r[0]||"text/plain",o=n,i=!1,s="",f=1;f<r.length;f++)r[f]=="base64"?i=!0:(o+=";"+r[f],r[f].indexOf("charset=")==0&&(s=r[f].substring(8)));!r[0]&&!s.length&&(o+=";charset=US-ASCII",s="US-ASCII");var m=unescape(e.substring(t+1)),d=i?"base64":"ascii",p=Buffer.from?Buffer.from(m,d):new Buffer(m,d);return p.type=n,p.typeFull=o,p.charset=s,p}});var yi=k((bp,$t)=>{"use strict";u();var{assign:We}=Object,Pr=typeof window<"u"&&window.window===window&&window.navigator,xc=xa().SourceMapConsumer,Ut=ui(),Ir=di(),yc=hi(),bi=Pr?null:$t.require,gi=e=>{let t=r=>r in t.cache?t.cache[r]:t.cache[r]=e(r);return t.forgetEverything=()=>{t.cache=Object.create(null)},t.cache=Object.create(null),t};function xi(e,t){let r=t?Ut:Promise,n=gi(f=>o(f,e(f)));function o(f,m){return m===void 0?n(Ir.resolve(f)):r.resolve(m).then(d=>{let p,b,S,v=w=>(S=S||i(p))(w);return p={path:f,text:d,get lines(){return b=b||d.split(`
2
2
  `)},resolve(w){let A=v(w);if(t)try{return Ut.valueFrom(A)}catch(C){return We({},w,{error:C})}else return Promise.resolve(A)},_resolve:v}})}function i(f){let m=/\u0023 sourceMappingURL=(.+)\n?/g,d;for(;;){let S=m.exec(f.text);if(S)d=S;else break}let p=d&&d[1],b=S=>We({},S,{sourceFile:f,sourceLine:f.lines[S.line-1]||""});return p?s(f.path,p,b):b}function s(f,m,d){let p=m.startsWith("data:")?o(f,yc(m).toString()):o(Ir.relativeToFile(f,m)),b=p.then(v=>xc(JSON.parse(v.text))),S=gi(function(w){return p.then(A=>{let C=Ir.relativeToFile(A.path,w);return b.then(I=>o(C,I.sourceContentFor(w,!0)||void 0))})});return v=>b.then(w=>{let A=w.originalPositionFor(v);return A.source?S(A.source).then(C=>C._resolve(We({},v,{line:A.line,column:A.column+1,name:A.name}))):d(v)}).catch(w=>We(d(v),{sourceMapError:w}))}return We(function(m){let d=o(m);if(t)try{return Ut.valueFrom(d)}catch(p){let b={path:m,text:"",lines:[],error:p,resolve(S){return We({},S,{error:p,sourceLine:"",sourceFile:b})}};return b}return d},{resetCache:()=>n.forgetEverything(),getCache:()=>n.cache})}$t.exports=xi(function(t){return new Ut(r=>{if(Pr){let n=new XMLHttpRequest;n.open("GET",t,!1),n.send(null),r(n.responseText)}else r(bi("fs").readFileSync(t,{encoding:"utf8"}))})},!0);$t.exports.async=xi(function(t){return new Promise((r,n)=>{if(Pr){let o=new XMLHttpRequest;o.open("GET",t),o.onreadystatechange=i=>{o.readyState===4&&(o.status===200?r(o.responseText):n(new Error(o.statusText)))},o.send(null)}else bi("fs").readFile(t,{encoding:"utf8"},(o,i)=>{o?n(o):r(i)})})})});var Ei=k((yp,wi)=>{"use strict";u();wi.exports=(e,t)=>{let r=e||[],n=[],o={label:void 0,items:[r.first]};return r.forEach(i=>{let s=t(i);o.label!==s&&o.items.length?n.push(o={label:s,items:[i]}):o.items.push(i)}),n}});var vi=k((Ep,$r)=>{"use strict";u();var wc=(function(){function e(t,r){var n=[],o=!0,i=!1,s=void 0;try{for(var f=t[Symbol.iterator](),m;!(o=(m=f.next()).done)&&(n.push(m.value),!(r&&n.length===r));o=!0);}catch(d){i=!0,s=d}finally{try{!o&&f.return&&f.return()}finally{if(i)throw s}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),Nt="[\x1B\x9B][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]",Si="\0-\b\v-\x1B\x9B\xAD\u200B\u2028\u2029\uFEFF\uFE00-\uFE0F",Ur=`
3
3
  `+Si,Ec=new RegExp("(?:"+Nt+")|["+Si+"]","g"),Or=new RegExp("(?:"+Nt+")|["+Ur+"]","g"),Fr=new RegExp("((?:"+Nt+")|[ "+Ur+"])?([^ "+Ur+"]*)","g");$r.exports={zeroWidthCharacters:Or,ansiEscapeCodes:new RegExp(Nt,"g"),strlen:e=>Array.from(e.replace(Or,"")).length,isBlank:e=>e.replace(Or,"").replace(/\s/g,"").length===0,blank:e=>Array.from(e.replace(Ec,"")).map(t=>t===" "||t===`
4
4
  `?t:" ").join(""),partition(e){for(var t,r=[];Fr.lastIndex!==e.length&&(t=Fr.exec(e));)r.push([t[1]||"",t[2]]);return Fr.lastIndex=0,r},first(e,t){let r="",n=0;for(let i of $r.exports.partition(e)){var o=wc(i,2);let s=o[0],f=o[1],m=Array.from(f).slice(0,t-n);r+=s+m.join(""),n+=m.length}return r}}});var Li=k((vp,Ri)=>{"use strict";u();function ze(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else return Array.from(e)}var qt=Object,Ci=vi(),Sc=Ci.first,Gt=Ci.strlen,vc=(e,t)=>Sc(e,t-1)+"\u2026",Ti=(e,t)=>{let r=(w,A)=>w.reduce((C,I)=>I.map((R,T)=>[].concat(ze(C[T]||[]),[R])),[]).map(C=>A.apply(void 0,ze(C))),n=e.map(w=>w.map(A=>A.replace(/\n/g,"\\n"))),o=n.map(w=>w.map(Gt)),i=r(o,Math.max),s=qt.assign({delimiter:" ",minColumnWidths:i.map(w=>0),maxTotalWidth:0},t),f=Gt(s.delimiter),m=i.reduce((w,A)=>w+A,0),d=i.map(w=>w/m),p=s.maxTotalWidth-f*(i.length-1),b=Math.max(0,m-p),S=r([s.minColumnWidths,i,d],(w,A,C)=>Math.max(w,Math.floor(A-b*C))),v=o.map(w=>r([S,w],(A,C)=>A-C));return r([n,v],(w,A)=>r([w,A],(C,I)=>I>=0?s.right?" ".repeat(I)+C:C+" ".repeat(I):vc(C,Gt(C)+I)).join(s.delimiter))},Ai=e=>qt.assign(t=>{var r;if(t[0]&&Array.isArray(t[0]))return Ti(t.map(s=>s.map((f,m)=>f===void 0?"":e.print(f,m))),e).join(`
@@ -16,7 +16,7 @@ import{a as Ea,b as Sa}from"./chunk-EJDWYASP.js";import{a as bn}from"./chunk-RJ5
16
16
  `:10,r=typeof e=="string"?"\r":13;return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e}u();var Tt=new WeakMap,po=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,o=e.displayName||e.name||"<anonymous>",i=function(...s){if(Tt.set(i,++n),n===1)r=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return r};return bn(i,e),Tt.set(i,n),i};po.callCount=e=>{if(!Tt.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Tt.get(e)};var ho=po;u();import ol from"node:process";u();import{constants as Qa}from"node:os";u();var go=()=>{let e=xo-bo+1;return Array.from({length:e},Ka)},Ka=(e,t)=>({name:`SIGRT${t+1}`,number:bo+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),bo=34,xo=64;u();import{constants as Ya}from"node:os";u();var yo=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var xr=()=>{let e=go();return[...yo,...e].map(Za)},Za=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{let{signals:{[e]:s}}=Ya,f=s!==void 0;return{name:e,number:f?s:t,description:r,supported:f,action:n,forced:o,standard:i}};var Ja=()=>{let e=xr();return Object.fromEntries(e.map(el))},el=({name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s}],wo=Ja(),tl=()=>{let e=xr(),t=65,r=Array.from({length:t},(n,o)=>rl(o,e));return Object.assign({},...r)},rl=(e,t)=>{let r=nl(e,t);if(r===void 0)return{};let{name:n,description:o,supported:i,action:s,forced:f,standard:m}=r;return{[e]:{name:n,number:e,description:o,supported:i,action:s,forced:f,standard:m}}},nl=(e,t)=>{let r=t.find(({name:n})=>Qa.signals[n]===e);return r!==void 0?r:t.find(n=>n.number===e)},Bf=tl();var il=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:o,exitCode:i,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${o})`:i!==void 0?`failed with exit code ${i}`:"failed",ot=({stdout:e,stderr:t,all:r,error:n,signal:o,exitCode:i,command:s,escapedCommand:f,timedOut:m,isCanceled:d,killed:p,parsed:{options:{timeout:b,cwd:S=ol.cwd()}}})=>{i=i===null?void 0:i,o=o===null?void 0:o;let v=o===void 0?void 0:wo[o].description,w=n&&n.code,C=`Command ${il({timedOut:m,timeout:b,errorCode:w,signal:o,signalDescription:v,exitCode:i,isCanceled:d})}: ${s}`,I=Object.prototype.toString.call(n)==="[object Error]",R=I?`${C}
17
17
  ${n.message}`:C,T=[R,t,e].filter(Boolean).join(`
18
18
  `);return I?(n.originalMessage=n.message,n.message=T):n=new Error(T),n.shortMessage=R,n.command=s,n.escapedCommand=f,n.exitCode=i,n.signal=o,n.signalDescription=v,n.stdout=e,n.stderr=t,n.cwd=S,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!m,n.isCanceled=d,n.killed=p&&!m,n};u();var Ct=["stdin","stdout","stderr"],sl=e=>Ct.some(t=>e[t]!==void 0),Eo=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return Ct.map(n=>e[n]);if(sl(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Ct.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,Ct.length);return Array.from({length:r},(n,o)=>t[o])};u();var So=D(pa(),1);import al from"node:os";var ll=1e3*5,vo=(e,t="SIGTERM",r={})=>{let n=e(t);return cl(e,t,r,n),n},cl=(e,t,r,n)=>{if(!ul(t,r,n))return;let o=ml(r),i=setTimeout(()=>{e("SIGKILL")},o);i.unref&&i.unref()},ul=(e,{forceKillAfterTimeout:t},r)=>fl(e)&&t!==!1&&r,fl=e=>e===al.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",ml=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return ll;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},To=(e,t)=>{e.kill()&&(t.isCanceled=!0)},dl=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},Co=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let o,i=new Promise((f,m)=>{o=setTimeout(()=>{dl(e,r,m)},t)}),s=n.finally(()=>{clearTimeout(o)});return Promise.race([i,s])},Ao=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Ro=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let o=(0,So.default)(()=>{e.kill()});return n.finally(()=>{o()})};u();import{createWriteStream as pl}from"node:fs";import{ChildProcess as hl}from"node:child_process";u();function At(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function yr(e){return At(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"}var gl=e=>e instanceof hl&&typeof e.then=="function",wr=(e,t,r)=>{if(typeof r=="string")return e[t].pipe(pl(r)),e;if(yr(r))return e[t].pipe(r),e;if(!gl(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!yr(r.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r},Lo=e=>{e.stdout!==null&&(e.pipeStdout=wr.bind(void 0,e,"stdout")),e.stderr!==null&&(e.pipeStderr=wr.bind(void 0,e,"stderr")),e.all!==void 0&&(e.pipeAll=wr.bind(void 0,e,"all"))};u();import{createReadStream as xl,readFileSync as yl}from"node:fs";var vr=D(wa(),1),Mo=D(ko(),1),_o=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},wl=({input:e,inputFile:t})=>typeof t!="string"?e:(_o(e),yl(t)),Bo=e=>{let t=wl(e);if(At(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t},El=({input:e,inputFile:t})=>typeof t!="string"?e:(_o(e),xl(t)),Io=(e,t)=>{let r=El(t);r!==void 0&&(At(r)?r.pipe(e.stdin):e.stdin.end(r))},Po=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=(0,Mo.default)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},Er=async(e,t)=>{if(!(!e||t===void 0)){e.destroy();try{return await t}catch(r){return r.bufferedData}}},Sr=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(!(!e||!r))return t?(0,vr.default)(e,{encoding:t,maxBuffer:n}):vr.default.buffer(e,{maxBuffer:n})},Oo=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:o,maxBuffer:i},s)=>{let f=Sr(e,{encoding:n,buffer:o,maxBuffer:i}),m=Sr(t,{encoding:n,buffer:o,maxBuffer:i}),d=Sr(r,{encoding:n,buffer:o,maxBuffer:i*2});try{return await Promise.all([s,f,m,d])}catch(p){return Promise.all([{error:p,signal:p.signal,timedOut:p.timedOut},Er(e,f),Er(t,m),Er(r,d)])}};u();var Sl=(async()=>{})().constructor.prototype,vl=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Sl,e)]),Tr=(e,t)=>{for(let[r,n]of vl){let o=typeof t=="function"?(...i)=>Reflect.apply(n.value,t(),i):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:o})}},Fo=e=>new Promise((t,r)=>{e.on("exit",(n,o)=>{t({exitCode:n,signal:o})}),e.on("error",n=>{r(n)}),e.stdin&&e.stdin.on("error",n=>{r(n)})});u();import{Buffer as Tl}from"node:buffer";import{ChildProcess as Cl}from"node:child_process";var No=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Al=/^[\w.-]+$/,Rl=/"/g,Ll=e=>typeof e!="string"||Al.test(e)?e:`"${e.replace(Rl,'\\"')}"`,Cr=(e,t)=>No(e,t).join(" "),Ar=(e,t)=>No(e,t).map(r=>Ll(r)).join(" "),Dl=/ +/g;var Uo=e=>{let t=typeof e;if(t==="string")return e;if(t==="number")return String(e);if(t==="object"&&e!==null&&!(e instanceof Cl)&&"stdout"in e){let r=typeof e.stdout;if(r==="string")return e.stdout;if(Tl.isBuffer(e.stdout))return e.stdout.toString();throw new TypeError(`Unexpected "${r}" stdout in template expression`)}throw new TypeError(`Unexpected "${t}" in template expression`)},$o=(e,t,r)=>r||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],kl=({templates:e,expressions:t,tokens:r,index:n,template:o})=>{let i=o??e.raw[n],s=i.split(Dl).filter(Boolean),f=$o(r,s,i.startsWith(" "));if(n===t.length)return f;let m=t[n],d=Array.isArray(m)?m.map(p=>Uo(p)):[Uo(m)];return $o(f,d,i.endsWith(" "))},Rr=(e,t)=>{let r=[];for(let[n,o]of e.entries())r=kl({templates:e,expressions:t,tokens:r,index:n,template:o});return r};u();import{debuglog as Ml}from"node:util";import _l from"node:process";var qo=Ml("execa").enabled,Rt=(e,t)=>String(e).padStart(t,"0"),Bl=()=>{let e=new Date;return`${Rt(e.getHours(),2)}:${Rt(e.getMinutes(),2)}:${Rt(e.getSeconds(),2)}.${Rt(e.getMilliseconds(),3)}`},Lr=(e,{verbose:t})=>{t&&_l.stderr.write(`[${Bl()}] ${e}
19
- `)};var Ol=1e3*1e3*100,Fl=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:o})=>{let i=t?{...Lt.env,...e}:e;return r?xn({env:i,cwd:n,execPath:o}):i},jo=(e,t,r={})=>{let n=Ho.default._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:Ol,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||Lt.cwd(),execPath:Lt.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:qo,...r},r.env=Fl(r),r.stdio=Eo(r),Lt.platform==="win32"&&Pl.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},it=(e,t,r)=>typeof t!="string"&&!Il.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?br(t):t;function Pe(e,t,r){let n=jo(e,t,r),o=Cr(e,t),i=Ar(e,t);Lr(i,n.options),Ao(n.options);let s;try{s=Dr.spawn(n.file,n.args,n.options)}catch(v){let w=new Dr.ChildProcess,A=Promise.reject(ot({error:v,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Tr(w,A),w}let f=Fo(s),m=Co(s,n.options,f),d=Ro(s,n.options,m),p={isCanceled:!1};s.kill=vo.bind(null,s.kill.bind(s)),s.cancel=To.bind(null,s,p);let S=ho(async()=>{let[{error:v,exitCode:w,signal:A,timedOut:C},I,R,T]=await Oo(s,n.options,d),L=it(n.options,I),P=it(n.options,R),X=it(n.options,T);if(v||w!==0||A!==null){let ee=ot({error:v,exitCode:w,signal:A,stdout:L,stderr:P,all:X,command:o,escapedCommand:i,parsed:n,timedOut:C,isCanceled:p.isCanceled||(n.options.signal?n.options.signal.aborted:!1),killed:s.killed});if(!n.options.reject)return ee;throw ee}return{command:o,escapedCommand:i,exitCode:0,stdout:L,stderr:P,all:X,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Io(s,n.options),s.all=Po(s,n.options),Lo(s),Tr(s,S),s}function Ul(e,t,r){let n=jo(e,t,r),o=Cr(e,t),i=Ar(e,t);Lr(i,n.options);let s=Bo(n.options),f;try{f=Dr.spawnSync(n.file,n.args,{...n.options,input:s})}catch(p){throw ot({error:p,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let m=it(n.options,f.stdout,f.error),d=it(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let p=ot({stdout:m,stderr:d,error:f.error,signal:f.signal,exitCode:f.status,command:o,escapedCommand:i,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return p;throw p}return{command:o,escapedCommand:i,exitCode:0,stdout:m,stderr:d,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var $l=({input:e,inputFile:t,stdio:r})=>e===void 0&&t===void 0&&r===void 0?{stdin:"inherit"}:{},Go=(e={})=>({preferLocal:!0,...$l(e),...e});function Wo(e){function t(r,...n){if(!Array.isArray(r))return Wo({...e,...r});let[o,...i]=Rr(r,n);return Pe(o,i,Go(e))}return t.sync=(r,...n)=>{if(!Array.isArray(r))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[o,...i]=Rr(r,n);return Ul(o,i,Go(e))},t}var Mm=Wo();import{userInfo as Nl}from"os";async function Fm(e=process.platform){Ie(St`Obtaining user name...`);let t=ql();if(t)return t;let r=Gl();if(r)return r;try{if(e==="win32"){let{stdout:o}=await Pe("whoami");return Hl(o)}let{stdout:n}=await Pe("id",["-u"]);try{let{stdout:o}=await Pe("id",["-un",n]);return o}catch{}return jl(n)}catch{return null}}function zo(e=process.platform,t=process.arch){let r;return t==="x64"?r="amd64":t==="ia32"?r="386":r=t,{platform:e.match(/^win.+/)?"windows":e,arch:r}}function ql(){let{env:e}=process;return e.SUDO_USER||e.C9_USER||e.LOGNAME||e.USER||e.LNAME||e.USERNAME}function Gl(){try{return Nl().username}catch{return null}}function Hl(e){return e.replace(/^.*\\/,"")}function jl(e){return`no-username-${e}`}var Xo=D(ga(),1),Ko=D(ya(),1);import{fstatSync as Wl}from"fs";import{setTimeout as zl}from"timers/promises";var Vl=10*1024*1024;async function Qm(e){if(vn())return!1;let t=await import("./open-KLSGXBIW.js");try{return await t.default(e),!0}catch{return!1}}async function Jm(e,t,r){return(await kr(e,t,r)).stdout}async function Xl(e,t,r){let n=await kr(e,t,r,{reject:!1});return{stdout:n.stdout,stderr:n.stderr,exitCode:n.exitCode??0}}function Yo(e){let t=[],r="",n=null;for(let o of e)n?o===n?n=null:r+=o:o==='"'||o==="'"?n=o:o===" "||o===" "?r&&(t.push(r),r=""):r+=o;return r&&t.push(r),t}async function ed(e,t){let[r,...n]=Yo(e);return r?Xl(r,n,t):{stdout:"",stderr:"Empty command",exitCode:1}}async function td(e,t){let[r,...n]=Yo(e);if(!r)throw new qe("Empty command");await Kl(r,n,t)}async function Kl(e,t,r){if(r){let i=zo().platform==="windows";r.background=i?!1:r.background}let n=kr(e,t,r);r?.background&&n.unref(),r?.stderr&&r.stderr!=="inherit"&&n.stderr?.pipe(r.stderr,{end:!1}),r?.stdout&&r.stdout!=="inherit"&&n.stdout?.pipe(r.stdout,{end:!1});let o=!1;r?.signal?.addEventListener("abort",()=>{let i=n.pid;i&&(Ie(`Killing process ${i}: ${e} ${t.join(" ")}`),o=!0,wt(i,"SIGTERM"))});try{await n}catch(i){if(o)return;if(r?.externalErrorHandler)await r.externalErrorHandler(i);else{let s=new Et(i.message,e,t);throw s.stack=i.stack,s}}}function kr(e,t,r,n){let o=r?.env??process.env;ke()&&(o.FORCE_COLOR="1");let i=r?.cwd??cn();Yl(e,{cwd:i});let s=Pe(e,t,{env:o,cwd:i,input:r?.input,stdio:r?.background?"ignore":r?.stdio,stdin:r?.stdin,stdout:r?.stdout==="inherit"?"inherit":void 0,stderr:r?.stderr==="inherit"?"inherit":void 0,windowsHide:!1,detached:r?.background,cleanup:!r?.background,...n});return Ie(`Running system process${r?.background?" in background":""}:
19
+ `)};var Ol=1e3*1e3*100,Fl=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:o})=>{let i=t?{...Lt.env,...e}:e;return r?xn({env:i,cwd:n,execPath:o}):i},jo=(e,t,r={})=>{let n=Ho.default._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:Ol,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||Lt.cwd(),execPath:Lt.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:qo,...r},r.env=Fl(r),r.stdio=Eo(r),Lt.platform==="win32"&&Pl.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},it=(e,t,r)=>typeof t!="string"&&!Il.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?br(t):t;function Pe(e,t,r){let n=jo(e,t,r),o=Cr(e,t),i=Ar(e,t);Lr(i,n.options),Ao(n.options);let s;try{s=Dr.spawn(n.file,n.args,n.options)}catch(v){let w=new Dr.ChildProcess,A=Promise.reject(ot({error:v,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Tr(w,A),w}let f=Fo(s),m=Co(s,n.options,f),d=Ro(s,n.options,m),p={isCanceled:!1};s.kill=vo.bind(null,s.kill.bind(s)),s.cancel=To.bind(null,s,p);let S=ho(async()=>{let[{error:v,exitCode:w,signal:A,timedOut:C},I,R,T]=await Oo(s,n.options,d),L=it(n.options,I),P=it(n.options,R),X=it(n.options,T);if(v||w!==0||A!==null){let ee=ot({error:v,exitCode:w,signal:A,stdout:L,stderr:P,all:X,command:o,escapedCommand:i,parsed:n,timedOut:C,isCanceled:p.isCanceled||(n.options.signal?n.options.signal.aborted:!1),killed:s.killed});if(!n.options.reject)return ee;throw ee}return{command:o,escapedCommand:i,exitCode:0,stdout:L,stderr:P,all:X,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Io(s,n.options),s.all=Po(s,n.options),Lo(s),Tr(s,S),s}function Ul(e,t,r){let n=jo(e,t,r),o=Cr(e,t),i=Ar(e,t);Lr(i,n.options);let s=Bo(n.options),f;try{f=Dr.spawnSync(n.file,n.args,{...n.options,input:s})}catch(p){throw ot({error:p,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let m=it(n.options,f.stdout,f.error),d=it(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let p=ot({stdout:m,stderr:d,error:f.error,signal:f.signal,exitCode:f.status,command:o,escapedCommand:i,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return p;throw p}return{command:o,escapedCommand:i,exitCode:0,stdout:m,stderr:d,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var $l=({input:e,inputFile:t,stdio:r})=>e===void 0&&t===void 0&&r===void 0?{stdin:"inherit"}:{},Go=(e={})=>({preferLocal:!0,...$l(e),...e});function Wo(e){function t(r,...n){if(!Array.isArray(r))return Wo({...e,...r});let[o,...i]=Rr(r,n);return Pe(o,i,Go(e))}return t.sync=(r,...n)=>{if(!Array.isArray(r))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[o,...i]=Rr(r,n);return Ul(o,i,Go(e))},t}var Mm=Wo();import{userInfo as Nl}from"os";async function Fm(e=process.platform){Ie(St`Obtaining user name...`);let t=ql();if(t)return t;let r=Gl();if(r)return r;try{if(e==="win32"){let{stdout:o}=await Pe("whoami");return Hl(o)}let{stdout:n}=await Pe("id",["-u"]);try{let{stdout:o}=await Pe("id",["-un",n]);return o}catch{}return jl(n)}catch{return null}}function zo(e=process.platform,t=process.arch){let r;return t==="x64"?r="amd64":t==="ia32"?r="386":r=t,{platform:e.match(/^win.+/)?"windows":e,arch:r}}function ql(){let{env:e}=process;return e.SUDO_USER||e.C9_USER||e.LOGNAME||e.USER||e.LNAME||e.USERNAME}function Gl(){try{return Nl().username}catch{return null}}function Hl(e){return e.replace(/^.*\\/,"")}function jl(e){return`no-username-${e}`}var Xo=D(ga()),Ko=D(ya());import{fstatSync as Wl}from"fs";import{setTimeout as zl}from"timers/promises";var Vl=10*1024*1024;async function Qm(e){if(vn())return!1;let t=await import("./open-KLSGXBIW.js");try{return await t.default(e),!0}catch{return!1}}async function Jm(e,t,r){return(await kr(e,t,r)).stdout}async function Xl(e,t,r){let n=await kr(e,t,r,{reject:!1});return{stdout:n.stdout,stderr:n.stderr,exitCode:n.exitCode??0}}function Yo(e){let t=[],r="",n=null;for(let o of e)n?o===n?n=null:r+=o:o==='"'||o==="'"?n=o:o===" "||o===" "?r&&(t.push(r),r=""):r+=o;return r&&t.push(r),t}async function ed(e,t){let[r,...n]=Yo(e);return r?Xl(r,n,t):{stdout:"",stderr:"Empty command",exitCode:1}}async function td(e,t){let[r,...n]=Yo(e);if(!r)throw new qe("Empty command");await Kl(r,n,t)}async function Kl(e,t,r){if(r){let i=zo().platform==="windows";r.background=i?!1:r.background}let n=kr(e,t,r);r?.background&&n.unref(),r?.stderr&&r.stderr!=="inherit"&&n.stderr?.pipe(r.stderr,{end:!1}),r?.stdout&&r.stdout!=="inherit"&&n.stdout?.pipe(r.stdout,{end:!1});let o=!1;r?.signal?.addEventListener("abort",()=>{let i=n.pid;i&&(Ie(`Killing process ${i}: ${e} ${t.join(" ")}`),o=!0,wt(i,"SIGTERM"))});try{await n}catch(i){if(o)return;if(r?.externalErrorHandler)await r.externalErrorHandler(i);else{let s=new Et(i.message,e,t);throw s.stack=i.stack,s}}}function kr(e,t,r,n){let o=r?.env??process.env;ke()&&(o.FORCE_COLOR="1");let i=r?.cwd??cn();Yl(e,{cwd:i});let s=Pe(e,t,{env:o,cwd:i,input:r?.input,stdio:r?.background?"ignore":r?.stdio,stdin:r?.stdin,stdout:r?.stdout==="inherit"?"inherit":void 0,stderr:r?.stderr==="inherit"?"inherit":void 0,windowsHide:!1,detached:r?.background,cleanup:!r?.background,...n});return Ie(`Running system process${r?.background?" in background":""}:
20
20
  \xB7 Command: ${e} ${t.join(" ")}
21
21
  \xB7 Working directory: ${i}
22
22
  `),s}function Yl(e,t){let r=`${t.cwd}${an}${process.env.PATH}`,n=Ko.default.sync(e,{nothrow:!0,path:r});if(n&&ln(n)===t.cwd){let o=["Skipped run of unsecure binary",{command:e},"found in the current directory."],i="Please remove that file or review your current PATH.";throw Vo({headline:o,body:i}),new qe(o,i)}}async function rd(e){await zl(1e3*e)}function nd(){return Xo.default.stdout}function Zo(){return or(process.env.CI)?!1:!!(process.stdin.isTTY&&process.stdout.isTTY)}function od(){return or(process.env.CI)}async function id(){return(await import("./is-wsl-UEMXYJPN.js")).default}function Zl(){try{let e=Wl(0);return e.isFIFO()||e.isFile()}catch{return!1}}async function sd(){if(!Zl())return;let e="",t=0;process.stdin.setEncoding("utf8");for await(let r of process.stdin){let n=String(r);if(t+=Buffer.byteLength(n,"utf8"),t>Vl)throw new qe("Stdin input exceeded the maximum allowed size.");e+=n}return e.trim()}u();var Mt=D(Jo()),kt=class extends Mt.AbortController{},ei=class extends Mt.AbortSignal{};u();u();var ae=D(N(),1);import{EventEmitter as Jl}from"events";var ti=(0,ae.createContext)(null);function te(){let e=(0,ae.useContext)(ti);if(!e)throw new Error("useComplete() called outside InkLifecycleRoot");return e}function ec({children:e}){let{exit:t}=dn(),[r,n]=(0,ae.useState)(null),o=(0,ae.useCallback)(i=>{n({error:i})},[]);return(0,ae.useEffect)(()=>{r!==null&&t(r.error)},[r,t]),ae.default.createElement(ti.Provider,{value:o},e)}function at(e,{logLevel:t="info",renderOptions:r}){let{output:n,unmount:o}=tc(e,r);return n&&yn(n,t),o(),n}async function Me(e,t){let{waitUntilExit:r}=sr(ae.default.createElement(ec,null,e),{patchConsole:!nt(),...t});await r()}var Mr=class extends Jl{constructor(t){super(),this.frames=[],this.write=r=>{this.frames.push(r),r!==`
@@ -1,4 +1,4 @@
1
- import{_ as a,i}from"./chunk-NOKCVDYD.js";import{Fb as e,Hb as r}from"./chunk-3TFUSDHY.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();async function f(n,t,o){return c(n,t,o,"text")}async function c(n,t,o,S){return await a(t,o.source),S==="json"?r`${e.json({SHOPIFY_API_KEY:t.apiKey,SHOPIFY_API_SECRET:t.apiSecretKeys[0]?.secret,SCOPES:i(n.configuration)})}`:r`
1
+ import{_ as a,i}from"./chunk-5HJTCBBV.js";import{Fb as e,Hb as r}from"./chunk-BCZMDFI2.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();async function f(n,t,o){return c(n,t,o,"text")}async function c(n,t,o,S){return await a(t,o.source),S==="json"?r`${e.json({SHOPIFY_API_KEY:t.apiKey,SHOPIFY_API_SECRET:t.apiSecretKeys[0]?.secret,SCOPES:i(n.configuration)})}`:r`
2
2
  ${e.green("SHOPIFY_API_KEY")}=${t.apiKey}
3
3
  ${e.green("SHOPIFY_API_SECRET")}=${t.apiSecretKeys[0]?.secret??""}
4
4
  ${e.green("SCOPES")}=${i(n.configuration)}
@@ -1 +1 @@
1
- import{a as c,b as d,c as f}from"./chunk-U564K7SX.js";import{a as p}from"./chunk-DHU767C3.js";import{a as r}from"./chunk-QG7TELFC.js";import{ta as s}from"./chunk-NOKCVDYD.js";import{b as n}from"./chunk-2Y6CYLKF.js";import{a as y}from"./chunk-CTNBSUVU.js";import{e as g,g as i}from"./chunk-VKWPEFWQ.js";i();var m=g(y(),1);var a,t=class extends p{async run(){let{flags:e}=await this.parse(a),{app:o,developerPlatformClient:u,organization:h}=await s({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),l=await f(o,e.path);return await c({app:o,extension:l,stdout:e.stdout,developerPlatformClient:u,orgId:h.id}),{app:o}}};a=t;t.summary="Fetch the latest GraphQL schema for a function.";t.descriptionWithMarkdown="Generates the latest [GraphQL schema](https://shopify.dev/docs/apps/functions/input-output#graphql-schema) for a function in your app. Run this command from the function directory.\n\n This command uses the API type and version of your function, as defined in your extension TOML file, to generate the latest GraphQL schema. The schema is written to the `schema.graphql` file.";t.description=a.descriptionWithoutMarkdown();t.flags={...n,...r,...d,stdout:m.Flags.boolean({description:"Output the schema to stdout instead of writing to a file.",required:!1,default:!1,env:"SHOPIFY_FLAG_STDOUT"})};var T=t;export{T as a};
1
+ import{a as c,b as d,c as f}from"./chunk-BPDUBZMU.js";import{a as p}from"./chunk-WDCCITSG.js";import{a as r}from"./chunk-NENUUNWB.js";import{ta as s}from"./chunk-5HJTCBBV.js";import{b as n}from"./chunk-4TANJ4JK.js";import{a as y}from"./chunk-CTNBSUVU.js";import{e as g,g as i}from"./chunk-VKWPEFWQ.js";i();var m=g(y(),1);var a,t=class extends p{async run(){let{flags:e}=await this.parse(a),{app:o,developerPlatformClient:u,organization:h}=await s({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),l=await f(o,e.path);return await c({app:o,extension:l,stdout:e.stdout,developerPlatformClient:u,orgId:h.id}),{app:o}}};a=t;t.summary="Fetch the latest GraphQL schema for a function.";t.descriptionWithMarkdown="Generates the latest [GraphQL schema](https://shopify.dev/docs/apps/functions/input-output#graphql-schema) for a function in your app. Run this command from the function directory.\n\n This command uses the API type and version of your function, as defined in your extension TOML file, to generate the latest GraphQL schema. The schema is written to the `schema.graphql` file.";t.description=a.descriptionWithoutMarkdown();t.flags={...n,...r,...d,stdout:m.Flags.boolean({description:"Output the schema to stdout instead of writing to a file.",required:!1,default:!1,env:"SHOPIFY_FLAG_STDOUT"})};var T=t;export{T as a};
@@ -1,4 +1,4 @@
1
- import{b as $}from"./chunk-OTT73YUA.js";import{a as O}from"./chunk-DHU767C3.js";import{a as T}from"./chunk-QG7TELFC.js";import{i as k,ta as N}from"./chunk-NOKCVDYD.js";import{f as l}from"./chunk-6UTUJKKC.js";import{b as P,c as I}from"./chunk-2Y6CYLKF.js";import{H as S,I as b}from"./chunk-EZ7EBYDT.js";import{g as v,u as E}from"./chunk-6YCGMS7X.js";import{a as h}from"./chunk-M4BEPPA3.js";import{Gb as C,Hb as _,Lb as w,N as y,Wb as A}from"./chunk-3TFUSDHY.js";import{g as p,j as g}from"./chunk-773TIA5M.js";import{a as W}from"./chunk-CTNBSUVU.js";import{e as U,g as f}from"./chunk-VKWPEFWQ.js";f();f();async function x(n,e,t,o,i){return i.webEnv?F(n,e,t,i):R(n,e,o,i)}async function F(n,e,t,{format:o}){return $(n,e,t,o)}async function R(n,e,t,o){if(o.format==="json"){let i=j(n.allExtensions.filter(s=>s.isReturnedAsInfo())),r={...n,packageManager:t.packageManager,nodeDependencies:t.nodeDependencies,usesWorkspaces:t.usesWorkspaces,allExtensions:i};return"realExtensions"in r&&(r.realExtensions=j(r.realExtensions)),"specifications"in r&&(r={...r,specifications:r.specifications?.map(s=>D(s))}),_`${JSON.stringify(Object.fromEntries(Object.entries(r).filter(([s])=>s!=="configSchema")),null,2)}`}else return new d(n,e,t,o).output()}function D(n){if("schema"in n){let{schema:e,...t}=n;return t}return n}function j(n){return n.map(e=>{if("specification"in e&&e.specification){let t=e.specification,o=D(t);return{...e,specification:o}}else return e})}var M="unknown",u={subdued:"Not yet configured"},K="NOT LOADED",d=class{constructor(e,t,o,i){this.app=e,this.remoteApp=t,this.project=o,this.options=i}async output(){return[...await this.devConfigsSection(),this.projectSettingsSection(),...await this.appComponentsSection(),await this.systemInfoSection()]}async devConfigsSection(){let e=u;this.app.configuration.build?.automatically_update_urls_on_dev!==void 0&&(e=this.app.configuration.build.automatically_update_urls_on_dev?"Yes":"No");let t=["User","unknown"],o=await this.options.developerPlatformClient.accountInfo();return b(o)?t=["Service account",o.orgName]:S(o)&&(t[1]=o.email),[this.tableSection("Current app configuration",[["Configuration file",{filePath:g(this.app.configPath)||l.app}],["App name",this.remoteApp.title?{userInput:this.remoteApp.title}:u],["Client ID",this.remoteApp.apiKey||u],["Access scopes",k(this.app.configuration)],["Dev store",this.app.configuration.build?.dev_store_url??this.app.hiddenConfig.dev_store_url??u],["Update URLs",e],t],{isFirstItem:!0}),{body:["\u{1F4A1} To change these, run",{command:C(this.project.packageManager,"shopify app config link")}]}]}projectSettingsSection(){return this.tableSection("Your Project",[["Root location",{filePath:this.app.directory}]])}async appComponentsSection(){let e=this.webComponentsSection();return[{title:`
1
+ import{b as $}from"./chunk-K4M32VKU.js";import{a as O}from"./chunk-WDCCITSG.js";import{a as T}from"./chunk-NENUUNWB.js";import{i as k,ta as N}from"./chunk-5HJTCBBV.js";import{f as l}from"./chunk-7EE7YOCR.js";import{b as P,c as I}from"./chunk-4TANJ4JK.js";import{H as S,I as b}from"./chunk-AFM3UZQO.js";import{g as v,u as E}from"./chunk-JX4HSDDG.js";import{a as h}from"./chunk-REABQXMP.js";import{Gb as C,Hb as _,Lb as w,N as y,Wb as A}from"./chunk-BCZMDFI2.js";import{g as p,j as g}from"./chunk-773TIA5M.js";import{a as W}from"./chunk-CTNBSUVU.js";import{e as U,g as f}from"./chunk-VKWPEFWQ.js";f();f();async function x(n,e,t,o,i){return i.webEnv?F(n,e,t,i):R(n,e,o,i)}async function F(n,e,t,{format:o}){return $(n,e,t,o)}async function R(n,e,t,o){if(o.format==="json"){let i=j(n.allExtensions.filter(s=>s.isReturnedAsInfo())),r={...n,packageManager:t.packageManager,nodeDependencies:t.nodeDependencies,usesWorkspaces:t.usesWorkspaces,allExtensions:i};return"realExtensions"in r&&(r.realExtensions=j(r.realExtensions)),"specifications"in r&&(r={...r,specifications:r.specifications?.map(s=>D(s))}),_`${JSON.stringify(Object.fromEntries(Object.entries(r).filter(([s])=>s!=="configSchema")),null,2)}`}else return new d(n,e,t,o).output()}function D(n){if("schema"in n){let{schema:e,...t}=n;return t}return n}function j(n){return n.map(e=>{if("specification"in e&&e.specification){let t=e.specification,o=D(t);return{...e,specification:o}}else return e})}var M="unknown",u={subdued:"Not yet configured"},K="NOT LOADED",d=class{constructor(e,t,o,i){this.app=e,this.remoteApp=t,this.project=o,this.options=i}async output(){return[...await this.devConfigsSection(),this.projectSettingsSection(),...await this.appComponentsSection(),await this.systemInfoSection()]}async devConfigsSection(){let e=u;this.app.configuration.build?.automatically_update_urls_on_dev!==void 0&&(e=this.app.configuration.build.automatically_update_urls_on_dev?"Yes":"No");let t=["User","unknown"],o=await this.options.developerPlatformClient.accountInfo();return b(o)?t=["Service account",o.orgName]:S(o)&&(t[1]=o.email),[this.tableSection("Current app configuration",[["Configuration file",{filePath:g(this.app.configPath)||l.app}],["App name",this.remoteApp.title?{userInput:this.remoteApp.title}:u],["Client ID",this.remoteApp.apiKey||u],["Access scopes",k(this.app.configuration)],["Dev store",this.app.configuration.build?.dev_store_url??this.app.hiddenConfig.dev_store_url??u],["Update URLs",e],t],{isFirstItem:!0}),{body:["\u{1F4A1} To change these, run",{command:C(this.project.packageManager,"shopify app config link")}]}]}projectSettingsSection(){return this.tableSection("Your Project",[["Root location",{filePath:this.app.directory}]])}async appComponentsSection(){let e=this.webComponentsSection();return[{title:`
2
2
  Directory components`.toUpperCase(),body:""},...e?[e]:[],...this.extensionsSections()]}webComponentsSection(){let e=[],t=[];if(this.app.webs[0])return this.app.webs.forEach(o=>{if(o.configuration)if(o.configuration.name){let{name:i,roles:r}=o.configuration,s=p(this.app.directory,o.directory);t.push([` \u{1F4C2} ${i}`,{filePath:s||"/"}]),r.length>0&&t.push([" roles",r.join(", ")])}else o.configuration.roles.forEach(i=>{t.push([` \u{1F4C2} ${i}`,{filePath:p(this.app.directory,o.directory)}])});else t.push([{subdued:` \u{1F4C2} ${M}`},{filePath:p(this.app.directory,o.directory)}]);if(!this.app.errors.isEmpty()){let i=this.app.errors.getErrors(`${o.directory}/${l.web}`);e.push(...i.map(r=>r.message))}}),this.subtableSection("web",[["\u{1F4C2} web",""],...t,...e.map(o=>[{error:"error"},{error:this.formattedError(o)}])])}extensionsSections(){let e=this.app.allExtensions.filter(o=>o.isReturnedAsInfo());return y(e.map(o=>o.type)).map(o=>{let i=e.filter(r=>r.type===o);if(i[0])return this.subtableSection(i[0].externalType,i.map(r=>this.extensionSubSection(r)).flat())}).filter(o=>o!==void 0)}extensionSubSection(e){let t=e.configuration,o=[[`\u{1F4C2} ${e.handle||K}`,{filePath:p(this.app.directory,e.directory)}],[" config file",{filePath:p(e.directory,e.configurationPath)}]];t&&"metafields"in t&&Array.isArray(t.metafields)&&t.metafields.length>0&&o.push([" metafields",`${t.metafields.length}`]);let i=this.app.errors.getErrors(e.configurationPath);for(let r of i)o.push([{error:" error"},{error:this.formattedError(r.message)}]);return o}formattedError(e){let t=e.trim();if(A())return t;let[o,...i]=t.split(`
3
3
  `);return[`! ${o}`,...i.map(r=>` ${r}`)].join(`
4
4
  `)}async systemInfoSection(){let{platform:e,arch:t}=v();return this.tableSection("Tooling and System",[["Shopify CLI",h],["Package manager",this.project.packageManager],["OS",`${e}-${t}`],["Shell",process.env.SHELL??"unknown"],["Node version",process.version]])}tableSection(e,t,{isFirstItem:o=!1}={}){return{title:`${o?"":`
@@ -1,4 +1,4 @@
1
- import{a as e}from"./chunk-GCN4O7HM.js";import{b as r}from"./chunk-2MCH43SL.js";import{r as t}from"./chunk-WR2ZQGUR.js";import{u as i}from"./chunk-6YCGMS7X.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var o=class extends r{static{this.summary="Disable automatic upgrades for Shopify CLI."}static{this.descriptionWithMarkdown=`Disable automatic upgrades for Shopify CLI.
1
+ import{a as e}from"./chunk-GCN4O7HM.js";import{b as r}from"./chunk-WHT2RCAD.js";import{r as t}from"./chunk-GXO2RRV2.js";import{u as i}from"./chunk-JX4HSDDG.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var o=class extends r{static{this.summary="Disable automatic upgrades for Shopify CLI."}static{this.descriptionWithMarkdown=`Disable automatic upgrades for Shopify CLI.
2
2
 
3
3
  When auto-upgrade is disabled, Shopify CLI won't automatically update. Run \`shopify upgrade\` to update manually.
4
4
 
@@ -1 +1 @@
1
- import{b as c}from"./chunk-2MCH43SL.js";import{Q as r}from"./chunk-EZ7EBYDT.js";import{Nb as a}from"./chunk-3TFUSDHY.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var o=class extends c{static{this.description="Logs you out of the Shopify account or Partner account and store."}async run(){await r(),a("Logged out from all the accounts")}};export{o as a};
1
+ import{b as c}from"./chunk-WHT2RCAD.js";import{Q as r}from"./chunk-AFM3UZQO.js";import{Nb as a}from"./chunk-BCZMDFI2.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var o=class extends c{static{this.description="Logs you out of the Shopify account or Partner account and store."}async run(){await r(),a("Logged out from all the accounts")}};export{o as a};
@@ -1 +1 @@
1
- import{c as m,d as f,e as p}from"./chunk-TAV2ENJY.js";import{d as c,f as w,j as T}from"./chunk-HT6MOPLW.js";import{g as d}from"./chunk-Z5DDPQ26.js";import{B as u}from"./chunk-6YCGMS7X.js";import{m as l}from"./chunk-ZTE46E4Z.js";import{T as i}from"./chunk-3TFUSDHY.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();async function A(e,r){let n=await m(e),t=new p(r.filter),a=e.storeFqdn;if(t.any())return f(a,n,t)[0];let y=r.header??"",h=n.map(o=>{let S=o.id.toString()===d()?" [current]":"";return{value:async()=>o,label:`${o.name}${S}`,group:i(o.role)}});return r.create&&h.unshift(g(e)),(await u({message:y,choices:h}))()}async function B(e,r){return(await m(e)).find(t=>t.id.toString()===r)}async function C(e,r){let n=await m(e),t=new p(r),a=e.storeFqdn;return t.any()?f(a,n,t):[]}function g(e){return{value:async()=>{let r=c,n=await w("Name of the new theme"),t=await T({name:n,role:r},e);if(!t)throw new l("The theme could not be created.");return t},label:"[Create a new theme]",group:i(c)}}export{A as a,B as b,C as c};
1
+ import{c as m,d as f,e as p}from"./chunk-ITNFDLZ4.js";import{d as c,f as w,j as T}from"./chunk-Y7A7Z2V3.js";import{g as d}from"./chunk-445NFHXL.js";import{B as u}from"./chunk-JX4HSDDG.js";import{m as l}from"./chunk-2GB3EAD3.js";import{T as i}from"./chunk-BCZMDFI2.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();async function A(e,r){let n=await m(e),t=new p(r.filter),a=e.storeFqdn;if(t.any())return f(a,n,t)[0];let y=r.header??"",h=n.map(o=>{let S=o.id.toString()===d()?" [current]":"";return{value:async()=>o,label:`${o.name}${S}`,group:i(o.role)}});return r.create&&h.unshift(g(e)),(await u({message:y,choices:h}))()}async function B(e,r){return(await m(e)).find(t=>t.id.toString()===r)}async function C(e,r){let n=await m(e),t=new p(r),a=e.storeFqdn;return t.any()?f(a,n,t):[]}function g(e){return{value:async()=>{let r=c,n=await w("Name of the new theme"),t=await T({name:n,role:r},e);if(!t)throw new l("The theme could not be created.");return t},label:"[Create a new theme]",group:i(c)}}export{A as a,B as b,C as c};
@@ -1 +1 @@
1
- import{a as o}from"./chunk-XGRVAPLR.js";import{b as e}from"./chunk-2MCH43SL.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var t=class extends e{static{this.description="View the UI kit components that display static output"}static{this.hidden=!0}async run(){await o()}};export{t as a};
1
+ import{a as o}from"./chunk-MY2H5XPY.js";import{b as e}from"./chunk-WHT2RCAD.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var t=class extends e{static{this.description="View the UI kit components that display static output"}static{this.hidden=!0}async run(){await o()}};export{t as a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-CV5ELBVU.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends o{};export{t as a};
@@ -1,4 +1,4 @@
1
- import{a as B,j as C,m as P}from"./chunk-XERJY4IG.js";import{e as g}from"./chunk-6BX62FFE.js";import{e as U,f as _}from"./chunk-IKYZ5L3F.js";import{l as v,m as w}from"./chunk-HT6MOPLW.js";import{ua as E}from"./chunk-EZ7EBYDT.js";import{Pb as m}from"./chunk-3TFUSDHY.js";import{g as T}from"./chunk-VKWPEFWQ.js";T();var $=20,J=1024*1024,A=2;function oe(t,e,r,s,o={},l){let n=B(r),i=new Map,c=a=>a.total===0?"[100%]":`[${Math.round(a.current/a.total*100)}%]`,u=R(t,e,n),h=Promise.all([s.ready(),u]).then(()=>q(n,s,t,e,i)),p=h.then(a=>a.promise).then(()=>j(n,s,t,e,o,i)),k=o?.deferPartialWork?u:p.then(a=>a.promise);return o?.backgroundWorkCatch&&Promise.all([u,h.then(a=>a.promise),p.then(a=>a.promise)]).catch(o.backgroundWorkCatch),{uploadResults:i,workPromise:k,renderThemeSyncProgress:async()=>{if(o?.deferPartialWork)return;let{progress:a,promise:d}=await h,f=o.multiEnvironment?4e3:1e3;await g(b({promise:d,titleGetter:()=>`Uploading files to remote theme ${c(a)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment);let{progress:y,promise:F}=await p;await g(b({promise:F,titleGetter:()=>`Cleaning your remote theme ${c(y)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment),await g([{title:"Theme upload complete",task:async()=>{}}],l?.stderr,o?.multiEnvironment),H(i,o?.environment)}}}function b({promise:t,titleGetter:e,updateInterval:r}){let s=[],o=()=>{s.push({title:e(),task:async()=>{await Promise.race([t,new Promise(n=>setTimeout(()=>n("timeout"),r))])==="timeout"&&o()}})};return o(),s}function j(t,e,r,s,o,l){if(o.nodelete)return{progress:{current:0,total:0},promise:Promise.resolve()};let n=L(t,e),i=x(n),c={current:0,total:i.length};if(i.length===0)return{progress:c,promise:Promise.resolve()};let u=[];for(let p=0;p<i.length;p+=$){let k=i.slice(p,p+$),a=v(r.id,k.map(d=>d.key),s).then(d=>{d.forEach(f=>{if(l.set(f.key,f),!f.success){let y=f.errors?.asset?.map(F=>`-${F}`).join(`
1
+ import{a as B,j as C,m as P}from"./chunk-7MD5MIGN.js";import{e as g}from"./chunk-7TXWKLPY.js";import{e as U,f as _}from"./chunk-NKT5U6IJ.js";import{l as v,m as w}from"./chunk-Y7A7Z2V3.js";import{ua as E}from"./chunk-AFM3UZQO.js";import{Pb as m}from"./chunk-BCZMDFI2.js";import{g as T}from"./chunk-VKWPEFWQ.js";T();var $=20,J=1024*1024,A=2;function oe(t,e,r,s,o={},l){let n=B(r),i=new Map,c=a=>a.total===0?"[100%]":`[${Math.round(a.current/a.total*100)}%]`,u=R(t,e,n),h=Promise.all([s.ready(),u]).then(()=>q(n,s,t,e,i)),p=h.then(a=>a.promise).then(()=>j(n,s,t,e,o,i)),k=o?.deferPartialWork?u:p.then(a=>a.promise);return o?.backgroundWorkCatch&&Promise.all([u,h.then(a=>a.promise),p.then(a=>a.promise)]).catch(o.backgroundWorkCatch),{uploadResults:i,workPromise:k,renderThemeSyncProgress:async()=>{if(o?.deferPartialWork)return;let{progress:a,promise:d}=await h,f=o.multiEnvironment?4e3:1e3;await g(b({promise:d,titleGetter:()=>`Uploading files to remote theme ${c(a)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment);let{progress:y,promise:F}=await p;await g(b({promise:F,titleGetter:()=>`Cleaning your remote theme ${c(y)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment),await g([{title:"Theme upload complete",task:async()=>{}}],l?.stderr,o?.multiEnvironment),H(i,o?.environment)}}}function b({promise:t,titleGetter:e,updateInterval:r}){let s=[],o=()=>{s.push({title:e(),task:async()=>{await Promise.race([t,new Promise(n=>setTimeout(()=>n("timeout"),r))])==="timeout"&&o()}})};return o(),s}function j(t,e,r,s,o,l){if(o.nodelete)return{progress:{current:0,total:0},promise:Promise.resolve()};let n=L(t,e),i=x(n),c={current:0,total:i.length};if(i.length===0)return{progress:c,promise:Promise.resolve()};let u=[];for(let p=0;p<i.length;p+=$){let k=i.slice(p,p+$),a=v(r.id,k.map(d=>d.key),s).then(d=>{d.forEach(f=>{if(l.set(f.key,f),!f.success){let y=f.errors?.asset?.map(F=>`-${F}`).join(`
2
2
  `);_(f.key,"delete")(new Error(`Failed to delete ${f.key}: ${y}`))}}),c.current+=k.length});u.push(a)}let h=Promise.all(u).then(()=>{c.current=c.total});return{progress:c,promise:h}}function L(t,e){let s=e.applyIgnoreFilters(t).filter(o=>!e.files.has(o.key));return m(`Files to be deleted:
3
3
  ${s.map(o=>`-${o.key}`).join(`
4
4
  `)}`),s}function x(t){let e=P(t);return[...e.contextualizedJsonFiles,...e.templateJsonFiles,...e.sectionJsonFiles,...e.otherJsonFiles,...e.sectionLiquidFiles,...e.blockLiquidFiles,...e.layoutFiles,...e.otherLiquidFiles,...e.configDataFile,...e.configSchemaFile,...e.staticAssetFiles]}var D=[{key:"config/settings_schema.json",value:"[]"},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"}];async function R(t,e,r){let s=new Set(r.map(l=>l.key)),o=D.filter(({key:l})=>!s.has(l));o.length>0&&await w(t.id,o,e)}function q(t,e,r,s,o){let l=I(e,t);e.unsyncedFileKeys.clear(),l.forEach(a=>e.unsyncedFileKeys.add(a.key));let{independentFiles:n,dependentFiles:i}=z(l),c={current:0,total:l.length},u=a=>a.length===0?Promise.resolve():Promise.all(S(a).map(d=>N(d,e,s,r.id,o).then(()=>{c.current+=d.length,d.forEach(f=>e.unsyncedFileKeys.delete(f.key))}))).then(()=>{}),h=i.reduce((a,d)=>a.then(()=>u(d)),Promise.resolve()),p=Promise.resolve().then(()=>u(n.flat())),k=Promise.all([h,p]).then(()=>{c.current=c.total});return{progress:c,promise:k}}function I(t,e){let r=K(t),s=t.applyIgnoreFilters(r),o=new Map(e.map(n=>[n.key,n])),l=s.filter(n=>{let i=o.get(n.key);return!i||i.checksum!==n.checksum});return m(`Files to be uploaded:
@@ -1,4 +1,4 @@
1
- import{a as V}from"./chunk-XGCJWCC4.js";import{a as N}from"./chunk-R26GJEH3.js";import{a as F}from"./chunk-QU5NL2QT.js";import{k as q,l as H,n as I}from"./chunk-XERJY4IG.js";import{a as Y}from"./chunk-57YF2UNT.js";import{a as y,c as U}from"./chunk-6BX62FFE.js";import{b as L}from"./chunk-HZXY7RWJ.js";import{a as p,b as w}from"./chunk-STJ3LWFL.js";import{b as g,c as x,d as M,f as _,j as R,n as j,p as D}from"./chunk-HT6MOPLW.js";import{r as k}from"./chunk-Z5DDPQ26.js";import{aa as B}from"./chunk-DODCPRXT.js";import{O as b,ra as a,sa as O}from"./chunk-EZ7EBYDT.js";import{A as P,v as f,w as d,x as C}from"./chunk-6YCGMS7X.js";import{m as S}from"./chunk-ZTE46E4Z.js";import{Lb as $}from"./chunk-3TFUSDHY.js";import{f as T,q as l}from"./chunk-773TIA5M.js";import{e as z,g as v}from"./chunk-VKWPEFWQ.js";v();var A=z(B(),1);async function Te(e,t,r,o){let n=e.environment?.[0],s=t??await b(k({store:e.store}),e.password);if(e.strict){let m=e.json?"json":"text",{offenses:c}=await L(e.path??l(),m);if(c.length>0&&c.filter(J=>J.severity===A.Severity.ERROR).length>0)throw O(new S(n?`[${n}] Theme check failed. Please fix the errors before pushing.`:"Theme check failed. Please fix the errors before pushing."))}a("theme-service:push:setup"),Y({verbose:e.verbose,noColor:e.noColor});let i=e.force??!1,h=e.path?T(e.path):l();if(!await I(h)&&!await U(i,void 0,n,r))return;e.listing&&await q(h,e.listing);let u=await Z(s,e,r);u&&(a("theme-service:push:setup"),await W(u,s,{allowLive:e.allowLive??!1,environment:n,force:i,ignore:e.ignore??[],json:e.json??!1,multiEnvironment:r,nodelete:e.nodelete??!1,only:e.only??[],path:h,publish:e.publish??!1,listing:e.listing},o))}async function W(e,t,r,o){a("theme-service:push:file-system");let n=await j(e.id,t),s=H(r.path,{filters:r,listing:r.listing});a("theme-service:push:file-system");let{uploadResults:i,renderThemeSyncProgress:h}=V(e,t,n,s,r,o);await h(),r.publish&&await D(e.id,t),await G(i,e,t,r)}function E(e){for(let[t,r]of e.entries())if(!r.success)return!0;return!1}async function G(e,t,r,o){o.json?K(t,r,e,o.environment):o.publish?Q(r,e,o.environment):X(t,r,e,o.environment)}function K(e,t,r,o){let n={environment:o,theme:{id:e.id,name:e.name,role:e.role,shop:t.storeFqdn,editor_url:w(e,t),preview_url:p(e,t)}};if(E(r)){let i=`${o?`[${o}] `:""}The theme '${e.name}' was pushed with errors`;n.theme.warning=i;let h={};for(let[u,m]of r.entries())!m.success&&m.errors?.asset&&(h[u]=m.errors.asset);Object.keys(h).length>0&&(n.theme.errors=h)}$(JSON.stringify(n))}function Q(e,t,r){let o=r?[{subdued:`Environment: ${r}
1
+ import{a as V}from"./chunk-LJZIIURR.js";import{a as N}from"./chunk-ZMSE5SQB.js";import{a as F}from"./chunk-LDWMX3KZ.js";import{k as q,l as H,n as I}from"./chunk-7MD5MIGN.js";import{a as Y}from"./chunk-FKH5ZF2C.js";import{a as y,c as U}from"./chunk-7TXWKLPY.js";import{b as L}from"./chunk-JRTJZAFJ.js";import{a as p,b as w}from"./chunk-STJ3LWFL.js";import{b as g,c as x,d as M,f as _,j as R,n as j,p as D}from"./chunk-Y7A7Z2V3.js";import{r as k}from"./chunk-445NFHXL.js";import{aa as B}from"./chunk-7L5AIZOP.js";import{O as b,ra as a,sa as O}from"./chunk-AFM3UZQO.js";import{A as P,v as f,w as d,x as C}from"./chunk-JX4HSDDG.js";import{m as S}from"./chunk-2GB3EAD3.js";import{Lb as $}from"./chunk-BCZMDFI2.js";import{f as T,q as l}from"./chunk-773TIA5M.js";import{e as z,g as v}from"./chunk-VKWPEFWQ.js";v();var A=z(B(),1);async function Te(e,t,r,o){let n=e.environment?.[0],s=t??await b(k({store:e.store}),e.password);if(e.strict){let m=e.json?"json":"text",{offenses:c}=await L(e.path??l(),m);if(c.length>0&&c.filter(J=>J.severity===A.Severity.ERROR).length>0)throw O(new S(n?`[${n}] Theme check failed. Please fix the errors before pushing.`:"Theme check failed. Please fix the errors before pushing."))}a("theme-service:push:setup"),Y({verbose:e.verbose,noColor:e.noColor});let i=e.force??!1,h=e.path?T(e.path):l();if(!await I(h)&&!await U(i,void 0,n,r))return;e.listing&&await q(h,e.listing);let u=await Z(s,e,r);u&&(a("theme-service:push:setup"),await W(u,s,{allowLive:e.allowLive??!1,environment:n,force:i,ignore:e.ignore??[],json:e.json??!1,multiEnvironment:r,nodelete:e.nodelete??!1,only:e.only??[],path:h,publish:e.publish??!1,listing:e.listing},o))}async function W(e,t,r,o){a("theme-service:push:file-system");let n=await j(e.id,t),s=H(r.path,{filters:r,listing:r.listing});a("theme-service:push:file-system");let{uploadResults:i,renderThemeSyncProgress:h}=V(e,t,n,s,r,o);await h(),r.publish&&await D(e.id,t),await G(i,e,t,r)}function E(e){for(let[t,r]of e.entries())if(!r.success)return!0;return!1}async function G(e,t,r,o){o.json?K(t,r,e,o.environment):o.publish?Q(r,e,o.environment):X(t,r,e,o.environment)}function K(e,t,r,o){let n={environment:o,theme:{id:e.id,name:e.name,role:e.role,shop:t.storeFqdn,editor_url:w(e,t),preview_url:p(e,t)}};if(E(r)){let i=`${o?`[${o}] `:""}The theme '${e.name}' was pushed with errors`;n.theme.warning=i;let h={};for(let[u,m]of r.entries())!m.success&&m.errors?.asset&&(h[u]=m.errors.asset);Object.keys(h).length>0&&(n.theme.errors=h)}$(JSON.stringify(n))}function Q(e,t,r){let o=r?[{subdued:`Environment: ${r}
2
2
 
3
3
  `}]:[];E(t)?d({body:[...o,`Your theme was published with errors and is now live at https://${e.storeFqdn}`]}):f({body:[...o,`Your theme is now live at https://${e.storeFqdn}`]})}function X(e,t,r,o){let n=o?[{subdued:`Environment: ${o}
4
4
 
@@ -1 +1 @@
1
- import{a}from"./chunk-KGZH4RFA.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var e=async()=>a.getAllSensitiveMetadata(),i=e;export{i as a};
1
+ import{a}from"./chunk-X5RH4ALT.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var e=async()=>a.getAllSensitiveMetadata(),i=e;export{i as a};
@@ -1 +1 @@
1
- import{o as n}from"./chunk-G7QW5OSQ.js";import{D as s}from"./chunk-6YCGMS7X.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function c(e){await s([{title:"Installing dependencies",task:async()=>{await n({packageManager:e.packageManager,directory:e.directory,deep:3})}}])}export{c as a};
1
+ import{o as n}from"./chunk-CELVG4AL.js";import{D as s}from"./chunk-JX4HSDDG.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function c(e){await s([{title:"Installing dependencies",task:async()=>{await n({packageManager:e.packageManager,directory:e.directory,deep:3})}}])}export{c as a};
@@ -1,4 +1,4 @@
1
- import{p as _,v as R}from"./chunk-Z5DDPQ26.js";import{c as g,l as P}from"./chunk-M5KKLAM6.js";import{b as N}from"./chunk-2Y6CYLKF.js";import{D as w,F as v,R as L,w as T,z as C}from"./chunk-6YCGMS7X.js";import{m as F}from"./chunk-ZTE46E4Z.js";import{Aa as I,Ca as k,Ta as A,Va as E,ka as b,ma as f,ua as y}from"./chunk-3TFUSDHY.js";import{d as r}from"./chunk-773TIA5M.js";import{a as H}from"./chunk-CTNBSUVU.js";import{e as D,g as d}from"./chunk-VKWPEFWQ.js";d();d();var h="https://github.com/Shopify/skeleton-theme.git",q="https://github.com/Shopify/theme-liquid-docs.git",S={all:"All",github:"VS Code (GitHub Copilot)",cursor:"Cursor",claude:"Claude"};async function G(t,e){await U(t,e)}async function O(t,e){await U(t,e,!0)}async function U(t,e,o){await w([{title:`Cloning ${t} into ${e}`,task:async()=>{await g({repoUrl:t,destination:e,latestTag:o,shallow:!0}),await P(e),t===h&&(await Promise.all(Object.keys(S).map(async c=>x(r(e,`.${c}`)))),await x(r(e,".git")))}}])}async function x(t){await A(t)&&await k(t)}async function M(){return await C({message:"Which LLM instruction file would you like to include in your theme?",choices:[...Object.entries(S).map(([e,o])=>({label:o,value:e})),{label:"Skip",value:null}]})}async function $(t,e){let o=[];await w([{title:`Adding AI instructions into ${t}`,task:async()=>{await b(async c=>{await g({repoUrl:q,destination:c,shallow:!0});let l=e==="all"?Object.keys(S).filter(a=>a!=="all"):[e];try{let a=r(c,"ai","github","copilot-instructions.md"),s=await f(a),n=r(t,"AGENTS.md"),u=`# AGENTS.md
1
+ import{p as _,v as R}from"./chunk-445NFHXL.js";import{c as g,l as P}from"./chunk-2OYQHHKC.js";import{b as N}from"./chunk-4TANJ4JK.js";import{D as w,F as v,R as L,w as T,z as C}from"./chunk-JX4HSDDG.js";import{m as F}from"./chunk-2GB3EAD3.js";import{Aa as I,Ca as k,Ta as A,Va as E,ka as b,ma as f,ua as y}from"./chunk-BCZMDFI2.js";import{d as r}from"./chunk-773TIA5M.js";import{a as H}from"./chunk-CTNBSUVU.js";import{e as D,g as d}from"./chunk-VKWPEFWQ.js";d();d();var h="https://github.com/Shopify/skeleton-theme.git",q="https://github.com/Shopify/theme-liquid-docs.git",S={all:"All",github:"VS Code (GitHub Copilot)",cursor:"Cursor",claude:"Claude"};async function G(t,e){await U(t,e)}async function O(t,e){await U(t,e,!0)}async function U(t,e,o){await w([{title:`Cloning ${t} into ${e}`,task:async()=>{await g({repoUrl:t,destination:e,latestTag:o,shallow:!0}),await P(e),t===h&&(await Promise.all(Object.keys(S).map(async c=>x(r(e,`.${c}`)))),await x(r(e,".git")))}}])}async function x(t){await A(t)&&await k(t)}async function M(){return await C({message:"Which LLM instruction file would you like to include in your theme?",choices:[...Object.entries(S).map(([e,o])=>({label:o,value:e})),{label:"Skip",value:null}]})}async function $(t,e){let o=[];await w([{title:`Adding AI instructions into ${t}`,task:async()=>{await b(async c=>{await g({repoUrl:q,destination:c,shallow:!0});let l=e==="all"?Object.keys(S).filter(a=>a!=="all"):[e];try{let a=r(c,"ai","github","copilot-instructions.md"),s=await f(a),n=r(t,"AGENTS.md"),u=`# AGENTS.md
2
2
 
3
3
  ${s}`;await y(n,u),(await Promise.all(l.map(p=>W(t,n,p)))).forEach(p=>{p.copiedFile&&o.push(p.copiedFile)})}catch{throw new F("Failed to create AI instructions")}})}}]),o.length>0&&T({headline:"Files created instead of symlinks.",body:`Shopify CLI attempted to create symbolic links between AGENTS.md and ${o.join(", ")}, but your system doesn't have Developer Mode enabled or symlinks are disabled. Separate files were created instead.`})}async function W(t,e,o){if(o==="cursor")return{};let l={github:"copilot-instructions.md",claude:"CLAUDE.md"}[o],a=r(t,l);try{return await I(e,a),{}}catch(s){if(s instanceof Error){let n=await f(e);return await y(a,n),{copiedFile:l}}else throw s}}var m=D(H(),1);var j,i=class extends R{async command(e,o,c,l){let a=l.name??await this.promptName(e.path),s=e["clone-url"],n=r(e.path,a);if(e.latest?await O(s,n):await G(s,n),!L())return;let u=await M();u&&await $(n,u)}async promptName(e){let o=await E({suffix:"theme",directory:e,family:"creative"});return v({message:"Name of the new theme",defaultValue:o})}};j=i;i.summary="Clones a Git repository to use as a starting point for building a new theme.";i.descriptionWithMarkdown=`Clones a Git repository to your local machine to use as the starting point for building a theme.
4
4
 
@@ -1 +1 @@
1
- import{a as h,b as w}from"./chunk-E3RDAVJT.js";import{m as f}from"./chunk-EZ7EBYDT.js";import{P as d}from"./chunk-6YCGMS7X.js";import{m as i}from"./chunk-ZTE46E4Z.js";import{Ga as m,na as p}from"./chunk-3TFUSDHY.js";import{d as u}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();import{writeFile as g}from"fs/promises";var S=1024*1024,y=100,U=y*S,E=3,_=new Set([408,429,500,502,503,504]);async function j(o,e){let t=u(e,"manifest.json");await g(t,JSON.stringify(o,null,2))}var A=["!**/*.js.map","!**/*.metafile.json"];async function k(o,e,t){let n=t??["**/*",...A];e.endsWith(".br")?await w({inputDirectory:o,outputPath:e,matchFilePattern:n}):await h({inputDirectory:o,outputZipPath:e,matchFilePattern:n})}async function C(o,e){let t=await m(e);if(t>U){let s=`${(Math.ceil(t/S*100)/100).toFixed(2)} MB`;throw new i(`Your app bundle exceeds the ${y} MB upload limit (it is ${s}).`,"Check the asset paths in your extension configuration \u2014 a misconfigured source can pull in much more than intended. Exclude large files or directories from your bundle, then try again.")}let n=p(e),r;for(let s=1;s<=E;s++){if(r=await f(o,{method:"put",body:n},"slow-request"),r.ok)return;let T=s===E;if(_.has(r.status)&&!T){await r.text().catch(()=>{}),await d(2**s*.1);continue}break}let a=r?.status,c=(await r?.text().catch(()=>""))?.trim();throw new i(`Failed to upload your app bundle to storage${a?` (HTTP ${a})`:""}.`,"This is usually transient. Please try again, and check your network connection if it persists.",c?[`Storage responded with: ${c.slice(0,300)}`]:void 0)}async function D(o,e){let t=await o.generateSignedUploadUrl(e);if(!t.assetUrl||t.userErrors?.length>0){let n=t.userErrors.map(r=>r.message).join(", ");throw new i(n)}return t.assetUrl}export{j as a,A as b,k as c,C as d,D as e};
1
+ import{a as h,b as w}from"./chunk-C7LFLIRT.js";import{m as f}from"./chunk-AFM3UZQO.js";import{P as d}from"./chunk-JX4HSDDG.js";import{m as i}from"./chunk-2GB3EAD3.js";import{Ga as m,na as p}from"./chunk-BCZMDFI2.js";import{d as u}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();import{writeFile as g}from"fs/promises";var S=1024*1024,y=100,U=y*S,E=3,_=new Set([408,429,500,502,503,504]);async function j(o,e){let t=u(e,"manifest.json");await g(t,JSON.stringify(o,null,2))}var A=["!**/*.js.map","!**/*.metafile.json"];async function k(o,e,t){let n=t??["**/*",...A];e.endsWith(".br")?await w({inputDirectory:o,outputPath:e,matchFilePattern:n}):await h({inputDirectory:o,outputZipPath:e,matchFilePattern:n})}async function C(o,e){let t=await m(e);if(t>U){let s=`${(Math.ceil(t/S*100)/100).toFixed(2)} MB`;throw new i(`Your app bundle exceeds the ${y} MB upload limit (it is ${s}).`,"Check the asset paths in your extension configuration \u2014 a misconfigured source can pull in much more than intended. Exclude large files or directories from your bundle, then try again.")}let n=p(e),r;for(let s=1;s<=E;s++){if(r=await f(o,{method:"put",body:n},"slow-request"),r.ok)return;let T=s===E;if(_.has(r.status)&&!T){await r.text().catch(()=>{}),await d(2**s*.1);continue}break}let a=r?.status,c=(await r?.text().catch(()=>""))?.trim();throw new i(`Failed to upload your app bundle to storage${a?` (HTTP ${a})`:""}.`,"This is usually transient. Please try again, and check your network connection if it persists.",c?[`Storage responded with: ${c.slice(0,300)}`]:void 0)}async function D(o,e){let t=await o.generateSignedUploadUrl(e);if(!t.assetUrl||t.userErrors?.length>0){let n=t.userErrors.map(r=>r.message).join(", ");throw new i(n)}return t.assetUrl}export{j as a,A as b,k as c,C as d,D as e};
@@ -1,4 +1,4 @@
1
- import{a as D}from"./chunk-R26GJEH3.js";import{a as _,c as b}from"./chunk-QU5NL2QT.js";import{a as c,b as F}from"./chunk-6BX62FFE.js";import{e as y,q as T}from"./chunk-HT6MOPLW.js";import{i as v,p as g,v as w}from"./chunk-Z5DDPQ26.js";import{b as u}from"./chunk-2Y6CYLKF.js";import{A as p,v as d}from"./chunk-6YCGMS7X.js";import{U as f}from"./chunk-3TFUSDHY.js";import{a as C}from"./chunk-CTNBSUVU.js";import{e as Y,g as h}from"./chunk-VKWPEFWQ.js";h();h();async function I(t,e,i){let r=e.themes;e.development&&(r=[(await new D(t).find()).id.toString()]);let n=t.storeFqdn,s=await L(t,{...e,themes:r,development:!1});if(!e.force&&!i&&!await M(s,n))return;await Promise.all(s.map(o=>(y(o)&&v(),T(o.id,t))));let l=e.environment?[{subdued:`Environment: ${e.environment}
1
+ import{a as D}from"./chunk-ZMSE5SQB.js";import{a as _,c as b}from"./chunk-LDWMX3KZ.js";import{a as c,b as F}from"./chunk-7TXWKLPY.js";import{e as y,q as T}from"./chunk-Y7A7Z2V3.js";import{i as v,p as g,v as w}from"./chunk-445NFHXL.js";import{b as u}from"./chunk-4TANJ4JK.js";import{A as p,v as d}from"./chunk-JX4HSDDG.js";import{U as f}from"./chunk-BCZMDFI2.js";import{a as C}from"./chunk-CTNBSUVU.js";import{e as Y,g as h}from"./chunk-VKWPEFWQ.js";h();h();async function I(t,e,i){let r=e.themes;e.development&&(r=[(await new D(t).find()).id.toString()]);let n=t.storeFqdn,s=await L(t,{...e,themes:r,development:!1});if(!e.force&&!i&&!await M(s,n))return;await Promise.all(s.map(o=>(y(o)&&v(),T(o.id,t))));let l=e.environment?[{subdued:`Environment: ${e.environment}
2
2
 
3
3
  `}]:[];d({body:f(s,o=>[...l,`The following themes were deleted from ${n}:`,F(o)],o=>[...l,"The theme",...c(o),`was deleted from ${n}.`])})}async function L(t,e){if(e.selectTheme||e.themes.length>0)return b(t,e);let i=t.storeFqdn;return[await _(t,{header:`Select a theme to delete from ${i}`,filter:{development:e.development}})]}async function M(t,e){let r={message:f(t,n=>[`Delete the following themes from ${e}?`],n=>["Delete",...c(n),`from ${e}?`]),confirmationMessage:"Yes, confirm changes",cancellationMessage:"Cancel"};return t.length>1&&(r.infoTable={"":t.map(c)}),p(r)}var a=Y(C(),1);var O,m=class extends w{async command(e,i,r){let{environment:n,development:s,force:l,theme:o}=e,E=o??[];await I(i,{selectTheme:e["show-all"],environment:n,development:s,themes:E,force:l},r)}};O=m;m.summary="Delete remote themes from the connected store. This command can't be undone.";m.descriptionWithMarkdown=`Deletes a theme from your store.
4
4
 
@@ -1,4 +1,4 @@
1
- import{C as s,u as e,v as o,w as n,x as i,y as t}from"./chunk-6YCGMS7X.js";import{m as d,p as l}from"./chunk-ZTE46E4Z.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();async function u(){e({headline:"CLI update available.",body:["Run",{command:"npm run shopify upgrade"},{char:"."}]}),e({headline:["To connect this project to your shopify store cd into:",{filePath:"/my-store/hydrogen.config.js"},{char:"."}],body:["You can also try the following steps:",{list:{items:[["Run",{command:"shopify project connect"}],["Run",{command:"hydrogen start"}]]}}]}),e({headline:"About your app.",customSections:[{body:{tabularData:[["Configuration file",{filePath:"shopify.app.scalable-transaction-app.toml"}],["App name",{userInput:"scalable-transaction-app"}],["Access scopes","read_products,write_products"]],firstColumnSubdued:!0}}]}),e({headline:[{userInput:"my-app"},"initialized and ready to build."],nextSteps:[["Run",{command:"cd verification-app"}],["To preview your project, run",{command:"npm app dev"}],["To add extensions, run",{command:"npm generate extension"}]],reference:[["Run",{command:"npm shopify help"}],{link:{label:"Dev docs",url:"https://shopify.dev"}}],customSections:[{title:"Custom section",body:{list:{items:[{link:{label:"Item 1",url:"https://shopify.com"}},"Item 2",{link:{url:"https://community.shopify.com/"}}]}}},{title:"Custom section 2",body:{list:{items:["Item 1","Item 2","Item 3"]}}}]}),o({headline:"CLI updated.",body:"You are now running version 3.47."}),o({headline:"Deployment successful.",body:"Your extensions have been uploaded to your Shopify Partners Dashboard.",nextSteps:[{link:{label:"See your deployment and set it live",url:"https://partners.shopify.com/1797046/apps/4523695/deployments"}}]}),n({headline:"You have reached your limit of checkout extensions for this app.",body:"You can free up space for a new one by deleting an existing one."}),n({headline:"Required access scope update.",body:"The deadline for re-selecting your app scopes is May 1, 2022.",reference:[{link:{label:"Dev docs",url:"https://shopify.dev/app/scopes"}}]});let a=new l("Something went wrong.");a.stack=`
1
+ import{C as s,u as e,v as o,w as n,x as i,y as t}from"./chunk-JX4HSDDG.js";import{m as d,p as l}from"./chunk-2GB3EAD3.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();async function u(){e({headline:"CLI update available.",body:["Run",{command:"npm run shopify upgrade"},{char:"."}]}),e({headline:["To connect this project to your shopify store cd into:",{filePath:"/my-store/hydrogen.config.js"},{char:"."}],body:["You can also try the following steps:",{list:{items:[["Run",{command:"shopify project connect"}],["Run",{command:"hydrogen start"}]]}}]}),e({headline:"About your app.",customSections:[{body:{tabularData:[["Configuration file",{filePath:"shopify.app.scalable-transaction-app.toml"}],["App name",{userInput:"scalable-transaction-app"}],["Access scopes","read_products,write_products"]],firstColumnSubdued:!0}}]}),e({headline:[{userInput:"my-app"},"initialized and ready to build."],nextSteps:[["Run",{command:"cd verification-app"}],["To preview your project, run",{command:"npm app dev"}],["To add extensions, run",{command:"npm generate extension"}]],reference:[["Run",{command:"npm shopify help"}],{link:{label:"Dev docs",url:"https://shopify.dev"}}],customSections:[{title:"Custom section",body:{list:{items:[{link:{label:"Item 1",url:"https://shopify.com"}},"Item 2",{link:{url:"https://community.shopify.com/"}}]}}},{title:"Custom section 2",body:{list:{items:["Item 1","Item 2","Item 3"]}}}]}),o({headline:"CLI updated.",body:"You are now running version 3.47."}),o({headline:"Deployment successful.",body:"Your extensions have been uploaded to your Shopify Partners Dashboard.",nextSteps:[{link:{label:"See your deployment and set it live",url:"https://partners.shopify.com/1797046/apps/4523695/deployments"}}]}),n({headline:"You have reached your limit of checkout extensions for this app.",body:"You can free up space for a new one by deleting an existing one."}),n({headline:"Required access scope update.",body:"The deadline for re-selecting your app scopes is May 1, 2022.",reference:[{link:{label:"Dev docs",url:"https://shopify.dev/app/scopes"}}]});let a=new l("Something went wrong.");a.stack=`
2
2
  Error: Unexpected error
3
3
  at Module._compile (internal/modules/cjs/loader.js:1137:30)
4
4
  at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
@@ -1,2 +1,2 @@
1
- import{w as h}from"./chunk-K7IZMKBR.js";import{a as d}from"./chunk-DHU767C3.js";import{a as f}from"./chunk-QG7TELFC.js";import{ta as l}from"./chunk-NOKCVDYD.js";import{b as m}from"./chunk-2Y6CYLKF.js";import{Lb as c,Xb as u}from"./chunk-3TFUSDHY.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();function g(p){let e=h(p),o=new Map;e.forEach(s=>{let r=s.split(".");if(r.length>=2){let i=r[0];o.has(i)||o.set(i,[]),o.set(i,[...o.get(i),s])}});for(let[s,r]of o)c(u(s,r.join(`
1
+ import{w as h}from"./chunk-QEL3F2NY.js";import{a as d}from"./chunk-WDCCITSG.js";import{a as f}from"./chunk-NENUUNWB.js";import{ta as l}from"./chunk-5HJTCBBV.js";import{b as m}from"./chunk-4TANJ4JK.js";import{Lb as c,Xb as u}from"./chunk-BCZMDFI2.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();function g(p){let e=h(p),o=new Map;e.forEach(s=>{let r=s.split(".");if(r.length>=2){let i=r[0];o.has(i)||o.set(i,[]),o.set(i,[...o.get(i),s])}});for(let[s,r]of o)c(u(s,r.join(`
2
2
  `)))}var a,t=class extends d{async run(){let{flags:e}=await this.parse(a),{app:o}=await l({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config});return o.errors.isEmpty()?g(o):process.exit(2),{app:o}}};a=t;t.summary="Print out a list of sources that may be used with the logs command.";t.descriptionWithMarkdown="The output source names can be used with the `--source` argument of `shopify app logs` to filter log output. Currently only function extensions are supported as sources.";t.description=a.descriptionWithoutMarkdown();t.flags={...m,...f};var N=t;export{N as a};
@@ -1 +1 @@
1
- import{a as C,c as F}from"./chunk-FMTPUYSH.js";import{d as k,f as A,u as q}from"./chunk-JS3X6BDT.js";import{a as N}from"./chunk-DHU767C3.js";import{a as E,c as J}from"./chunk-QG7TELFC.js";import{b as x}from"./chunk-PXSX63RF.js";import{b}from"./chunk-2Y6CYLKF.js";import{E as m,v as f,x as S}from"./chunk-6YCGMS7X.js";import{d as z,f as y,m as u}from"./chunk-ZTE46E4Z.js";import{Fb as c,Hb as n,Lb as O,Ta as v,ma as w,ua as g}from"./chunk-3TFUSDHY.js";import{e as I,g as l}from"./chunk-VKWPEFWQ.js";l();l();var M=I(z(),1);async function D(s,e){if(s)try{return JSON.parse(s)}catch(t){let r=t instanceof Error?t.message:"Unknown error";throw new u(n`Invalid JSON in ${c.yellow("--variables")} flag: ${r}`,"Please provide valid JSON format.")}else if(e){if(!await v(e))throw new u(n`Variable file not found at ${c.path(e)}. Please check the path and try again.`);let t=await w(e,{encoding:"utf8"});try{return JSON.parse(t)}catch(r){let p=r instanceof Error?r.message:"Unknown error";throw new u(n`Invalid JSON in variable file ${c.path(e)}: ${p}`,"Please provide valid JSON format.")}}}async function $(s){let{remoteApp:e,store:t,query:r,variables:p,variableFile:L,version:R,outputFile:d}=s,{adminSession:V,version:G}=await m({title:n`Authenticating`,task:async()=>{let o=await C(e,t.shopDomain),i=await A({adminSession:o,userSpecifiedVersion:R});return{adminSession:o,version:i}},renderOptions:{stdout:process.stderr}}),P=await D(p,L);k(r),F(r,t);try{let o=await m({title:n`Executing GraphQL operation`,task:async()=>x({query:(0,M.parse)(r),session:V,variables:P,version:G,responseOptions:{handleErrors:!1}}),renderOptions:{stdout:process.stderr}}),i=JSON.stringify(o,null,2);d?(await g(d,i),f({headline:"Operation succeeded.",body:`Results written to ${d}`})):(f({headline:"Operation succeeded."}),O(i))}catch(o){if(o instanceof y){let i={errors:o.response.errors},Q=JSON.stringify(i,null,2);S({headline:"GraphQL operation failed.",body:Q});return}throw o}}var h,a=class extends N{async run(){let{flags:e}=await this.parse(h),{query:t,appContextResult:r,store:p}=await q(e);return await $({organization:r.organization,remoteApp:r.remoteApp,store:p,query:t,variables:e.variables,variableFile:e["variable-file"],outputFile:e["output-file"],...e.version&&{version:e.version}}),{app:r.app}}};h=a;a.summary="Execute GraphQL queries and mutations.";a.descriptionWithMarkdown="Executes an Admin API GraphQL query or mutation on the specified store. Mutations are only allowed on dev stores.\n\n For operations that process large amounts of data, use [`bulk execute`](https://shopify.dev/docs/api/shopify-cli/app/app-bulk-execute) instead.";a.description=h.descriptionWithoutMarkdown();a.flags={...b,...E,...J};var oe=a;export{oe as a};
1
+ import{a as C,c as F}from"./chunk-5QDM4XIK.js";import{d as k,f as A,u as q}from"./chunk-5INBKZRD.js";import{a as N}from"./chunk-WDCCITSG.js";import{a as E,c as J}from"./chunk-NENUUNWB.js";import{b as x}from"./chunk-4BPFJDH3.js";import{b}from"./chunk-4TANJ4JK.js";import{E as m,v as f,x as S}from"./chunk-JX4HSDDG.js";import{d as z,f as y,m as u}from"./chunk-2GB3EAD3.js";import{Fb as c,Hb as n,Lb as O,Ta as v,ma as w,ua as g}from"./chunk-BCZMDFI2.js";import{e as I,g as l}from"./chunk-VKWPEFWQ.js";l();l();var M=I(z(),1);async function D(s,e){if(s)try{return JSON.parse(s)}catch(t){let r=t instanceof Error?t.message:"Unknown error";throw new u(n`Invalid JSON in ${c.yellow("--variables")} flag: ${r}`,"Please provide valid JSON format.")}else if(e){if(!await v(e))throw new u(n`Variable file not found at ${c.path(e)}. Please check the path and try again.`);let t=await w(e,{encoding:"utf8"});try{return JSON.parse(t)}catch(r){let p=r instanceof Error?r.message:"Unknown error";throw new u(n`Invalid JSON in variable file ${c.path(e)}: ${p}`,"Please provide valid JSON format.")}}}async function $(s){let{remoteApp:e,store:t,query:r,variables:p,variableFile:L,version:R,outputFile:d}=s,{adminSession:V,version:G}=await m({title:n`Authenticating`,task:async()=>{let o=await C(e,t.shopDomain),i=await A({adminSession:o,userSpecifiedVersion:R});return{adminSession:o,version:i}},renderOptions:{stdout:process.stderr}}),P=await D(p,L);k(r),F(r,t);try{let o=await m({title:n`Executing GraphQL operation`,task:async()=>x({query:(0,M.parse)(r),session:V,variables:P,version:G,responseOptions:{handleErrors:!1}}),renderOptions:{stdout:process.stderr}}),i=JSON.stringify(o,null,2);d?(await g(d,i),f({headline:"Operation succeeded.",body:`Results written to ${d}`})):(f({headline:"Operation succeeded."}),O(i))}catch(o){if(o instanceof y){let i={errors:o.response.errors},Q=JSON.stringify(i,null,2);S({headline:"GraphQL operation failed.",body:Q});return}throw o}}var h,a=class extends N{async run(){let{flags:e}=await this.parse(h),{query:t,appContextResult:r,store:p}=await q(e);return await $({organization:r.organization,remoteApp:r.remoteApp,store:p,query:t,variables:e.variables,variableFile:e["variable-file"],outputFile:e["output-file"],...e.version&&{version:e.version}}),{app:r.app}}};h=a;a.summary="Execute GraphQL queries and mutations.";a.descriptionWithMarkdown="Executes an Admin API GraphQL query or mutation on the specified store. Mutations are only allowed on dev stores.\n\n For operations that process large amounts of data, use [`bulk execute`](https://shopify.dev/docs/api/shopify-cli/app/app-bulk-execute) instead.";a.description=h.descriptionWithoutMarkdown();a.flags={...b,...E,...J};var oe=a;export{oe as a};
@@ -1,4 +1,4 @@
1
- import{a as u}from"./chunk-R26GJEH3.js";import{a as y}from"./chunk-QU5NL2QT.js";import{a as w}from"./chunk-6BX62FFE.js";import{a as c,b as v}from"./chunk-STJ3LWFL.js";import{p as d,v as f}from"./chunk-Z5DDPQ26.js";import{b as s}from"./chunk-2Y6CYLKF.js";import{J as h,u as p}from"./chunk-6YCGMS7X.js";import{a as O}from"./chunk-CTNBSUVU.js";import{e as I,g as m}from"./chunk-VKWPEFWQ.js";m();m();async function F(o,t){let i=new u(o),E=(await(t.development?i.find():i.fetch()))?.id,n=await y(o,{header:"Select a theme to open",filter:{live:t.live,theme:t.development?`${E}`:t.theme}}),l=c(n,o),a=v(n,o);p({body:["Preview information for theme",...w(n),`
1
+ import{a as u}from"./chunk-ZMSE5SQB.js";import{a as y}from"./chunk-LDWMX3KZ.js";import{a as w}from"./chunk-7TXWKLPY.js";import{a as c,b as v}from"./chunk-STJ3LWFL.js";import{p as d,v as f}from"./chunk-445NFHXL.js";import{b as s}from"./chunk-4TANJ4JK.js";import{J as h,u as p}from"./chunk-JX4HSDDG.js";import{a as O}from"./chunk-CTNBSUVU.js";import{e as I,g as m}from"./chunk-VKWPEFWQ.js";m();m();async function F(o,t){let i=new u(o),E=(await(t.development?i.find():i.fetch()))?.id,n=await y(o,{header:"Select a theme to open",filter:{live:t.live,theme:t.development?`${E}`:t.theme}}),l=c(n,o),a=v(n,o);p({body:["Preview information for theme",...w(n),`
2
2
 
3
3
  `,{list:{items:[{link:{label:"Preview your theme",url:l}},{link:{label:"Customize your theme at the theme editor",url:a}}]}}]}),t.editor?await h(a):await h(l)}var r=I(O(),1);var g,e=class extends f{async command(t,i){await F(i,t)}};g=e;e.summary="Opens the preview of your remote theme.";e.descriptionWithMarkdown=`Returns links that let you preview the specified theme. The following links are returned:
4
4
 
@@ -1 +1 @@
1
- import{y as r}from"./chunk-EZ7EBYDT.js";import{f as t,q as n}from"./chunk-773TIA5M.js";import{a as o}from"./chunk-CTNBSUVU.js";import{e as s,g as a}from"./chunk-VKWPEFWQ.js";a();var e=s(o(),1);var c={path:e.Flags.string({description:"The path to your app directory.",parse:async i=>t(i),default:async()=>n(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"}),config:e.Flags.string({hidden:!1,char:"c",description:"The name of the app configuration.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"client-id":e.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),reset:e.Flags.boolean({hidden:!1,description:"Reset all your settings.",env:"SHOPIFY_FLAG_RESET",default:!1,exclusive:["config"]})},p={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation to run as a bulk operation.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your mutation, in JSON format. Can be specified multiple times.",env:"SHOPIFY_FLAG_VARIABLES",multiple:!0,exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSONL format (one JSON object per line). Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),watch:e.Flags.boolean({description:"Wait for bulk operation results before exiting. Defaults to false.",env:"SHOPIFY_FLAG_WATCH"}),"output-file":e.Flags.string({description:"The file path where results should be written if --watch is specified. If not specified, results will be written to STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE",dependsOn:["watch"]}),version:e.Flags.string({description:"The API version to use for the bulk operation. If not specified, uses the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})},h={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation, as a string.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES",exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSON format. Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The myshopify.com domain of the store to execute against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),version:e.Flags.string({description:"The API version to use for the query or mutation. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"}),"output-file":e.Flags.string({description:"The file name where results should be written, instead of STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE"})};export{c as a,p as b,h as c};
1
+ import{y as r}from"./chunk-AFM3UZQO.js";import{f as t,q as n}from"./chunk-773TIA5M.js";import{a as o}from"./chunk-CTNBSUVU.js";import{e as s,g as a}from"./chunk-VKWPEFWQ.js";a();var e=s(o(),1);var c={path:e.Flags.string({description:"The path to your app directory.",parse:async i=>t(i),default:async()=>n(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"}),config:e.Flags.string({hidden:!1,char:"c",description:"The name of the app configuration.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"client-id":e.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),reset:e.Flags.boolean({hidden:!1,description:"Reset all your settings.",env:"SHOPIFY_FLAG_RESET",default:!1,exclusive:["config"]})},p={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation to run as a bulk operation.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your mutation, in JSON format. Can be specified multiple times.",env:"SHOPIFY_FLAG_VARIABLES",multiple:!0,exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSONL format (one JSON object per line). Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),watch:e.Flags.boolean({description:"Wait for bulk operation results before exiting. Defaults to false.",env:"SHOPIFY_FLAG_WATCH"}),"output-file":e.Flags.string({description:"The file path where results should be written if --watch is specified. If not specified, results will be written to STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE",dependsOn:["watch"]}),version:e.Flags.string({description:"The API version to use for the bulk operation. If not specified, uses the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})},h={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation, as a string.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES",exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSON format. Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The myshopify.com domain of the store to execute against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),version:e.Flags.string({description:"The API version to use for the query or mutation. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"}),"output-file":e.Flags.string({description:"The file name where results should be written, instead of STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE"})};export{c as a,p as b,h as c};
@@ -1 +1 @@
1
- import{f as o}from"./chunk-2Y6CYLKF.js";import{b as s}from"./chunk-2MCH43SL.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends s{static{this.description="Clear the CLI cache, used to store some API responses and handle notifications status"}static{this.hidden=!0}async run(){await o()}};export{t as a};
1
+ import{f as o}from"./chunk-4TANJ4JK.js";import{b as s}from"./chunk-WHT2RCAD.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends s{static{this.description="Clear the CLI cache, used to store some API responses and handle notifications status"}static{this.hidden=!0}async run(){await o()}};export{t as a};
@@ -1,4 +1,4 @@
1
- import{c as w}from"./chunk-UM3OHLCX.js";import{c as F,e as x}from"./chunk-TQNALMQH.js";import{B as h,m as S,t as L,u as P,v as f,z as N}from"./chunk-G7QW5OSQ.js";import{o as $,q as m}from"./chunk-WR2ZQGUR.js";import{O as V,S as y,v as R}from"./chunk-6YCGMS7X.js";import{a as c}from"./chunk-M4BEPPA3.js";import{Bb as U,Cb as D,Fb as u,Hb as p,Mb as d,Pb as l,Qb as E,yb as A}from"./chunk-3TFUSDHY.js";import{c as _}from"./chunk-J3IHP46B.js";import{p as C,q as b,r as I}from"./chunk-773TIA5M.js";import{g as v}from"./chunk-VKWPEFWQ.js";v();function M(){let e=U();if(!(!e||e==="unknown"))return e==="homebrew"?"brew upgrade shopify-cli":e==="yarn"?`${e} global add @shopify/cli@latest`:`${e} ${e==="pnpm"?"add":"install"} -g @shopify/cli@latest`}async function re(e={}){let n=I()??b(),o=D(n),t=A();if(_()){d("Skipping upgrade in development mode.");return}if(!(e.autoupgrade&&!t))if(t){let a=M();if(!a)throw new Error("Could not determine the package manager");let[r,...i]=a.split(" ");if(!r)throw new Error("Could not determine the command to run");let s=f("@shopify/cli",c),T=s?`\u2728 New version of Shopify CLI available! (${c} \u2192 ${s})`:"\u2728 New version of Shopify CLI available!";d(p`${T}
1
+ import{c as w}from"./chunk-QARALFHD.js";import{c as F,e as x}from"./chunk-6ZPHB5U2.js";import{B as h,m as S,t as L,u as P,v as f,z as N}from"./chunk-CELVG4AL.js";import{o as $,q as m}from"./chunk-GXO2RRV2.js";import{O as V,S as y,v as R}from"./chunk-JX4HSDDG.js";import{a as c}from"./chunk-REABQXMP.js";import{Bb as U,Cb as D,Fb as u,Hb as p,Mb as d,Pb as l,Qb as E,yb as A}from"./chunk-BCZMDFI2.js";import{c as _}from"./chunk-EQNJ2NQD.js";import{p as C,q as b,r as I}from"./chunk-773TIA5M.js";import{g as v}from"./chunk-VKWPEFWQ.js";v();function M(){let e=U();if(!(!e||e==="unknown"))return e==="homebrew"?"brew upgrade shopify-cli":e==="yarn"?`${e} global add @shopify/cli@latest`:`${e} ${e==="pnpm"?"add":"install"} -g @shopify/cli@latest`}async function re(e={}){let n=I()??b(),o=D(n),t=A();if(_()){d("Skipping upgrade in development mode.");return}if(!(e.autoupgrade&&!t))if(t){let a=M();if(!a)throw new Error("Could not determine the package manager");let[r,...i]=a.split(" ");if(!r)throw new Error("Could not determine the command to run");let s=f("@shopify/cli",c),T=s?`\u2728 New version of Shopify CLI available! (${c} \u2192 ${s})`:"\u2728 New version of Shopify CLI available!";d(p`${T}
2
2
  Now upgrading by running: ${u.genericShellCommand(a)}...`),await V(r,i,{stdio:"inherit"}),R({headline:"Shopify CLI upgraded.",body:s?`You're now on version ${s}.`:"You're now on the latest version."})}else if(o)await Y(o,c);else throw new Error("Could not determine the local project directory")}function ie(){let e=c,n=f("@shopify/cli",e);if(!n){l("Auto-upgrade: No newer version available.");return}if(process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1")return l("Auto-upgrade: Forcing auto-upgrade because of SHOPIFY_CLI_FORCE_AUTO_UPGRADE."),n;if(!m()){l("Auto-upgrade: Skipping because auto-upgrade is not enabled.");return}if(y()){l("Auto-upgrade: Skipping auto-upgrade in CI.");return}if(w(e)){l("Auto-upgrade: Skipping auto-upgrade for pre-release version.");return}return n}async function se(){try{let{notifications:e}=await F();return x(e,"",["autoupgrade"]).some(o=>o.type==="error")}catch{return!1}}async function ce(){if(y()||w(c)||m())return;let e=f("@shopify/cli",c);e&&await $("warn-on-available-upgrade",{days:1},async()=>{E(G(e))})}function G(e,n=!1){let o=M(),t=o?p`💡 Version ${e} available! Run ${u.genericShellCommand(o)}`.value:p`💡 Version ${e} available!`.value;if(n){let a=`https://github.com/Shopify/cli/releases/tag/${e}`,r=p`⚠️ This is a major version — review breaking changes before upgrading:\n ${u.link(a,a)}`.value;return`${t}
3
3
 
4
4
  ${r}`}return t}async function Y(e,n){let o=(await h(e)).content,t=o.dependencies??{},a=o.devDependencies??{},i={...t,...a}[await k()];if(!i){l("Auto-upgrade: CLI dependency not found in project dependencies, skipping local upgrade.");return}i.slice(0,1).match(/[\^~]/)&&(i=n);let s=await P(await k(),i);s?q(i,s):W(i),await J("prod",t,e),await J("dev",a,e)}async function J(e,n,o){let t=[await k(),...await j()].filter(r=>!!n[r]).map(r=>({name:r,version:"latest"})),a=await L(o);t.length>0&&await N(t,{packageManager:await S(o),type:e,directory:o,stdout:process.stdout,stderr:process.stderr,addToRootDirectory:a})}async function k(){return(await O()).name}async function j(){return(await O())?.oclif?.plugins??[]}var g;async function O(){if(!g){let e=await h(C(import.meta.url));g=g??e.content}return g}function W(e){d(p`You're on the latest version, ${u.yellow(e)}, no need to upgrade!`)}function q(e,n){d(p`Upgrading CLI from ${u.yellow(e)} to ${u.yellow(n)}...`)}export{M as a,re as b,ie as c,se as d,ce as e,G as f};