shopify 5.0.0 → 5.0.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 (327) hide show
  1. package/dist/{analytics-VKKJNJ62.js → analytics-RSUIYNLC.js} +1 -1
  2. package/dist/analytics-V2SDYXQJ.js +1 -0
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-NK2MGR6A.js → chunk-2AW3KBTP.js} +1 -1
  5. package/dist/{chunk-BCYTZ7LM.js → chunk-2CJQQQW4.js} +1 -1
  6. package/dist/{chunk-EITIW5OX.js → chunk-2M4BKFYF.js} +1 -1
  7. package/dist/chunk-2M535QQJ.js +6 -0
  8. package/dist/{chunk-5TB52UUV.js → chunk-2NZ7GDDR.js} +1 -1
  9. package/dist/{chunk-YVY32DNA.js → chunk-2QQ7EBJD.js} +1 -1
  10. package/dist/chunk-2RFCYZMG.js +47 -0
  11. package/dist/{chunk-S67I4E7M.js → chunk-2S5NPJEJ.js} +1 -1
  12. package/dist/{chunk-YVVU4J5O.js → chunk-2TPLPZA2.js} +1 -1
  13. package/dist/{chunk-C3KEDG33.js → chunk-2YGPWG3I.js} +1 -1
  14. package/dist/{chunk-TTEF7GTX.js → chunk-32O27NE3.js} +1 -1
  15. package/dist/{chunk-24NUJTIH.js → chunk-364BVGRY.js} +1 -1
  16. package/dist/{chunk-BJPDJIS4.js → chunk-36TZ447N.js} +1 -1
  17. package/dist/{chunk-5UWMXOHM.js → chunk-37P5YOP2.js} +1 -1
  18. package/dist/{chunk-4CRBTSVP.js → chunk-3G2PEYPI.js} +1 -1
  19. package/dist/{chunk-EXFBZPZS.js → chunk-3JACWBUC.js} +1 -1
  20. package/dist/{chunk-53BG3NLH.js → chunk-43HKFLOU.js} +1 -1
  21. package/dist/chunk-46JYM3GH.js +1 -0
  22. package/dist/{chunk-XITZIDCL.js → chunk-4EDE3UH7.js} +1 -1
  23. package/dist/{chunk-G6ZMSWEU.js → chunk-4GQEXVDT.js} +1 -1
  24. package/dist/{chunk-SNNZ4U2W.js → chunk-4IUXLUFD.js} +1 -1
  25. package/dist/{chunk-ULD7CIOY.js → chunk-4QZ6OBXL.js} +1 -1
  26. package/dist/{chunk-YKS7MH3F.js → chunk-4SDCXKYR.js} +1 -1
  27. package/dist/{chunk-VB7YQMAM.js → chunk-56GKTWFF.js} +1 -1
  28. package/dist/{chunk-Q66CI37F.js → chunk-5AQ5JT2V.js} +1 -1
  29. package/dist/{chunk-Q2SZCZE7.js → chunk-5AWELO3D.js} +1 -1
  30. package/dist/{chunk-VHUD3CBC.js → chunk-5D4FNAAD.js} +1 -1
  31. package/dist/{chunk-46MSIQ6Z.js → chunk-5TWYJQQO.js} +1 -1
  32. package/dist/{chunk-OGWPS55W.js → chunk-5XOEMYEQ.js} +1 -1
  33. package/dist/{chunk-MR2AUT7Q.js → chunk-5YUDEPEY.js} +1 -1
  34. package/dist/{chunk-CCQNP5YR.js → chunk-5YXYYQBX.js} +1 -1
  35. package/dist/{chunk-P33TONYG.js → chunk-63UKZLPC.js} +1 -1
  36. package/dist/chunk-6JZC6UKY.js +20 -0
  37. package/dist/{chunk-7QUZWCJZ.js → chunk-6Y6A2QGK.js} +1 -1
  38. package/dist/{chunk-M7LPHCP2.js → chunk-75LAVRRL.js} +2 -2
  39. package/dist/{chunk-AJMDF3QC.js → chunk-7AWAOPLA.js} +1 -1
  40. package/dist/{chunk-AXC2MHHO.js → chunk-7NYCJG2U.js} +1 -1
  41. package/dist/{chunk-6DXP7PQ7.js → chunk-7U2MTK6I.js} +1 -1
  42. package/dist/{chunk-JEA3C7ON.js → chunk-7XAEI4XT.js} +1 -1
  43. package/dist/{chunk-TPSA4JN5.js → chunk-A7LBGXWG.js} +1 -1
  44. package/dist/{chunk-2CMEKSI7.js → chunk-ADVLRSSO.js} +1 -1
  45. package/dist/{chunk-3LVCG4JB.js → chunk-AIEVQSI3.js} +1 -1
  46. package/dist/{chunk-M4BVLMPH.js → chunk-AOBE6HN6.js} +1 -1
  47. package/dist/{chunk-PSSYLJG4.js → chunk-AQ34X5B3.js} +1 -1
  48. package/dist/{chunk-43KLFFP7.js → chunk-B2VE7WOX.js} +1 -1
  49. package/dist/{chunk-L7MSPGDS.js → chunk-B4ISKIXN.js} +1 -1
  50. package/dist/{chunk-EMSF57ZB.js → chunk-BB7GAZP6.js} +1 -1
  51. package/dist/chunk-BNTOGZLY.js +1 -0
  52. package/dist/chunk-BU3JQM3W.js +1 -0
  53. package/dist/{chunk-LHKVXJPX.js → chunk-C3LL5CZA.js} +1 -1
  54. package/dist/{chunk-GFVKTWFT.js → chunk-C4EKNOLY.js} +1 -1
  55. package/dist/{chunk-5NEGOQT6.js → chunk-CFUZ6574.js} +1 -1
  56. package/dist/{chunk-NB4BRW3H.js → chunk-CKVVJ4XO.js} +1 -1
  57. package/dist/{chunk-VWH3VPYI.js → chunk-CNPBDSDL.js} +1 -1
  58. package/dist/{chunk-U25W35TX.js → chunk-CWR3IFXD.js} +1 -1
  59. package/dist/{chunk-VW6QS7DO.js → chunk-CX3ANDPI.js} +1 -1
  60. package/dist/{chunk-GB6E3ATN.js → chunk-CXPYOLGM.js} +1 -1
  61. package/dist/{chunk-FWB3GLMW.js → chunk-D4LFWIFE.js} +1 -1
  62. package/dist/{chunk-PZUGDE7N.js → chunk-DM7BTMFP.js} +1 -1
  63. package/dist/{chunk-GRGFA26K.js → chunk-DSKAIC7O.js} +1 -1
  64. package/dist/{chunk-M5TGCSUK.js → chunk-DTRENW4Q.js} +1 -1
  65. package/dist/{chunk-EGCWR5AS.js → chunk-DVW7NDVD.js} +1 -1
  66. package/dist/{chunk-YGYEM6QO.js → chunk-E3CTHNQS.js} +1 -1
  67. package/dist/{chunk-6BNKBCCU.js → chunk-EA5XVQJT.js} +1 -1
  68. package/dist/{chunk-XM7YUXTF.js → chunk-EH22T4FI.js} +2 -2
  69. package/dist/{chunk-XNNKLUTN.js → chunk-ETXBF6Q7.js} +1 -1
  70. package/dist/{chunk-AYL6KBPE.js → chunk-EXTVC33U.js} +1 -1
  71. package/dist/{chunk-J6TW43TG.js → chunk-F3OM2YO6.js} +1 -1
  72. package/dist/{chunk-X7HVAVSZ.js → chunk-FHNJLON5.js} +1 -1
  73. package/dist/{chunk-SFPXYHHL.js → chunk-FK5OFLSJ.js} +1 -1
  74. package/dist/{chunk-NDKSG4CC.js → chunk-FNWXMCSD.js} +1 -1
  75. package/dist/{chunk-KKPOOIE4.js → chunk-FPOZMNT2.js} +1 -1
  76. package/dist/{chunk-HIRTL45Q.js → chunk-FS5PZCZ3.js} +1 -1
  77. package/dist/{chunk-Q5MEFIMV.js → chunk-FTHVOIK7.js} +1 -1
  78. package/dist/chunk-FVRI7ZKE.js +103 -0
  79. package/dist/{chunk-CIK5BF7V.js → chunk-GCKGQFV7.js} +1 -1
  80. package/dist/{chunk-PEVIRAMR.js → chunk-GGJUPL4W.js} +1 -1
  81. package/dist/{chunk-R7EMV77H.js → chunk-GHU6YEXH.js} +1 -1
  82. package/dist/{chunk-WGUOLSMG.js → chunk-GNPIKPHB.js} +1 -1
  83. package/dist/{chunk-3A3DZVEJ.js → chunk-GSGCSBRN.js} +1 -1
  84. package/dist/{chunk-PIAD3F6M.js → chunk-H57KYDEI.js} +1 -1
  85. package/dist/{chunk-GAMC2BNY.js → chunk-HNU6R7RT.js} +1 -1
  86. package/dist/{chunk-UOS2XLGG.js → chunk-HP2ZAAY7.js} +1 -1
  87. package/dist/{chunk-IEQ4UOH3.js → chunk-HPT3UXZ5.js} +1 -1
  88. package/dist/chunk-HT66BOEC.js +8 -0
  89. package/dist/{chunk-4ARCB6DT.js → chunk-HXNGLDMU.js} +1 -1
  90. package/dist/{chunk-BVSKBX7T.js → chunk-IAL6IQYW.js} +1 -1
  91. package/dist/{chunk-4RDFMBRG.js → chunk-IULZYDCI.js} +1 -1
  92. package/dist/{chunk-UIQL5ZF3.js → chunk-IWTOC6DG.js} +1 -1
  93. package/dist/{chunk-2ORRV7GH.js → chunk-IY5EI5V2.js} +1 -1
  94. package/dist/{chunk-ZT5WFUKJ.js → chunk-J3UXIC23.js} +1 -1
  95. package/dist/{chunk-Q2XRITUG.js → chunk-J5DUFSR4.js} +1 -1
  96. package/dist/{chunk-2VSNFOKD.js → chunk-J7BTC45S.js} +1 -1
  97. package/dist/{chunk-SL3VBI62.js → chunk-JMVK2BIB.js} +1 -1
  98. package/dist/{chunk-X2H6I2WW.js → chunk-JUTULEWW.js} +1 -1
  99. package/dist/{chunk-KGRIYAMA.js → chunk-K3YALQBQ.js} +1 -1
  100. package/dist/{chunk-SFQEHDJY.js → chunk-KGASGUDQ.js} +1 -1
  101. package/dist/{chunk-LDU5T3DN.js → chunk-KLYGMYXV.js} +1 -1
  102. package/dist/{chunk-7WPUV7GY.js → chunk-KNQXCU3Y.js} +1 -1
  103. package/dist/{chunk-C7V755IT.js → chunk-KOTZSPZA.js} +1 -1
  104. package/dist/{chunk-DJAZBPYA.js → chunk-KT5QQOES.js} +1 -1
  105. package/dist/{chunk-4SS6DXC7.js → chunk-KVF55INC.js} +1 -1
  106. package/dist/{chunk-MXJAH2GW.js → chunk-L6VONMA2.js} +1 -1
  107. package/dist/{chunk-GXORLBVN.js → chunk-LENSEW2F.js} +1 -1
  108. package/dist/{chunk-7UOA4DI7.js → chunk-LGXNXAQA.js} +1 -1
  109. package/dist/{chunk-ZYQ2XWC5.js → chunk-LR4J4KYJ.js} +1 -1
  110. package/dist/{chunk-QN3774QI.js → chunk-LWMKZJ4M.js} +1 -1
  111. package/dist/{chunk-I4OVLRQR.js → chunk-M2KX3PXA.js} +1 -1
  112. package/dist/{chunk-D7NB7YR6.js → chunk-M73IECPW.js} +1 -1
  113. package/dist/{chunk-4TI7U2PN.js → chunk-M7NLCGCP.js} +1 -1
  114. package/dist/chunk-MHWETFNT.js +1 -0
  115. package/dist/{chunk-CCMDZX35.js → chunk-MMUGP3WP.js} +1 -1
  116. package/dist/{chunk-LMQGNECW.js → chunk-MNWT2SQO.js} +1 -1
  117. package/dist/{chunk-R2BDABJD.js → chunk-MS7DTL4U.js} +1 -1
  118. package/dist/{chunk-OVWUGAEU.js → chunk-MU2X7NGF.js} +1 -1
  119. package/dist/{chunk-GCNA3HXH.js → chunk-MXXMIPUN.js} +1 -1
  120. package/dist/{chunk-POKY4RWR.js → chunk-MZCIRMZJ.js} +1 -1
  121. package/dist/{chunk-PGLWZMJU.js → chunk-MZWPIFAM.js} +1 -1
  122. package/dist/{chunk-H4V55Y3Z.js → chunk-NCPZVARH.js} +83 -83
  123. package/dist/{chunk-3G4HJO72.js → chunk-NJVNGEOU.js} +1 -1
  124. package/dist/{chunk-CEIJKJOF.js → chunk-NMECLRGK.js} +1 -1
  125. package/dist/{chunk-UVRKTMF7.js → chunk-NMLLRFZF.js} +1 -1
  126. package/dist/chunk-NPB753M3.js +1 -0
  127. package/dist/{chunk-ZAA2DXK5.js → chunk-NUCDRKDW.js} +1 -1
  128. package/dist/{chunk-UZROQRLX.js → chunk-OH7BQZQ7.js} +1 -1
  129. package/dist/{chunk-ZQDDRIBA.js → chunk-OLKLHVHA.js} +4 -4
  130. package/dist/{chunk-7MVWDCI3.js → chunk-OPVXPDOQ.js} +1 -1
  131. package/dist/{chunk-IWEKM5Y3.js → chunk-OQUXGAF2.js} +1 -1
  132. package/dist/{chunk-IUTZIN2T.js → chunk-OUMERKRE.js} +1 -1
  133. package/dist/{chunk-5OMJFPQW.js → chunk-OYGIQDME.js} +1 -1
  134. package/dist/{chunk-KSDU4YOB.js → chunk-P5W5RVE6.js} +1 -1
  135. package/dist/{chunk-PYIICTLX.js → chunk-PNZURX3S.js} +1 -1
  136. package/dist/{chunk-UK6576EO.js → chunk-PRKJVU4Y.js} +1 -1
  137. package/dist/{chunk-DFQ4WTET.js → chunk-PVASYKSJ.js} +1 -1
  138. package/dist/{chunk-CW2T7EOQ.js → chunk-PXFPVGWV.js} +1 -1
  139. package/dist/{chunk-7LAKWAKX.js → chunk-Q2ORJEB2.js} +1 -1
  140. package/dist/{chunk-XKRJKUA7.js → chunk-QBE6XVU3.js} +1 -1
  141. package/dist/{chunk-N2RFDHRY.js → chunk-QGWC23HQ.js} +1 -1
  142. package/dist/{chunk-GQNOVEKP.js → chunk-QVVQUJQL.js} +1 -1
  143. package/dist/{chunk-WMAFG2JD.js → chunk-QX3T6G5X.js} +1 -1
  144. package/dist/{chunk-VMMUJN4T.js → chunk-QYFU363G.js} +1 -1
  145. package/dist/{chunk-7NSK77WG.js → chunk-RDXLDCMI.js} +1 -1
  146. package/dist/{chunk-JYMDWR25.js → chunk-REDUS6EW.js} +1 -1
  147. package/dist/{chunk-FNLECT7B.js → chunk-RFZNFTVM.js} +1 -1
  148. package/dist/{chunk-LWCTKI4Z.js → chunk-RIG66DIQ.js} +3 -3
  149. package/dist/{chunk-YTUDXZLN.js → chunk-RNUEPPVN.js} +1 -1
  150. package/dist/{chunk-RFGEM5JC.js → chunk-RWTAPWLJ.js} +1 -1
  151. package/dist/{chunk-WFWISGLS.js → chunk-T5YVYVSW.js} +1 -1
  152. package/dist/{chunk-WJSUIUBW.js → chunk-TTBNFGCW.js} +1 -1
  153. package/dist/{chunk-OQ5CLM2H.js → chunk-UDPYSL3M.js} +1 -1
  154. package/dist/{chunk-KDPQXURV.js → chunk-ULMNNGGX.js} +1 -1
  155. package/dist/{chunk-T2IUXXCT.js → chunk-URCH4ITT.js} +1 -1
  156. package/dist/{chunk-NOH63WC6.js → chunk-UU2R56LN.js} +1 -1
  157. package/dist/{chunk-CVVQQLCF.js → chunk-V2FCZC7U.js} +1 -1
  158. package/dist/{chunk-CZ22VZDA.js → chunk-V654BMS7.js} +108 -108
  159. package/dist/{chunk-7IFE4UQY.js → chunk-V7H7ITCF.js} +1 -1
  160. package/dist/{chunk-MYAIWSOO.js → chunk-VG2AESTZ.js} +1 -1
  161. package/dist/{chunk-XTREQ4A2.js → chunk-VXD26GIG.js} +1 -1
  162. package/dist/{chunk-QKVVJXWS.js → chunk-VXL5FBE7.js} +1 -1
  163. package/dist/{chunk-I6FRVYGE.js → chunk-W7S6SYBM.js} +1 -1
  164. package/dist/{chunk-HCZG7YJ6.js → chunk-WAY723TL.js} +1 -1
  165. package/dist/chunk-WFOU5M4H.js +16 -0
  166. package/dist/{chunk-BWRNXCVN.js → chunk-WGOSE3RL.js} +1 -1
  167. package/dist/{chunk-KJQDS5HI.js → chunk-WQ6W725N.js} +1 -1
  168. package/dist/{chunk-52FDK2LC.js → chunk-WQOPLNDH.js} +1 -1
  169. package/dist/{chunk-4GCI2YCZ.js → chunk-X4A5D3PZ.js} +1 -1
  170. package/dist/{chunk-2DID73ML.js → chunk-X7DCL5LT.js} +1 -1
  171. package/dist/{chunk-RVQV6G5M.js → chunk-XDXHSGDL.js} +1 -1
  172. package/dist/{chunk-OX7UVDSU.js → chunk-XKKKMV46.js} +1 -1
  173. package/dist/{chunk-FDXHQZTO.js → chunk-XRVJJG6W.js} +16 -16
  174. package/dist/chunk-XV6XCOTG.js +319 -0
  175. package/dist/{chunk-M3ACZWMR.js → chunk-XYFYQWKW.js} +1 -1
  176. package/dist/{chunk-UWMZ5CSB.js → chunk-XZLM4HLO.js} +1 -1
  177. package/dist/{chunk-FFHH5LOR.js → chunk-YCUEDZDA.js} +1 -1
  178. package/dist/{chunk-XBQDMGUN.js → chunk-YFRI75U4.js} +1 -1
  179. package/dist/{chunk-XMODGI45.js → chunk-YQ63ZFYT.js} +1 -1
  180. package/dist/{chunk-4GOJQKY5.js → chunk-YXIFSIRX.js} +1 -1
  181. package/dist/{chunk-MDRVCBDO.js → chunk-ZBVHPC6W.js} +1 -1
  182. package/dist/{chunk-IQVRP7CT.js → chunk-ZHHTQRWU.js} +1 -1
  183. package/dist/{chunk-Z5SILNH2.js → chunk-ZTZGDZCE.js} +1 -1
  184. package/dist/{chunk-OQU3HLAE.js → chunk-ZVEBXHEY.js} +1 -1
  185. package/dist/cli/commands/app/build.js +1 -1
  186. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  187. package/dist/cli/commands/app/bulk/execute.js +1 -1
  188. package/dist/cli/commands/app/bulk/status.js +1 -1
  189. package/dist/cli/commands/app/config/link.js +1 -1
  190. package/dist/cli/commands/app/config/pull.js +1 -1
  191. package/dist/cli/commands/app/config/use.js +1 -1
  192. package/dist/cli/commands/app/config/validate.js +1 -1
  193. package/dist/cli/commands/app/demo/watcher.js +1 -1
  194. package/dist/cli/commands/app/deploy.js +1 -1
  195. package/dist/cli/commands/app/dev/clean.js +1 -1
  196. package/dist/cli/commands/app/dev.js +1 -1
  197. package/dist/cli/commands/app/env/pull.js +1 -1
  198. package/dist/cli/commands/app/env/show.js +1 -1
  199. package/dist/cli/commands/app/execute.js +1 -1
  200. package/dist/cli/commands/app/function/build.js +1 -1
  201. package/dist/cli/commands/app/function/info.js +1 -1
  202. package/dist/cli/commands/app/function/replay.js +1 -1
  203. package/dist/cli/commands/app/function/run.js +1 -1
  204. package/dist/cli/commands/app/function/schema.js +1 -1
  205. package/dist/cli/commands/app/function/typegen.js +1 -1
  206. package/dist/cli/commands/app/generate/extension.js +1 -1
  207. package/dist/cli/commands/app/graphiql.js +1 -1
  208. package/dist/cli/commands/app/import/channel-config.js +1 -1
  209. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  210. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  211. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  212. package/dist/cli/commands/app/import-extensions.js +1 -1
  213. package/dist/cli/commands/app/info.js +1 -1
  214. package/dist/cli/commands/app/init.js +1 -1
  215. package/dist/cli/commands/app/logs.js +1 -1
  216. package/dist/cli/commands/app/release.js +1 -1
  217. package/dist/cli/commands/app/security/check.js +1 -1
  218. package/dist/cli/commands/app/security/clean.js +1 -1
  219. package/dist/cli/commands/app/security/instructions.js +1 -1
  220. package/dist/cli/commands/app/security/record.js +1 -1
  221. package/dist/cli/commands/app/security/review.js +1 -1
  222. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  223. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  224. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  225. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  226. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  227. package/dist/cli/commands/app/versions/list.js +1 -1
  228. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  229. package/dist/cli/commands/auth/login.js +1 -1
  230. package/dist/cli/commands/auth/logout.js +1 -1
  231. package/dist/cli/commands/cache/clear.js +1 -1
  232. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  233. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  234. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  235. package/dist/cli/commands/debug/command-flags.js +1 -1
  236. package/dist/cli/commands/doc/fetch.js +1 -1
  237. package/dist/cli/commands/doc/search.js +1 -1
  238. package/dist/cli/commands/docs/generate.js +1 -1
  239. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  240. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  241. package/dist/cli/commands/help.js +1 -1
  242. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  243. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  244. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  245. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  246. package/dist/cli/commands/notifications/generate.js +1 -1
  247. package/dist/cli/commands/notifications/list.js +1 -1
  248. package/dist/cli/commands/organization/list.js +1 -1
  249. package/dist/cli/commands/search.js +1 -1
  250. package/dist/cli/commands/send-analytics.js +1 -1
  251. package/dist/cli/commands/theme/check.js +1 -1
  252. package/dist/cli/commands/theme/console.js +1 -1
  253. package/dist/cli/commands/theme/delete.js +1 -1
  254. package/dist/cli/commands/theme/dev.js +1 -1
  255. package/dist/cli/commands/theme/duplicate.js +1 -1
  256. package/dist/cli/commands/theme/info.js +1 -1
  257. package/dist/cli/commands/theme/init.js +1 -1
  258. package/dist/cli/commands/theme/language-server.js +1 -1
  259. package/dist/cli/commands/theme/list.js +1 -1
  260. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  261. package/dist/cli/commands/theme/open.js +1 -1
  262. package/dist/cli/commands/theme/package.js +1 -1
  263. package/dist/cli/commands/theme/preview.js +1 -1
  264. package/dist/cli/commands/theme/profile.js +1 -1
  265. package/dist/cli/commands/theme/publish.js +1 -1
  266. package/dist/cli/commands/theme/pull.js +1 -1
  267. package/dist/cli/commands/theme/push.js +1 -1
  268. package/dist/cli/commands/theme/rename.js +1 -1
  269. package/dist/cli/commands/theme/share.js +1 -1
  270. package/dist/cli/commands/upgrade.js +1 -1
  271. package/dist/cli/commands/version.js +1 -1
  272. package/dist/cli/help.js +1 -1
  273. package/dist/{command-json-schema-2UMKY7MY.js → command-json-schema-6EGXCM4B.js} +1 -1
  274. package/dist/command-registry.js +1 -1
  275. package/dist/{conf-store-RI3TL6I4.js → conf-store-E7ELDWBA.js} +1 -1
  276. package/dist/{custom-oclif-loader-IZCKN67O.js → custom-oclif-loader-FKFZJPHF.js} +1 -1
  277. package/dist/{deprecations-IFVUXXDB.js → deprecations-RNGBHZYB.js} +1 -1
  278. package/dist/dist-VHIZZDYK.js +1 -0
  279. package/dist/dist-WXI5YQYP.js +1 -0
  280. package/dist/{environments-CYMEN7NV.js → environments-WZJ6MRTH.js} +1 -1
  281. package/dist/{error-IL6WQMSW.js → error-IFB626JA.js} +1 -1
  282. package/dist/error-handler-OVJYVIOZ.js +1 -0
  283. package/dist/{fs-AINFLJ2E.js → fs-7UOUHJDO.js} +1 -1
  284. package/dist/hooks/did-you-mean.js +1 -1
  285. package/dist/hooks/hydrogen-init.js +1 -1
  286. package/dist/hooks/postrun.js +1 -1
  287. package/dist/hooks/prerun.js +1 -1
  288. package/dist/hooks/public-metadata.js +1 -1
  289. package/dist/hooks/sensitive-metadata.js +1 -1
  290. package/dist/hooks/tunnel-provider.js +1 -1
  291. package/dist/hooks/tunnel-start.js +1 -1
  292. package/dist/index.js +12 -12
  293. package/dist/{is-global-2VLKV46Q.js → is-global-XW3CVHLK.js} +1 -1
  294. package/dist/{json-error-HZB5YIHV.js → json-error-C2U7ZLCG.js} +1 -1
  295. package/dist/{local-KOZETREJ.js → local-KA3IWOZ6.js} +1 -1
  296. package/dist/{metadata-IBPHZB7N.js → metadata-6JI7HF5B.js} +1 -1
  297. package/dist/{node-package-manager-DXSRNEDC.js → node-package-manager-X3QIEMMX.js} +1 -1
  298. package/dist/{notifications-system-XA3EBOGJ.js → notifications-system-OXGLT2R4.js} +1 -1
  299. package/dist/{os-X73O7BAB.js → os-NORIEVMI.js} +1 -1
  300. package/dist/{output-3OYXK3Z5.js → output-K3JTLRJD.js} +1 -1
  301. package/dist/{system-JWYYT4PM.js → system-LTHR2T7L.js} +1 -1
  302. package/dist/tsconfig.tsbuildinfo +1 -1
  303. package/dist/{ui-PCG5D6RZ.js → ui-MYUBVKCK.js} +1 -1
  304. package/dist/upgrade-MFTWBXL3.js +1 -0
  305. package/dist/version-BNGPPAUU.js +1 -0
  306. package/dist/{version-7DGU2KYH.js → version-RCGFWSB4.js} +1 -1
  307. package/dist/{workerd-MQZ3NKJI.js → workerd-ISSXMKIH.js} +1 -1
  308. package/oclif.manifest.json +6 -3
  309. package/package.json +7 -7
  310. package/dist/analytics-Q6QDIDYT.js +0 -1
  311. package/dist/chunk-3C6VLJ5D.js +0 -319
  312. package/dist/chunk-43R5VGKT.js +0 -1
  313. package/dist/chunk-4C2DAX5T.js +0 -1
  314. package/dist/chunk-7RPFJZLP.js +0 -1
  315. package/dist/chunk-DNMXVMJM.js +0 -47
  316. package/dist/chunk-IUP7POIE.js +0 -6
  317. package/dist/chunk-JDR6UVZA.js +0 -8
  318. package/dist/chunk-JOJV5E2K.js +0 -1
  319. package/dist/chunk-LVLAOBJM.js +0 -103
  320. package/dist/chunk-PMHP57MH.js +0 -20
  321. package/dist/chunk-WDFCOZAY.js +0 -16
  322. package/dist/chunk-ZGV3HNEV.js +0 -1
  323. package/dist/dist-4H2B7BMN.js +0 -1
  324. package/dist/dist-QNWOGQN3.js +0 -1
  325. package/dist/error-handler-74HKA23T.js +0 -1
  326. package/dist/upgrade-7U2TUNC4.js +0 -1
  327. package/dist/version-SXQTRBXB.js +0 -1
@@ -1,4 +1,4 @@
1
- import{c as gI,e as nA,f as mI,h as oA,l as y7,n as Bu,s as $5,u as iA,v as lA,w as cA}from"./chunk-Q7BOSHWX.js";import{a as fI}from"./chunk-R7EMV77H.js";import{a as aA}from"./chunk-3C6VLJ5D.js";import{c as tA,e as rA}from"./chunk-AJMDF3QC.js";import{T as bCe,b as pCe,j as R4,u as tf,v as vI}from"./chunk-H4V55Y3Z.js";import{a as jF}from"./chunk-4C2DAX5T.js";import{f as b}from"./chunk-CZ22VZDA.js";import{c as $F}from"./chunk-DFQ4WTET.js";import{h as eA}from"./chunk-2VSNFOKD.js";import{Bb as b7}from"./chunk-LWCTKI4Z.js";import{a as j5,c as m,e as ps,g as o}from"./chunk-VKWPEFWQ.js";var uA=m(Vi=>{"use strict";o();var yCe=b();function sA(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function e1(){}var Gi={d:{f:e1,r:function(){throw Error(sA(522))},D:e1,C:e1,L:e1,m:e1,X:e1,S:e1,M:e1},p:0,findDOMNode:null},ICe=Symbol.for("react.portal");function SCe(e,t,r){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ICe,key:a==null?null:""+a,children:e,containerInfo:t,implementation:r}}var rf=yCe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function k4(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Vi.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Gi;Vi.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(sA(299));return SCe(e,t,null,r)};Vi.flushSync=function(e){var t=rf.T,r=Gi.p;try{if(rf.T=null,Gi.p=2,e)return e()}finally{rf.T=t,Gi.p=r,Gi.d.f()}};Vi.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Gi.d.C(e,t))};Vi.prefetchDNS=function(e){typeof e=="string"&&Gi.d.D(e)};Vi.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,a=k4(r,t.crossOrigin),n=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?Gi.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:n,fetchPriority:i}):r==="script"&&Gi.d.X(e,{crossOrigin:a,integrity:n,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Vi.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=k4(t.as,t.crossOrigin);Gi.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Gi.d.M(e)};Vi.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,a=k4(r,t.crossOrigin);Gi.d.L(e,r,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Vi.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=k4(t.as,t.crossOrigin);Gi.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Gi.d.m(e)};Vi.requestFormReset=function(e){Gi.d.r(e)};Vi.unstable_batchedUpdates=function(e,t){return e(t)};Vi.useFormState=function(e,t,r){return rf.H.useFormState(e,t,r)};Vi.useFormStatus=function(){return rf.H.useHostTransitionStatus()};Vi.version="19.2.4"});var dA=m(Yi=>{"use strict";o();process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(y){return""+y}function r(y,S,E){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(w);var M=!1}catch{M=!0}return M&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object"),t(w)),{$$typeof:f,key:w==null?null:""+w,children:y,containerInfo:S,implementation:E}}function a(y,S){if(y==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}function n(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":'something with type "'+typeof y+'"'}function i(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":typeof y=="string"?JSON.stringify(y):typeof y=="number"?"`"+y+"`":'something with type "'+typeof y+'"'}function u(){var y=I.H;return y===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1
+ import{c as gI,e as nA,f as mI,h as oA,l as y7,n as Bu,s as $5,u as iA,v as lA,w as cA}from"./chunk-Q7BOSHWX.js";import{a as fI}from"./chunk-GHU6YEXH.js";import{a as aA}from"./chunk-XV6XCOTG.js";import{c as tA,e as rA}from"./chunk-7AWAOPLA.js";import{T as bCe,b as pCe,j as R4,u as tf,v as vI}from"./chunk-NCPZVARH.js";import{a as jF}from"./chunk-MHWETFNT.js";import{f as b}from"./chunk-V654BMS7.js";import{c as $F}from"./chunk-PVASYKSJ.js";import{h as eA}from"./chunk-J7BTC45S.js";import{Bb as b7}from"./chunk-RIG66DIQ.js";import{a as j5,c as m,e as ps,g as o}from"./chunk-VKWPEFWQ.js";var uA=m(Vi=>{"use strict";o();var yCe=b();function sA(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function e1(){}var Gi={d:{f:e1,r:function(){throw Error(sA(522))},D:e1,C:e1,L:e1,m:e1,X:e1,S:e1,M:e1},p:0,findDOMNode:null},ICe=Symbol.for("react.portal");function SCe(e,t,r){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ICe,key:a==null?null:""+a,children:e,containerInfo:t,implementation:r}}var rf=yCe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function k4(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Vi.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Gi;Vi.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(sA(299));return SCe(e,t,null,r)};Vi.flushSync=function(e){var t=rf.T,r=Gi.p;try{if(rf.T=null,Gi.p=2,e)return e()}finally{rf.T=t,Gi.p=r,Gi.d.f()}};Vi.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Gi.d.C(e,t))};Vi.prefetchDNS=function(e){typeof e=="string"&&Gi.d.D(e)};Vi.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,a=k4(r,t.crossOrigin),n=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?Gi.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:n,fetchPriority:i}):r==="script"&&Gi.d.X(e,{crossOrigin:a,integrity:n,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Vi.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=k4(t.as,t.crossOrigin);Gi.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Gi.d.M(e)};Vi.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,a=k4(r,t.crossOrigin);Gi.d.L(e,r,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Vi.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=k4(t.as,t.crossOrigin);Gi.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Gi.d.m(e)};Vi.requestFormReset=function(e){Gi.d.r(e)};Vi.unstable_batchedUpdates=function(e,t){return e(t)};Vi.useFormState=function(e,t,r){return rf.H.useFormState(e,t,r)};Vi.useFormStatus=function(){return rf.H.useHostTransitionStatus()};Vi.version="19.2.4"});var dA=m(Yi=>{"use strict";o();process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(y){return""+y}function r(y,S,E){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(w);var M=!1}catch{M=!0}return M&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object"),t(w)),{$$typeof:f,key:w==null?null:""+w,children:y,containerInfo:S,implementation:E}}function a(y,S){if(y==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}function n(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":'something with type "'+typeof y+'"'}function i(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":typeof y=="string"?JSON.stringify(y):typeof y=="number"?"`"+y+"`":'something with type "'+typeof y+'"'}function u(){var y=I.H;return y===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
2
2
  1. You might have mismatching versions of React and the renderer (such as React DOM)
3
3
  2. You might be breaking the Rules of Hooks
4
4
  3. You might have more than one copy of React in the same app
@@ -1,4 +1,4 @@
1
- import{a as M}from"./chunk-L7MSPGDS.js";import{a as K}from"./chunk-ZGV3HNEV.js";import{a as D}from"./chunk-FWB3GLMW.js";import{Ma as $,i as m,ka as W}from"./chunk-3C6VLJ5D.js";import{s as b}from"./chunk-WDFCOZAY.js";import{G as F,H as O}from"./chunk-H4V55Y3Z.js";import{a as f}from"./chunk-4C2DAX5T.js";import{b as R,c as L}from"./chunk-Q2SZCZE7.js";import{z as N}from"./chunk-CZ22VZDA.js";import{c as g}from"./chunk-DFQ4WTET.js";import{a as C}from"./chunk-BN7ZXAZJ.js";import{Ib as k,L as x,N as w,rb as T,wb as U}from"./chunk-LWCTKI4Z.js";import{b as e}from"./chunk-FZCGRIOM.js";import{b as ie}from"./chunk-YTUUU33R.js";import{f as u,i as P}from"./chunk-IWTNUJGY.js";import{e as re,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();var l=e.record(e.unknown()),S=e.object({id:e.string(),name:e.string(),continueOnError:e.boolean().optional()}),H=e.array(e.object({lifecycle:e.literal("deploy"),steps:e.array(e.discriminatedUnion("type",[S.extend({type:e.literal("include_assets"),config:e.object({generatesAssetsManifest:e.boolean().optional(),inclusions:e.array(e.discriminatedUnion("type",[e.object({type:e.literal("pattern"),baseDir:e.string().optional(),include:e.array(e.string()).optional(),ignore:e.array(e.string()).optional(),destination:e.string().optional()}),e.object({type:e.literal("static"),source:e.string(),destination:e.string().optional()}),e.object({type:e.literal("configKey"),key:e.string(),destination:e.string().optional(),anchor:e.string().optional(),groupBy:e.string().optional(),preserveFilePaths:e.boolean().optional()})]))})}),S.extend({type:e.literal("bundle_ui"),config:e.object({generatesAssetsManifest:e.boolean().optional(),bundleFolder:e.string().optional()}).optional()}),S.extend({type:e.enum(["build_theme","bundle_theme","build_function","create_tax_stub"]),config:e.record(e.never()).optional()})]))})),A=e.object({identifier:e.string(),externalIdentifier:e.string(),externalName:e.string(),group:e.string().optional(),additionalIdentifiers:e.array(e.string()),partnersWebIdentifier:e.string(),surface:e.string(),registrationLimit:e.number(),experience:e.enum(["extension","configuration"]),uidStrategy:e.enum(["single","dynamic","uuid"]),dependency:e.string().optional(),graphQLType:e.string().optional(),clientSteps:H.optional(),loadedRemoteSpecs:e.boolean().optional()}),v=e.object({name:e.string(),type:e.string(),externalType:e.string(),humanName:e.string(),surface:e.string(),features:e.array(e.string()),dependency:e.string().optional(),entrySourceFilePath:e.string(),devUUID:e.string(),localIdentifier:e.string(),idEnvironmentVariableName:e.string(),directory:e.string(),configuration:l,configurationPath:e.string(),outputPath:e.string(),handle:e.string(),specification:A,uid:e.string()}).passthrough(),z=e.object({directory:e.string(),configuration:l.optional()}).passthrough(),J=e.object({file:e.string(),message:e.string()}).passthrough(),h=e.object({id:e.string(),title:e.string(),apiKey:e.string(),organizationId:e.string(),appType:e.string().optional(),newApp:e.boolean().optional(),grantedScopes:e.array(e.string()),developmentStorePreviewEnabled:e.boolean().optional(),applicationUrl:e.string().optional(),redirectUrlWhitelist:e.array(e.string()).optional(),requestedAccessScopes:e.array(e.string()).optional(),webhookApiVersion:e.string().optional(),embedded:e.boolean().optional(),posEmbedded:e.boolean().optional(),preferencesUrl:e.string().optional(),gdprWebhooks:e.object({customerDeletionUrl:e.string().optional(),customerDataRequestUrl:e.string().optional(),shopDeletionUrl:e.string().optional()}).optional(),appProxy:e.object({subPath:e.string(),subPathPrefix:e.string(),url:e.string()}).optional(),configuration:l.optional(),flags:e.array(e.string())}),q=e.object({path:e.string(),message:e.string()}),I=e.object({path:e.string(),content:l,errors:e.array(q)}),Q=e.object({directory:e.string(),appConfigFiles:e.array(I),extensionConfigFiles:e.array(I),webConfigFiles:e.array(I),dotenvFiles:e.array(e.object({path:e.string()})),errors:e.array(q)}),B=e.object({cliVersion:e.string(),nodeVersion:e.string(),platform:e.string(),arch:e.string(),shell:e.string().optional()}),Y=e.object({remoteApp:h,account:e.discriminatedUnion("type",[e.object({type:e.literal("UserAccount"),email:e.string()}),e.object({type:e.literal("ServiceAccount"),orgName:e.string()}),e.object({type:e.literal("UnknownAccount")})]),project:Q,system:B,devStoreUrl:e.string().optional(),name:e.string(),idEnvironmentVariableName:e.literal("SHOPIFY_API_KEY"),directory:e.string(),configPath:e.string(),configuration:l,webs:e.array(z),dotenv:e.object({path:e.string(),variables:e.record(e.string())}).passthrough().optional(),errors:e.object({errors:e.array(J)}).passthrough(),specifications:e.array(A),remoteFlags:e.array(e.string()),realExtensions:e.array(v),devApplicationURLs:l.optional(),_hiddenConfig:l,packageManager:e.string(),nodeDependencies:e.record(e.string()),usesWorkspaces:e.boolean(),organization:e.object({id:e.string(),businessName:e.string(),source:e.string()}),allExtensions:e.array(v)}).passthrough(),V=e.object({SHOPIFY_API_KEY:e.string(),SHOPIFY_API_SECRET:e.string().optional(),SCOPES:e.string()}),d=C({name:"AppInfoResult",schema:e.union([V,Y]),definitions:{AppInfo:Y,AppInfoRemoteApp:h,AppInfoProject:Q,AppInfoSystem:B,AppInfoWebEnvironment:V,AppInfoExtension:v,AppInfoSpecification:A,AppInfoClientSteps:H,AppInfoWeb:z,AppInfoConfigurationError:J}});async function X(r,t,o,n,i){if(i.webEnv)return await W(t,o.source),{SHOPIFY_API_KEY:t.apiKey,...t.apiSecretKeys[0]?{SHOPIFY_API_SECRET:t.apiSecretKeys[0].secret}:{},SCOPES:m(r.configuration)};let s={...r,packageManager:n.packageManager,nodeDependencies:n.nodeDependencies,usesWorkspaces:n.usesWorkspaces,organization:{id:o.id,businessName:o.businessName,source:o.source},remoteApp:h.parse(t),account:await t.developerPlatformClient.accountInfo(),project:{directory:n.directory,appConfigFiles:n.appConfigFiles.map(E),extensionConfigFiles:n.extensionConfigFiles.map(E),webConfigFiles:n.webConfigFiles.map(E),dotenvFiles:[...n.dotenvFiles.values()].map(({path:c})=>({path:c})),errors:(n.errors??[]).map(({path:c,message:oe})=>({path:c,message:oe}))},system:{cliVersion:f,nodeVersion:process.version,...g(),shell:process.env.SHELL},devStoreUrl:r.configuration.build?.dev_store_url??r.hiddenConfig.dev_store_url,allExtensions:G(r.allExtensions.filter(c=>c.isReturnedAsInfo())),realExtensions:G(r.realExtensions),specifications:r.specifications.map(Z)},a=JSON.parse(JSON.stringify(Object.fromEntries(Object.entries(s).filter(([c])=>c!=="configSchema"))));return d.validate(a)}function Z(r){return{identifier:r.identifier,externalIdentifier:r.externalIdentifier,externalName:r.externalName,group:r.group,additionalIdentifiers:r.additionalIdentifiers,partnersWebIdentifier:r.partnersWebIdentifier,surface:r.surface,registrationLimit:r.registrationLimit,experience:r.experience,uidStrategy:r.uidStrategy,dependency:r.dependency,graphQLType:r.graphQLType,clientSteps:r.clientSteps,..."loadedRemoteSpecs"in r?{loadedRemoteSpecs:r.loadedRemoteSpecs}:{}}}function E({path:r,content:t,errors:o}){return{path:r,content:t,errors:o.map(({path:n,message:i})=>({path:n,message:i}))}}function G(r){return r.map(t=>({...t,name:t.name,type:t.type,externalType:t.externalType,humanName:t.humanName,surface:t.surface,features:t.features,dependency:t.dependency,specification:Z(t.specification)}))}p();async function se(r){let{app:t,remoteApp:o,organization:n,project:i}=r,s=await o.developerPlatformClient.accountInfo();return new j(t,o,n,i,s).output()}async function ee(r){N({customSections:await se(r)})}function ae(r,t){if(t==="json")return d.encode(r);if(!("name"in r))return M({variables:Object.entries(r).map(([o,n])=>({name:o,value:n}))});throw new Error("App information text output requires the loaded app context.")}function te(r,t){U(ae(r,t))}var pe="unknown",y={subdued:"Not yet configured"},ce="NOT LOADED",j=class{app;remoteApp;organization;project;account;constructor(t,o,n,i,s){this.app=t,this.remoteApp=o,this.organization=n,this.project=i,this.account=s}async output(){return[...await this.devConfigsSection(),this.projectSettingsSection(),...await this.appComponentsSection(),await this.systemInfoSection()]}async devConfigsSection(){let t=y;this.app.configuration.build?.automatically_update_urls_on_dev!==void 0&&(t=this.app.configuration.build.automatically_update_urls_on_dev?"Yes":"No");let o=["User","unknown"],n=this.account;return O(n)?o=["Service account",n.orgName]:F(n)&&(o[1]=n.email),[this.tableSection("Current app configuration",[["Configuration file",{filePath:P(this.app.configPath)||b.app}],["App name",this.remoteApp.title?{userInput:this.remoteApp.title}:y],["Client ID",this.remoteApp.apiKey||y],["Organization",`${this.organization.businessName} (${this.organization.id})`],["Access scopes",m(this.app.configuration)],["Dev store",this.app.configuration.build?.dev_store_url??this.app.hiddenConfig.dev_store_url??y],["Update URLs",t],o],{isFirstItem:!0}),{body:["\u{1F4A1} To change these, run",{command:T(this.project.packageManager,"shopify app config link")}]}]}projectSettingsSection(){return this.tableSection("Your Project",[["Root location",{filePath:this.app.directory}]])}async appComponentsSection(){let t=this.webComponentsSection();return[{title:`
1
+ import{a as M}from"./chunk-B4ISKIXN.js";import{a as K}from"./chunk-NPB753M3.js";import{a as D}from"./chunk-D4LFWIFE.js";import{Ma as $,i as m,ka as W}from"./chunk-XV6XCOTG.js";import{t as b}from"./chunk-WFOU5M4H.js";import{G as F,H as O}from"./chunk-NCPZVARH.js";import{a as f}from"./chunk-MHWETFNT.js";import{b as R,c as L}from"./chunk-5AWELO3D.js";import{z as N}from"./chunk-V654BMS7.js";import{c as g}from"./chunk-PVASYKSJ.js";import{a as C}from"./chunk-BN7ZXAZJ.js";import{Ib as k,L as x,N as w,rb as T,wb as U}from"./chunk-RIG66DIQ.js";import{b as e}from"./chunk-FZCGRIOM.js";import{b as ie}from"./chunk-YTUUU33R.js";import{f as u,i as P}from"./chunk-IWTNUJGY.js";import{e as re,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();var l=e.record(e.unknown()),S=e.object({id:e.string(),name:e.string(),continueOnError:e.boolean().optional()}),H=e.array(e.object({lifecycle:e.literal("deploy"),steps:e.array(e.discriminatedUnion("type",[S.extend({type:e.literal("include_assets"),config:e.object({generatesAssetsManifest:e.boolean().optional(),inclusions:e.array(e.discriminatedUnion("type",[e.object({type:e.literal("pattern"),baseDir:e.string().optional(),include:e.array(e.string()).optional(),ignore:e.array(e.string()).optional(),destination:e.string().optional()}),e.object({type:e.literal("static"),source:e.string(),destination:e.string().optional()}),e.object({type:e.literal("configKey"),key:e.string(),destination:e.string().optional(),anchor:e.string().optional(),groupBy:e.string().optional(),preserveFilePaths:e.boolean().optional()})]))})}),S.extend({type:e.literal("bundle_ui"),config:e.object({generatesAssetsManifest:e.boolean().optional(),bundleFolder:e.string().optional()}).optional()}),S.extend({type:e.enum(["build_theme","bundle_theme","build_function","create_tax_stub"]),config:e.record(e.never()).optional()})]))})),A=e.object({identifier:e.string(),externalIdentifier:e.string(),externalName:e.string(),group:e.string().optional(),additionalIdentifiers:e.array(e.string()),partnersWebIdentifier:e.string(),surface:e.string(),registrationLimit:e.number(),experience:e.enum(["extension","configuration"]),uidStrategy:e.enum(["single","dynamic","uuid"]),dependency:e.string().optional(),graphQLType:e.string().optional(),clientSteps:H.optional(),loadedRemoteSpecs:e.boolean().optional()}),v=e.object({name:e.string(),type:e.string(),externalType:e.string(),humanName:e.string(),surface:e.string(),features:e.array(e.string()),dependency:e.string().optional(),entrySourceFilePath:e.string(),devUUID:e.string(),localIdentifier:e.string(),idEnvironmentVariableName:e.string(),directory:e.string(),configuration:l,configurationPath:e.string(),outputPath:e.string(),handle:e.string(),specification:A,uid:e.string()}).passthrough(),z=e.object({directory:e.string(),configuration:l.optional()}).passthrough(),J=e.object({file:e.string(),message:e.string()}).passthrough(),h=e.object({id:e.string(),title:e.string(),apiKey:e.string(),organizationId:e.string(),appType:e.string().optional(),newApp:e.boolean().optional(),grantedScopes:e.array(e.string()),developmentStorePreviewEnabled:e.boolean().optional(),applicationUrl:e.string().optional(),redirectUrlWhitelist:e.array(e.string()).optional(),requestedAccessScopes:e.array(e.string()).optional(),webhookApiVersion:e.string().optional(),embedded:e.boolean().optional(),posEmbedded:e.boolean().optional(),preferencesUrl:e.string().optional(),gdprWebhooks:e.object({customerDeletionUrl:e.string().optional(),customerDataRequestUrl:e.string().optional(),shopDeletionUrl:e.string().optional()}).optional(),appProxy:e.object({subPath:e.string(),subPathPrefix:e.string(),url:e.string()}).optional(),configuration:l.optional(),flags:e.array(e.string())}),q=e.object({path:e.string(),message:e.string()}),I=e.object({path:e.string(),content:l,errors:e.array(q)}),Q=e.object({directory:e.string(),appConfigFiles:e.array(I),extensionConfigFiles:e.array(I),webConfigFiles:e.array(I),dotenvFiles:e.array(e.object({path:e.string()})),errors:e.array(q)}),B=e.object({cliVersion:e.string(),nodeVersion:e.string(),platform:e.string(),arch:e.string(),shell:e.string().optional()}),Y=e.object({remoteApp:h,account:e.discriminatedUnion("type",[e.object({type:e.literal("UserAccount"),email:e.string()}),e.object({type:e.literal("ServiceAccount"),orgName:e.string()}),e.object({type:e.literal("UnknownAccount")})]),project:Q,system:B,devStoreUrl:e.string().optional(),name:e.string(),idEnvironmentVariableName:e.literal("SHOPIFY_API_KEY"),directory:e.string(),configPath:e.string(),configuration:l,webs:e.array(z),dotenv:e.object({path:e.string(),variables:e.record(e.string())}).passthrough().optional(),errors:e.object({errors:e.array(J)}).passthrough(),specifications:e.array(A),remoteFlags:e.array(e.string()),realExtensions:e.array(v),devApplicationURLs:l.optional(),_hiddenConfig:l,packageManager:e.string(),nodeDependencies:e.record(e.string()),usesWorkspaces:e.boolean(),organization:e.object({id:e.string(),businessName:e.string(),source:e.string()}),allExtensions:e.array(v)}).passthrough(),V=e.object({SHOPIFY_API_KEY:e.string(),SHOPIFY_API_SECRET:e.string().optional(),SCOPES:e.string()}),d=C({name:"AppInfoResult",schema:e.union([V,Y]),definitions:{AppInfo:Y,AppInfoRemoteApp:h,AppInfoProject:Q,AppInfoSystem:B,AppInfoWebEnvironment:V,AppInfoExtension:v,AppInfoSpecification:A,AppInfoClientSteps:H,AppInfoWeb:z,AppInfoConfigurationError:J}});async function X(r,t,o,n,i){if(i.webEnv)return await W(t,o.source),{SHOPIFY_API_KEY:t.apiKey,...t.apiSecretKeys[0]?{SHOPIFY_API_SECRET:t.apiSecretKeys[0].secret}:{},SCOPES:m(r.configuration)};let s={...r,packageManager:n.packageManager,nodeDependencies:n.nodeDependencies,usesWorkspaces:n.usesWorkspaces,organization:{id:o.id,businessName:o.businessName,source:o.source},remoteApp:h.parse(t),account:await t.developerPlatformClient.accountInfo(),project:{directory:n.directory,appConfigFiles:n.appConfigFiles.map(E),extensionConfigFiles:n.extensionConfigFiles.map(E),webConfigFiles:n.webConfigFiles.map(E),dotenvFiles:[...n.dotenvFiles.values()].map(({path:c})=>({path:c})),errors:(n.errors??[]).map(({path:c,message:oe})=>({path:c,message:oe}))},system:{cliVersion:f,nodeVersion:process.version,...g(),shell:process.env.SHELL},devStoreUrl:r.configuration.build?.dev_store_url??r.hiddenConfig.dev_store_url,allExtensions:G(r.allExtensions.filter(c=>c.isReturnedAsInfo())),realExtensions:G(r.realExtensions),specifications:r.specifications.map(Z)},a=JSON.parse(JSON.stringify(Object.fromEntries(Object.entries(s).filter(([c])=>c!=="configSchema"))));return d.validate(a)}function Z(r){return{identifier:r.identifier,externalIdentifier:r.externalIdentifier,externalName:r.externalName,group:r.group,additionalIdentifiers:r.additionalIdentifiers,partnersWebIdentifier:r.partnersWebIdentifier,surface:r.surface,registrationLimit:r.registrationLimit,experience:r.experience,uidStrategy:r.uidStrategy,dependency:r.dependency,graphQLType:r.graphQLType,clientSteps:r.clientSteps,..."loadedRemoteSpecs"in r?{loadedRemoteSpecs:r.loadedRemoteSpecs}:{}}}function E({path:r,content:t,errors:o}){return{path:r,content:t,errors:o.map(({path:n,message:i})=>({path:n,message:i}))}}function G(r){return r.map(t=>({...t,name:t.name,type:t.type,externalType:t.externalType,humanName:t.humanName,surface:t.surface,features:t.features,dependency:t.dependency,specification:Z(t.specification)}))}p();async function se(r){let{app:t,remoteApp:o,organization:n,project:i}=r,s=await o.developerPlatformClient.accountInfo();return new j(t,o,n,i,s).output()}async function ee(r){N({customSections:await se(r)})}function ae(r,t){if(t==="json")return d.encode(r);if(!("name"in r))return M({variables:Object.entries(r).map(([o,n])=>({name:o,value:n}))});throw new Error("App information text output requires the loaded app context.")}function te(r,t){U(ae(r,t))}var pe="unknown",y={subdued:"Not yet configured"},ce="NOT LOADED",j=class{app;remoteApp;organization;project;account;constructor(t,o,n,i,s){this.app=t,this.remoteApp=o,this.organization=n,this.project=i,this.account=s}async output(){return[...await this.devConfigsSection(),this.projectSettingsSection(),...await this.appComponentsSection(),await this.systemInfoSection()]}async devConfigsSection(){let t=y;this.app.configuration.build?.automatically_update_urls_on_dev!==void 0&&(t=this.app.configuration.build.automatically_update_urls_on_dev?"Yes":"No");let o=["User","unknown"],n=this.account;return O(n)?o=["Service account",n.orgName]:F(n)&&(o[1]=n.email),[this.tableSection("Current app configuration",[["Configuration file",{filePath:P(this.app.configPath)||b.app}],["App name",this.remoteApp.title?{userInput:this.remoteApp.title}:y],["Client ID",this.remoteApp.apiKey||y],["Organization",`${this.organization.businessName} (${this.organization.id})`],["Access scopes",m(this.app.configuration)],["Dev store",this.app.configuration.build?.dev_store_url??this.app.hiddenConfig.dev_store_url??y],["Update URLs",t],o],{isFirstItem:!0}),{body:["\u{1F4A1} To change these, run",{command:T(this.project.packageManager,"shopify app config link")}]}]}projectSettingsSection(){return this.tableSection("Your Project",[["Root location",{filePath:this.app.directory}]])}async appComponentsSection(){let t=this.webComponentsSection();return[{title:`
2
2
  Directory components`.toUpperCase(),body:""},...t?[t]:[],...this.extensionsSections()]}webComponentsSection(){let t=[],o=[];if(this.app.webs[0])return this.app.webs.forEach(n=>{if(n.configuration)if(n.configuration.name){let{name:i,roles:s}=n.configuration,a=u(this.app.directory,n.directory);o.push([` \u{1F4C2} ${i}`,{filePath:a||"/"}]),s.length>0&&o.push([" roles",s.join(", ")])}else n.configuration.roles.forEach(i=>{o.push([` \u{1F4C2} ${i}`,{filePath:u(this.app.directory,n.directory)}])});else o.push([{subdued:` \u{1F4C2} ${pe}`},{filePath:u(this.app.directory,n.directory)}]);if(!this.app.errors.isEmpty()){let i=this.app.errors.getErrors(`${n.directory}/${b.web}`);t.push(...i.map(s=>s.message))}}),this.subtableSection("web",[["\u{1F4C2} web",""],...o,...t.map(n=>[{error:"error"},{error:this.formattedError(n)}])])}extensionsSections(){let t=this.app.allExtensions.filter(i=>i.isReturnedAsInfo()),n=w(t.map(i=>i.type)).map(i=>{let s=t.filter(a=>a.type===i);if(s[0])return this.subtableSection(s[0].externalType,s.flatMap(a=>this.extensionSubSection(a)))});return x(n)}extensionSubSection(t){let o=t.configuration,n=[[`\u{1F4C2} ${t.handle||ce}`,{filePath:u(this.app.directory,t.directory)}],[" config file",{filePath:u(t.directory,t.configurationPath)}]];o&&"metafields"in o&&Array.isArray(o.metafields)&&o.metafields.length>0&&n.push([" metafields",`${o.metafields.length}`]);let i=this.app.errors.getErrors(t.configurationPath);for(let s of i)n.push([{error:" error"},{error:this.formattedError(s.message)}]);return n}formattedError(t){let o=t.trim();if(k())return o;let[n,...i]=o.split(`
3
3
  `);return[`! ${n}`,...i.map(s=>` ${s}`)].join(`
4
4
  `)}async systemInfoSection(){let{platform:t,arch:o}=g();return this.tableSection("Tooling and System",[["Shopify CLI",f],["Package manager",this.project.packageManager],["OS",`${t}-${o}`],["Shell",process.env.SHELL??"unknown"],["Node version",process.version]])}tableSection(t,o,{isFirstItem:n=!1}={}){return{title:`${n?"":`
@@ -1 +1 @@
1
- import{R as A,S as O,T as z,V as P,X as x}from"./chunk-3C6VLJ5D.js";import{n as $,oa as l,ra as L,va as D}from"./chunk-WDFCOZAY.js";import{a as F}from"./chunk-IQVRP7CT.js";import{u as R}from"./chunk-H4V55Y3Z.js";import{A as k,I as N,N as v,U as y,z as g}from"./chunk-CZ22VZDA.js";import{b as E}from"./chunk-335BUVBP.js";import{f as _,h as d}from"./chunk-2VSNFOKD.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();p();async function b(e,t){if(t.clientName!==l.AppManagement||!t.devStoreCapReached)return!1;try{return await t.devStoreCapReached(e)}catch{return!1}}async function M(e,t,o,i="disabled"){let c=o.clientName===l.AppManagement,s=async f=>o.devStoresForOrg(t.id,f),n=i!=="disabled"&&o.clientName===l.AppManagement,r=async()=>{if(await b(t.id,o))throw new d(U,W(t.id));let f=await A(),w=await O(),u=await z(),T=await $({name:f,plan:w,withDemoData:u,organization:t,json:!1,summary:!1}),S=await I(t,T,o);return k({headline:`Dev store "${S.shopName}" created successfully.`}),S},a,h;if(n&&e.stores.length===0){if(await b(t.id,o))throw new d(U,W(t.id));if(v()===!1)throw new d("No development store was specified.",H(t.id));a=async()=>(g({body:Y(t)}),r())}else if(n&&i==="selection-option"){if(v()===!1&&(e.stores.length>1||e.hasMorePages))throw new d("No development store was specified.","Run `shopify app dev --store <store-domain>` to select a development store.");v()&&!await b(t.id,o)&&(h=r)}let m=await P({onSearchForStoresByName:s,...e,showDomainOnPrompt:c,...a?{onCreateStoreWhenEmpty:a}:{},...h?{onCreateStore:h}:{}});if(!m){if(a)throw new _;if(g({body:await o.getCreateDevStoreLink(t)}),await y(5),!await x(t))throw new _;let w=await B(t.id,o);m=await M({stores:w,hasMorePages:!1},t,o,i)}return C(m),m}async function I(e,t,o){let s;if(await N([{title:"Fetching organization data",task:async()=>{for(let r=0;r<10;r++){try{let a=await D(e,t,o);if(a){s=a;return}}catch(a){if(!(a instanceof L))throw a}await y(3)}}}]),!s)throw new d(`The newly created development store (${t}) is not available yet.`,`Run \`shopify app dev --store ${t}\` to select it when it is ready.`);return s}async function B(e,t){let c=[];return await N([{title:"Fetching organization data",task:async()=>{for(let n=0;n<10;n++){let{stores:r}=await t.devStoresForOrg(e);if(r.length>0){c=r;return}await y(3)}}}]),c}var U="Your organization has reached its development store limit.";function Y(e){return`You don't have any dev stores associated with ${e.businessName}'s Dev Dashboard. Let's create one.`}function q(e){return`shopify store create dev --organization-id ${e} --name <store-name> --plan <plan>`}function H(e){return`Create a development store with \`${q(e)}\`, then run \`shopify app dev --store <store-domain>\`.`}function W(e){return`Make a development store slot available in Dev Dashboard. Then create a development store with \`${q(e)}\`, then run \`shopify app dev --store <store-domain>\`.`}function C(e){if(!e.transferDisabled)throw!e.transferDisabled&&!e.convertableToPartnerTest?new d(`The store you specified (${e.shopDomain}) is not a dev store`,"Run dev --reset and select an eligible dev store."):new d(`The store you specified (${e.shopDomain}) is not transfer-disabled`,"Run dev --reset and select a transfer-disabled dev store.")}async function fe({appContextResult:e,storeFqdn:t,forceReselectStore:o,storeTypes:i=["APP_DEVELOPMENT"],storeCreationMode:c="disabled"}){let{app:s,organization:n,developerPlatformClient:r}=e,a,h=s.configuration.build?.dev_store_url,m=s.hiddenConfig.dev_store_url,f=h??m,u=t??(o?void 0:f),T=i.length===1&&i[0]==="APP_DEVELOPMENT";if(u)a=await D(n,u,r,i),T&&C(a);else{let S=await r.devStoresForOrg(n.id);a=await M(S,n,r,c)}return a.shopDomain=R(a.shopDomain),await V(a,o),(a.shopDomain!==f||!m)&&await s.updateHiddenConfig({dev_store_url:a.shopDomain}),await r.ensureUserAccessToStore(n.id,a),a}async function V(e,t){await F.addPublicMetadata(()=>({cmd_app_reset_used:t,store_fqdn_hash:E(e.shopDomain),store_domain:e.shopDomain})),await F.addSensitiveMetadata(()=>({store_fqdn:e.shopDomain}))}export{fe as a};
1
+ import{R as A,S as O,T as z,V as P,X as x}from"./chunk-XV6XCOTG.js";import{o as $,pa as l,sa as L,wa as D}from"./chunk-WFOU5M4H.js";import{a as F}from"./chunk-ZHHTQRWU.js";import{u as R}from"./chunk-NCPZVARH.js";import{A as k,I as N,N as v,U as y,z as g}from"./chunk-V654BMS7.js";import{b as E}from"./chunk-335BUVBP.js";import{f as _,h as d}from"./chunk-J7BTC45S.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();p();async function b(e,t){if(t.clientName!==l.AppManagement||!t.devStoreCapReached)return!1;try{return await t.devStoreCapReached(e)}catch{return!1}}async function M(e,t,o,i="disabled"){let c=o.clientName===l.AppManagement,s=async f=>o.devStoresForOrg(t.id,f),n=i!=="disabled"&&o.clientName===l.AppManagement,r=async()=>{if(await b(t.id,o))throw new d(U,W(t.id));let f=await A(),w=await O(),u=await z(),T=await $({name:f,plan:w,withDemoData:u,organization:t,json:!1,summary:!1}),S=await I(t,T,o);return k({headline:`Dev store "${S.shopName}" created successfully.`}),S},a,h;if(n&&e.stores.length===0){if(await b(t.id,o))throw new d(U,W(t.id));if(v()===!1)throw new d("No development store was specified.",H(t.id));a=async()=>(g({body:Y(t)}),r())}else if(n&&i==="selection-option"){if(v()===!1&&(e.stores.length>1||e.hasMorePages))throw new d("No development store was specified.","Run `shopify app dev --store <store-domain>` to select a development store.");v()&&!await b(t.id,o)&&(h=r)}let m=await P({onSearchForStoresByName:s,...e,showDomainOnPrompt:c,...a?{onCreateStoreWhenEmpty:a}:{},...h?{onCreateStore:h}:{}});if(!m){if(a)throw new _;if(g({body:await o.getCreateDevStoreLink(t)}),await y(5),!await x(t))throw new _;let w=await B(t.id,o);m=await M({stores:w,hasMorePages:!1},t,o,i)}return C(m),m}async function I(e,t,o){let s;if(await N([{title:"Fetching organization data",task:async()=>{for(let r=0;r<10;r++){try{let a=await D(e,t,o);if(a){s=a;return}}catch(a){if(!(a instanceof L))throw a}await y(3)}}}]),!s)throw new d(`The newly created development store (${t}) is not available yet.`,`Run \`shopify app dev --store ${t}\` to select it when it is ready.`);return s}async function B(e,t){let c=[];return await N([{title:"Fetching organization data",task:async()=>{for(let n=0;n<10;n++){let{stores:r}=await t.devStoresForOrg(e);if(r.length>0){c=r;return}await y(3)}}}]),c}var U="Your organization has reached its development store limit.";function Y(e){return`You don't have any dev stores associated with ${e.businessName}'s Dev Dashboard. Let's create one.`}function q(e){return`shopify store create dev --organization-id ${e} --name <store-name> --plan <plan>`}function H(e){return`Create a development store with \`${q(e)}\`, then run \`shopify app dev --store <store-domain>\`.`}function W(e){return`Make a development store slot available in Dev Dashboard. Then create a development store with \`${q(e)}\`, then run \`shopify app dev --store <store-domain>\`.`}function C(e){if(!e.transferDisabled)throw!e.transferDisabled&&!e.convertableToPartnerTest?new d(`The store you specified (${e.shopDomain}) is not a dev store`,"Run dev --reset and select an eligible dev store."):new d(`The store you specified (${e.shopDomain}) is not transfer-disabled`,"Run dev --reset and select a transfer-disabled dev store.")}async function fe({appContextResult:e,storeFqdn:t,forceReselectStore:o,storeTypes:i=["APP_DEVELOPMENT"],storeCreationMode:c="disabled"}){let{app:s,organization:n,developerPlatformClient:r}=e,a,h=s.configuration.build?.dev_store_url,m=s.hiddenConfig.dev_store_url,f=h??m,u=t??(o?void 0:f),T=i.length===1&&i[0]==="APP_DEVELOPMENT";if(u)a=await D(n,u,r,i),T&&C(a);else{let S=await r.devStoresForOrg(n.id);a=await M(S,n,r,c)}return a.shopDomain=R(a.shopDomain),await V(a,o),(a.shopDomain!==f||!m)&&await s.updateHiddenConfig({dev_store_url:a.shopDomain}),await r.ensureUserAccessToStore(n.id,a),a}async function V(e,t){await F.addPublicMetadata(()=>({cmd_app_reset_used:t,store_fqdn_hash:E(e.shopDomain),store_domain:e.shopDomain})),await F.addSensitiveMetadata(()=>({store_fqdn:e.shopDomain}))}export{fe as a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-ZBVHPC6W.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 n}from"./chunk-BAHIL37I.js";import{b as v}from"./chunk-ZQDDRIBA.js";import{j as g}from"./chunk-H4V55Y3Z.js";import{b as w,c as F}from"./chunk-Q2SZCZE7.js";import{h as r}from"./chunk-2VSNFOKD.js";import{ta as u,va as m,wb as c,yb as y}from"./chunk-LWCTKI4Z.js";import{b as k}from"./chunk-YTUUU33R.js";import{e as l,h as f}from"./chunk-IWTNUJGY.js";import{e as O,g as s}from"./chunk-VKWPEFWQ.js";s();s();var D="text/markdown",L="X-Shopify-Surface",R="cli",S=["shopify.dev"];async function x(t,e){let o;try{o=new URL(t)}catch{throw new r(`Invalid URL: ${t}`)}let{hostname:i}=o;if(!S.some(d=>i===d||i.endsWith(`.${d}`)))throw new r(`Only documents from the following hosts can be fetched: ${S.join(", ")}.`);let a=await g(t,{headers:{Accept:D,[L]:R,...e?{"Accept-Language":e}:{}}});if(!a.ok)throw new r(`Failed to fetch ${t}: ${a.status} ${a.statusText}`);return{document:{url:t,content:await a.text()}}}s();async function A(t,e,o){if(o){let i=l(o);await m(f(i)),await u(i,t.document.content),y(`Saved ${t.document.url} to ${i}`),e==="json"&&c(n.encode({path:i,format:"markdown"}))}else e==="json"?c(n.encode(t)):c(t.document.content)}var p=O(k(),1),h=class t extends v{static descriptionWithMarkdown="Download a complete document from shopify.dev. Every page on shopify.dev has a Markdown version, and that is what this tool returns. Use this to pull an entire document verbatim \u2014 for example, a set of instructions an agent follows like a centrally-served skill. Pass `--language` for the language of the app you are building so code examples match your stack. For finding the relevant pieces of content across shopify.dev instead, use `doc search`.";static description=this.descriptionForHelp();static examples=[`# fetch the Markdown version of a Shopify.dev page
1
+ import{a as n}from"./chunk-BAHIL37I.js";import{b as v}from"./chunk-OLKLHVHA.js";import{j as g}from"./chunk-NCPZVARH.js";import{b as w,c as F}from"./chunk-5AWELO3D.js";import{h as r}from"./chunk-J7BTC45S.js";import{ta as u,va as m,wb as c,yb as y}from"./chunk-RIG66DIQ.js";import{b as k}from"./chunk-YTUUU33R.js";import{e as l,h as f}from"./chunk-IWTNUJGY.js";import{e as O,g as s}from"./chunk-VKWPEFWQ.js";s();s();var D="text/markdown",L="X-Shopify-Surface",R="cli",S=["shopify.dev"];async function x(t,e){let o;try{o=new URL(t)}catch{throw new r(`Invalid URL: ${t}`)}let{hostname:i}=o;if(!S.some(d=>i===d||i.endsWith(`.${d}`)))throw new r(`Only documents from the following hosts can be fetched: ${S.join(", ")}.`);let a=await g(t,{headers:{Accept:D,[L]:R,...e?{"Accept-Language":e}:{}}});if(!a.ok)throw new r(`Failed to fetch ${t}: ${a.status} ${a.statusText}`);return{document:{url:t,content:await a.text()}}}s();async function A(t,e,o){if(o){let i=l(o);await m(f(i)),await u(i,t.document.content),y(`Saved ${t.document.url} to ${i}`),e==="json"&&c(n.encode({path:i,format:"markdown"}))}else e==="json"?c(n.encode(t)):c(t.document.content)}var p=O(k(),1),h=class t extends v{static descriptionWithMarkdown="Download a complete document from shopify.dev. Every page on shopify.dev has a Markdown version, and that is what this tool returns. Use this to pull an entire document verbatim \u2014 for example, a set of instructions an agent follows like a centrally-served skill. Pass `--language` for the language of the app you are building so code examples match your stack. For finding the relevant pieces of content across shopify.dev instead, use `doc search`.";static description=this.descriptionForHelp();static examples=[`# fetch the Markdown version of a Shopify.dev page
2
2
  shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli`,`# filter code examples to the language of the app you are building
3
3
  shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli --language ruby`,`# save the document to a file instead of printing it
4
4
  shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli --output docs/shopify-cli.md`,`# return a typed document as JSON
@@ -1,2 +1,2 @@
1
- import{b as p,d as c,e as _,f as q}from"./chunk-7QUZWCJZ.js";import{a as T}from"./chunk-RVQV6G5M.js";import{a as F,b as B,c as E,l as w,n as C,o as y,t as D}from"./chunk-OGWPS55W.js";import{a as R}from"./chunk-ZGV3HNEV.js";import{a as x}from"./chunk-FWB3GLMW.js";import{u as m}from"./chunk-H4V55Y3Z.js";import{b as S,c as A}from"./chunk-Q2SZCZE7.js";import{A as f,B as k,C as O,z as d}from"./chunk-CZ22VZDA.js";import{h}from"./chunk-2VSNFOKD.js";import{qb as b,sb as g,wb as I}from"./chunk-LWCTKI4Z.js";import{b as N}from"./chunk-YTUUU33R.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();async function j(o){let{storeFqdn:e,operationId:a,remoteApp:t}=o,r=await T(t,e),n=await w({adminSession:r,operationId:a});return{store:e,apiVersion:F,operation:n?.bulkOperation??null,userErrors:n?.userErrors??[]}}i();function G(o,e,a){if(a==="json"){if(o.userErrors.length||!o.operation){let r=new h("Failed to cancel bulk operation.");throw r.details={...c(o),operationGid:e,userErrors:o.userErrors},r}I(p.encode({...c(o),status:"success",operation:_(o.operation)}));return}if(o.userErrors.length){C(o.userErrors,"Failed to cancel bulk operation.");return}let t=o.operation;if(t){let r=y(t),n=t.status==="CANCELING"?[`This may take a few moments. Check the status with:
1
+ import{b as p,d as c,e as _,f as q}from"./chunk-6Y6A2QGK.js";import{a as T}from"./chunk-XDXHSGDL.js";import{a as F,b as B,c as E,l as w,n as C,o as y,t as D}from"./chunk-5XOEMYEQ.js";import{a as R}from"./chunk-NPB753M3.js";import{a as x}from"./chunk-D4LFWIFE.js";import{u as m}from"./chunk-NCPZVARH.js";import{b as S,c as A}from"./chunk-5AWELO3D.js";import{A as f,B as k,C as O,z as d}from"./chunk-V654BMS7.js";import{h}from"./chunk-J7BTC45S.js";import{qb as b,sb as g,wb as I}from"./chunk-RIG66DIQ.js";import{b as N}from"./chunk-YTUUU33R.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();async function j(o){let{storeFqdn:e,operationId:a,remoteApp:t}=o,r=await T(t,e),n=await w({adminSession:r,operationId:a});return{store:e,apiVersion:F,operation:n?.bulkOperation??null,userErrors:n?.userErrors??[]}}i();function G(o,e,a){if(a==="json"){if(o.userErrors.length||!o.operation){let r=new h("Failed to cancel bulk operation.");throw r.details={...c(o),operationGid:e,userErrors:o.userErrors},r}I(p.encode({...c(o),status:"success",operation:_(o.operation)}));return}if(o.userErrors.length){C(o.userErrors,"Failed to cancel bulk operation.");return}let t=o.operation;if(t){let r=y(t),n=t.status==="CANCELING"?[`This may take a few moments. Check the status with:
2
2
  `,{command:`shopify app bulk status --id=${E(t.id)}`}]:r.body,s={headline:r.headline,...n&&{body:n},...r.customSections&&{customSections:r.customSections}};switch(r.renderType){case"success":f(s);break;case"warning":k(s);break;case"info":d(s);break}}else O({headline:"Bulk operation not found or could not be canceled.",body:g`ID: ${b.yellow(e)}`.value})}var u=L(N(),1);var l=class o extends R{static summary="Cancel a bulk operation.";static descriptionWithMarkdown="Cancels a running bulk operation by ID.";static description=this.descriptionForHelp();static flags={...S,...A,...x,id:u.Flags.string({description:"The bulk operation ID to cancel (numeric ID or full GID).",env:"SHOPIFY_FLAG_ID",required:!0}),store:u.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>m(e)})};static get jsonOutputSchema(){return p}async run(){let{flags:e}=await this.parse(o),{appContextResult:a,store:t}=await D(e),r=e.json?"json":"text",n=B(e.id);q("Canceling bulk operation.",{organization:a.organization,remoteApp:a.remoteApp,storeFqdn:t.shopDomain,operationId:n},r);let s=await j({storeFqdn:t.shopDomain,operationId:n,remoteApp:a.remoteApp});return G(s,n,r),{app:a.app}}};export{l as a};
@@ -1,4 +1,4 @@
1
- import{b as Y}from"./chunk-LFOBYEWG.js";import{F as W}from"./chunk-H4V55Y3Z.js";import{q as M}from"./chunk-ZT5WFUKJ.js";import{W as k}from"./chunk-CZ22VZDA.js";import{a as C,c as j}from"./chunk-J6TW43TG.js";import{b as S,h as A}from"./chunk-335BUVBP.js";import{d as I}from"./chunk-X7HVAVSZ.js";import{h as d}from"./chunk-2VSNFOKD.js";import{$ as P,qb as h,sb as g,wb as R}from"./chunk-LWCTKI4Z.js";import{h as b,i as N,j as f}from"./chunk-FZCGRIOM.js";import{d as q}from"./chunk-3A3DZVEJ.js";import{b as $}from"./chunk-ZDQO6CNY.js";import{b as J}from"./chunk-YTUUU33R.js";import{a as _}from"./chunk-JD5P5RAJ.js";import{e as H,g as E}from"./chunk-VKWPEFWQ.js";E();var u=H(J()),O=class extends u.Command{static baseFlags={"json-schema":u.Flags.boolean({description:"Print the command's JSON schemas.",env:"SHOPIFY_FLAG_JSON_SCHEMA"})};static descriptionWithMarkdown;static get jsonOutputSchema(){}static get requiresSyncAnalytics(){return!1}static nonTTYFlagRequirements(n){return[]}static descriptionForHelp(){let n=(this.descriptionWithMarkdown??"").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm,'"$2" ($5)');return z(n,this.jsonOutputSchema)}static descriptionWithoutMarkdown(){return this.descriptionForHelp()}static analyticsNameOverride(){}static analyticsStopCommand(){}jsonOutputFromFlags=!1;async catch(n){let e=async()=>{n.skipOclifErrorHandling=!0;let{errorHandler:r}=await import("./error-handler-74HKA23T.js");return await r(n,this.config),u.Errors.handle(n)};return this.jsonOutputFromFlags&&f()!=="json"?b({outputMode:"json",sink:j},e):e()}async _run(){return C(this.argv,()=>super._run())}async init(){if(this.exitWithTimestampWhenEnvVariablePresent(),Y(this.id??""),!q()){let{registerCleanBugsnagErrorsFromWithinPlugins:e}=await import("./error-handler-74HKA23T.js");await e(this.config)}await G(this.config),this.showNpmFlagWarning(),await this.showDeprecatedAutomationTokenVariableWarning();let{showNotificationsIfNeeded:n}=await import("./notifications-system-XA3EBOGJ.js");return await n(),super.init()}showNpmFlagWarning(){let n=this.constructor;Object.keys(n.flags||{}).map(t=>`npm_config_${P(t).replace(/^no_/,"")}`).some(t=>process.env[t]!==void 0)&&import("./ui-PCG5D6RZ.js").then(({renderWarning:t})=>{t({body:["NPM scripts require an extra",{command:"--"},"separator to pass the flags. Example:",{command:"npm run dev -- --reset"}]})})}async showDeprecatedAutomationTokenVariableWarning(){let n=A();n&&await M("warn-on-deprecated-automation-token-variable",{days:1},async()=>{let{renderWarning:e}=await import("./ui-PCG5D6RZ.js");e({headline:`${n} is deprecated.`,body:`Move the token to ${$.serviceAccountToken}. ${n} still works for now, but a future release will stop reading it.`})})}exitWithTimestampWhenEnvVariablePresent(){_(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN)&&(R(`
1
+ import{b as Y}from"./chunk-LFOBYEWG.js";import{F as W}from"./chunk-NCPZVARH.js";import{q as M}from"./chunk-J3UXIC23.js";import{W as k}from"./chunk-V654BMS7.js";import{a as C,c as j}from"./chunk-F3OM2YO6.js";import{b as S,h as A}from"./chunk-335BUVBP.js";import{d as I}from"./chunk-FHNJLON5.js";import{h as d}from"./chunk-J7BTC45S.js";import{$ as P,qb as h,sb as g,wb as R}from"./chunk-RIG66DIQ.js";import{h as b,i as N,j as f}from"./chunk-FZCGRIOM.js";import{d as q}from"./chunk-GSGCSBRN.js";import{b as $}from"./chunk-ZDQO6CNY.js";import{b as J}from"./chunk-YTUUU33R.js";import{a as _}from"./chunk-JD5P5RAJ.js";import{e as H,g as E}from"./chunk-VKWPEFWQ.js";E();var u=H(J()),O=class extends u.Command{static baseFlags={"json-schema":u.Flags.boolean({description:"Print the command's JSON schemas.",env:"SHOPIFY_FLAG_JSON_SCHEMA"})};static descriptionWithMarkdown;static get jsonOutputSchema(){}static get requiresSyncAnalytics(){return!1}static nonTTYFlagRequirements(n){return[]}static descriptionForHelp(){let n=(this.descriptionWithMarkdown??"").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm,'"$2" ($5)');return z(n,this.jsonOutputSchema)}static descriptionWithoutMarkdown(){return this.descriptionForHelp()}static analyticsNameOverride(){}static analyticsStopCommand(){}jsonOutputFromFlags=!1;async catch(n){let e=async()=>{n.skipOclifErrorHandling=!0;let{errorHandler:r}=await import("./error-handler-OVJYVIOZ.js");return await r(n,this.config),u.Errors.handle(n)};return this.jsonOutputFromFlags&&f()!=="json"?b({outputMode:"json",sink:j},e):e()}async _run(){return C(this.argv,()=>super._run())}async init(){if(this.exitWithTimestampWhenEnvVariablePresent(),Y(this.id??""),!q()){let{registerCleanBugsnagErrorsFromWithinPlugins:e}=await import("./error-handler-OVJYVIOZ.js");await e(this.config)}await G(this.config),this.showNpmFlagWarning(),await this.showDeprecatedAutomationTokenVariableWarning();let{showNotificationsIfNeeded:n}=await import("./notifications-system-OXGLT2R4.js");return await n(),super.init()}showNpmFlagWarning(){let n=this.constructor;Object.keys(n.flags||{}).map(t=>`npm_config_${P(t).replace(/^no_/,"")}`).some(t=>process.env[t]!==void 0)&&import("./ui-MYUBVKCK.js").then(({renderWarning:t})=>{t({body:["NPM scripts require an extra",{command:"--"},"separator to pass the flags. Example:",{command:"npm run dev -- --reset"}]})})}async showDeprecatedAutomationTokenVariableWarning(){let n=A();n&&await M("warn-on-deprecated-automation-token-variable",{days:1},async()=>{let{renderWarning:e}=await import("./ui-MYUBVKCK.js");e({headline:`${n} is deprecated.`,body:`Move the token to ${$.serviceAccountToken}. ${n} still works for now, but a future release will stop reading it.`})})}exitWithTimestampWhenEnvVariablePresent(){_(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN)&&(R(`
2
2
  SHOPIFY_CLI_TIMESTAMP_START
3
3
  { "timestamp": ${Date.now()} }
4
4
  SHOPIFY_CLI_TIMESTAMP_END
@@ -7,9 +7,9 @@ import{b as Y}from"./chunk-LFOBYEWG.js";import{F as W}from"./chunk-H4V55Y3Z.js";
7
7
 
8
8
  ${h.cyan(s)}
9
9
 
10
- ${a} in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the options in the command, or run the command in an interactive environment such as your local terminal.")}applicableNonTTYFlagRequirements(n){let e=this.constructor,r={...e.baseFlags,...e.flags},t=Object.entries(r).filter(([,a])=>!!a.requiredIfNonInteractive).map(([a])=>({flags:[a]})),s=(e.nonTTYFlagRequirements?.(n)??[]).filter(a=>a.when?.(n)??!0);return[...t,...s]}async resultWithEnvironment(n,e,r){let t=n.flags,s=this.environmentsFilename();if(!s)return n;let{environmentFilePath:a}=await import("./environments-CYMEN7NV.js"),i=await a(s,{from:t.path}),l=[];t.environment&&(l=Array.isArray(t.environment)?t.environment:[t.environment]);let p=l.length>0;if(!i&&!p||p&&l.length>1)return n;let{environment:m,isDefaultEnvironment:v}=await this.loadEnvironmentForCommand(t.path,s,l[0]);if(!m||v&&!c(e?.flags,"environment"))return n;let y=await super.parse(B(e),r),F={...m,...y.flags};this.jsonOutputFromFlags=c(e?.flags,"json")&&F.json===!0||T(e?.flags)&&F.output==="json";let x=c(e?.flags,"json")&&T(e?.flags)&&F.output==="json"?{json:!0,...m}:m,w=await super.parse(e,[...r??this.argv,...D(x,e,y.flags),...v?["--environment","default"]:[]]),V=()=>L(y.flags,w.flags,v?"default":l[0],m);return this.runWithParsedOutput(w.flags,V),w}async loadEnvironmentForCommand(n,e,r){let{loadEnvironment:t}=await import("./environments-CYMEN7NV.js");return r?{environment:await t(r,e,{from:n}),isDefaultEnvironment:!1}:{environment:await t("default",e,{from:n,silent:!0}),isDefaultEnvironment:!0}}};async function U(o){await I(()=>({cmd_all_verbose:o.verbose,cmd_all_path_override:o.path!==void 0,cmd_all_path_override_hash:o.path===void 0?void 0:S(o.path)}))}function L(o,n,e,r){let t={};for(let[a,i]of Object.entries(n)){let l=Object.prototype.hasOwnProperty.call(o,a),p=Object.prototype.hasOwnProperty.call(r,a);if(!l&&p){let m=a==="password"||a==="store-password"?`********${i.substr(-4)}`:i;t[a]=m}}if(Object.keys(t).length===0)return;let s=Object.entries(t).map(([a,i])=>`${a}: ${i}`);if(f()==="json"){N({type:"diagnostic",level:"info",message:`Using applicable flags from ${e} environment:
10
+ ${a} in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the options in the command, or run the command in an interactive environment such as your local terminal.")}applicableNonTTYFlagRequirements(n){let e=this.constructor,r={...e.baseFlags,...e.flags},t=Object.entries(r).filter(([,a])=>!!a.requiredIfNonInteractive).map(([a])=>({flags:[a]})),s=(e.nonTTYFlagRequirements?.(n)??[]).filter(a=>a.when?.(n)??!0);return[...t,...s]}async resultWithEnvironment(n,e,r){let t=n.flags,s=this.environmentsFilename();if(!s)return n;let{environmentFilePath:a}=await import("./environments-WZJ6MRTH.js"),i=await a(s,{from:t.path}),l=[];t.environment&&(l=Array.isArray(t.environment)?t.environment:[t.environment]);let p=l.length>0;if(!i&&!p||p&&l.length>1)return n;let{environment:m,isDefaultEnvironment:v}=await this.loadEnvironmentForCommand(t.path,s,l[0]);if(!m||v&&!c(e?.flags,"environment"))return n;let y=await super.parse(B(e),r),F={...m,...y.flags};this.jsonOutputFromFlags=c(e?.flags,"json")&&F.json===!0||T(e?.flags)&&F.output==="json";let x=c(e?.flags,"json")&&T(e?.flags)&&F.output==="json"?{json:!0,...m}:m,w=await super.parse(e,[...r??this.argv,...D(x,e,y.flags),...v?["--environment","default"]:[]]),V=()=>L(y.flags,w.flags,v?"default":l[0],m);return this.runWithParsedOutput(w.flags,V),w}async loadEnvironmentForCommand(n,e,r){let{loadEnvironment:t}=await import("./environments-WZJ6MRTH.js");return r?{environment:await t(r,e,{from:n}),isDefaultEnvironment:!1}:{environment:await t("default",e,{from:n,silent:!0}),isDefaultEnvironment:!0}}};async function U(o){await I(()=>({cmd_all_verbose:o.verbose,cmd_all_path_override:o.path!==void 0,cmd_all_path_override_hash:o.path===void 0?void 0:S(o.path)}))}function L(o,n,e,r){let t={};for(let[a,i]of Object.entries(n)){let l=Object.prototype.hasOwnProperty.call(o,a),p=Object.prototype.hasOwnProperty.call(r,a);if(!l&&p){let m=a==="password"||a==="store-password"?`********${i.substr(-4)}`:i;t[a]=m}}if(Object.keys(t).length===0)return;let s=Object.entries(t).map(([a,i])=>`${a}: ${i}`);if(f()==="json"){N({type:"diagnostic",level:"info",message:`Using applicable flags from ${e} environment:
11
11
  ${s.join(`
12
- `)}`});return}import("./ui-PCG5D6RZ.js").then(({renderInfo:a})=>{a({headline:["Using applicable flags from",{userInput:e},"environment:"],body:[{list:{items:s}}]})})}function B(o){return o?.flags?{...o,flags:Object.fromEntries(Object.entries(o.flags).map(([n,e])=>{let r={...e};return delete r.default,[n,r]}))}:o}function D(o,n,e){let r=[];for(let[t,s]of Object.entries(o)){let a=c(n?.flags,t),i=Object.prototype.hasOwnProperty.call(e,t);if(a&&!i){if(n?.flags?.[t]?.type==="boolean"&&typeof s!="boolean")throw new d(g`Environment flag ${h.yellow(t)} must be a boolean.`);if(typeof s=="boolean")if(s)r.push(`--${t}`);else throw new d(g`Environments can only specify true for boolean flags. Attempted to set ${h.yellow(t)} to false.`);else Array.isArray(s)?s.forEach(l=>r.push(`--${t}`,`${l}`)):r.push(`--${t}`,`${s}`)}}return r}function c(o,n){return!!o&&Object.prototype.hasOwnProperty.call(o,n)}function T(o){let n=o?.output;return n?.type==="option"&&n.options?.includes("json")===!0}function z(o,n){if(!n)return o;let e=`Use \`--json-schema\` to print the result, error, and event schemas.
12
+ `)}`});return}import("./ui-MYUBVKCK.js").then(({renderInfo:a})=>{a({headline:["Using applicable flags from",{userInput:e},"environment:"],body:[{list:{items:s}}]})})}function B(o){return o?.flags?{...o,flags:Object.fromEntries(Object.entries(o.flags).map(([n,e])=>{let r={...e};return delete r.default,[n,r]}))}:o}function D(o,n,e){let r=[];for(let[t,s]of Object.entries(o)){let a=c(n?.flags,t),i=Object.prototype.hasOwnProperty.call(e,t);if(a&&!i){if(n?.flags?.[t]?.type==="boolean"&&typeof s!="boolean")throw new d(g`Environment flag ${h.yellow(t)} must be a boolean.`);if(typeof s=="boolean")if(s)r.push(`--${t}`);else throw new d(g`Environments can only specify true for boolean flags. Attempted to set ${h.yellow(t)} to false.`);else Array.isArray(s)?s.forEach(l=>r.push(`--${t}`,`${l}`)):r.push(`--${t}`,`${s}`)}}return r}function c(o,n){return!!o&&Object.prototype.hasOwnProperty.call(o,n)}function T(o){let n=o?.output;return n?.type==="option"&&n.options?.includes("json")===!0}function z(o,n){if(!n)return o;let e=`Use \`--json-schema\` to print the result, error, and event schemas.
13
13
 
14
14
  Output from \`--json\` conforms to the \`${n.name}\` schema.
15
15
 
@@ -18,5 +18,5 @@ ${JSON.stringify(n.jsonSchema,null,2)}
18
18
  \`\`\``;return[o,e].filter(Boolean).join(`
19
19
 
20
20
  `)}async function G(o){let n=Array.from(o.plugins.values()),e=["@shopify/app","@shopify/plugin-cloudflare"],r=n.filter(s=>e.includes(s.name));if(r.length>0){let s=r.map(i=>` - shopify plugins remove ${i.name}`).join(`
21
- `),{renderWarning:a}=await import("./ui-PCG5D6RZ.js");a({headline:`Unsupported plugins detected: ${r.map(i=>i.name).join(", ")}`,body:["They are already included in the CLI and installing them as custom plugins can cause conflicts.",`You can fix it by running:
21
+ `),{renderWarning:a}=await import("./ui-MYUBVKCK.js");a({headline:`Unsupported plugins detected: ${r.map(i=>i.name).join(", ")}`,body:["They are already included in the CLI and installing them as custom plugins can cause conflicts.",`You can fix it by running:
22
22
  ${s}`]})}let t=n.filter(s=>!e.includes(s.name));o.plugins=new Map(t.map(s=>[s.name,s]))}var cn=O;export{B as a,cn as b};
@@ -1 +1 @@
1
- import{E as h,F as e,G as r,K as o,L as s,p as n}from"./chunk-CZ22VZDA.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function y(){await h({message:"Associate your project with the org Castile Ventures?",choices:[{label:"first",value:"first",disabled:!0},{label:"second",value:"second"},{label:"third (limit reached)",value:"third",disabled:!0},{label:"fourth (limit reached)",value:"fourth",disabled:!0},{label:"fifth",value:"fifth",group:"Automations",disabled:!0},{label:"sixth",value:"sixth",group:"Automations"},{label:"seventh",value:"seventh"},{label:"eighth (limit reached)",value:"eighth",group:"Merchant Admin",disabled:!0},{label:"ninth",value:"ninth",group:"Merchant Admin"},{label:"tenth",value:"tenth"}],infoTable:[{header:"add",items:["new-ext"],bullet:"+"},{header:"remove",items:["integrated-demand-ext","order-discount"],bullet:"-"}]}),await o({message:"App project name (can be changed later)",defaultValue:"expansive commerce app",validate:t=>{if(t.includes("shopify"))return`Can't include "shopify" in the name`}});let l=[{label:"first",value:"first"},{label:"second",value:"second"},{label:"third",value:"third"},{label:"fourth",value:"fourth"},{label:"fifth",value:"fifth"},{label:"sixth",value:"sixth"},{label:"seventh",value:"seventh"},{label:"eighth",value:"eighth"},{label:"ninth",value:"ninth"},{label:"tenth",value:"tenth"},{label:"eleventh",value:"eleventh"},{label:"twelfth",value:"twelfth"},{label:"thirteenth",value:"thirteenth"},{label:"fourteenth",value:"fourteenth"},{label:"fifteenth",value:"fifteenth"},{label:"sixteenth",value:"sixteenth"},{label:"seventeenth",value:"seventeenth"},{label:"eighteenth",value:"eighteenth"},{label:"nineteenth",value:"nineteenth"},{label:"twentieth",value:"twentieth"},{label:"twenty-first",value:"twenty-first"},{label:"twenty-second",value:"twenty-second"},{label:"twenty-third",value:"twenty-third"},{label:"twenty-fourth",value:"twenty-fourth"},{label:"twenty-fifth",value:"twenty-fifth"},{label:"twenty-sixth",value:"twenty-sixth"},{label:"twenty-seventh",value:"twenty-seventh"},{label:"twenty-eighth",value:"twenty-eighth"},{label:"twenty-ninth",value:"twenty-ninth"},{label:"thirtieth",value:"thirtieth"},{label:"thirty-first",value:"thirty-first"},{label:"thirty-second",value:"thirty-second"},{label:"thirty-third",value:"thirty-third"},{label:"thirty-fourth",value:"thirty-fourth"},{label:"thirty-fifth",value:"thirty-fifth"},{label:"thirty-sixth",value:"thirty-sixth"},{label:"thirty-seventh",value:"thirty-seventh"},{label:"thirty-eighth",value:"thirty-eighth"},{label:"thirty-ninth",value:"thirty-ninth"},{label:"fortieth",value:"fortieth"},{label:"forty-first",value:"forty-first"},{label:"forty-second",value:"forty-second"},{label:"forty-third",value:"forty-third"},{label:"forty-fourth",value:"forty-fourth"},{label:"forty-fifth",value:"forty-fifth"},{label:"forty-sixth",value:"forty-sixth"},{label:"forty-seventh",value:"forty-seventh"},{label:"forty-eighth",value:"forty-eighth"},{label:"forty-ninth",value:"forty-ninth"},{label:"fiftieth",value:"fiftieth"}];await r({message:"Template",choices:l,search(t){return Promise.resolve({data:l.filter(f=>f.label.includes(t))})}});let a=[["first theme",{subdued:"(#1)"}],["second theme",{subdued:"(#2)"}]];await e({message:"Add the following themes to the store?",infoTable:{"":a},confirmationMessage:"Yes, add them",cancellationMessage:"Cancel"});let u={title:{color:"red",text:`${n.warning} This can't be undone.`},body:"The action you are executing should be confirmed to proceed."};await e({message:"Delete the following themes from the store?",infoTable:{"":a},infoMessage:u,confirmationMessage:"Yes, delete them",cancellationMessage:"Cancel",defaultValue:!1}),await e({message:["Make the following changes to your",{filePath:".env"},"file?"],defaultValue:!0,confirmationMessage:"Yes, confirm changes",cancellationMessage:"No, make changes later"}),await s({message:"Release this version of Mega App?",infoTable:[{header:"Includes",items:["My subscription extension","Order discount function","Subscription cancelled trigger","Add subscription action"],bullet:"+"},{header:"Removes",items:["product-discount-function","product-subscription-extension"],bullet:"-"}],confirmation:"Mega App"})}export{y as a};
1
+ import{E as h,F as e,G as r,K as o,L as s,p as n}from"./chunk-V654BMS7.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function y(){await h({message:"Associate your project with the org Castile Ventures?",choices:[{label:"first",value:"first",disabled:!0},{label:"second",value:"second"},{label:"third (limit reached)",value:"third",disabled:!0},{label:"fourth (limit reached)",value:"fourth",disabled:!0},{label:"fifth",value:"fifth",group:"Automations",disabled:!0},{label:"sixth",value:"sixth",group:"Automations"},{label:"seventh",value:"seventh"},{label:"eighth (limit reached)",value:"eighth",group:"Merchant Admin",disabled:!0},{label:"ninth",value:"ninth",group:"Merchant Admin"},{label:"tenth",value:"tenth"}],infoTable:[{header:"add",items:["new-ext"],bullet:"+"},{header:"remove",items:["integrated-demand-ext","order-discount"],bullet:"-"}]}),await o({message:"App project name (can be changed later)",defaultValue:"expansive commerce app",validate:t=>{if(t.includes("shopify"))return`Can't include "shopify" in the name`}});let l=[{label:"first",value:"first"},{label:"second",value:"second"},{label:"third",value:"third"},{label:"fourth",value:"fourth"},{label:"fifth",value:"fifth"},{label:"sixth",value:"sixth"},{label:"seventh",value:"seventh"},{label:"eighth",value:"eighth"},{label:"ninth",value:"ninth"},{label:"tenth",value:"tenth"},{label:"eleventh",value:"eleventh"},{label:"twelfth",value:"twelfth"},{label:"thirteenth",value:"thirteenth"},{label:"fourteenth",value:"fourteenth"},{label:"fifteenth",value:"fifteenth"},{label:"sixteenth",value:"sixteenth"},{label:"seventeenth",value:"seventeenth"},{label:"eighteenth",value:"eighteenth"},{label:"nineteenth",value:"nineteenth"},{label:"twentieth",value:"twentieth"},{label:"twenty-first",value:"twenty-first"},{label:"twenty-second",value:"twenty-second"},{label:"twenty-third",value:"twenty-third"},{label:"twenty-fourth",value:"twenty-fourth"},{label:"twenty-fifth",value:"twenty-fifth"},{label:"twenty-sixth",value:"twenty-sixth"},{label:"twenty-seventh",value:"twenty-seventh"},{label:"twenty-eighth",value:"twenty-eighth"},{label:"twenty-ninth",value:"twenty-ninth"},{label:"thirtieth",value:"thirtieth"},{label:"thirty-first",value:"thirty-first"},{label:"thirty-second",value:"thirty-second"},{label:"thirty-third",value:"thirty-third"},{label:"thirty-fourth",value:"thirty-fourth"},{label:"thirty-fifth",value:"thirty-fifth"},{label:"thirty-sixth",value:"thirty-sixth"},{label:"thirty-seventh",value:"thirty-seventh"},{label:"thirty-eighth",value:"thirty-eighth"},{label:"thirty-ninth",value:"thirty-ninth"},{label:"fortieth",value:"fortieth"},{label:"forty-first",value:"forty-first"},{label:"forty-second",value:"forty-second"},{label:"forty-third",value:"forty-third"},{label:"forty-fourth",value:"forty-fourth"},{label:"forty-fifth",value:"forty-fifth"},{label:"forty-sixth",value:"forty-sixth"},{label:"forty-seventh",value:"forty-seventh"},{label:"forty-eighth",value:"forty-eighth"},{label:"forty-ninth",value:"forty-ninth"},{label:"fiftieth",value:"fiftieth"}];await r({message:"Template",choices:l,search(t){return Promise.resolve({data:l.filter(f=>f.label.includes(t))})}});let a=[["first theme",{subdued:"(#1)"}],["second theme",{subdued:"(#2)"}]];await e({message:"Add the following themes to the store?",infoTable:{"":a},confirmationMessage:"Yes, add them",cancellationMessage:"Cancel"});let u={title:{color:"red",text:`${n.warning} This can't be undone.`},body:"The action you are executing should be confirmed to proceed."};await e({message:"Delete the following themes from the store?",infoTable:{"":a},infoMessage:u,confirmationMessage:"Yes, delete them",cancellationMessage:"Cancel",defaultValue:!1}),await e({message:["Make the following changes to your",{filePath:".env"},"file?"],defaultValue:!0,confirmationMessage:"Yes, confirm changes",cancellationMessage:"No, make changes later"}),await s({message:"Release this version of Mega App?",infoTable:[{header:"Includes",items:["My subscription extension","Order discount function","Subscription cancelled trigger","Add subscription action"],bullet:"+"},{header:"Removes",items:["product-discount-function","product-subscription-extension"],bullet:"-"}],confirmation:"Mega App"})}export{y as a};
@@ -1 +1 @@
1
- import{o as R}from"./chunk-LVLAOBJM.js";import{a as k}from"./chunk-KSDU4YOB.js";import{c as D}from"./chunk-PSSYLJG4.js";import{e as S}from"./chunk-QFWWCZOI.js";import{s as A}from"./chunk-5TB52UUV.js";import{r as v}from"./chunk-DJAZBPYA.js";import{a as E}from"./chunk-D7NB7YR6.js";import{N as g}from"./chunk-H4V55Y3Z.js";import{A as b,B as P,C}from"./chunk-CZ22VZDA.js";import{Bb as M,ua as O,wb as j}from"./chunk-LWCTKI4Z.js";import{b as e,i as T}from"./chunk-FZCGRIOM.js";import{c as u,e as h,g as y,p as w}from"./chunk-IWTNUJGY.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();import{resolve as x}from"node:path";var I=e.object({name:e.string(),category:e.string()}),L=e.object({key:e.string(),namespace:e.string(),name:e.string(),description:e.string().nullish(),type:I}),a={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",variant:"PRODUCTVARIANT",shop:"SHOP"},$=e.object(Object.fromEntries(Object.keys(a).map(t=>[t,e.array(L)]))),N=e.object({ownerType:e.string().describe("The upstream owner type, such as PRODUCT or COMPANY_LOCATION."),key:e.string(),namespace:e.string(),name:e.string(),description:e.string().nullable(),type:e.object({name:e.string().describe("The upstream metafield type, such as single_line_text_field."),category:e.string().describe("The upstream metafield category.")}).strict()}).strict(),F=S({name:"ThemeMetafieldsPullResult",schema:e.union([e.object({status:e.enum(["success","partial"]),changed:e.literal(!0),path:e.string().refine(y).describe("The absolute path of the native language-server metafields JSON artifact."),definitions:e.array(N).describe("All fetched definitions, flattened across owner types."),failedOwnerTypes:e.array(e.string()).describe("Upstream owner types whose fetch failed.")}).strict(),e.object({status:e.literal("skipped"),reason:e.literal("not-a-theme")}).strict()]),definitions:{MetafieldDefinition:N},project:t=>{let i=t;if(i.status==="failed")throw new Error("Failed downloads must use the fatal error envelope.");return i.status==="skipped"?i.reason==="cancelled"?{status:"cancelled"}:{status:"skipped",reason:i.reason}:{status:i.failedOwnerTypes.length?"partial":"success",changed:!0,path:x(i.path),definitions:Object.entries(i.definitions).flatMap(([r,o])=>o.map(n=>({ownerType:a[r],key:n.key,namespace:n.namespace,name:n.name,description:n.description??null,type:{name:n.type.name,category:n.type.category}}))),failedOwnerTypes:i.failedOwnerTypes}}});s();function _(t,i,r=!1){t.status==="downloaded"&&t.failedOwnerTypes.length>0&&M(`Failed to fetch metafield definitions for the following owner types: ${t.failedOwnerTypes.join(", ")}`),!r&&(i==="json"?(t.status==="failed"&&T({type:"diagnostic",level:"error",message:"Failed to fetch metafield definitions."}),j(F.encode(t))):t.status==="downloaded"?t.failedOwnerTypes.length>0?P({body:`Metafield definitions were partially downloaded. Failed owner types: ${t.failedOwnerTypes.join(", ")}.`}):b({body:"Metafield definitions have been successfully downloaded."}):t.status==="failed"&&C({body:"Failed to fetch metafield definitions.",nextSteps:["Check your network connection and try again.","Ensure you have the permission to fetch metafield definitions."],reference:[{link:{label:"Metafield Definition API",url:"https://shopify.dev/docs/api/admin-graphql/latest/queries/metafieldDefinition"}}]}))}s();async function me(t){let i=await J(t);_(i,"text",t.silent)}async function J(t){k({verbose:t.verbose,noColor:t.noColor});let i=v({store:t.store}),r=await g(i,t.password);return U(r,{path:h(t.path??w()),force:t.force??!1})}async function U(t,i){let{force:r,path:o}=i;if(!await R(o)){if(process.env.SHOPIFY_LANGUAGE_SERVER==="1")return{status:"skipped",reason:"not-a-theme"};if(!await D(r))return{status:"skipped",reason:"cancelled"}}let n=[],f=[];for(let[l,c]of Object.entries(a))n.push(A(c,t).catch(m=>(f.push(c),[])).then(m=>({[l]:m})));let p=(await Promise.all(n)).reduce((l,c)=>({...l,...c})),d=Object.values(a).filter(l=>f.includes(l));return d.length===Object.values(a).length?{status:"failed",failedOwnerTypes:d}:{status:"downloaded",path:await G(o,p),definitions:p,failedOwnerTypes:d}}async function G(t,i){let r=await E(t),o=u(r,"metafields.json"),n=JSON.stringify(i,null,2);return O(o,n),o}export{F as a,_ as b,me as c,J as d};
1
+ import{o as R}from"./chunk-FVRI7ZKE.js";import{a as k}from"./chunk-P5W5RVE6.js";import{c as D}from"./chunk-AQ34X5B3.js";import{e as S}from"./chunk-QFWWCZOI.js";import{s as A}from"./chunk-2NZ7GDDR.js";import{r as v}from"./chunk-KT5QQOES.js";import{a as E}from"./chunk-M73IECPW.js";import{N as g}from"./chunk-NCPZVARH.js";import{A as b,B as P,C}from"./chunk-V654BMS7.js";import{Bb as M,ua as O,wb as j}from"./chunk-RIG66DIQ.js";import{b as e,i as T}from"./chunk-FZCGRIOM.js";import{c as u,e as h,g as y,p as w}from"./chunk-IWTNUJGY.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();import{resolve as x}from"node:path";var I=e.object({name:e.string(),category:e.string()}),L=e.object({key:e.string(),namespace:e.string(),name:e.string(),description:e.string().nullish(),type:I}),a={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",variant:"PRODUCTVARIANT",shop:"SHOP"},$=e.object(Object.fromEntries(Object.keys(a).map(t=>[t,e.array(L)]))),N=e.object({ownerType:e.string().describe("The upstream owner type, such as PRODUCT or COMPANY_LOCATION."),key:e.string(),namespace:e.string(),name:e.string(),description:e.string().nullable(),type:e.object({name:e.string().describe("The upstream metafield type, such as single_line_text_field."),category:e.string().describe("The upstream metafield category.")}).strict()}).strict(),F=S({name:"ThemeMetafieldsPullResult",schema:e.union([e.object({status:e.enum(["success","partial"]),changed:e.literal(!0),path:e.string().refine(y).describe("The absolute path of the native language-server metafields JSON artifact."),definitions:e.array(N).describe("All fetched definitions, flattened across owner types."),failedOwnerTypes:e.array(e.string()).describe("Upstream owner types whose fetch failed.")}).strict(),e.object({status:e.literal("skipped"),reason:e.literal("not-a-theme")}).strict()]),definitions:{MetafieldDefinition:N},project:t=>{let i=t;if(i.status==="failed")throw new Error("Failed downloads must use the fatal error envelope.");return i.status==="skipped"?i.reason==="cancelled"?{status:"cancelled"}:{status:"skipped",reason:i.reason}:{status:i.failedOwnerTypes.length?"partial":"success",changed:!0,path:x(i.path),definitions:Object.entries(i.definitions).flatMap(([r,o])=>o.map(n=>({ownerType:a[r],key:n.key,namespace:n.namespace,name:n.name,description:n.description??null,type:{name:n.type.name,category:n.type.category}}))),failedOwnerTypes:i.failedOwnerTypes}}});s();function _(t,i,r=!1){t.status==="downloaded"&&t.failedOwnerTypes.length>0&&M(`Failed to fetch metafield definitions for the following owner types: ${t.failedOwnerTypes.join(", ")}`),!r&&(i==="json"?(t.status==="failed"&&T({type:"diagnostic",level:"error",message:"Failed to fetch metafield definitions."}),j(F.encode(t))):t.status==="downloaded"?t.failedOwnerTypes.length>0?P({body:`Metafield definitions were partially downloaded. Failed owner types: ${t.failedOwnerTypes.join(", ")}.`}):b({body:"Metafield definitions have been successfully downloaded."}):t.status==="failed"&&C({body:"Failed to fetch metafield definitions.",nextSteps:["Check your network connection and try again.","Ensure you have the permission to fetch metafield definitions."],reference:[{link:{label:"Metafield Definition API",url:"https://shopify.dev/docs/api/admin-graphql/latest/queries/metafieldDefinition"}}]}))}s();async function me(t){let i=await J(t);_(i,"text",t.silent)}async function J(t){k({verbose:t.verbose,noColor:t.noColor});let i=v({store:t.store}),r=await g(i,t.password);return U(r,{path:h(t.path??w()),force:t.force??!1})}async function U(t,i){let{force:r,path:o}=i;if(!await R(o)){if(process.env.SHOPIFY_LANGUAGE_SERVER==="1")return{status:"skipped",reason:"not-a-theme"};if(!await D(r))return{status:"skipped",reason:"cancelled"}}let n=[],f=[];for(let[l,c]of Object.entries(a))n.push(A(c,t).catch(m=>(f.push(c),[])).then(m=>({[l]:m})));let p=(await Promise.all(n)).reduce((l,c)=>({...l,...c})),d=Object.values(a).filter(l=>f.includes(l));return d.length===Object.values(a).length?{status:"failed",failedOwnerTypes:d}:{status:"downloaded",path:await G(o,p),definitions:p,failedOwnerTypes:d}}async function G(t,i){let r=await E(t),o=u(r,"metafields.json"),n=JSON.stringify(i,null,2);return O(o,n),o}export{F as a,_ as b,me as c,J as d};
@@ -1,4 +1,4 @@
1
- import{c as ke}from"./chunk-UWMZ5CSB.js";import{a as Ie,c as Pe}from"./chunk-XM7YUXTF.js";import{b as ve}from"./chunk-R7EMV77H.js";import{a as ze}from"./chunk-ZGV3HNEV.js";import{Ha as je,M as Te,Ma as Ge,U as xe,W as Ce,Y as Fe,ea as _e,h as Ae,ha as $e}from"./chunk-3C6VLJ5D.js";import{C as Re,c as be,pa as Le,ua as Se}from"./chunk-WDFCOZAY.js";import{B as ee}from"./chunk-H4V55Y3Z.js";import{B as ne,D as se,E as pe,f as F,g as ie,i as oe,p as re}from"./chunk-IUP7POIE.js";import{e as J}from"./chunk-ZT5WFUKJ.js";import{a as E}from"./chunk-4C2DAX5T.js";import{b as ge,c as ye,f as we}from"./chunk-Q2SZCZE7.js";import{A as de,E as j,I as fe,z as me}from"./chunk-CZ22VZDA.js";import{b as le}from"./chunk-DFQ4WTET.js";import{a as M}from"./chunk-BN7ZXAZJ.js";import{d as ce}from"./chunk-X7HVAVSZ.js";import{h as d}from"./chunk-2VSNFOKD.js";import{Ba as T,Ia as W,Na as B,Sa as x,Ta as C,Ua as Z,Va as Q,_ as q,_a as X,ja as Y,jb as te,kb as ae,la as K,qb as g,ra as _,rb as L,sb as v,ta as $,va as V,wb as he}from"./chunk-LWCTKI4Z.js";import{b as h}from"./chunk-FZCGRIOM.js";import{f as ue}from"./chunk-3A3DZVEJ.js";import{b as Qe}from"./chunk-YTUUU33R.js";import{c as p,d as R,e as O,o as H,p as U}from"./chunk-IWTNUJGY.js";import{e as Ze,g as l}from"./chunk-VKWPEFWQ.js";l();l();var y={reactRouter:{url:"https://github.com/Shopify/shopify-app-template-react-router",label:"Build a React Router app (recommended)",visible:!0,branches:{prompt:"For your React Router template, which language do you want?",options:{javascript:{branch:"javascript-cli",label:"JavaScript"},typescript:{branch:"main-cli",label:"TypeScript"}}}},remix:{url:"https://github.com/Shopify/shopify-app-template-remix",label:"Build a Remix app",visible:!1,branches:{prompt:"For your Remix template, which language do you want?",options:{javascript:{branch:"javascript",label:"JavaScript"},typescript:{branch:"main",label:"TypeScript"}}}},none:{url:"https://github.com/Shopify/shopify-app-template-extension-only",label:"Build an extension-only app",visible:!0},node:{url:"https://github.com/Shopify/shopify-app-template-node",visible:!1},ruby:{url:"https://github.com/Shopify/shopify-app-template-ruby",visible:!1}},G=Object.keys(y),S=G.filter(e=>y[e].visible),Xe=["reactRouter","none"],Je=async e=>{let t=e.template,a=e.flavor,i={template:y.reactRouter.url};t??=await j({choices:Xe.map(r=>({label:y[r].label||r,value:r})),message:"Get started building your app:",defaultValue:G.find(r=>y[r].url===i.template)});let o={...e,template:t,templateType:P(t)?t:"custom",globalCLIResult:{install:!1,alreadyInstalled:!1}},n,s;if(o.templateType!=="custom"){let r=y[o.templateType];n=r.url,r.branches&&(a?s=r.branches.options[a]?.branch:s=await j({message:r.branches.prompt||"Choose a flavor:",choices:Object.entries(r.branches.options).map(([m,u])=>({value:u.branch,label:u.label}))}))}return s&&(n=`${n}#${s}`),o.template=n||o.template||i.template,o.globalCLIResult=await ae(),o},Ne=Je;function P(e){return G.includes(e)}function De(e){return e!==void 0&&P(e)&&y[e].branches!==void 0}l();l();import{platform as et}from"os";async function Ee({packageJSON:e,local:t,useGlobalCLI:a}){if(e.dependencies=e.dependencies??{},a?delete e.dependencies["@shopify/cli"]:e.dependencies["@shopify/cli"]=E,delete e.dependencies["@shopify/app"],t){let i=await tt("cli");e.dependencies["@shopify/cli"]=i;let o={"@shopify/cli":i};e.overrides=e.overrides?{...e.overrides,...o}:o,e.resolutions=e.resolutions?{...e.resolutions,...o}:o}return e}async function tt(e){return`file:${await X(`packages/${e}`,{type:"directory",cwd:H(import.meta.url)})}`}async function Me({from:e,packageManager:t}){let a=et()==="win32"&&t==="yarn"?["--network-concurrency","1"]:[];return re({directory:R(e),packageManager:t,args:a})}l();async function z(e,t){let i=(await Q([p(e,"**",".git"),p(e,"**",".github"),p(e,"**",".gitmodules"),p(e,"**",".cli-liquid-bypass"),p(e,"LICENSE*"),p(e,"**","frontend/LICENSE*"),p(e,"package.json.cli2")],{dot:!0,onlyFiles:!1,onlyDirectories:!1,ignore:["**/node_modules/**"]})).map(s=>T(s,{force:!0})),o=new Set(ie[t]),n=F.filter(s=>!o.has(s)).map(s=>{let r=p(e,s);if(C(r))return W(r)});return Promise.all([...i,...n])}async function at(e){let t=e.packageManager,a=q(e.name),i=p(e.directory,a),o=ke(e.template);await Oe(i,a),await it(i),me({body:["Initializing project with",{command:t},`
1
+ import{c as ke}from"./chunk-XZLM4HLO.js";import{a as Ie,c as Pe}from"./chunk-EH22T4FI.js";import{b as ve}from"./chunk-GHU6YEXH.js";import{a as ze}from"./chunk-NPB753M3.js";import{Ha as je,M as Te,Ma as Ge,U as xe,W as Ce,Y as Fe,ea as _e,h as Ae,ha as $e}from"./chunk-XV6XCOTG.js";import{D as Re,c as be,qa as Le,va as Se}from"./chunk-WFOU5M4H.js";import{B as ee}from"./chunk-NCPZVARH.js";import{B as ne,D as se,E as pe,f as F,g as ie,i as oe,p as re}from"./chunk-2M535QQJ.js";import{e as J}from"./chunk-J3UXIC23.js";import{a as E}from"./chunk-MHWETFNT.js";import{b as ge,c as ye,f as we}from"./chunk-5AWELO3D.js";import{A as de,E as j,I as fe,z as me}from"./chunk-V654BMS7.js";import{b as le}from"./chunk-PVASYKSJ.js";import{a as M}from"./chunk-BN7ZXAZJ.js";import{d as ce}from"./chunk-FHNJLON5.js";import{h as d}from"./chunk-J7BTC45S.js";import{Ba as T,Ia as W,Na as B,Sa as x,Ta as C,Ua as Z,Va as Q,_ as q,_a as X,ja as Y,jb as te,kb as ae,la as K,qb as g,ra as _,rb as L,sb as v,ta as $,va as V,wb as he}from"./chunk-RIG66DIQ.js";import{b as h}from"./chunk-FZCGRIOM.js";import{f as ue}from"./chunk-GSGCSBRN.js";import{b as Qe}from"./chunk-YTUUU33R.js";import{c as p,d as R,e as O,o as H,p as U}from"./chunk-IWTNUJGY.js";import{e as Ze,g as l}from"./chunk-VKWPEFWQ.js";l();l();var y={reactRouter:{url:"https://github.com/Shopify/shopify-app-template-react-router",label:"Build a React Router app (recommended)",visible:!0,branches:{prompt:"For your React Router template, which language do you want?",options:{javascript:{branch:"javascript-cli",label:"JavaScript"},typescript:{branch:"main-cli",label:"TypeScript"}}}},remix:{url:"https://github.com/Shopify/shopify-app-template-remix",label:"Build a Remix app",visible:!1,branches:{prompt:"For your Remix template, which language do you want?",options:{javascript:{branch:"javascript",label:"JavaScript"},typescript:{branch:"main",label:"TypeScript"}}}},none:{url:"https://github.com/Shopify/shopify-app-template-extension-only",label:"Build an extension-only app",visible:!0},node:{url:"https://github.com/Shopify/shopify-app-template-node",visible:!1},ruby:{url:"https://github.com/Shopify/shopify-app-template-ruby",visible:!1}},G=Object.keys(y),S=G.filter(e=>y[e].visible),Xe=["reactRouter","none"],Je=async e=>{let t=e.template,a=e.flavor,i={template:y.reactRouter.url};t??=await j({choices:Xe.map(r=>({label:y[r].label||r,value:r})),message:"Get started building your app:",defaultValue:G.find(r=>y[r].url===i.template)});let o={...e,template:t,templateType:P(t)?t:"custom",globalCLIResult:{install:!1,alreadyInstalled:!1}},n,s;if(o.templateType!=="custom"){let r=y[o.templateType];n=r.url,r.branches&&(a?s=r.branches.options[a]?.branch:s=await j({message:r.branches.prompt||"Choose a flavor:",choices:Object.entries(r.branches.options).map(([m,u])=>({value:u.branch,label:u.label}))}))}return s&&(n=`${n}#${s}`),o.template=n||o.template||i.template,o.globalCLIResult=await ae(),o},Ne=Je;function P(e){return G.includes(e)}function De(e){return e!==void 0&&P(e)&&y[e].branches!==void 0}l();l();import{platform as et}from"os";async function Ee({packageJSON:e,local:t,useGlobalCLI:a}){if(e.dependencies=e.dependencies??{},a?delete e.dependencies["@shopify/cli"]:e.dependencies["@shopify/cli"]=E,delete e.dependencies["@shopify/app"],t){let i=await tt("cli");e.dependencies["@shopify/cli"]=i;let o={"@shopify/cli":i};e.overrides=e.overrides?{...e.overrides,...o}:o,e.resolutions=e.resolutions?{...e.resolutions,...o}:o}return e}async function tt(e){return`file:${await X(`packages/${e}`,{type:"directory",cwd:H(import.meta.url)})}`}async function Me({from:e,packageManager:t}){let a=et()==="win32"&&t==="yarn"?["--network-concurrency","1"]:[];return re({directory:R(e),packageManager:t,args:a})}l();async function z(e,t){let i=(await Q([p(e,"**",".git"),p(e,"**",".github"),p(e,"**",".gitmodules"),p(e,"**",".cli-liquid-bypass"),p(e,"LICENSE*"),p(e,"**","frontend/LICENSE*"),p(e,"package.json.cli2")],{dot:!0,onlyFiles:!1,onlyDirectories:!1,ignore:["**/node_modules/**"]})).map(s=>T(s,{force:!0})),o=new Set(ie[t]),n=F.filter(s=>!o.has(s)).map(s=>{let r=p(e,s);if(C(r))return W(r)});return Promise.all([...i,...n])}async function at(e){let t=e.packageManager,a=q(e.name),i=p(e.directory,a),o=ke(e.template);await Oe(i,a),await it(i),me({body:["Initializing project with",{command:t},`
2
2
  Use the`,{command:"--package-manager"},"flag to select a different package manager."]}),await Y(async r=>{let m=p(r,"download"),u=o.filePath?p(m,o.filePath):m,f=p(r,"app"),A=o.branch?`${o.baseURL}#${o.branch}`:o.baseURL;await V(m);let b=[{title:`Downloading template from ${A}`,task:async()=>{await Pe({repoUrl:A,destination:m,shallow:!0})}}];b.push({title:"Parsing liquid",task:async()=>{await ve(u,f,{dependency_manager:t,app_name:e.name})}},{title:"Updating package.json",task:async()=>{let c=(await ne(f)).content;c.name=a,c.author=await le()??"",c.private=!0;let I=["extensions/*"].concat(ot(f));switch(t){case"npm":case"yarn":case"bun":c.workspaces=I;break;case"pnpm":{await rt(f,I),await _(p(f,".npmrc"),`auto-install-peers=true
3
3
  `);break}case"homebrew":case"unknown":throw new oe}await Ee({packageJSON:c,local:e.local,directory:f,useGlobalCLI:e.useGlobalCLI}),await se(f,c)}}),e.postCloneActions.removeLockfilesFromGitignore&&b.push({title:"Removing lockfiles from .gitignore",task:async()=>{let c=p(f,".gitignore");if(await x(c)){let I=await K(c);F.forEach(We=>{let Be=new RegExp(`^${We.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`,"gm");I=I.replace(Be,"")}),await $(c,I.trim())}}}),await ue()&&b.push({title:"[Shopifolks-only] Configuring the project's NPM registry",task:async()=>{let c=p(f,".npmrc");await _(c,`@shopify:registry=https://registry.npmjs.org
4
4
  `)}});let D=!1;b.push({title:"Preparing project directory",task:async()=>{await Oe(i,a),D=!0,await B(f,i)}}),b.push({title:`Installing dependencies with ${t}`,task:async()=>{await Me({from:i,packageManager:t})}},{title:"Cleaning up",task:async()=>{await z(i,t)}},{title:"Initializing a Git repository...",task:async()=>{await Ie(i)}});try{await fe(b)}catch(c){throw D&&await T(i).catch(()=>{}),c}});let n;if(e.selectedAppOrNameResult.result==="new"){let r=await Te(i,e.name),m=e.selectedAppOrNameResult.org;n=await e.developerPlatformClient.createApp(m,r)}else n=e.selectedAppOrNameResult.app;return await je({directory:i,apiKey:n.apiKey,appId:n.id,organizationId:n.organizationId,configName:"shopify.app.toml",developerPlatformClient:e.developerPlatformClient,isNewApp:!0},!1),{app:(await Ge({directory:i,clientId:void 0,forceRelink:!1,userProvidedConfigName:void 0})).app,remoteApp:n,projectName:a,packageManager:t,template:e.template}}async function Oe(e,t){if(await x(e))throw new d(`
@@ -1 +1 @@
1
- import{a as r,b as c,c as l}from"./chunk-4CRBTSVP.js";import{b as i}from"./chunk-ZQDDRIBA.js";import{c as n}from"./chunk-Q2SZCZE7.js";import{b as h}from"./chunk-YTUUU33R.js";import{e as f,g as o}from"./chunk-VKWPEFWQ.js";o();var t=f(h(),1);var e=class p extends i{static args={command:t.Args.string({description:"Command to show help for.",required:!1})};static descriptionWithMarkdown="Display help for Shopify CLI";static description=this.descriptionForHelp();static usage="help [command] [flags]";static flags={...n,"nested-commands":t.Flags.boolean({char:"n",description:"Include all nested commands in the output.",env:"SHOPIFY_FLAG_CLI_NESTED_COMMANDS",default:!1})};static strict=!1;static get jsonOutputSchema(){return r}async run(){let{argv:a,flags:s}=await this.parse(p);if(s.json){let d=await c(this.config,a,s["nested-commands"]);l(d);return}let m=await(0,t.loadHelpClass)(this.config);await new m(this.config,{all:s["nested-commands"]}).showHelp(a)}};export{e as a};
1
+ import{a as r,b as c,c as l}from"./chunk-3G2PEYPI.js";import{b as i}from"./chunk-OLKLHVHA.js";import{c as n}from"./chunk-5AWELO3D.js";import{b as h}from"./chunk-YTUUU33R.js";import{e as f,g as o}from"./chunk-VKWPEFWQ.js";o();var t=f(h(),1);var e=class p extends i{static args={command:t.Args.string({description:"Command to show help for.",required:!1})};static descriptionWithMarkdown="Display help for Shopify CLI";static description=this.descriptionForHelp();static usage="help [command] [flags]";static flags={...n,"nested-commands":t.Flags.boolean({char:"n",description:"Include all nested commands in the output.",env:"SHOPIFY_FLAG_CLI_NESTED_COMMANDS",default:!1})};static strict=!1;static get jsonOutputSchema(){return r}async run(){let{argv:a,flags:s}=await this.parse(p);if(s.json){let d=await c(this.config,a,s["nested-commands"]);l(d);return}let m=await(0,t.loadHelpClass)(this.config);await new m(this.config,{all:s["nested-commands"]}).showHelp(a)}};export{e as a};
@@ -1 +1 @@
1
- import{b as n}from"./chunk-Q2SZCZE7.js";import{i as r}from"./chunk-B4OMIONW.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();function v(o){o.verbose&&(process.env[n.verbose.env]="true"),o.noColor&&(r.level=0,process.env.FORCE_COLOR="0")}export{v as a};
1
+ import{b as n}from"./chunk-5AWELO3D.js";import{i as r}from"./chunk-B4OMIONW.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();function v(o){o.verbose&&(process.env[n.verbose.env]="true"),o.noColor&&(r.level=0,process.env.FORCE_COLOR="0")}export{v as a};
@@ -1 +1 @@
1
- import{a as f,c as D,d as _,e as H}from"./chunk-LHKVXJPX.js";import{c as T,e as w,h as E}from"./chunk-QFWWCZOI.js";import{g as R,p as j,v as x}from"./chunk-DJAZBPYA.js";import{e as v}from"./chunk-ZT5WFUKJ.js";import{b as O,c as F}from"./chunk-Q2SZCZE7.js";import{z as y}from"./chunk-CZ22VZDA.js";import{Bb as p,sb as u,wb as l}from"./chunk-LWCTKI4Z.js";import{b as o}from"./chunk-FZCGRIOM.js";import{b as q}from"./chunk-YTUUU33R.js";import{e as P,g as r}from"./chunk-VKWPEFWQ.js";r();r();async function I(e,t){let n=t.storeFqdn,s=new H({...f.reduce((h,a)=>(h[a]=e.role===a,h),{}),theme:e.id?.toString()??e.name}),m=!!e.json,i=await D(t,{allowEmpty:m});return s.any()&&(i=_(n,i,s,{allowEmpty:m})),i}r();r();var W=o.object({id:o.number(),name:o.string(),processing:o.boolean(),createdAtRuntime:o.boolean(),role:o.string()}),Y=o.array(W),c=w({name:"ThemeListResult",schema:o.object({themes:o.array(T.extend({processing:o.boolean()}).strict())}).strict().describe("The complete theme library after applying the requested filters."),definitions:{Theme:T},project(e){return{themes:Y.parse(e).map(t=>({...E(t),processing:t.processing}))}}});r();var A;function L(){return A??=new v({projectName:"shopify-cli-host-theme-conf"}),A}function $(e){return p(u`Getting host theme...`),L().get(e)}function Z(e,t){p(u`Setting host theme...`),L().set(e,t)}function ee(e){p(u`Removing host theme...`),L().delete(e)}function C(e,t){return{title:e,body:{tabularData:t}}}function G(e,t,n){if(t==="json"){l(c.encode(e));return}let s=R(),m=$(n.store),i=e.map(({id:a,name:J,role:b})=>{let g="";return b&&(g=`[${b}]`,[s,m].includes(`${a}`)&&(g+=" [current]")),[J,g,`#${a}`]}),h=[["name","role","id"],["\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"],...i];y({customSections:[...n.environment?[{title:`${n.store} theme library`,body:[{subdued:`Environment name: ${n.environment}`}]}]:[],C("",h)]})}var d=P(q(),1);var S=class extends x{static get jsonOutputSchema(){return c}static descriptionWithMarkdown="Lists the themes in your store, along with their IDs and statuses.";static description=this.descriptionForHelp();static flags={...O,...F,...j,role:d.Flags.custom({description:"Only list themes with the given role.",options:f,env:"SHOPIFY_FLAG_ROLE"})(),name:d.Flags.string({description:"Only list themes that contain the given name.",env:"SHOPIFY_FLAG_NAME"}),id:d.Flags.integer({description:"Only list theme with the given ID.",env:"SHOPIFY_FLAG_ID"})};static multiEnvironmentsFlags=["store","password"];async command(t,n,s=!1){let m=await I(t,n);if(t.json&&s)return m;G(m,t.json?"json":"text",{store:n.storeFqdn,environment:t.environment})}renderEnvironmentResults(t){l(c.encode({environments:t}))}};export{$ as a,Z as b,ee as c,S as d};
1
+ import{a as f,c as D,d as _,e as H}from"./chunk-C3LL5CZA.js";import{c as T,e as w,h as E}from"./chunk-QFWWCZOI.js";import{g as R,p as j,v as x}from"./chunk-KT5QQOES.js";import{e as v}from"./chunk-J3UXIC23.js";import{b as O,c as F}from"./chunk-5AWELO3D.js";import{z as y}from"./chunk-V654BMS7.js";import{Bb as p,sb as u,wb as l}from"./chunk-RIG66DIQ.js";import{b as o}from"./chunk-FZCGRIOM.js";import{b as q}from"./chunk-YTUUU33R.js";import{e as P,g as r}from"./chunk-VKWPEFWQ.js";r();r();async function I(e,t){let n=t.storeFqdn,s=new H({...f.reduce((h,a)=>(h[a]=e.role===a,h),{}),theme:e.id?.toString()??e.name}),m=!!e.json,i=await D(t,{allowEmpty:m});return s.any()&&(i=_(n,i,s,{allowEmpty:m})),i}r();r();var W=o.object({id:o.number(),name:o.string(),processing:o.boolean(),createdAtRuntime:o.boolean(),role:o.string()}),Y=o.array(W),c=w({name:"ThemeListResult",schema:o.object({themes:o.array(T.extend({processing:o.boolean()}).strict())}).strict().describe("The complete theme library after applying the requested filters."),definitions:{Theme:T},project(e){return{themes:Y.parse(e).map(t=>({...E(t),processing:t.processing}))}}});r();var A;function L(){return A??=new v({projectName:"shopify-cli-host-theme-conf"}),A}function $(e){return p(u`Getting host theme...`),L().get(e)}function Z(e,t){p(u`Setting host theme...`),L().set(e,t)}function ee(e){p(u`Removing host theme...`),L().delete(e)}function C(e,t){return{title:e,body:{tabularData:t}}}function G(e,t,n){if(t==="json"){l(c.encode(e));return}let s=R(),m=$(n.store),i=e.map(({id:a,name:J,role:b})=>{let g="";return b&&(g=`[${b}]`,[s,m].includes(`${a}`)&&(g+=" [current]")),[J,g,`#${a}`]}),h=[["name","role","id"],["\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"],...i];y({customSections:[...n.environment?[{title:`${n.store} theme library`,body:[{subdued:`Environment name: ${n.environment}`}]}]:[],C("",h)]})}var d=P(q(),1);var S=class extends x{static get jsonOutputSchema(){return c}static descriptionWithMarkdown="Lists the themes in your store, along with their IDs and statuses.";static description=this.descriptionForHelp();static flags={...O,...F,...j,role:d.Flags.custom({description:"Only list themes with the given role.",options:f,env:"SHOPIFY_FLAG_ROLE"})(),name:d.Flags.string({description:"Only list themes that contain the given name.",env:"SHOPIFY_FLAG_NAME"}),id:d.Flags.integer({description:"Only list theme with the given ID.",env:"SHOPIFY_FLAG_ID"})};static multiEnvironmentsFlags=["store","password"];async command(t,n,s=!1){let m=await I(t,n);if(t.json&&s)return m;G(m,t.json?"json":"text",{store:n.storeFqdn,environment:t.environment})}renderEnvironmentResults(t){l(c.encode({environments:t}))}};export{$ as a,Z as b,ee as c,S as d};
@@ -1 +1 @@
1
- import{a as d}from"./chunk-VB7YQMAM.js";import{a as p,b as m}from"./chunk-GXORLBVN.js";import{d as r,j as c}from"./chunk-NDKSG4CC.js";import{a as s}from"./chunk-ZGV3HNEV.js";import{Ma as a}from"./chunk-3C6VLJ5D.js";import{c as n}from"./chunk-Q2SZCZE7.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class u extends s{static summary="Schedules manual-billing subscriptions to migrate to Shopify-managed app pricing.";static descriptionWithMarkdown="Schedules manual-billing subscriptions to migrate to Shopify-managed app pricing.\n\nWhen `--input` is omitted, the command reads CSV data from stdin. Use `--input <path>` to read from a file. `--input -` is also supported as an explicit stdin path.\n\n- Required CSV columns: `shop_id`, `target_plan_handle`, and `price_behavior`.\n- Optional CSV column: `notification`.\n- Example header: `shop_id,target_plan_handle,price_behavior,notification`.\n- Example row: `123456789,pro,HONOR_BILLING_PRICE,WHEN_REQUIRED`.\n\n`price_behavior` must be `HONOR_BILLING_PRICE` or `PLAN_PRICE`. `notification` can be `OPT_OUT` or `WHEN_REQUIRED` and defaults to `WHEN_REQUIRED` when omitted or blank.\n\nValidation is atomic: the command submits no operations unless the entire CSV is valid. Valid rows are submitted in batches of 250 shops. Preserve every operation GID printed by the command so you can check or cancel the submitted operations.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.\n\nUse `--force` to skip confirmation and immediately submit every valid row. With `--watch`, human-readable output shows accepted identifiers before polling begins, then displays operation progress and the final outcome. With `--json --watch`, the command outputs one structured JSON document after every operation reaches a terminal status.";static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --input migrations.csv --force","cat migrations.csv | <%= config.bin %> <%= command.id %> --force","<%= config.bin %> <%= command.id %> --input migrations.csv --path ../my-app --config staging --force --json","<%= config.bin %> <%= command.id %> --input migrations.csv --client-id <client-id> --force","<%= config.bin %> <%= command.id %> --input - --force --watch"];static flags={...r,...n};static get jsonOutputSchema(){return c}async run(){let{flags:i}=await this.parse(u),{app:l,remoteApp:h}=await a({directory:i.path,clientId:i["client-id"],forceRelink:i.reset,userProvidedConfigName:i.config}),f=await d({action:"schedule",input:i.input??"-",clientId:h.apiKey,skipConfirmation:i.force,watch:i.watch,...i.watch&&!i.json?{onSubmissionAccepted:p}:{}}),e=m(f,{json:i.json,watch:i.watch});return e!==0&&(process.exitCode=e),{app:l}}};export{t as a};
1
+ import{a as d}from"./chunk-56GKTWFF.js";import{a as p,b as m}from"./chunk-LENSEW2F.js";import{d as r,j as c}from"./chunk-FNWXMCSD.js";import{a as s}from"./chunk-NPB753M3.js";import{Ma as a}from"./chunk-XV6XCOTG.js";import{c as n}from"./chunk-5AWELO3D.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class u extends s{static summary="Schedules manual-billing subscriptions to migrate to Shopify-managed app pricing.";static descriptionWithMarkdown="Schedules manual-billing subscriptions to migrate to Shopify-managed app pricing.\n\nWhen `--input` is omitted, the command reads CSV data from stdin. Use `--input <path>` to read from a file. `--input -` is also supported as an explicit stdin path.\n\n- Required CSV columns: `shop_id`, `target_plan_handle`, and `price_behavior`.\n- Optional CSV column: `notification`.\n- Example header: `shop_id,target_plan_handle,price_behavior,notification`.\n- Example row: `123456789,pro,HONOR_BILLING_PRICE,WHEN_REQUIRED`.\n\n`price_behavior` must be `HONOR_BILLING_PRICE` or `PLAN_PRICE`. `notification` can be `OPT_OUT` or `WHEN_REQUIRED` and defaults to `WHEN_REQUIRED` when omitted or blank.\n\nValidation is atomic: the command submits no operations unless the entire CSV is valid. Valid rows are submitted in batches of 250 shops. Preserve every operation GID printed by the command so you can check or cancel the submitted operations.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.\n\nUse `--force` to skip confirmation and immediately submit every valid row. With `--watch`, human-readable output shows accepted identifiers before polling begins, then displays operation progress and the final outcome. With `--json --watch`, the command outputs one structured JSON document after every operation reaches a terminal status.";static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --input migrations.csv --force","cat migrations.csv | <%= config.bin %> <%= command.id %> --force","<%= config.bin %> <%= command.id %> --input migrations.csv --path ../my-app --config staging --force --json","<%= config.bin %> <%= command.id %> --input migrations.csv --client-id <client-id> --force","<%= config.bin %> <%= command.id %> --input - --force --watch"];static flags={...r,...n};static get jsonOutputSchema(){return c}async run(){let{flags:i}=await this.parse(u),{app:l,remoteApp:h}=await a({directory:i.path,clientId:i["client-id"],forceRelink:i.reset,userProvidedConfigName:i.config}),f=await d({action:"schedule",input:i.input??"-",clientId:h.apiKey,skipConfirmation:i.force,watch:i.watch,...i.watch&&!i.json?{onSubmissionAccepted:p}:{}}),e=m(f,{json:i.json,watch:i.watch});return e!==0&&(process.exitCode=e),{app:l}}};export{t as a};
@@ -1,4 +1,4 @@
1
- import{a as Ot}from"./chunk-5HBIIYSK.js";import{a as Gt}from"./chunk-GB3YC4TI.js";import{a as ce}from"./chunk-RJ5VF3QY.js";import{a as ae}from"./chunk-636CTEW7.js";import{Bb as de,sb as ue}from"./chunk-LWCTKI4Z.js";import{a as y,c as h,e as A,g as s}from"./chunk-VKWPEFWQ.js";var he=h((rr,pe)=>{s();pe.exports=fe;fe.sync=kt;var le=y("fs");function Nt(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 me(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:Nt(t,r)}function fe(e,t,r){le.stat(e,function(n,o){r(n,n?!1:me(o,e,t))})}function kt(e,t){return me(le.statSync(e),e,t)}});var xe=h((ir,Ee)=>{s();Ee.exports=Se;Se.sync=Ut;var ge=y("fs");function Se(e,t,r){ge.stat(e,function(n,o){r(n,n?!1:ye(o,t))})}function Ut(e,t){return ye(ge.statSync(e),t)}function ye(e,t){return e.isFile()&&Lt(e,t)}function Lt(e,t){var r=e.mode,n=e.uid,o=e.gid,i=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),c=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),d=parseInt("001",8),l=a|u,f=r&d||r&u&&o===c||r&a&&n===i||r&l&&i===0;return f}});var we=h((ar,be)=>{s();var cr=y("fs"),$;process.platform==="win32"||global.TESTING_WINDOWS?$=he():$=xe();be.exports=U;U.sync=Mt;function U(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){U(e,t||{},function(i,c){i?o(i):n(c)})})}$(e,t||{},function(n,o){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,o=!1),r(n,o)})}function Mt(e,t){try{return $.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var $e=h((dr,Ae)=>{s();var x=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Te=y("path"),Ft=x?";":":",Ie=we(),ve=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Ce=(e,t)=>{let r=t.colon||Ft,n=e.match(/\//)||x&&e.match(/\\/)?[""]:[...x?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=x?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=x?o.split(r):[""];return x&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},Pe=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:o,pathExtExe:i}=Ce(e,t),c=[],a=d=>new Promise((l,f)=>{if(d===n.length)return t.all&&c.length?l(c):f(ve(e));let m=n[d],g=/^".*"$/.test(m)?m.slice(1,-1):m,p=Te.join(g,e),S=!g&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;l(u(S,d,0))}),u=(d,l,f)=>new Promise((m,g)=>{if(f===o.length)return m(a(l+1));let p=o[f];Ie(d+p,{pathExt:i},(S,E)=>{if(!S&&E)if(t.all)c.push(d+p);else return m(d+p);return m(u(d,l,f+1))})});return r?a(0).then(d=>r(null,d),r):a(0)},jt=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:o}=Ce(e,t),i=[];for(let c=0;c<r.length;c++){let a=r[c],u=/^".*"$/.test(a)?a.slice(1,-1):a,d=Te.join(u,e),l=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let f=0;f<n.length;f++){let m=l+n[f];try{if(Ie.sync(m,{pathExt:o}))if(t.all)i.push(m);else return m}catch{}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw ve(e)};Ae.exports=Pe;Pe.sync=jt});var Ge=h((mr,L)=>{"use strict";s();var Re=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};L.exports=Re;L.exports.default=Re});var Ue=h((pr,ke)=>{"use strict";s();var Oe=y("path"),Bt=$e(),Dt=Ge();function Ne(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 c;try{c=Bt.sync(e.command,{path:r[Dt({env:r})],pathExt:t?Oe.delimiter:void 0})}catch{}finally{i&&process.chdir(n)}return c&&(c=Oe.resolve(o?e.options.cwd:"",c)),c}function qt(e){return Ne(e)||Ne(e,!0)}ke.exports=qt});var Le=h((gr,F)=>{"use strict";s();var M=/([()\][%!^"`<>&|;, *?])/g;function Wt(e){return e=e.replace(M,"^$1"),e}function _t(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(M,"^$1"),t&&(e=e.replace(M,"^$1")),e}F.exports.command=Wt;F.exports.argument=_t});var Fe=h((yr,Me)=>{"use strict";s();Me.exports=/^#!(.*)/});var Be=h((xr,je)=>{"use strict";s();var Ht=Fe();je.exports=(e="")=>{let t=e.match(Ht);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o}});var qe=h((wr,De)=>{"use strict";s();var j=y("fs"),zt=Be();function Xt(e){let r=Buffer.alloc(150),n;try{n=j.openSync(e,"r"),j.readSync(n,r,0,150,0),j.closeSync(n)}catch{}return zt(r.toString())}De.exports=Xt});var ze=h((Ir,He)=>{"use strict";s();var Kt=y("path"),We=Ue(),_e=Le(),Vt=qe(),Yt=process.platform==="win32",Qt=/\.(?:com|exe)$/i,Zt=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Jt(e){e.file=We(e);let t=e.file&&Vt(e.file);return t?(e.args.unshift(e.file),e.command=t,We(e)):e.file}function en(e){if(!Yt)return e;let t=Jt(e),r=!Qt.test(t);if(e.options.forceShell||r){let n=Zt.test(t);e.command=Kt.normalize(e.command),e.command=_e.command(e.command),e.args=e.args.map(i=>_e.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 tn(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:en(n)}He.exports=tn});var Ve=h((Cr,Ke)=>{"use strict";s();var B=process.platform==="win32";function D(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 nn(e,t){if(!B)return;let r=e.emit;e.emit=function(n,o){if(n==="exit"){let i=Xe(o,t);if(i)return r.call(e,"error",i)}return r.apply(e,arguments)}}function Xe(e,t){return B&&e===1&&!t.file?D(t.original,"spawn"):null}function rn(e,t){return B&&e===1&&!t.file?D(t.original,"spawnSync"):null}Ke.exports={hookChildProcess:nn,verifyENOENT:Xe,verifyENOENTSync:rn,notFoundError:D}});var Ze=h((Ar,b)=>{"use strict";s();var Ye=y("child_process"),q=ze(),W=Ve();function Qe(e,t,r){let n=q(e,t,r),o=Ye.spawn(n.command,n.args,n.options);return W.hookChildProcess(o,n),o}function on(e,t,r){let n=q(e,t,r),o=Ye.spawnSync(n.command,n.args,n.options);return o.error=o.error||W.verifyENOENTSync(o.status,n),o}b.exports=Qe;b.exports.spawn=Qe;b.exports.sync=on;b.exports._parse=q;b.exports._enoent=W});var ht=h((mo,pt)=>{"use strict";s();var{PassThrough:An}=y("stream");pt.exports=function(){var e=[],t=new An({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(c){return c!==i}),!e.length&&t.readable&&t.end()}}});s();s();var At=A(Ze(),1);import{Buffer as Hn}from"node:buffer";import zn from"node:path";import ne from"node:child_process";import k from"node:process";s();function _(e){let t=typeof e=="string"?`
1
+ import{a as Ot}from"./chunk-5HBIIYSK.js";import{a as Gt}from"./chunk-GB3YC4TI.js";import{a as ce}from"./chunk-RJ5VF3QY.js";import{a as ae}from"./chunk-636CTEW7.js";import{Bb as de,sb as ue}from"./chunk-RIG66DIQ.js";import{a as y,c as h,e as A,g as s}from"./chunk-VKWPEFWQ.js";var he=h((rr,pe)=>{s();pe.exports=fe;fe.sync=kt;var le=y("fs");function Nt(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 me(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:Nt(t,r)}function fe(e,t,r){le.stat(e,function(n,o){r(n,n?!1:me(o,e,t))})}function kt(e,t){return me(le.statSync(e),e,t)}});var xe=h((ir,Ee)=>{s();Ee.exports=Se;Se.sync=Ut;var ge=y("fs");function Se(e,t,r){ge.stat(e,function(n,o){r(n,n?!1:ye(o,t))})}function Ut(e,t){return ye(ge.statSync(e),t)}function ye(e,t){return e.isFile()&&Lt(e,t)}function Lt(e,t){var r=e.mode,n=e.uid,o=e.gid,i=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),c=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),d=parseInt("001",8),l=a|u,f=r&d||r&u&&o===c||r&a&&n===i||r&l&&i===0;return f}});var we=h((ar,be)=>{s();var cr=y("fs"),$;process.platform==="win32"||global.TESTING_WINDOWS?$=he():$=xe();be.exports=U;U.sync=Mt;function U(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){U(e,t||{},function(i,c){i?o(i):n(c)})})}$(e,t||{},function(n,o){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,o=!1),r(n,o)})}function Mt(e,t){try{return $.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var $e=h((dr,Ae)=>{s();var x=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Te=y("path"),Ft=x?";":":",Ie=we(),ve=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Ce=(e,t)=>{let r=t.colon||Ft,n=e.match(/\//)||x&&e.match(/\\/)?[""]:[...x?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=x?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=x?o.split(r):[""];return x&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},Pe=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:o,pathExtExe:i}=Ce(e,t),c=[],a=d=>new Promise((l,f)=>{if(d===n.length)return t.all&&c.length?l(c):f(ve(e));let m=n[d],g=/^".*"$/.test(m)?m.slice(1,-1):m,p=Te.join(g,e),S=!g&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;l(u(S,d,0))}),u=(d,l,f)=>new Promise((m,g)=>{if(f===o.length)return m(a(l+1));let p=o[f];Ie(d+p,{pathExt:i},(S,E)=>{if(!S&&E)if(t.all)c.push(d+p);else return m(d+p);return m(u(d,l,f+1))})});return r?a(0).then(d=>r(null,d),r):a(0)},jt=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:o}=Ce(e,t),i=[];for(let c=0;c<r.length;c++){let a=r[c],u=/^".*"$/.test(a)?a.slice(1,-1):a,d=Te.join(u,e),l=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let f=0;f<n.length;f++){let m=l+n[f];try{if(Ie.sync(m,{pathExt:o}))if(t.all)i.push(m);else return m}catch{}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw ve(e)};Ae.exports=Pe;Pe.sync=jt});var Ge=h((mr,L)=>{"use strict";s();var Re=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};L.exports=Re;L.exports.default=Re});var Ue=h((pr,ke)=>{"use strict";s();var Oe=y("path"),Bt=$e(),Dt=Ge();function Ne(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 c;try{c=Bt.sync(e.command,{path:r[Dt({env:r})],pathExt:t?Oe.delimiter:void 0})}catch{}finally{i&&process.chdir(n)}return c&&(c=Oe.resolve(o?e.options.cwd:"",c)),c}function qt(e){return Ne(e)||Ne(e,!0)}ke.exports=qt});var Le=h((gr,F)=>{"use strict";s();var M=/([()\][%!^"`<>&|;, *?])/g;function Wt(e){return e=e.replace(M,"^$1"),e}function _t(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(M,"^$1"),t&&(e=e.replace(M,"^$1")),e}F.exports.command=Wt;F.exports.argument=_t});var Fe=h((yr,Me)=>{"use strict";s();Me.exports=/^#!(.*)/});var Be=h((xr,je)=>{"use strict";s();var Ht=Fe();je.exports=(e="")=>{let t=e.match(Ht);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o}});var qe=h((wr,De)=>{"use strict";s();var j=y("fs"),zt=Be();function Xt(e){let r=Buffer.alloc(150),n;try{n=j.openSync(e,"r"),j.readSync(n,r,0,150,0),j.closeSync(n)}catch{}return zt(r.toString())}De.exports=Xt});var ze=h((Ir,He)=>{"use strict";s();var Kt=y("path"),We=Ue(),_e=Le(),Vt=qe(),Yt=process.platform==="win32",Qt=/\.(?:com|exe)$/i,Zt=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Jt(e){e.file=We(e);let t=e.file&&Vt(e.file);return t?(e.args.unshift(e.file),e.command=t,We(e)):e.file}function en(e){if(!Yt)return e;let t=Jt(e),r=!Qt.test(t);if(e.options.forceShell||r){let n=Zt.test(t);e.command=Kt.normalize(e.command),e.command=_e.command(e.command),e.args=e.args.map(i=>_e.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 tn(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:en(n)}He.exports=tn});var Ve=h((Cr,Ke)=>{"use strict";s();var B=process.platform==="win32";function D(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 nn(e,t){if(!B)return;let r=e.emit;e.emit=function(n,o){if(n==="exit"){let i=Xe(o,t);if(i)return r.call(e,"error",i)}return r.apply(e,arguments)}}function Xe(e,t){return B&&e===1&&!t.file?D(t.original,"spawn"):null}function rn(e,t){return B&&e===1&&!t.file?D(t.original,"spawnSync"):null}Ke.exports={hookChildProcess:nn,verifyENOENT:Xe,verifyENOENTSync:rn,notFoundError:D}});var Ze=h((Ar,b)=>{"use strict";s();var Ye=y("child_process"),q=ze(),W=Ve();function Qe(e,t,r){let n=q(e,t,r),o=Ye.spawn(n.command,n.args,n.options);return W.hookChildProcess(o,n),o}function on(e,t,r){let n=q(e,t,r),o=Ye.spawnSync(n.command,n.args,n.options);return o.error=o.error||W.verifyENOENTSync(o.status,n),o}b.exports=Qe;b.exports.spawn=Qe;b.exports.sync=on;b.exports._parse=q;b.exports._enoent=W});var ht=h((mo,pt)=>{"use strict";s();var{PassThrough:An}=y("stream");pt.exports=function(){var e=[],t=new An({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(c){return c!==i}),!e.length&&t.readable&&t.end()}}});s();s();var At=A(Ze(),1);import{Buffer as Hn}from"node:buffer";import zn from"node:path";import ne from"node:child_process";import k from"node:process";s();function _(e){let t=typeof e=="string"?`
2
2
  `: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}s();var R=new WeakMap,Je=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,o=e.displayName||e.name||"<anonymous>",i=function(...c){if(R.set(i,++n),n===1)r=e.apply(this,c),e=null;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return r};return ce(i,e),R.set(i,n),i};Je.callCount=e=>{if(!R.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return R.get(e)};var et=Je;s();import hn from"node:process";s();import{constants as un}from"node:os";s();var tt=()=>{let e=rt-nt+1;return Array.from({length:e},sn)},sn=(e,t)=>({name:`SIGRT${t+1}`,number:nt+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),nt=34,rt=64;s();import{constants as cn}from"node:os";s();var ot=[{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 H=()=>{let e=tt();return[...ot,...e].map(an)},an=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{let{signals:{[e]:c}}=cn,a=c!==void 0;return{name:e,number:a?c:t,description:r,supported:a,action:n,forced:o,standard:i}};var dn=()=>{let e=H();return Object.fromEntries(e.map(ln))},ln=({name:e,number:t,description:r,supported:n,action:o,forced:i,standard:c})=>[e,{name:e,number:t,description:r,supported:n,action:o,forced:i,standard:c}],it=dn(),mn=()=>{let e=H(),t=65,r=Array.from({length:t},(n,o)=>fn(o,e));return Object.assign({},...r)},fn=(e,t)=>{let r=pn(e,t);if(r===void 0)return{};let{name:n,description:o,supported:i,action:c,forced:a,standard:u}=r;return{[e]:{name:n,number:e,description:o,supported:i,action:c,forced:a,standard:u}}},pn=(e,t)=>{let r=t.find(({name:n})=>un.signals[n]===e);return r!==void 0?r:t.find(n=>n.number===e)},zr=mn();var gn=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:o,exitCode:i,isCanceled:c})=>e?`timed out after ${t} milliseconds`:c?"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",w=({stdout:e,stderr:t,all:r,error:n,signal:o,exitCode:i,command:c,escapedCommand:a,timedOut:u,isCanceled:d,killed:l,parsed:{options:{timeout:f,cwd:m=hn.cwd()}}})=>{i=i===null?void 0:i,o=o===null?void 0:o;let g=o===void 0?void 0:it[o].description,p=n&&n.code,E=`Command ${gn({timedOut:u,timeout:f,errorCode:p,signal:o,signalDescription:g,exitCode:i,isCanceled:d})}: ${c}`,v=Object.prototype.toString.call(n)==="[object Error]",C=v?`${E}
3
3
  ${n.message}`:E,P=[C,t,e].filter(Boolean).join(`
4
4
  `);return v?(n.originalMessage=n.message,n.message=P):n=new Error(P),n.shortMessage=C,n.command=c,n.escapedCommand=a,n.exitCode=i,n.signal=o,n.signalDescription=g,n.stdout=e,n.stderr=t,n.cwd=m,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!u,n.isCanceled=d,n.killed=l&&!u,n};s();var G=["stdin","stdout","stderr"],Sn=e=>G.some(t=>e[t]!==void 0),st=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return G.map(n=>e[n]);if(Sn(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${G.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,G.length);return Array.from({length:r},(n,o)=>t[o])};s();var ct=A(Ot(),1);import yn from"node:os";var En=1e3*5,at=(e,t="SIGTERM",r={})=>{let n=e(t);return xn(e,t,r,n),n},xn=(e,t,r,n)=>{if(!bn(t,r,n))return;let o=Tn(r),i=setTimeout(()=>{e("SIGKILL")},o);i.unref&&i.unref()},bn=(e,{forceKillAfterTimeout:t},r)=>wn(e)&&t!==!1&&r,wn=e=>e===yn.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",Tn=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return En;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},ut=(e,t)=>{e.kill()&&(t.isCanceled=!0)},In=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},dt=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let o,i=new Promise((a,u)=>{o=setTimeout(()=>{In(e,r,u)},t)}),c=n.finally(()=>{clearTimeout(o)});return Promise.race([i,c])},lt=({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})`)},mt=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let o=(0,ct.default)(()=>{e.kill()});return n.finally(()=>{o()})};s();import{createWriteStream as vn}from"node:fs";import{ChildProcess as Cn}from"node:child_process";s();function O(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function z(e){return O(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"}var Pn=e=>e instanceof Cn&&typeof e.then=="function",X=(e,t,r)=>{if(typeof r=="string")return e[t].pipe(vn(r)),e;if(z(r))return e[t].pipe(r),e;if(!Pn(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!z(r.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r},ft=e=>{e.stdout!==null&&(e.pipeStdout=X.bind(void 0,e,"stdout")),e.stderr!==null&&(e.pipeStderr=X.bind(void 0,e,"stderr")),e.all!==void 0&&(e.pipeAll=X.bind(void 0,e,"all"))};s();import{createReadStream as $n,readFileSync as Rn}from"node:fs";var Y=A(Gt(),1),gt=A(ht(),1),St=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},Gn=({input:e,inputFile:t})=>typeof t!="string"?e:(St(e),Rn(t)),yt=e=>{let t=Gn(e);if(O(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t},On=({input:e,inputFile:t})=>typeof t!="string"?e:(St(e),$n(t)),Et=(e,t)=>{let r=On(t);r!==void 0&&(O(r)?r.pipe(e.stdin):e.stdin.end(r))},xt=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=(0,gt.default)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},K=async(e,t)=>{if(!(!e||t===void 0)){e.destroy();try{return await t}catch(r){return r.bufferedData}}},V=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(!(!e||!r))return t?(0,Y.default)(e,{encoding:t,maxBuffer:n}):Y.default.buffer(e,{maxBuffer:n})},bt=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:o,maxBuffer:i},c)=>{let a=V(e,{encoding:n,buffer:o,maxBuffer:i}),u=V(t,{encoding:n,buffer:o,maxBuffer:i}),d=V(r,{encoding:n,buffer:o,maxBuffer:i*2});try{return await Promise.all([c,a,u,d])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},K(e,a),K(t,u),K(r,d)])}};s();var Nn=(async()=>{})().constructor.prototype,kn=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Nn,e)]),Q=(e,t)=>{for(let[r,n]of kn){let o=typeof t=="function"?(...i)=>Reflect.apply(n.value,t(),i):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:o})}},wt=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)})});s();import{Buffer as Un}from"node:buffer";import{ChildProcess as Ln}from"node:child_process";var vt=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Mn=/^[\w.-]+$/,Fn=/"/g,jn=e=>typeof e!="string"||Mn.test(e)?e:`"${e.replace(Fn,'\\"')}"`,Z=(e,t)=>vt(e,t).join(" "),J=(e,t)=>vt(e,t).map(r=>jn(r)).join(" "),Bn=/ +/g;var Tt=e=>{let t=typeof e;if(t==="string")return e;if(t==="number")return String(e);if(t==="object"&&e!==null&&!(e instanceof Ln)&&"stdout"in e){let r=typeof e.stdout;if(r==="string")return e.stdout;if(Un.isBuffer(e.stdout))return e.stdout.toString();throw new TypeError(`Unexpected "${r}" stdout in template expression`)}throw new TypeError(`Unexpected "${t}" in template expression`)},It=(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)],Dn=({templates:e,expressions:t,tokens:r,index:n,template:o})=>{let i=o??e.raw[n],c=i.split(Bn).filter(Boolean),a=It(r,c,i.startsWith(" "));if(n===t.length)return a;let u=t[n],d=Array.isArray(u)?u.map(l=>Tt(l)):[Tt(u)];return It(a,d,i.endsWith(" "))},ee=(e,t)=>{let r=[];for(let[n,o]of e.entries())r=Dn({templates:e,expressions:t,tokens:r,index:n,template:o});return r};s();import{debuglog as qn}from"node:util";import Wn from"node:process";var Ct=qn("execa").enabled,N=(e,t)=>String(e).padStart(t,"0"),_n=()=>{let e=new Date;return`${N(e.getHours(),2)}:${N(e.getMinutes(),2)}:${N(e.getSeconds(),2)}.${N(e.getMilliseconds(),3)}`},te=(e,{verbose:t})=>{t&&Wn.stderr.write(`[${_n()}] ${e}
@@ -1 +1 @@
1
- import{b as u}from"./chunk-ZQDDRIBA.js";import{a as i}from"./chunk-4C2DAX5T.js";import{b as a,c}from"./chunk-Q2SZCZE7.js";import{a as p}from"./chunk-BN7ZXAZJ.js";import{wb as m}from"./chunk-LWCTKI4Z.js";import{b as r}from"./chunk-FZCGRIOM.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();async function f(){return{version:i}}t();t();var o=p({name:"VersionResult",schema:r.object({version:r.string()})});function l(e,s){m(s==="json"?o.encode(e):e.version)}var n=class e extends u{static descriptionWithMarkdown="Shopify CLI version currently installed.";static description=this.descriptionForHelp();static flags={...a,...c};static get jsonOutputSchema(){return o}async run(){let{flags:s}=await this.parse(e),v=await f();l(v,s.json?"json":"text")}};export{n as a};
1
+ import{b as u}from"./chunk-OLKLHVHA.js";import{a as i}from"./chunk-MHWETFNT.js";import{b as a,c}from"./chunk-5AWELO3D.js";import{a as p}from"./chunk-BN7ZXAZJ.js";import{wb as m}from"./chunk-RIG66DIQ.js";import{b as r}from"./chunk-FZCGRIOM.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();async function f(){return{version:i}}t();t();var o=p({name:"VersionResult",schema:r.object({version:r.string()})});function l(e,s){m(s==="json"?o.encode(e):e.version)}var n=class e extends u{static descriptionWithMarkdown="Shopify CLI version currently installed.";static description=this.descriptionForHelp();static flags={...a,...c};static get jsonOutputSchema(){return o}async run(){let{flags:s}=await this.parse(e),v=await f();l(v,s.json?"json":"text")}};export{n as a};
@@ -1,4 +1,4 @@
1
- import{a as R,b as V,c as H,d as i,e as O,f as _,g as q,h as x,i as C}from"./chunk-U25W35TX.js";import{a as M}from"./chunk-ZGV3HNEV.js";import{a as k}from"./chunk-FWB3GLMW.js";import{Ma as L,ja as F}from"./chunk-3C6VLJ5D.js";import{b as I,c as A,f as p}from"./chunk-Q2SZCZE7.js";import{E as m,G as b,K as w}from"./chunk-CZ22VZDA.js";import{a as g}from"./chunk-BN7ZXAZJ.js";import{h as P}from"./chunk-2VSNFOKD.js";import{Cb as S,Eb as E,wb as T,zb as h}from"./chunk-LWCTKI4Z.js";import{b as n}from"./chunk-FZCGRIOM.js";import{b as Q}from"./chunk-YTUUU33R.js";import{i as v}from"./chunk-IWTNUJGY.js";import{e as X,g as a}from"./chunk-VKWPEFWQ.js";a();a();a();a();async function D(e,t,r){let o={api_version:t},{webhookTopics:s}=await e.topics(o,r);return s}a();async function W(e){let t=e.map(o=>({label:o,value:o}));return await b({message:"Webhook Topic",choices:t})}async function B(e){return m({message:"Webhook ApiVersion",choices:e.map(t=>({label:t,value:t}))})}async function N(){return m({message:"Delivery method",choices:[{label:"HTTP",value:i.HTTP},{label:"Google Pub/Sub",value:i.PUBSUB},{label:"Amazon EventBridge",value:i.EVENTBRIDGE}]})}async function Y(e){return(await w({message:"Address for delivery",validate:r=>{let o=r.trim();if(o.length===0)return"Address can't be empty";if(!O(o,e))return`Invalid address.
1
+ import{a as R,b as V,c as H,d as i,e as O,f as _,g as q,h as x,i as C}from"./chunk-CWR3IFXD.js";import{a as M}from"./chunk-NPB753M3.js";import{a as k}from"./chunk-D4LFWIFE.js";import{Ma as L,ja as F}from"./chunk-XV6XCOTG.js";import{b as I,c as A,f as p}from"./chunk-5AWELO3D.js";import{E as m,G as b,K as w}from"./chunk-V654BMS7.js";import{a as g}from"./chunk-BN7ZXAZJ.js";import{h as P}from"./chunk-J7BTC45S.js";import{Cb as S,Eb as E,wb as T,zb as h}from"./chunk-RIG66DIQ.js";import{b as n}from"./chunk-FZCGRIOM.js";import{b as Q}from"./chunk-YTUUU33R.js";import{i as v}from"./chunk-IWTNUJGY.js";import{e as X,g as a}from"./chunk-VKWPEFWQ.js";a();a();a();a();async function D(e,t,r){let o={api_version:t},{webhookTopics:s}=await e.topics(o,r);return s}a();async function W(e){let t=e.map(o=>({label:o,value:o}));return await b({message:"Webhook Topic",choices:t})}async function B(e){return m({message:"Webhook ApiVersion",choices:e.map(t=>({label:t,value:t}))})}async function N(){return m({message:"Delivery method",choices:[{label:"HTTP",value:i.HTTP},{label:"Google Pub/Sub",value:i.PUBSUB},{label:"Amazon EventBridge",value:i.EVENTBRIDGE}]})}async function Y(e){return(await w({message:"Address for delivery",validate:r=>{let o=r.trim();if(o.length===0)return"Address can't be empty";if(!O(o,e))return`Invalid address.
2
2
  ${c(e)}`}})).trim()}function Z(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 Z(e).map(t=>` \xB7 ${E(t)}`).join(`
3
3
  `)}async function G(e,t){let{clientSecret:r,clientId:o,remoteApp:s,app:l}=e;return r&&(o||t!==i.EVENTBRIDGE)?{clientSecret:r,apiKey:o}:(F({appName:s.title,configFile:v(l.configPath)}),{clientSecret:s.apiSecretKeys.find(y=>y.secret).secret,apiKey:s.apiKey})}async function j(e,t,r){let o=await R(e,r);return t?q(t,o):B(o)}async function z(e,t,r,o){let s=await D(e,t,o);return r?x(r,t,s):W(s)}async function U(e,t){let r=e??C(t)??await N(),o=t??await Y(r);return _(o,r)}async function J(e){let t=await ee(e);return te(t)}async function ee(e){let t=await j(e.developerPlatformClient,e.apiVersion,e.organizationId),r=await z(e.developerPlatformClient,t,e.topic,e.organizationId),[o,s]=await U(e.deliveryMethod,e.address),l=await G(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 te(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 V(e.developerPlatformClient,t,e.organizationId);if(!r.success)return{status:"failed",reason:"sample-request",userErrors:r.userErrors};let o={topic:e.topic,apiVersion:e.apiVersion,deliveryMethod:e.deliveryMethod,address:e.address,status:"enqueued"};return e.deliveryMethod===i.LOCALHOST?await H(e.address,r.samplePayload,r.headers)?{status:"success",delivery:{...o,status:"delivered"},samplePayloadIsEmpty:r.samplePayload===JSON.stringify({})}:{status:"failed",reason:"localhost-delivery"}:{status:"success",delivery:o,samplePayloadIsEmpty:r.samplePayload===JSON.stringify({})}}a();var K=n.object({topic:n.string(),apiVersion:n.string(),deliveryMethod:n.enum(["localhost","http","google-pub-sub","event-bridge"]),address:n.string(),status:n.enum(["delivered","enqueued"]).describe("Remote delivery is enqueued, not confirmed received.")}).strict(),u=g({name:"AppWebhookTriggerResult",schema:n.object({status:n.literal("success"),delivery:K}).strict(),definitions:{AppWebhookDelivery:K}});a();function $(e,t){if(e.status==="failed"){if(t==="json"){let r=new P(e.reason==="sample-request"?"Webhook sample request failed.":"Localhost delivery failed");throw e.reason==="sample-request"&&(r.details={userErrors:e.userErrors.map(({message:o,fields:s})=>({message:o,fieldPath:s}))}),r}S(e.reason==="sample-request"?`Request errors:
4
4
  ${re(e.userErrors)}`:"Localhost delivery failed");return}t==="json"?T(u.encode({status:e.status,delivery:e.delivery})):e.delivery.status==="delivered"?h("Localhost delivery sucessful"):e.samplePayloadIsEmpty&&h("Webhook has been enqueued for delivery")}function re(e){try{return e.map(t=>JSON.parse(t.message).map(r=>` \xB7 ${r}`).join(`
@@ -1 +1 @@
1
- import{b as e}from"./chunk-ZQDDRIBA.js";import{b as t,c as a}from"./chunk-Q2SZCZE7.js";import{h as r}from"./chunk-2VSNFOKD.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var o=class extends e{static hidden=!0;static strict=!1;static summary="App logs were removed in Shopify CLI 5.0.";static flags={...t,...a};async run(){throw new r("`shopify app logs` and `shopify app logs sources` were removed in Shopify CLI 5.0. To see Function logs, run `shopify app dev`.")}};export{o as a};
1
+ import{b as e}from"./chunk-OLKLHVHA.js";import{b as t,c as a}from"./chunk-5AWELO3D.js";import{h as r}from"./chunk-J7BTC45S.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var o=class extends e{static hidden=!0;static strict=!1;static summary="App logs were removed in Shopify CLI 5.0.";static flags={...t,...a};async run(){throw new r("`shopify app logs` and `shopify app logs sources` were removed in Shopify CLI 5.0. To see Function logs, run `shopify app dev`.")}};export{o as a};
@@ -1 +1 @@
1
- import{b as a,g as c,i as p,j as d}from"./chunk-5TB52UUV.js";import{k as h}from"./chunk-2VSNFOKD.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();i();i();function f(n){let e=/[^\p{Letter}\p{Number}\p{Mark}-]/gu;return n.replace(e,"-")}import{randomBytes as l}from"crypto";import{hostname as g}from"os";var T=50;function m(n){let e=g().split(".")[0],r=l(3).toString("hex"),t=`${n} ()`,s=T-t.length-r.length-1,o=f(`${r}-${e.substring(0,s)}`);return`${n} (${o})`}var u=class{adminSession;themeId;constructor(e){this.adminSession=e}async findOrCreate(e,r){let t=await this.fetch(e,r);return t?this.setTheme(t.id.toString()):t=await this.create(r,e),t}async fetch(e,r){if(!this.themeId&&!e)return;let t=e&&r===a?await p(e,this.adminSession):await c(parseInt(this.themeId,10),this.adminSession);return t||this.removeTheme(),t}generateThemeName(e){return m(e)}async create(e,r){let t=r??m(this.context),s=e??a,o=await d({name:t,role:s},this.adminSession);if(!o)throw new h(`Could not create theme with name "${t}" and role "${s}"`);return this.setTheme(o.id.toString()),{...o,createdAtRuntime:!0}}};export{u as a};
1
+ import{b as a,g as c,i as p,j as d}from"./chunk-2NZ7GDDR.js";import{k as h}from"./chunk-J7BTC45S.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();i();i();function f(n){let e=/[^\p{Letter}\p{Number}\p{Mark}-]/gu;return n.replace(e,"-")}import{randomBytes as l}from"crypto";import{hostname as g}from"os";var T=50;function m(n){let e=g().split(".")[0],r=l(3).toString("hex"),t=`${n} ()`,s=T-t.length-r.length-1,o=f(`${r}-${e.substring(0,s)}`);return`${n} (${o})`}var u=class{adminSession;themeId;constructor(e){this.adminSession=e}async findOrCreate(e,r){let t=await this.fetch(e,r);return t?this.setTheme(t.id.toString()):t=await this.create(r,e),t}async fetch(e,r){if(!this.themeId&&!e)return;let t=e&&r===a?await p(e,this.adminSession):await c(parseInt(this.themeId,10),this.adminSession);return t||this.removeTheme(),t}generateThemeName(e){return m(e)}async create(e,r){let t=r??m(this.context),s=e??a,o=await d({name:t,role:s},this.adminSession);if(!o)throw new h(`Could not create theme with name "${t}" and role "${s}"`);return this.setTheme(o.id.toString()),{...o,createdAtRuntime:!0}}};export{u as a};
@@ -1,2 +1,2 @@
1
- import{Bb as l}from"./chunk-LWCTKI4Z.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();import{spawn as m}from"child_process";function S(o=process.pid,s="SIGTERM",t=!0,c){I(o,s,t,c??(e=>{e&&l(`Failed to kill process ${o}: ${e}`)}))}function I(o,s,t,c){let n=typeof o=="number"?o.toString():o;if(!/^\d+$/.test(n)){c(new Error("pid must be a number"));return}let e={};e[n]=[];let r=new Set;switch(r.add(n),process.platform){case"win32":{let i=t?"taskkill":"powershell.exe",f=t?["/pid",n,"/T","/F"]:["-NoProfile","-NonInteractive","-Command",`Get-CimInstance Win32_Process -Filter "ParentProcessId = ${n} AND ProcessId <> $PID" -ErrorAction Stop | ForEach-Object { taskkill /pid $_.ProcessId /T /F | Out-Null }`];m(i,f).on("close",a=>{a===0?c():c(new Error(`${i} exited with code ${a}`))});break}case"darwin":h(n,e,r,function(i){return m("pgrep",["-lfP",i])},function(){$(e,s,n,t,c)});break;default:h(n,e,r,function(i){return m("ps",["-o","pid command","--no-headers","--ppid",i])},function(){$(e,s,n,t,c)});break}}function $(o,s,t,c,n){let e=new Set;try{Object.keys(o).forEach(function(r){o[r].forEach(function(i){e.has(i)||(w(i,s),e.add(i))}),r===t&&c&&!e.has(r)&&(w(r,s),e.add(r))})}catch(r){n(r);return}n()}function w(o,s){try{process.kill(parseInt(o,10),s)}catch(t){if(t.code!=="ESRCH")throw t}}function h(o,s,t,c,n){let e=c(o),r="";e.stdout?.on("data",function(f){let d=f.toString("ascii");r+=d});let i=f=>{if(t.delete(o),f!==0){if(t.size===0){n();return}return}r.trim().split(`
1
+ import{Bb as l}from"./chunk-RIG66DIQ.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();import{spawn as m}from"child_process";function S(o=process.pid,s="SIGTERM",t=!0,c){I(o,s,t,c??(e=>{e&&l(`Failed to kill process ${o}: ${e}`)}))}function I(o,s,t,c){let n=typeof o=="number"?o.toString():o;if(!/^\d+$/.test(n)){c(new Error("pid must be a number"));return}let e={};e[n]=[];let r=new Set;switch(r.add(n),process.platform){case"win32":{let i=t?"taskkill":"powershell.exe",f=t?["/pid",n,"/T","/F"]:["-NoProfile","-NonInteractive","-Command",`Get-CimInstance Win32_Process -Filter "ParentProcessId = ${n} AND ProcessId <> $PID" -ErrorAction Stop | ForEach-Object { taskkill /pid $_.ProcessId /T /F | Out-Null }`];m(i,f).on("close",a=>{a===0?c():c(new Error(`${i} exited with code ${a}`))});break}case"darwin":h(n,e,r,function(i){return m("pgrep",["-lfP",i])},function(){$(e,s,n,t,c)});break;default:h(n,e,r,function(i){return m("ps",["-o","pid command","--no-headers","--ppid",i])},function(){$(e,s,n,t,c)});break}}function $(o,s,t,c,n){let e=new Set;try{Object.keys(o).forEach(function(r){o[r].forEach(function(i){e.has(i)||(w(i,s),e.add(i))}),r===t&&c&&!e.has(r)&&(w(r,s),e.add(r))})}catch(r){n(r);return}n()}function w(o,s){try{process.kill(parseInt(o,10),s)}catch(t){if(t.code!=="ESRCH")throw t}}function h(o,s,t,c,n){let e=c(o),r="";e.stdout?.on("data",function(f){let d=f.toString("ascii");r+=d});let i=f=>{if(t.delete(o),f!==0){if(t.size===0){n();return}return}r.trim().split(`
2
2
  `).forEach(function(d){let a=d.match(/^(\d+)\s(.*)$/);if(a){let u=a[1],E=a[2];s[o].push(u),s[u]=[],l(`Killing process ${u}: ${E}`),t.add(u),h(u,s,t,c,n)}})};e.on("close",i)}export{S as a};
@@ -1 +1 @@
1
- import{P as i}from"./chunk-CZ22VZDA.js";import{a as l}from"./chunk-7UNQOKZW.js";import{a as p}from"./chunk-CX5CC6P5.js";import{e as u,g as a}from"./chunk-VKWPEFWQ.js";a();var f=u(l(),1),o=u(p(),1);async function h(t){try{return(await i("npm",["list","@shopify/cli"],{cwd:t})).match(/@shopify\/cli@([\w.-]*)/)?.[1]}catch{return}}async function d(){try{let t={...process.env,SHOPIFY_CLI_NO_ANALYTICS:"1"},e=f.default.sync("shopify",{all:!0}).filter(r=>!r.includes("node_modules"));if(!e[0])return;let n=(await i(e[0],[],{env:t})).match(/@shopify\/cli\/([^\s]+)/);if(n&&n[1]){let r=n[1];if((0,o.satisfies)(r,">=3.59.0")||s(r))return r}return}catch{return}}function s(t){return t.startsWith("0.0.0")}function y(t,e){if(s(t)||s(e))return!1;let c=new o.SemVer(t),n=new o.SemVer(e);return c.major!==n.major}export{h as a,d as b,s as c,y as d};
1
+ import{P as i}from"./chunk-V654BMS7.js";import{a as l}from"./chunk-7UNQOKZW.js";import{a as p}from"./chunk-CX5CC6P5.js";import{e as u,g as a}from"./chunk-VKWPEFWQ.js";a();var f=u(l(),1),o=u(p(),1);async function h(t){try{return(await i("npm",["list","@shopify/cli"],{cwd:t})).match(/@shopify\/cli@([\w.-]*)/)?.[1]}catch{return}}async function d(){try{let t={...process.env,SHOPIFY_CLI_NO_ANALYTICS:"1"},e=f.default.sync("shopify",{all:!0}).filter(r=>!r.includes("node_modules"));if(!e[0])return;let n=(await i(e[0],[],{env:t})).match(/@shopify\/cli\/([^\s]+)/);if(n&&n[1]){let r=n[1];if((0,o.satisfies)(r,">=3.59.0")||s(r))return r}return}catch{return}}function s(t){return t.startsWith("0.0.0")}function y(t,e){if(s(t)||s(e))return!1;let c=new o.SemVer(t),n=new o.SemVer(e);return c.major!==n.major}export{h as a,d as b,s as c,y as d};
@@ -1,4 +1,4 @@
1
- import{a as _,j as B,n as $}from"./chunk-LVLAOBJM.js";import{e as U,f as C}from"./chunk-DNMXVMJM.js";import{e as y}from"./chunk-PSSYLJG4.js";import{l as v,m as P}from"./chunk-5TB52UUV.js";import{xa as E}from"./chunk-H4V55Y3Z.js";import{Bb as m}from"./chunk-LWCTKI4Z.js";import{g as T}from"./chunk-VKWPEFWQ.js";T();var w=20,L=1024*1024,A=2;function re(t,e,r,s,o={},l){let n=_(r),i=new Map,c=!1,u=a=>{c||=a.success,i.set(a.key,a)},g=a=>a.total===0?"[100%]":`[${Math.round(a.current/a.total*100)}%]`,h=S(t,e,n).then(a=>{a.forEach(u)}),p=Promise.all([s.ready(),h]).then(()=>I(n,s,t,e,u)),d=p.then(a=>a.promise).then(()=>x(n,s,t,e,o,u)),f=o?.deferPartialWork?h:d.then(a=>a.promise);return o?.backgroundWorkCatch&&Promise.all([h,p.then(a=>a.promise),d.then(a=>a.promise)]).catch(o.backgroundWorkCatch),{uploadResults:i,get hasChanges(){return c},workPromise:f,renderThemeSyncProgress:async()=>{if(o?.deferPartialWork)return;let{progress:a,promise:F}=await p,k=o.multiEnvironment?4e3:1e3;await y(b({promise:F,titleGetter:()=>`Uploading files to remote theme ${g(a)}`,updateInterval:k}),l?.stderr,o?.multiEnvironment);let{progress:J,promise:j}=await d;await y(b({promise:j,titleGetter:()=>`Cleaning your remote theme ${g(J)}`,updateInterval:k}),l?.stderr,o?.multiEnvironment),await y([{title:"Theme upload complete",task:async()=>{}}],l?.stderr,o?.multiEnvironment),G(i,o?.environment)}}}function b({promise:t,titleGetter:e,updateInterval:r}){let s=[],o=()=>{s.push({title:e(),task:async(l,n)=>{await Promise.race([t,new Promise(c=>setTimeout(()=>c("timeout"),r))])==="timeout"?o():n.title=e()}})};return o(),s}function x(t,e,r,s,o,l){if(o.nodelete)return{progress:{current:0,total:0},promise:Promise.resolve()};let n=R(t,e),i=D(n),c={current:0,total:i.length};if(i.length===0)return{progress:c,promise:Promise.resolve()};let u=[];for(let h=0;h<i.length;h+=w){let p=i.slice(h,h+w),d=v(r.id,p.map(f=>f.key),s).then(f=>{f.forEach(a=>{if(l(a),!a.success){let F=a.errors?.asset?.map(k=>`-${k}`).join(`
1
+ import{a as _,j as B,n as $}from"./chunk-FVRI7ZKE.js";import{e as U,f as C}from"./chunk-2RFCYZMG.js";import{e as y}from"./chunk-AQ34X5B3.js";import{l as v,m as P}from"./chunk-2NZ7GDDR.js";import{xa as E}from"./chunk-NCPZVARH.js";import{Bb as m}from"./chunk-RIG66DIQ.js";import{g as T}from"./chunk-VKWPEFWQ.js";T();var w=20,L=1024*1024,A=2;function re(t,e,r,s,o={},l){let n=_(r),i=new Map,c=!1,u=a=>{c||=a.success,i.set(a.key,a)},g=a=>a.total===0?"[100%]":`[${Math.round(a.current/a.total*100)}%]`,h=S(t,e,n).then(a=>{a.forEach(u)}),p=Promise.all([s.ready(),h]).then(()=>I(n,s,t,e,u)),d=p.then(a=>a.promise).then(()=>x(n,s,t,e,o,u)),f=o?.deferPartialWork?h:d.then(a=>a.promise);return o?.backgroundWorkCatch&&Promise.all([h,p.then(a=>a.promise),d.then(a=>a.promise)]).catch(o.backgroundWorkCatch),{uploadResults:i,get hasChanges(){return c},workPromise:f,renderThemeSyncProgress:async()=>{if(o?.deferPartialWork)return;let{progress:a,promise:F}=await p,k=o.multiEnvironment?4e3:1e3;await y(b({promise:F,titleGetter:()=>`Uploading files to remote theme ${g(a)}`,updateInterval:k}),l?.stderr,o?.multiEnvironment);let{progress:J,promise:j}=await d;await y(b({promise:j,titleGetter:()=>`Cleaning your remote theme ${g(J)}`,updateInterval:k}),l?.stderr,o?.multiEnvironment),await y([{title:"Theme upload complete",task:async()=>{}}],l?.stderr,o?.multiEnvironment),G(i,o?.environment)}}}function b({promise:t,titleGetter:e,updateInterval:r}){let s=[],o=()=>{s.push({title:e(),task:async(l,n)=>{await Promise.race([t,new Promise(c=>setTimeout(()=>c("timeout"),r))])==="timeout"?o():n.title=e()}})};return o(),s}function x(t,e,r,s,o,l){if(o.nodelete)return{progress:{current:0,total:0},promise:Promise.resolve()};let n=R(t,e),i=D(n),c={current:0,total:i.length};if(i.length===0)return{progress:c,promise:Promise.resolve()};let u=[];for(let h=0;h<i.length;h+=w){let p=i.slice(h,h+w),d=v(r.id,p.map(f=>f.key),s).then(f=>{f.forEach(a=>{if(l(a),!a.success){let F=a.errors?.asset?.map(k=>`-${k}`).join(`
2
2
  `);C(a.key,"delete")(new Error(`Failed to delete ${a.key}: ${F}`))}}),c.current+=p.length});u.push(d)}let g=Promise.all(u).then(()=>{c.current=c.total});return{progress:c,promise:g}}function R(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 D(t){let e=$(t);return[...e.contextualizedJsonFiles,...e.templateJsonFiles,...e.sectionJsonFiles,...e.otherJsonFiles,...e.sectionLiquidFiles,...e.blockLiquidFiles,...e.layoutFiles,...e.otherLiquidFiles,...e.configDataFile,...e.configStylesheetFiles,...e.documentationFiles,...e.configSchemaFile,...e.staticAssetFiles]}var q=[{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 S(t,e,r){let s=new Set(r.map(l=>l.key)),o=q.filter(({key:l})=>!s.has(l));return o.length>0?P(t.id,o,e):[]}function I(t,e,r,s,o){let l=z(e,t);e.unsyncedFileKeys.clear(),l.forEach(d=>e.unsyncedFileKeys.add(d.key));let{independentFiles:n,dependentFiles:i}=K(l),c={current:0,total:l.length},u=d=>d.length===0?Promise.resolve():Promise.all(N(d).map(f=>H(f,e,s,r.id,o).then(()=>{c.current+=f.length,f.forEach(a=>e.unsyncedFileKeys.delete(a.key))}))).then(()=>{}),g=i.reduce((d,f)=>d.then(()=>u(f)),Promise.resolve()),h=Promise.resolve().then(()=>u(n.flat())),p=Promise.all([g,h]).then(()=>{c.current=c.total});return{progress:c,promise:p}}function z(t,e){let r=W(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,3 +1,3 @@
1
- import{a as J}from"./chunk-ZGV3HNEV.js";import{a as x}from"./chunk-FWB3GLMW.js";import{A,E as S,I as E,J as F,K as R,Ma as k}from"./chunk-3C6VLJ5D.js";import{a as f}from"./chunk-IQVRP7CT.js";import{b as j,c as V}from"./chunk-Q2SZCZE7.js";import{A as y,C as u}from"./chunk-CZ22VZDA.js";import{a as C}from"./chunk-BN7ZXAZJ.js";import{j as h}from"./chunk-2VSNFOKD.js";import{wb as g,xb as v}from"./chunk-LWCTKI4Z.js";import{b as i}from"./chunk-FZCGRIOM.js";import{g as w,i as m}from"./chunk-IWTNUJGY.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();var M=i.object({filePath:i.string().refine(w,"Expected an absolute filesystem path.").nullable(),message:i.string(),fieldPath:i.array(i.union([i.string(),i.number().int().nonnegative()])).nullable(),code:i.string().nullable().describe("The upstream validation code, or null when unavailable.")}).strict(),c=C({name:"AppConfigValidateResult",schema:i.object({path:i.string().refine(w,"Expected an absolute filesystem path."),valid:i.boolean(),issues:i.array(M)}).strict(),definitions:{ValidationIssue:M}});r();function O(a,t){t==="json"?g(c.encode(a)):a.valid?y({headline:`App configuration '${m(a.path)}' is valid.`}):u({headline:"Validation errors found.",body:a.issues.map(e=>`\u2022 ${R({file:e.filePath??a.path,path:e.fieldPath??void 0,code:e.code??void 0,message:e.message})}`).join(`
1
+ import{a as J}from"./chunk-NPB753M3.js";import{a as x}from"./chunk-D4LFWIFE.js";import{A,E as S,I as E,J as F,K as R,Ma as k}from"./chunk-XV6XCOTG.js";import{a as f}from"./chunk-ZHHTQRWU.js";import{b as j,c as V}from"./chunk-5AWELO3D.js";import{A as y,C as u}from"./chunk-V654BMS7.js";import{a as C}from"./chunk-BN7ZXAZJ.js";import{j as h}from"./chunk-J7BTC45S.js";import{wb as g,xb as v}from"./chunk-RIG66DIQ.js";import{b as i}from"./chunk-FZCGRIOM.js";import{g as w,i as m}from"./chunk-IWTNUJGY.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();var M=i.object({filePath:i.string().refine(w,"Expected an absolute filesystem path.").nullable(),message:i.string(),fieldPath:i.array(i.union([i.string(),i.number().int().nonnegative()])).nullable(),code:i.string().nullable().describe("The upstream validation code, or null when unavailable.")}).strict(),c=C({name:"AppConfigValidateResult",schema:i.object({path:i.string().refine(w,"Expected an absolute filesystem path."),valid:i.boolean(),issues:i.array(M)}).strict(),definitions:{ValidationIssue:M}});r();function O(a,t){t==="json"?g(c.encode(a)):a.valid?y({headline:`App configuration '${m(a.path)}' is valid.`}):u({headline:"Validation errors found.",body:a.issues.map(e=>`\u2022 ${R({file:e.filePath??a.path,path:e.fieldPath??void 0,code:e.code??void 0,message:e.message})}`).join(`
2
2
  `)})}r();import{resolve as z}from"node:path";async function B(a,t){let e=new Set(t.map(o=>o.file)).size;await f.addPublicMetadata(()=>({cmd_app_validate_valid:a,cmd_app_validate_issue_count:t.length,cmd_app_validate_file_count:e}))}async function I(a){let t=a.errors?.getErrors()??[];return await B(t.length===0,t),{path:z(a.configPath),valid:t.length===0,issues:t.map(({file:e,message:o,path:p,code:d})=>({filePath:z(e),message:o,fieldPath:p??null,code:d??null}))}}import{resolve as _}from"node:path";async function T(a,t){await f.addPublicMetadata(()=>({cmd_app_validate_valid:!1,cmd_app_validate_issue_count:a,cmd_app_validate_file_count:t}))}async function $(a,t){let e=new Set(t.map(o=>o.filePath)).size;throw await T(t.length,e),g(c.encode({path:_(a),valid:!1,issues:t})),await v(),new h}var b=class a extends J{static summary="Validate your app configuration and extensions.";static descriptionWithMarkdown="Validates the selected app configuration file and all extension configurations against their schemas and reports any errors found.";static get jsonOutputSchema(){return c}static description=this.descriptionForHelp();static flags={...j,...x,...V};async run(){let{flags:t}=await this.parse(a);await f.addPublicMetadata(()=>({cmd_app_validate_json:t.json}));let e=await A.load(t.path),o=await E(e,t.config,{clientId:t["client-id"],skipPrompts:!!t["client-id"]}),p=S(e,o.file);if(p.length>0){let n=p.map(s=>({filePath:_(s.path),message:s.message,fieldPath:null,code:null}));t.json&&await $(o.file.path,n);let l=new Set(p.map(s=>s.path)).size;throw await T(n.length,l),u({headline:"Validation errors found.",body:n.map(s=>`\u2022 ${s.message}`).join(`
3
3
  `)}),new h}let d;try{d=(await k({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config??(t["client-id"]?m(o.file.path):void 0),unsafeTolerateErrors:!0})).app}catch(n){throw n instanceof F&&t.json&&await $(n.configurationPath,n.errors.map(l=>({filePath:_(l.file),message:l.message,fieldPath:l.path??null,code:l.code??null}))),n}let P=await I(d);if(O(P,t.json?"json":"text"),!P.valid)throw await v(),new h;return{app:d}}};export{b as a};
@@ -1 +1 @@
1
- import{a as k}from"./chunk-QN3774QI.js";import{D as b,E as C,F as R,O as c,P as l,U as p,W as j,b as w,s as A,x as v,y as D}from"./chunk-LMQGNECW.js";import{b as f}from"./chunk-ZQDDRIBA.js";import{b as S,c as g}from"./chunk-Q2SZCZE7.js";import{A as y,z as d}from"./chunk-CZ22VZDA.js";import{a as m}from"./chunk-BN7ZXAZJ.js";import{wb as h}from"./chunk-LWCTKI4Z.js";import{b as o}from"./chunk-FZCGRIOM.js";import{b as T}from"./chunk-YTUUU33R.js";import{e as J,g as i}from"./chunk-VKWPEFWQ.js";i();i();var W={cleanResults:v,cleanAllResults:D};async function n(t,e=W){return{removed:t.all?await e.cleanAllResults(t.appDirectory):await e.cleanResults(t.selection.appDirectory,b(t.selection))}}i();i();var x=o.object({directory:c().describe("The absolute app directory.")}).strict(),a=m({name:"AppSecurityCleanResult",schema:o.object({status:o.literal("success"),changed:o.boolean().describe("Whether any results directory was removed."),app:o.union([l,x]).describe("The selected app. With --all, only its directory."),resultsDirectories:o.array(c()).describe("The absolute paths of the removed results directories, sorted. Empty when there was nothing to remove.")}).strict(),definitions:{AppSecurityApp:l,AppSecurityCleanAllApp:x}});function O(t,e,s){if(s==="json"){h(a.encode(I(t,e)));return}if(t.removed.length===0){let r=e.all?e.appDirectory:e.selection.appDirectory;d({headline:"No app security check results to remove.",body:["Nothing was found in",{filePath:A(r)}]})}else y({headline:"App security check results removed.",body:{list:{items:t.removed.map(r=>({filePath:r}))}}})}function I(t,e){return{status:"success",changed:t.removed.length>0,app:e.all?{directory:p(e.appDirectory)}:j(e.selection),resultsDirectories:t.removed.map(p)}}var P=J(T(),1);var u=class t extends f{static summary="Remove local app security check results.";static descriptionWithMarkdown="Deletes the results directory, `.shopify/app-security/<results key>/`, without asking. The results key is `--client-id` when you pass it, and otherwise the name of the app configuration file without `.toml`. Other results directories are left alone. Prints each removed path.\n\nUse `--all` to delete every results directory under `.shopify/app-security/` instead. `--all` takes neither `--config` nor `--client-id`, and with `--without-app-config` it doesn't need `--client-id`.";static get jsonOutputSchema(){return a}static description=this.descriptionForHelp();static flags={...S,...w,...g,all:P.Flags.boolean({description:"Delete every results directory under .shopify/app-security/, not only the selected one.",exclusive:["config","client-id"]})};async run(){let{flags:e}=await this.parse(t),s={path:e.path,config:e.config,clientId:e["client-id"],withoutAppConfig:e["without-app-config"]},r=e.all?{all:!0,appDirectory:await C(s)}:{all:!1,selection:await R({...s,allowPrompts:!1})};r.all||await k(r.selection,e.path);let F=await n(r);O(F,r,e.json?"json":"text")}};export{u as a};
1
+ import{a as k}from"./chunk-LWMKZJ4M.js";import{D as b,E as C,F as R,O as c,P as l,U as p,W as j,b as w,s as A,x as v,y as D}from"./chunk-MNWT2SQO.js";import{b as f}from"./chunk-OLKLHVHA.js";import{b as S,c as g}from"./chunk-5AWELO3D.js";import{A as y,z as d}from"./chunk-V654BMS7.js";import{a as m}from"./chunk-BN7ZXAZJ.js";import{wb as h}from"./chunk-RIG66DIQ.js";import{b as o}from"./chunk-FZCGRIOM.js";import{b as T}from"./chunk-YTUUU33R.js";import{e as J,g as i}from"./chunk-VKWPEFWQ.js";i();i();var W={cleanResults:v,cleanAllResults:D};async function n(t,e=W){return{removed:t.all?await e.cleanAllResults(t.appDirectory):await e.cleanResults(t.selection.appDirectory,b(t.selection))}}i();i();var x=o.object({directory:c().describe("The absolute app directory.")}).strict(),a=m({name:"AppSecurityCleanResult",schema:o.object({status:o.literal("success"),changed:o.boolean().describe("Whether any results directory was removed."),app:o.union([l,x]).describe("The selected app. With --all, only its directory."),resultsDirectories:o.array(c()).describe("The absolute paths of the removed results directories, sorted. Empty when there was nothing to remove.")}).strict(),definitions:{AppSecurityApp:l,AppSecurityCleanAllApp:x}});function O(t,e,s){if(s==="json"){h(a.encode(I(t,e)));return}if(t.removed.length===0){let r=e.all?e.appDirectory:e.selection.appDirectory;d({headline:"No app security check results to remove.",body:["Nothing was found in",{filePath:A(r)}]})}else y({headline:"App security check results removed.",body:{list:{items:t.removed.map(r=>({filePath:r}))}}})}function I(t,e){return{status:"success",changed:t.removed.length>0,app:e.all?{directory:p(e.appDirectory)}:j(e.selection),resultsDirectories:t.removed.map(p)}}var P=J(T(),1);var u=class t extends f{static summary="Remove local app security check results.";static descriptionWithMarkdown="Deletes the results directory, `.shopify/app-security/<results key>/`, without asking. The results key is `--client-id` when you pass it, and otherwise the name of the app configuration file without `.toml`. Other results directories are left alone. Prints each removed path.\n\nUse `--all` to delete every results directory under `.shopify/app-security/` instead. `--all` takes neither `--config` nor `--client-id`, and with `--without-app-config` it doesn't need `--client-id`.";static get jsonOutputSchema(){return a}static description=this.descriptionForHelp();static flags={...S,...w,...g,all:P.Flags.boolean({description:"Delete every results directory under .shopify/app-security/, not only the selected one.",exclusive:["config","client-id"]})};async run(){let{flags:e}=await this.parse(t),s={path:e.path,config:e.config,clientId:e["client-id"],withoutAppConfig:e["without-app-config"]},r=e.all?{all:!0,appDirectory:await C(s)}:{all:!1,selection:await R({...s,allowPrompts:!1})};r.all||await k(r.selection,e.path);let F=await n(r);O(F,r,e.json?"json":"text")}};export{u as a};
@@ -1 +1 @@
1
- import{Na as r}from"./chunk-3C6VLJ5D.js";import{a}from"./chunk-IQVRP7CT.js";import{p as i}from"./chunk-IWTNUJGY.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var c=3e3;async function n(o){let t;try{if(a.getAllPublicMetadata().api_key!==void 0)return;await Promise.race([r({directory:o,skipPrompts:!0}),new Promise(l=>{t=setTimeout(l,c)})])}catch{}finally{t&&clearTimeout(t)}}var m=async()=>(await n(i()),a.getAllPublicMetadata()),f=m;export{f as a};
1
+ import{Na as r}from"./chunk-XV6XCOTG.js";import{a}from"./chunk-ZHHTQRWU.js";import{p as i}from"./chunk-IWTNUJGY.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var c=3e3;async function n(o){let t;try{if(a.getAllPublicMetadata().api_key!==void 0)return;await Promise.race([r({directory:o,skipPrompts:!0}),new Promise(l=>{t=setTimeout(l,c)})])}catch{}finally{t&&clearTimeout(t)}}var m=async()=>(await n(i()),a.getAllPublicMetadata()),f=m;export{f as a};