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
@@ -4,4 +4,4 @@ import{a as Oo,b as vo,c as Br,d as Yr}from"./chunk-T7KHS6RF.js";import{b as yo}
4
4
  `,e.proxy.authorization&&(s+="Proxy-Authorization: Basic "+Buffer.from(e.proxy.authorization).toString("base64")+`\r
5
5
  `),s+=`\r
6
6
  `,n.write(s)}},Al=Cr;xe.default=Al});var Ks=f(te=>{"use strict";i();Object.defineProperty(te,"__esModule",{value:!0});Object.defineProperty(te,"Agent",{enumerable:!0,get:function(){return Nl.default}});Object.defineProperty(te,"HttpProxyAgent",{enumerable:!0,get:function(){return Tl.default}});Object.defineProperty(te,"HttpsProxyAgent",{enumerable:!0,get:function(){return Ll.default}});var Nl=jr(Ie()),Tl=jr(zs()),Ll=jr(Ws());function jr(r){return r&&r.__esModule?r:{default:r}}});var Qs=f((Ce,Zs)=>{"use strict";i();Object.defineProperty(Ce,"__esModule",{value:!0});function Sl(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Js(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Il(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}function ql(r){function e(){r.apply(this,arguments)}return e.prototype=Object.create(r.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r,e}var xl=(function(r){Il(e,r);function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";Sl(this,e);var n=Js(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return Object.defineProperty(n,"message",{configurable:!0,enumerable:!1,value:t,writable:!0}),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:n.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(n,n.constructor),Js(n)):(Object.defineProperty(n,"stack",{configurable:!0,enumerable:!1,value:new Error(t).stack,writable:!0}),n)}return e})(ql(Error));Ce.default=xl;Zs.exports=Ce.default});var je=f(De=>{"use strict";i();Object.defineProperty(De,"__esModule",{value:!0});De.UnexpectedStateError=void 0;var Cl=Dl(Qs());function Dl(r){return r&&r.__esModule?r:{default:r}}var Gr=class extends Cl.default{constructor(e,t="UNEXPECTED_STATE_ERROR"){super(e),this.code=t}};De.UnexpectedStateError=Gr});var ro=f(Ge=>{"use strict";i();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.default=void 0;var jl=eo(N("http")),Gl=eo(N("https"));function eo(r){return r&&r.__esModule?r:{default:r}}var Ml=(r,e,t)=>(...n)=>{let s,o,a;return typeof n[0]=="string"||n[0]instanceof URL?(s=n[0],typeof n[1]=="function"?(o={},a=n[1]):(o={...n[1]},a=n[2])):(o={...n[0]},a=n[1]),t?o.agent=e:(o.agent||(o.agent=e),(o.agent===jl.default.globalAgent||o.agent===Gl.default.globalAgent)&&(o.agent=e)),s?r(s,o,a):r(o,a)},Ul=Ml;Ge.default=Ul});var no=f((Ad,Ur)=>{"use strict";i();var kl=yo(),Mr=new Map;function to(r,e){e={caseSensitive:!1,...e};let t=r+JSON.stringify(e);if(Mr.has(t))return Mr.get(t);let n=r[0]==="!";n&&(r=r.slice(1)),r=kl(r).replace(/\\\*/g,"[\\s\\S]*");let s=new RegExp(`^${r}$`,e.caseSensitive?"":"i");return s.negated=n,Mr.set(t,s),s}Ur.exports=(r,e,t)=>{if(!(Array.isArray(r)&&Array.isArray(e)))throw new TypeError(`Expected two arrays, got ${typeof r} ${typeof e}`);if(e.length===0)return r;let n=e[0][0]==="!";e=e.map(o=>to(o,t));let s=[];for(let o of r){let a=n;for(let c of e)c.test(o)&&(a=!c.negated);a&&s.push(o)}return s};Ur.exports.isMatch=(r,e,t)=>{let n=Array.isArray(r)?r:[r],s=Array.isArray(e)?e:[e];return n.some(o=>s.every(a=>{let c=to(a,t),l=c.test(o);return c.negated?!l:l}))}});var oo=f(Me=>{"use strict";i();Object.defineProperty(Me,"__esModule",{value:!0});Me.default=void 0;var Xl=N("url"),Fl=Hl(no()),so=je();function Hl(r){return r&&r.__esModule?r:{default:r}}var Vl=(r,e)=>{let t=(0,Xl.parse)(r),n=e.split(/[\s,]+/);for(let s of n){let o=s.replace(/^(?<leadingDot>\.)/,"*").match(/^(?<hostname>.+?)(?::(?<port>\d+))?$/);if(!o||!o.groups)throw new so.UnexpectedStateError("Invalid NO_PROXY pattern.");if(!o.groups.hostname)throw new so.UnexpectedStateError("NO_PROXY entry pattern must include hostname. Use * to match any hostname.");if(Fl.default.isMatch(t.hostname,o.groups.hostname)&&(!o.groups||!o.groups.port||t.port&&t.port===o.groups.port))return!0}return!1},Bl=Vl;Me.default=Bl});var io=f(Ue=>{"use strict";i();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=void 0;var Yl=N("url"),kr=je(),zl=r=>{let e=(0,Yl.parse)(r);if(e.query!==null)throw new kr.UnexpectedStateError("Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL must not have query.");if(e.hash!==null)throw new kr.UnexpectedStateError("Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL must not have hash.");if(e.protocol!=="http:")throw new kr.UnexpectedStateError('Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL protocol must be "http:".');let t=80;return e.port&&(t=Number.parseInt(e.port,10)),{authorization:e.auth||null,hostname:e.hostname,port:t}},Wl=zl;Ue.default=Wl});var ao=f(ne=>{"use strict";i();Object.defineProperty(ne,"__esModule",{value:!0});Object.defineProperty(ne,"bindHttpMethod",{enumerable:!0,get:function(){return Kl.default}});Object.defineProperty(ne,"isUrlMatchingNoProxy",{enumerable:!0,get:function(){return Jl.default}});Object.defineProperty(ne,"parseProxyUrl",{enumerable:!0,get:function(){return Zl.default}});var Kl=Xr(ro()),Jl=Xr(oo()),Zl=Xr(io());function Xr(r){return r&&r.__esModule?r:{default:r}}});var Fr=f(ke=>{"use strict";i();Object.defineProperty(ke,"__esModule",{value:!0});ke.default=void 0;var Ql=ec(z());function ec(r){return r&&r.__esModule?r:{default:r}}var rc=Ql.default.child({namespace:"createProxyController"}),tc=["HTTP_PROXY","HTTPS_PROXY","NO_PROXY"],nc=()=>new Proxy({HTTP_PROXY:null,HTTPS_PROXY:null,NO_PROXY:null},{set:(r,e,t)=>{if(!tc.includes(e))throw new Error('Cannot set an unmapped property "'+e+'".');return r[e]=t,rc.info({change:{name:e,value:t},newConfiguration:r},"configuration changed"),!0}}),sc=nc;ke.default=sc});var po=f(Xe=>{"use strict";i();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.default=void 0;var X=se(N("http")),F=se(N("https")),oc=ue(),uo=se(Fs()),ic=se(z()),lo=Ks(),ac=je(),k=ao(),uc=se(Fr());function se(r){return r&&r.__esModule?r:{default:r}}var lc=X.default.get,cc=X.default.request,fc=F.default.get,pc=F.default.request,co=ic.default.child({namespace:"createGlobalProxyAgent"}),fo={environmentVariableNamespace:void 0,forceGlobalAgent:void 0,socketConnectionTimeout:6e4},dc=r=>{let e=Object.keys(r),t={};for(let n of e){let s=r[n];s!==void 0&&(t[n]=s)}return t},hc=r=>{let e=process.env;return{...{environmentVariableNamespace:typeof e.GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE=="string"?e.GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE:"GLOBAL_AGENT_",forceGlobalAgent:typeof e.GLOBAL_AGENT_FORCE_GLOBAL_AGENT=="string"?(0,oc.boolean)(e.GLOBAL_AGENT_FORCE_GLOBAL_AGENT):!0,socketConnectionTimeout:typeof e.GLOBAL_AGENT_SOCKET_CONNECTION_TIMEOUT=="string"?Number.parseInt(e.GLOBAL_AGENT_SOCKET_CONNECTION_TIMEOUT,10):fo.socketConnectionTimeout},...dc(r)}},gc=(r=fo)=>{let e=hc(r),t=(0,uc.default)();t.HTTP_PROXY=process.env[e.environmentVariableNamespace+"HTTP_PROXY"]||null,t.HTTPS_PROXY=process.env[e.environmentVariableNamespace+"HTTPS_PROXY"]||null,t.NO_PROXY=process.env[e.environmentVariableNamespace+"NO_PROXY"]||null,co.info({configuration:e,state:t},"global agent has been initialized");let n=p=>m=>p()?t.NO_PROXY?!(0,k.isUrlMatchingNoProxy)(m,t.NO_PROXY):!0:!1,s=p=>()=>{let m=p();if(!m)throw new ac.UnexpectedStateError("HTTP(S) proxy must be configured.");return(0,k.parseProxyUrl)(m)},o=()=>t.HTTP_PROXY,a=class extends lo.HttpProxyAgent{constructor(){super(()=>o(),n(o),s(o),X.default.globalAgent,e.socketConnectionTimeout)}},c=new a,l=()=>t.HTTPS_PROXY||t.HTTP_PROXY,E=class extends lo.HttpsProxyAgent{constructor(){super(()=>l(),n(l),s(l),F.default.globalAgent,e.socketConnectionTimeout)}},u=new E;return uo.default.gte(process.version,"v11.7.0")&&(X.default.globalAgent=c,F.default.globalAgent=u),uo.default.gte(process.version,"v10.0.0")?(X.default.get=(0,k.bindHttpMethod)(lc,c,e.forceGlobalAgent),X.default.request=(0,k.bindHttpMethod)(cc,c,e.forceGlobalAgent),F.default.get=(0,k.bindHttpMethod)(fc,u,e.forceGlobalAgent),F.default.request=(0,k.bindHttpMethod)(pc,u,e.forceGlobalAgent)):co.warn("attempt to initialize global-agent in unsupported Node.js version was ignored"),t},Ec=gc;Xe.default=Ec});var Hr=f(Fe=>{"use strict";i();Object.defineProperty(Fe,"__esModule",{value:!0});Object.defineProperty(Fe,"createGlobalProxyAgent",{enumerable:!0,get:function(){return mc.default}});Object.defineProperty(Fe,"createProxyController",{enumerable:!0,get:function(){return yc.default}});var mc=ho(po()),yc=ho(Fr());function ho(r){return r&&r.__esModule?r:{default:r}}});var go=f(He=>{"use strict";i();Object.defineProperty(He,"__esModule",{value:!0});He.default=void 0;var Oc=bc(z()),vc=Hr();function bc(r){return r&&r.__esModule?r:{default:r}}var Rc=Oc.default.child({namespace:"bootstrap"}),_c=r=>global.GLOBAL_AGENT?(Rc.warn("found global.GLOBAL_AGENT; second attempt to bootstrap global-agent was ignored"),!1):(global.GLOBAL_AGENT=(0,vc.createGlobalProxyAgent)(r),!0),wc=_c;He.default=wc});var Eo=f(Vr=>{"use strict";i();Object.defineProperty(Vr,"__esModule",{value:!0});Object.defineProperty(Vr,"bootstrap",{enumerable:!0,get:function(){return Pc.default}});var Pc=$c(go());function $c(r){return r&&r.__esModule?r:{default:r}}});var Tc=f(Ve=>{"use strict";i();Object.defineProperty(Ve,"__esModule",{value:!0});Object.defineProperty(Ve,"bootstrap",{enumerable:!0,get:function(){return Ac.bootstrap}});Object.defineProperty(Ve,"createGlobalProxyAgent",{enumerable:!0,get:function(){return Nc.createGlobalProxyAgent}});var Ac=Eo(),Nc=Hr()});i();import bo from"fs";function zr(r){let e=r instanceof Error?r.stack??r.message:String(r);bo.writeSync(process.stderr.fd,`${e}
7
- `)}async function Sc(r){try{let{jsonOutputEnabled:e}=await import("./environment-O7ECODHU.js");if(e()){let{handler:n}=await import("./error-IL6WQMSW.js");await n(r);return}let{FatalError:t}=await import("./error-IL6WQMSW.js");if(r instanceof t){let{renderFatalError:n}=await import("./ui-PCG5D6RZ.js");n(r)}else zr(r)}catch{zr(r)}}export{Sc as a,Tc as b};
7
+ `)}async function Sc(r){try{let{jsonOutputEnabled:e}=await import("./environment-O7ECODHU.js");if(e()){let{handler:n}=await import("./error-IFB626JA.js");await n(r);return}let{FatalError:t}=await import("./error-IFB626JA.js");if(r instanceof t){let{renderFatalError:n}=await import("./ui-MYUBVKCK.js");n(r)}else zr(r)}catch{zr(r)}}export{Sc as a,Tc as b};
@@ -1,4 +1,4 @@
1
- import{a as $}from"./chunk-UVRKTMF7.js";import{a as V}from"./chunk-ZGV3HNEV.js";import{a as w}from"./chunk-FWB3GLMW.js";import{L as P,Ma as x}from"./chunk-3C6VLJ5D.js";import{e as L}from"./chunk-AJMDF3QC.js";import{b as ae}from"./chunk-UOS2XLGG.js";import{D,S as T,ea as A,ia as j,u as g}from"./chunk-H4V55Y3Z.js";import{b as E,c as M}from"./chunk-Q2SZCZE7.js";import{I as R,J as k,z as O}from"./chunk-CZ22VZDA.js";import{a as h}from"./chunk-BN7ZXAZJ.js";import{k as I}from"./chunk-2VSNFOKD.js";import{qb as p,sb as c,wb as C,yb as v}from"./chunk-LWCTKI4Z.js";import{b as m}from"./chunk-FZCGRIOM.js";import{b as te}from"./chunk-YTUUU33R.js";import{e as _,g as r}from"./chunk-VKWPEFWQ.js";r();r();r();var q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metafieldDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MetafieldOwnerType"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metafieldDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ownerType"},value:{kind:"Variable",name:{kind:"Name",value:"ownerType"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"30"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetafieldForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetafieldForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetafieldDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}},{kind:"Field",name:{kind:"Name",value:"customerAccount"}}]}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminFilterable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]};r();async function de(i){let n="Admin",e=L(i.storeFqdn,"unstable");return{token:i.token,api:n,url:e}}async function U(i){return j({query:i.query,...await de(i.session),variables:i.variables,autoRateLimitRestore:i.autoRateLimitRestore})}r();var K={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metaobjectDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaobjectDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetaobjectForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetaobjectForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetaobjectDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}}]}},{kind:"Field",name:{kind:"Name",value:"displayNameKey"}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publishable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"translatable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"renderable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaTitleKey"}},{kind:"Field",name:{kind:"Name",value:"metaDescriptionKey"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"fieldDefinitions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"required"}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]};var H=_(ae(),1);var oe={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",customer:"CUSTOMER",delivery_customization:"DELIVERY_CUSTOMIZATION",delivery_method:"DELIVERY_METHOD",delivery_option_generator:"DELIVERY_OPTION_GENERATOR",discount:"DISCOUNT",draft_order:"DRAFTORDER",fulfillment_constraint_rule:"FULFILLMENT_CONSTRAINT_RULE",gift_card_transaction:"GIFT_CARD_TRANSACTION",order_routing_location_rule:"ORDER_ROUTING_LOCATION_RULE",payment_customization:"PAYMENT_CUSTOMIZATION",selling_plan:"SELLING_PLAN",shop:"SHOP",validation:"VALIDATION",variant:"PRODUCTVARIANT",cart_transform:"CARTTRANSFORM"};async function B({query:i,session:n,toNodes:e,toVariables:t,performQuery:d=a=>U({query:i,session:n,variables:a,autoRateLimitRestore:!0})}){let a;try{let o=e(await d(t(a))),s=[];for(s.push(...o.nodes);o.pageInfo.hasNextPage;)a=o.pageInfo.endCursor,o=e(await d(t(a))),s.push(...o.nodes);return{status:"ok",items:s}}catch(o){if(o instanceof Error&&o.message.includes("ACCESS_DENIED"))return{status:"scope_error"};throw o}}function G(i,n){let e="";for(let t of i)e=(0,H.updateTomlValues)(e,t);return`# ${n}
1
+ import{a as $}from"./chunk-NMLLRFZF.js";import{a as V}from"./chunk-NPB753M3.js";import{a as w}from"./chunk-D4LFWIFE.js";import{L as P,Ma as x}from"./chunk-XV6XCOTG.js";import{e as L}from"./chunk-7AWAOPLA.js";import{b as ae}from"./chunk-HP2ZAAY7.js";import{D,S as T,ea as A,ia as j,u as g}from"./chunk-NCPZVARH.js";import{b as E,c as M}from"./chunk-5AWELO3D.js";import{I as R,J as k,z as O}from"./chunk-V654BMS7.js";import{a as h}from"./chunk-BN7ZXAZJ.js";import{k as I}from"./chunk-J7BTC45S.js";import{qb as p,sb as c,wb as C,yb as v}from"./chunk-RIG66DIQ.js";import{b as m}from"./chunk-FZCGRIOM.js";import{b as te}from"./chunk-YTUUU33R.js";import{e as _,g as r}from"./chunk-VKWPEFWQ.js";r();r();r();var q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metafieldDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MetafieldOwnerType"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metafieldDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ownerType"},value:{kind:"Variable",name:{kind:"Name",value:"ownerType"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"30"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetafieldForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetafieldForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetafieldDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}},{kind:"Field",name:{kind:"Name",value:"customerAccount"}}]}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminFilterable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]};r();async function de(i){let n="Admin",e=L(i.storeFqdn,"unstable");return{token:i.token,api:n,url:e}}async function U(i){return j({query:i.query,...await de(i.session),variables:i.variables,autoRateLimitRestore:i.autoRateLimitRestore})}r();var K={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metaobjectDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaobjectDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetaobjectForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetaobjectForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetaobjectDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}}]}},{kind:"Field",name:{kind:"Name",value:"displayNameKey"}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publishable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"translatable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"renderable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaTitleKey"}},{kind:"Field",name:{kind:"Name",value:"metaDescriptionKey"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"fieldDefinitions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"required"}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]};var H=_(ae(),1);var oe={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",customer:"CUSTOMER",delivery_customization:"DELIVERY_CUSTOMIZATION",delivery_method:"DELIVERY_METHOD",delivery_option_generator:"DELIVERY_OPTION_GENERATOR",discount:"DISCOUNT",draft_order:"DRAFTORDER",fulfillment_constraint_rule:"FULFILLMENT_CONSTRAINT_RULE",gift_card_transaction:"GIFT_CARD_TRANSACTION",order_routing_location_rule:"ORDER_ROUTING_LOCATION_RULE",payment_customization:"PAYMENT_CUSTOMIZATION",selling_plan:"SELLING_PLAN",shop:"SHOP",validation:"VALIDATION",variant:"PRODUCTVARIANT",cart_transform:"CARTTRANSFORM"};async function B({query:i,session:n,toNodes:e,toVariables:t,performQuery:d=a=>U({query:i,session:n,variables:a,autoRateLimitRestore:!0})}){let a;try{let o=e(await d(t(a))),s=[];for(s.push(...o.nodes);o.pageInfo.hasNextPage;)a=o.pageInfo.endCursor,o=e(await d(t(a))),s.push(...o.nodes);return{status:"ok",items:s}}catch(o){if(o instanceof Error&&o.message.includes("ACCESS_DENIED"))return{status:"scope_error"};throw o}}function G(i,n){let e="";for(let t of i)e=(0,H.updateTomlValues)(e,t);return`# ${n}
2
2
  ${e}`}function se(i,n){let e=n.map(fe).map(a=>{switch(a.status){case"ok":{let{typeName:o,patches:s}=a;return G(s,`type: $app:${o}`)}case"not_app_reserved":return null}}).filter(a=>a!==null),t=i.flatMap(({items:a,ownerType:o,graphQLOwner:s})=>a.map(l=>({result:pe(l,o),graphQLOwner:s}))).map(({result:a,graphQLOwner:o})=>{switch(a.status){case"ok":{let{namespace:s,key:l,patches:S}=a;return G(S,`namespace: ${s==="app"?"$app":`$app:${s}`} key: ${l} owner_type: ${o}`)}case"not_app_reserved":return null}}).filter(a=>a!==null);return{tomlContent:[...e,...t].join(`
3
3
  `),metafieldCount:t.length,metaobjectCount:e.length}}async function Y(i){let n=await ue(i),e=await le(n),t=await re(n),d=e.nodes,a=t.nodes;i.includeExistingDeclaredDefinitions||(d=me(d,i.appConfiguration),a=ce(a,i.appConfiguration));let{tomlContent:o,metafieldCount:s,metaobjectCount:l}=se(d,a);return{status:"success",storeDomain:n.storeFqdn,metafieldCount:s,metaobjectCount:l,tomlContent:o,skippedSections:[...e.skippedSections,...t.skippedSections]}}async function le(i){let n=[];return await R(Object.entries(oe).map(([e,t])=>({title:c`Loading ${p.green(e)} metafields`,task:async()=>{let d=await B({query:q,session:i,toNodes:a=>a.metafieldDefinitions,toVariables:a=>({ownerType:t,after:a})});n.push({metafields:d,ownerType:e,graphQLOwner:t})}}))),{nodes:n.map(({metafields:e,ownerType:t,graphQLOwner:d})=>e.status==="ok"?{ownerType:t,items:e.items,graphQLOwner:d}:null).filter(e=>e!==null),skippedSections:n.filter(({metafields:e})=>e.status==="scope_error").map(({graphQLOwner:e})=>({type:"metafields",ownerType:e}))}}async function re(i){let n=await k({title:c`Loading ${p.green("metaobjects")}`,task:async()=>B({query:K,session:i,toNodes:e=>e.metaobjectDefinitions,toVariables:e=>({after:e})})});return n.status==="ok"?{nodes:n.items,skippedSections:[]}:{nodes:[],skippedSections:[{type:"metaobjects"}]}}function me(i,n){return i.map(e=>{let t=e.items.filter(d=>!J(n,[e.ownerType,"metafields",f(d.namespace)??"",d.key]));return t.length>0?{...e,items:t}:null}).filter(e=>e!==null)}function ce(i,n){return i.filter(e=>!J(n,["metaobjects","app",f(e.type)??""]))}function J(i,n){let e=i;for(let t of n){if(!e[t])return!1;e=e[t]}return!0}async function ue(i){let{remoteApp:n,store:e}=i,t=n.apiSecretKeys[0]?.secret;if(!t)throw new I("No API secret keys found for app");return await T(e.shopDomain,n.apiKey,t)}function f(i){if(!i.match(/^app--\d+/))return null;let n="app";return i.match(/^app--\d+--/)&&(n=i.replace(/^app--\d+--/,"")),n}function pe(i,n){let e=f(i.namespace);if(!e)return{status:"not_app_reserved"};let t=i.key,d=ke(i),a=be(d,n,e,t);return{status:"ok",key:t,namespace:e,patches:a}}function fe(i){let n=f(i.type);if(!n)return{status:"not_app_reserved"};let e=ve(i,n),t=Ne(e,n);return{status:"ok",typeName:n,patches:t}}function ke(i){let n={name:i.name===i.key?void 0:i.name,type:i.type.name,description:i.description??void 0,capabilities:u({admin_filterable:i.capabilities.adminFilterable.enabled||void 0}),access:u({admin:Z(i.access.admin),storefront:X(i.access.storefront),customer_account:Se(i.access.customerAccount)}),validations:z(i.validations)},{type:e,validations:t}=W(n.type,n.validations);return n.type=e,n.validations=t,n}function ve(i,n){return{name:i.name===n?void 0:i.name,description:i.description??void 0,display_name_field:i.displayNameKey??void 0,access:u({admin:Z(i.access.admin),storefront:X(i.access.storefront)}),capabilities:u({translatable:i.capabilities.translatable.enabled||void 0,publishable:i.capabilities.publishable.enabled||void 0,renderable:i.capabilities.renderable?.enabled||void 0,renderable_meta_title_field:i.capabilities.renderable?.data?.metaTitleKey??void 0,renderable_meta_description_field:i.capabilities.renderable?.data?.metaDescriptionKey??void 0}),fields:Object.fromEntries(i.fieldDefinitions.map(e=>{let t={type:e.type.name,description:e.description??void 0,name:e.name===e.key?void 0:e.name,required:e.required||void 0,validations:z(e.validations)},{type:d,validations:a}=W(t.type,t.validations);return t.type=d,t.validations=a,[e.key,t]}))}}function W(i,n){if(!n)return{type:i,validations:void 0};if(n.metaobject_definition_type&&typeof n.metaobject_definition_type=="string"){let e=f(n.metaobject_definition_type);return{type:`${i}<$app:${e}>`,validations:u({...n,metaobject_definition_type:void 0})}}if(n.metaobject_definition_types&&Array.isArray(n.metaobject_definition_types)&&n.metaobject_definition_types.every(e=>typeof e=="string")){let e=n.metaobject_definition_types.map(t=>f(t));return{type:`${i}<${e.map(t=>`$app:${t}`).join(",")}>`,validations:u({...n,metaobject_definition_types:void 0})}}return{type:i,validations:n}}function z(i){let n=e=>{try{return JSON.parse(e)}catch{return e}};return u(Object.fromEntries(i.filter(e=>e.value!==void 0&&e.name!=="metaobject_definition_id"&&e.name!=="metaobject_definition_ids").map(e=>[e.name,e.value?n(e.value):void 0])))}function be(i,n,e,t){let d=[[[n,"metafields",e,t,"name"],i.name],[[n,"metafields",e,t,"type"],i.type],[[n,"metafields",e,t,"description"],i.description]],a=[[[n,"metafields",e,t,"access","admin"],i.access?.admin],[[n,"metafields",e,t,"access","storefront"],i.access?.storefront],[[n,"metafields",e,t,"access","customer_account"],i.access?.customer_account],[[n,"metafields",e,t,"capabilities","admin_filterable"],i.capabilities?.admin_filterable||void 0]];return i.validations&&Q(i.validations).forEach(({validationKey:s,actualValue:l})=>{d.push([[n,"metafields",e,t,"validations",s],l])}),[b(d),b(a)]}function Ne(i,n){let e=[[["metaobjects","app",n,"name"],i.name===n?void 0:i.name],[["metaobjects","app",n,"description"],i.description],[["metaobjects","app",n,"display_name_field"],i.display_name_field]],t=[[["metaobjects","app",n,"access","admin"],i.access?.admin],[["metaobjects","app",n,"access","storefront"],i.access?.storefront]];return i.capabilities?.translatable&&t.push([["metaobjects","app",n,"capabilities","translatable"],!0]),i.capabilities?.publishable&&t.push([["metaobjects","app",n,"capabilities","publishable"],!0]),i.capabilities?.renderable&&(t.push([["metaobjects","app",n,"capabilities","renderable"],!0]),i.capabilities?.renderable_meta_title_field&&t.push([["metaobjects","app",n,"capabilities","renderable_meta_title_field"],i.capabilities.renderable_meta_title_field]),i.capabilities?.renderable_meta_description_field&&t.push([["metaobjects","app",n,"capabilities","renderable_meta_description_field"],i.capabilities.renderable_meta_description_field])),Object.entries(i.fields).forEach(([d,a])=>{if(typeof a=="string")e.push([["metaobjects","app",n,"fields",d],a]);else{let o=Object.fromEntries(Object.entries(a).filter(([s,l])=>l!==void 0));Object.keys(o).length===1?e.push([["metaobjects","app",n,"fields",d],a.type]):(e.push([["metaobjects","app",n,"fields",d,"type"],a.type]),e.push([["metaobjects","app",n,"fields",d,"description"],a.description]),e.push([["metaobjects","app",n,"fields",d,"name"],a.name]),e.push([["metaobjects","app",n,"fields",d,"required"],a.required||void 0]),a.validations&&Q(a.validations).forEach(({validationKey:l,actualValue:S})=>{e.push([["metaobjects","app",n,"fields",d,"validations",l],S])}))}}),[b(e),b(t)]}function Q(i){return Object.entries(i).map(([n,e])=>{let t;return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||Array.isArray(e)&&e.every(d=>typeof d=="string")?t=e:t=JSON.stringify(e),{validationKey:n,actualValue:t}})}function Z(i){switch(i){case"MERCHANT_READ_WRITE":return"merchant_read_write";case"MERCHANT_READ":case"PRIVATE":case"PUBLIC_READ":case"PUBLIC_READ_WRITE":case null:case void 0:return}}function X(i){switch(i){case"PUBLIC_READ":return"public_read";case"NONE":case null:case void 0:return}}function Se(i){switch(i){case"READ":return"read";case"READ_WRITE":return"read_write";case"NONE":case null:case void 0:return}}function u(i){if(i&&!A(i)&&!(typeof i=="object"&&Object.values(i).every(n=>n===void 0)))return i}function b(i){return i.filter(([n,e])=>e!==void 0)}r();var ee=m.object({type:m.literal("metafields"),ownerType:m.string().min(1).describe("The Admin API metafield owner type, such as PRODUCT.")}).strict(),ie=m.object({type:m.literal("metaobjects")}).strict(),N=h({name:"ImportCustomDataDefinitionsResult",schema:m.object({status:m.literal("success"),storeDomain:m.string().nullable().describe("The full myshopify.com domain of the development store, or null when unavailable."),metafieldCount:m.number().int().nonnegative().describe("The number of available metafields converted to TOML."),metaobjectCount:m.number().int().nonnegative().describe("The number of available metaobjects converted to TOML."),toml:m.string().describe("Suggested native TOML for app-reserved definitions. No file is written."),skippedSections:m.array(m.discriminatedUnion("type",[ee,ie])).describe("Sections skipped because required access scopes are unavailable. An empty array means all requests were authorized.")}).strict(),definitions:{SkippedMetafields:ee,SkippedMetaobjects:ie}});r();function ne({status:i,metafieldCount:n,metaobjectCount:e,storeDomain:t,tomlContent:d,skippedSections:a},o=!1){if(o){let s=D(t);C(N.encode({status:i,storeDomain:s?`${s}.myshopify.com`:null,metafieldCount:n,metaobjectCount:e,toml:d,skippedSections:a.map(l=>l.type==="metafields"?{type:l.type,ownerType:l.ownerType}:{type:l.type})}));return}O({headline:"Conversion to TOML complete.",body:["Converted",{warn:`${n} metafields`},"and",{warn:`${e} metaobjects`},"from",{warn:t},"into TOML, ready for you to copy."],orderedNextSteps:!0,nextSteps:["Review the suggested TOML carefully before applying.",["Missing sections? Make sure your app has the required access scopes to load metafields and metaobjects (e.g.",{command:"read_customers"},"to load customer metafields,",{command:"read_metaobject_definitions"},"to load metaobjects.)"],["Missing definitions? Only metafields and metaobjects that are app-reserved (using",{command:"$app"},") will be converted."],["When you're ready, add the generated TOML to your app's configuration file and test out changes with the",{command:"shopify app dev"},"command."]]}),ye(d)}function ye(i){let n=i.split(`
4
4
  `);for(let e of n)e.match(/^\s*\[/)?v(c`${p.green(e)}`):e.match(/^\s*#/)?v(c`${p.gray(e)}`):v(c`${e}`)}var y=_(te(),1);var F=class i extends V{static summary="Import metafield and metaobject definitions.";static descriptionWithMarkdown="Import metafield and metaobject definitions from your development store. [Read more about declarative custom data definitions](https://shopify.dev/docs/apps/build/custom-data/declarative-custom-data-definitions).";static get jsonOutputSchema(){return N}static description=this.descriptionForHelp();static flags={...E,...w,...M,store:y.Flags.string({char:"s",description:"Store URL. Must be an existing development or Shopify Plus sandbox store.",env:"SHOPIFY_FLAG_STORE",parse:async n=>g(n)}),"include-existing":y.Flags.boolean({description:"Include existing declared definitions in the output.",default:!1,env:"SHOPIFY_FLAG_INCLUDE_EXISTING"})};async run(){let{appContextResult:n,json:e,...t}=await k({title:c`Loading application`,task:async()=>{let{flags:a}=await this.parse(i);await P(a.path);let o=await x({directory:a.path,clientId:a["client-id"],forceRelink:a.reset,userProvidedConfigName:a.config}),s=await $({appContextResult:o,storeFqdn:a.store,forceReselectStore:a.reset});return{appContextResult:o,json:a.json,appConfiguration:o.app.configuration,remoteApp:o.remoteApp,store:s,includeExistingDeclaredDefinitions:a["include-existing"]}}}),d=await Y(t);return ne(d,e),{app:n.app}}};export{F as a};
@@ -1,4 +1,4 @@
1
- import{a as s,c as i,d as n}from"./chunk-2ORRV7GH.js";import{b as e}from"./chunk-ZQDDRIBA.js";import{b as a,c as r}from"./chunk-Q2SZCZE7.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class u extends e{static summary="Check whether auto-upgrade is enabled, disabled, or not yet configured.";static descriptionWithMarkdown=`Check whether auto-upgrade is enabled, disabled, or not yet configured.
1
+ import{a as s,c as i,d as n}from"./chunk-IY5EI5V2.js";import{b as e}from"./chunk-OLKLHVHA.js";import{b as a,c as r}from"./chunk-5AWELO3D.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class u extends e{static summary="Check whether auto-upgrade is enabled, disabled, or not yet configured.";static descriptionWithMarkdown=`Check whether auto-upgrade is enabled, disabled, or not yet configured.
2
2
 
3
3
  When auto-upgrade is enabled, Shopify CLI automatically updates to the latest version after each command.
4
4
 
@@ -1 +1 @@
1
- import{i as t,ka as r}from"./chunk-3C6VLJ5D.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function o(i,e,s){return await r(e,s.source),{variables:[{name:"SHOPIFY_API_KEY",value:e.apiKey,isSecret:!1},...e.apiSecretKeys[0]?[{name:"SHOPIFY_API_SECRET",value:e.apiSecretKeys[0].secret,isSecret:!0}]:[],{name:"SCOPES",value:t(i.configuration),isSecret:!1}]}}export{o as a};
1
+ import{i as t,ka as r}from"./chunk-XV6XCOTG.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function o(i,e,s){return await r(e,s.source),{variables:[{name:"SHOPIFY_API_KEY",value:e.apiKey,isSecret:!1},...e.apiSecretKeys[0]?[{name:"SHOPIFY_API_SECRET",value:e.apiSecretKeys[0].secret,isSecret:!0}]:[],{name:"SCOPES",value:t(i.configuration),isSecret:!1}]}}export{o as a};
@@ -1,4 +1,4 @@
1
- import{a as Y}from"./chunk-V75WUEFU.js";import{a as u,b as le,c as de}from"./chunk-HB3MJYBK.js";import{a as re}from"./chunk-NB4BRW3H.js";import{b as ue}from"./chunk-QN3774QI.js";import{D as te,F as ne,J as se,M as ie,O as p,P as j,R as y,S as $,T as R,U as S,V as b,W as oe,Y as C,Z as ce,_ as ae,a as V,d as A,k as l,l as X,m,n as Q,o as _,q as Z,t as ee}from"./chunk-LMQGNECW.js";import{b as G}from"./chunk-ZQDDRIBA.js";import{b as q,c as J}from"./chunk-Q2SZCZE7.js";import{A as B,B as M,C as H,z as U}from"./chunk-CZ22VZDA.js";import{a as W}from"./chunk-BN7ZXAZJ.js";import{h as K}from"./chunk-2VSNFOKD.js";import{ga as P,wb as z}from"./chunk-LWCTKI4Z.js";import{b as s,c as g,d as O}from"./chunk-FZCGRIOM.js";import{b as Be}from"./chunk-YTUUU33R.js";import{e as Ue,g as d}from"./chunk-VKWPEFWQ.js";d();d();var Me={resolveSelection:ne,loadResults:ue,recordMetadata:re};function He(e,t){let n=t.checkIds.length>0?{checkIds:t.checkIds}:null,i=e.sources.deterministic!==null||e.sources.agent!==null;n&&i&&Ge(n.checkIds,e.checks);let o=n?e.checks.filter(r=>n.checkIds.includes(r.id)):e.checks;return{resultsDirectory:t.resultsDirectory,sources:e.sources,allChecks:e.checks,checks:o,filter:n,scopeDiffers:Ke(e.sources),blocking:{level:t.blocking,blockedChecks:ze(o,t.blocking)}}}function Ke({deterministic:e,agent:t}){return!e||!t?!1:JSON.stringify(e.document.coverage.scope)!==JSON.stringify(t.document.scope)}function ze(e,t){return t==="none"?0:e.filter(n=>l(n).length>0&&A[n.severity]>=A[t]).length}function Ge(e,t){let n=new Set(t.map(c=>c.id)),i=e.filter(c=>!n.has(c));if(i.length===0)return;let o=i.length===1?"check ID":"check IDs",r=new K(`Unknown ${o}: ${i.join(", ")}.`,"Pass --check-id with one of the checks in the results files.",[],[{title:"Available check IDs",body:{list:{items:t.map(c=>c.id)}}}]);throw r.code="unknown-check-id",r.details={checkIds:i},r}async function x(e,t=Me){let n=await t.resolveSelection({path:e.directory,config:e.configName,clientId:e.clientId,withoutAppConfig:e.withoutAppConfig,allowPrompts:!1,validateClientIdFlag:!0}),i=await t.loadResults(n,e.directory),o=He(i,{resultsDirectory:ee(n.appDirectory,te(n)).resultsDirectory,checkIds:e.checkIds,blocking:e.blocking});if(o.sources.deterministic!==null||o.sources.agent!==null){let r=o.allChecks.reduce((c,a)=>c+l(a).length,0);await t.recordMetadata({num_security_findings:r})}return{selection:n,result:o,commands:se(n,e.directory,i.sources.deterministic?.document.coverage.scope)}}d();d();var F=()=>g.describe(`${g.description}`),ye=()=>s.enum(["executed","not-applicable","unresolved"]),pe=()=>s.enum(["union","prefer-agent"]),T=s.object({filePath:p().describe("The absolute path of the file."),line:s.number().int().positive().nullable().describe("The one-based line, or null for the whole file."),column:s.number().int().positive().nullable().describe("The one-based column, or null when none is recorded.")}).strict().describe("A place in a file."),Se=s.object({location:T,quote:s.string().min(1).nullable().describe("The quoted source, redacted, or null when none is recorded.")}).strict().describe("Source that supports a finding."),ve=()=>({disposition:s.enum(["active","suppressed","superseded"]).describe("Whether the finding counts: active; suppressed by the agent; or superseded, a deterministic finding that a check's prefer-agent agent result replaces."),location:T,message:s.string().describe("What the finding is, redacted."),snippet:s.string().min(1).nullable().describe("The flagged code, redacted, or null when none is recorded."),evidence:s.array(Se)}),ke=s.object({source:s.literal("deterministic"),...ve(),fix:s.object({description:s.string(),guide:s.string().min(1).nullable().describe("A guide to the fix, or null when none is recorded."),automated:s.boolean().describe("Whether the fix can be applied automatically.")}).strict().nullable().describe("How to fix the finding, or null when none is recorded.")}).strict().describe("A finding from deterministic-findings.json."),we=s.object({source:s.literal("agent"),...ve(),confidence:s.enum(["high","medium","low"]).nullable().describe("The agent's confidence, or null when it didn't report one."),reasoning:s.string().min(1).nullable().describe("The agent's reasoning, redacted, or null when none is recorded."),suppression:s.object({justification:s.string()}).strict().nullable().describe("Why the agent suppressed the finding, or null when it is not suppressed.")}).strict().describe("A finding from agent-findings.json."),Ae=s.discriminatedUnion("source",[ke,we]),D=s.object({version:s.number().int().positive().describe("The check version: the catalog version for deterministic results, the one the agent claimed for agent results."),status:ye().describe("The source's own status for the check."),reason:s.object({code:s.string().describe("A short code. Agent codes are free-form. Deterministic codes: capability_absent, no_relevant_files, unsupported_framework, unsupported_language, parser_unavailable, agent_investigation_required, input_rejected."),message:s.string()}).strict().nullable().describe("Why the check is unresolved or not applicable, or null when none is recorded."),analysisMode:s.enum(["regex","structured-config","ast"]).nullable().describe("How the deterministic check analyzed the files. Null for agent results."),generatedAt:F().nullable().describe("When the source recorded the check, or null when the recorded time is not a valid instant.")}).strict().describe("One source's own result for a check."),he=s.object({id:s.string().describe("The check ID, such as CREDENTIAL_LOG_LEAKAGE."),title:s.string(),severity:s.enum(["high","medium","low"]),description:s.string(),guide:s.string().min(1).nullable().describe("A guide to the check, or null when none is recorded."),docsUrl:s.string().url().nullable().describe("The check's page on shopify.dev, or null when the results files predate it."),precedence:pe().describe("How the sources combine: union keeps both sources' findings; prefer-agent lets the agent result replace the deterministic one."),appliedPrecedence:pe().describe("The precedence that applied: union when a prefer-agent agent result is older than the deterministic one."),status:ye().describe("The combined status. Under union, executed when either source executed the check."),bySource:s.object({deterministic:D.nullable(),agent:D.nullable()}).strict().describe("Each source's own result, or null when that source didn't record the check."),findings:s.array(Ae).describe("Every finding of both sources, including suppressed and superseded ones, whatever --verbose. Sorted by file, line, then source.")}).strict().describe("One check, combined from both results files."),fe=s.object({framework:s.enum(["react-router","none","unknown","mixed"]),surface:s.enum(["react-router","theme-app-extension","config-only","unknown","mixed"]),languages:s.array(s.object({name:s.string().describe("The language, such as typescript."),support:s.enum(["supported","unsupported"]).describe("Whether the deterministic checks analyze it."),files:s.array(s.object({path:p()}).strict())}).strict())}).strict().describe("What the latest check detected in the app."),ge=s.object({filesScanned:s.number().int().nonnegative().describe("The number of files scanned."),filesSkipped:s.array(s.object({path:p(),reason:s.enum(["too-large","unreadable"]),sizeBytes:s.number().int().nonnegative().nullable().describe("The file size, or null when unknown."),detail:s.string().min(1).nullable().describe("Why the file was unreadable, or null when none is recorded.")}).strict()),gaps:s.array(s.object({code:s.enum(["skipped-file","unsupported-framework","unsupported-language","unresolved-check"]),message:s.string(),checkId:s.string().nullable().describe("The check that the gap concerns, or null."),filePath:p().nullable().describe("The file that the gap concerns, or null.")}).strict()),scanDirectories:s.array($)}).strict().describe("What the latest check covered."),me=s.object({path:p().describe("The absolute path of deterministic-findings.json."),generatedAt:F().nullable().describe("When check wrote the file, or null when the recorded time is not a valid instant."),engine:s.object({name:s.string(),version:s.string(),ruleset:s.string()}).strict(),scope:y}).strict().describe("deterministic-findings.json, which check writes, with the scope of the scan."),be=s.object({path:p().describe("The absolute path of agent-findings.json."),generatedAt:F().nullable().describe("When record wrote the file, or null when the recorded time is not a valid instant."),engine:s.object({name:s.string(),version:s.string()}).strict(),scope:y}).strict().describe("agent-findings.json, which record writes, with the scope that the agent reported."),v=W({name:"AppSecurityReviewResult",schema:s.object({status:s.literal("success"),valid:s.boolean().describe("Whether --blocking passed: no check in checks has an active finding and a severity at or above the level. Unresolved checks never fail it, and --blocking none always passes."),app:j,resultsDirectory:p().describe("The absolute path of the results directory."),resultsFiles:s.object({deterministic:me.nullable(),agent:be.nullable()}).strict().describe("The results files that the review combines. Null when a file does not exist."),detection:fe.nullable().describe("What the latest check detected in the app, or null without deterministic-findings.json."),coverage:ge.nullable().describe("What the latest check covered, or null without deterministic-findings.json."),scopeDiffers:s.boolean().describe("Whether the agent reported another scope than the latest scan used. False unless both results files exist."),checks:s.array(he).describe("The checks after --check-id, most severe first, then by ID. Empty when no results file exists."),blocking:R}).strict().describe("The combined results of the app security check."),definitions:{AppSecurityApp:j,AppSecurityScope:y,AppSecurityScanDirectory:$,AppSecurityBlocking:R,AppSecurityDeterministicResultsFile:me,AppSecurityAgentResultsFile:be,AppSecurityDetection:fe,AppSecurityCoverage:ge,AppSecurityCheck:he,AppSecuritySourceResult:D,AppSecurityFinding:Ae,AppSecurityDeterministicFinding:ke,AppSecurityAgentFinding:we,AppSecurityLocation:T,AppSecurityEvidence:Se}});d();var Re={high:"High",medium:"Medium",low:"Low"},qe={executed:"passed",not_applicable:"not applicable",unresolved:"unresolved"},Je={executed:"executed",not_applicable:"not applicable",unresolved:"unresolved"},k=["deterministic","agent"],Ye={deterministic:"deterministic-findings.json",agent:"agent-findings.json"},_e=3,Ve="Agent findings were recorded for a different scope than the latest scan.",Ce="agent result stale",Xe="The agent result is older than the deterministic result, so both are shown.",Qe={info:U,success:B,warning:M,error:H};function xe(e){for(let t of Ze(e))Qe[t.type](t.options)}function Ze(e){let{checks:t}=e.result,n=t.filter(r=>r.status==="unresolved"&&l(r).length===0),i=t.filter(r=>r.status!=="unresolved"&&l(r).length===0),o=t.filter(r=>l(r).length>0);return[...n.length>0?[ht(n,e.verbose)]:[],...i.length>0?[ft(i,e.verbose)]:[],...o.map(r=>mt(r,e.verbose,e.now)),dt(et(e))]}function et(e){let{result:t}=e,n=t.sources.deterministic!==null||t.sources.agent!==null,i=_(t.checks),o=t.sources.deterministic?.document,r=t.blocking.blockedChecks>0,c=t.checks.filter(m).length;return{type:nt(t.checks,i,n),headline:st(t.checks,i,n),...t.filter&&n?{filterLine:`Showing ${t.checks.length} of ${t.allChecks.length} checks (--check-id).`}:{},checksWithFindings:t.checks.filter(a=>l(a).length>0).map(it),otherChecks:ot(i),...c>0?{staleAgentResults:tt(c)}:{},...o?{coverage:ct(o)}:{},scopeLines:at(t.sources),...t.scopeDiffers?{scopeNote:Ve}:{},resultsFiles:{directory:t.resultsDirectory,rows:k.map(a=>ut(a,t.sources[a]?.document,e.now))},...r?{blocking:`${u(t.blocking.blockedChecks,"check")} at or above ${t.blocking.level} (--blocking ${t.blocking.level}).`}:{nextSteps:lt(t,i,n,c,e.commands)}}}function tt(e){let t=e===1?"shows":"show";return`${u(e,"check")} ${t} both sources because the agent results are older than the deterministic results.`}function nt(e,t,n){return n?e.some(i=>i.severity==="high"&&l(i).length>0)?"error":t.withFindings>0||t.unresolved>0?"warning":"success":"info"}function st(e,t,n){if(!n)return"No app security check results to review.";if(t.withFindings===0)return`No findings in ${u(e.length,"check")}.`;let i=t.unresolved>0?` ${u(t.unresolved,"check")} unresolved.`:"";return`${le(t)}.${i}`}function it(e){return{severity:Re[e.severity],id:e.id,counts:rt(e)}}function rt(e){let t=l(e);return k.map(n=>[n,t.filter(i=>i.source===n).length]).filter(([,n])=>n>0).map(([n,i])=>`${i} ${n}`).join(", ")}function ot(e){return[w(de(e)),De(e)].filter(t=>t!=="")}function De(e){return w([e.suppressed>0?`${u(e.suppressed,"finding")} suppressed`:void 0,e.superseded>0?`${u(e.superseded,"finding")} superseded`:void 0])}function E(e){return De(_([e]))}function w(e){return e.filter(t=>t!==void 0).join(" \xB7 ")}function ct(e){let t=e.coverage.files_skipped,{too_large:n,unreadable:i}=Z(t),o=[n>0?`${n} too large`:void 0,i>0?`${i} unreadable`:void 0].filter(h=>h!==void 0),r=t.length===0?"none skipped":`${t.length} skipped (${o.join(", ")})`,c=e.detection.languages.filter(h=>h.support==="unsupported"),a=c.length===0?"":` Unsupported ${c.length===1?"language":"languages"}: ${c.map(h=>`${h.name} (${u(h.files.length,"file")})`).join(", ")}.`;return`Deterministic coverage: ${u(e.coverage.files_scanned,"file")} scanned, ${r}.${a}`}function je(e){let t=[...e.include_dirs.map(n=>`--include-dir ${n}`),...e.excludes.map(n=>`--exclude ${n}`),...e.no_git_ignore?["--no-git-ignore"]:[]];return t.length===0?"none":t.join(" ")}function at({deterministic:e,agent:t}){return[...e?[`Scan directories: ${e.document.coverage.scan_directories.map(({directory:n})=>n).join(", ")}`,`Scan scope: ${je(e.document.coverage.scope)}`]:[],...t?[`Scope reported by the agent: ${je(t.document.scope)}`]:[]]}function ut(e,t,n){let i=Ye[e];return t?{name:i,updated:Fe(t.generated_at,n),engine:t.engine.version}:{name:i,updated:"not found"}}function Fe(e,t){let n=Date.parse(e);return Number.isNaN(n)?"unknown":P(new Date(n),t)}function lt(e,t,n,i,o){let r={command:ie(o.scan)};if(!n)return[["Run",r,"or have your coding agent run it."]];let c=[];if(t.withFindings>0){let a=["Fix the issues, then run",r,"again."];e.sources.agent===null?c.push(a,"For a deeper review, have your agent run the same command and record its findings."):i>0?c.push(a):c.push([...a,"To refresh agent findings, have your agent run the command and record its findings."])}return i>0?c.push(["Agent results are older than the deterministic results. Have your coding agent run",r,"and record its findings again to refresh them."]):t.withFindings===0&&e.sources.agent===null&&c.push(["For a deeper review, have your coding agent run",r,{char:"."}]),c}function dt(e){let t=[];return e.filterLine&&t.push({body:{subdued:e.filterLine}}),e.checksWithFindings.length>0&&t.push({title:"Checks with findings",body:{tabularData:e.checksWithFindings.map(n=>[n.severity,n.id,n.counts]),firstColumnSubdued:!0}}),e.otherChecks.length>0&&t.push({title:"Other checks",body:e.otherChecks.join(`
1
+ import{a as Y}from"./chunk-V75WUEFU.js";import{a as u,b as le,c as de}from"./chunk-HB3MJYBK.js";import{a as re}from"./chunk-CKVVJ4XO.js";import{b as ue}from"./chunk-LWMKZJ4M.js";import{D as te,F as ne,J as se,M as ie,O as p,P as j,R as y,S as $,T as R,U as S,V as b,W as oe,Y as C,Z as ce,_ as ae,a as V,d as A,k as l,l as X,m,n as Q,o as _,q as Z,t as ee}from"./chunk-MNWT2SQO.js";import{b as G}from"./chunk-OLKLHVHA.js";import{b as q,c as J}from"./chunk-5AWELO3D.js";import{A as B,B as M,C as H,z as U}from"./chunk-V654BMS7.js";import{a as W}from"./chunk-BN7ZXAZJ.js";import{h as K}from"./chunk-J7BTC45S.js";import{ga as P,wb as z}from"./chunk-RIG66DIQ.js";import{b as s,c as g,d as O}from"./chunk-FZCGRIOM.js";import{b as Be}from"./chunk-YTUUU33R.js";import{e as Ue,g as d}from"./chunk-VKWPEFWQ.js";d();d();var Me={resolveSelection:ne,loadResults:ue,recordMetadata:re};function He(e,t){let n=t.checkIds.length>0?{checkIds:t.checkIds}:null,i=e.sources.deterministic!==null||e.sources.agent!==null;n&&i&&Ge(n.checkIds,e.checks);let o=n?e.checks.filter(r=>n.checkIds.includes(r.id)):e.checks;return{resultsDirectory:t.resultsDirectory,sources:e.sources,allChecks:e.checks,checks:o,filter:n,scopeDiffers:Ke(e.sources),blocking:{level:t.blocking,blockedChecks:ze(o,t.blocking)}}}function Ke({deterministic:e,agent:t}){return!e||!t?!1:JSON.stringify(e.document.coverage.scope)!==JSON.stringify(t.document.scope)}function ze(e,t){return t==="none"?0:e.filter(n=>l(n).length>0&&A[n.severity]>=A[t]).length}function Ge(e,t){let n=new Set(t.map(c=>c.id)),i=e.filter(c=>!n.has(c));if(i.length===0)return;let o=i.length===1?"check ID":"check IDs",r=new K(`Unknown ${o}: ${i.join(", ")}.`,"Pass --check-id with one of the checks in the results files.",[],[{title:"Available check IDs",body:{list:{items:t.map(c=>c.id)}}}]);throw r.code="unknown-check-id",r.details={checkIds:i},r}async function x(e,t=Me){let n=await t.resolveSelection({path:e.directory,config:e.configName,clientId:e.clientId,withoutAppConfig:e.withoutAppConfig,allowPrompts:!1,validateClientIdFlag:!0}),i=await t.loadResults(n,e.directory),o=He(i,{resultsDirectory:ee(n.appDirectory,te(n)).resultsDirectory,checkIds:e.checkIds,blocking:e.blocking});if(o.sources.deterministic!==null||o.sources.agent!==null){let r=o.allChecks.reduce((c,a)=>c+l(a).length,0);await t.recordMetadata({num_security_findings:r})}return{selection:n,result:o,commands:se(n,e.directory,i.sources.deterministic?.document.coverage.scope)}}d();d();var F=()=>g.describe(`${g.description}`),ye=()=>s.enum(["executed","not-applicable","unresolved"]),pe=()=>s.enum(["union","prefer-agent"]),T=s.object({filePath:p().describe("The absolute path of the file."),line:s.number().int().positive().nullable().describe("The one-based line, or null for the whole file."),column:s.number().int().positive().nullable().describe("The one-based column, or null when none is recorded.")}).strict().describe("A place in a file."),Se=s.object({location:T,quote:s.string().min(1).nullable().describe("The quoted source, redacted, or null when none is recorded.")}).strict().describe("Source that supports a finding."),ve=()=>({disposition:s.enum(["active","suppressed","superseded"]).describe("Whether the finding counts: active; suppressed by the agent; or superseded, a deterministic finding that a check's prefer-agent agent result replaces."),location:T,message:s.string().describe("What the finding is, redacted."),snippet:s.string().min(1).nullable().describe("The flagged code, redacted, or null when none is recorded."),evidence:s.array(Se)}),ke=s.object({source:s.literal("deterministic"),...ve(),fix:s.object({description:s.string(),guide:s.string().min(1).nullable().describe("A guide to the fix, or null when none is recorded."),automated:s.boolean().describe("Whether the fix can be applied automatically.")}).strict().nullable().describe("How to fix the finding, or null when none is recorded.")}).strict().describe("A finding from deterministic-findings.json."),we=s.object({source:s.literal("agent"),...ve(),confidence:s.enum(["high","medium","low"]).nullable().describe("The agent's confidence, or null when it didn't report one."),reasoning:s.string().min(1).nullable().describe("The agent's reasoning, redacted, or null when none is recorded."),suppression:s.object({justification:s.string()}).strict().nullable().describe("Why the agent suppressed the finding, or null when it is not suppressed.")}).strict().describe("A finding from agent-findings.json."),Ae=s.discriminatedUnion("source",[ke,we]),D=s.object({version:s.number().int().positive().describe("The check version: the catalog version for deterministic results, the one the agent claimed for agent results."),status:ye().describe("The source's own status for the check."),reason:s.object({code:s.string().describe("A short code. Agent codes are free-form. Deterministic codes: capability_absent, no_relevant_files, unsupported_framework, unsupported_language, parser_unavailable, agent_investigation_required, input_rejected."),message:s.string()}).strict().nullable().describe("Why the check is unresolved or not applicable, or null when none is recorded."),analysisMode:s.enum(["regex","structured-config","ast"]).nullable().describe("How the deterministic check analyzed the files. Null for agent results."),generatedAt:F().nullable().describe("When the source recorded the check, or null when the recorded time is not a valid instant.")}).strict().describe("One source's own result for a check."),he=s.object({id:s.string().describe("The check ID, such as CREDENTIAL_LOG_LEAKAGE."),title:s.string(),severity:s.enum(["high","medium","low"]),description:s.string(),guide:s.string().min(1).nullable().describe("A guide to the check, or null when none is recorded."),docsUrl:s.string().url().nullable().describe("The check's page on shopify.dev, or null when the results files predate it."),precedence:pe().describe("How the sources combine: union keeps both sources' findings; prefer-agent lets the agent result replace the deterministic one."),appliedPrecedence:pe().describe("The precedence that applied: union when a prefer-agent agent result is older than the deterministic one."),status:ye().describe("The combined status. Under union, executed when either source executed the check."),bySource:s.object({deterministic:D.nullable(),agent:D.nullable()}).strict().describe("Each source's own result, or null when that source didn't record the check."),findings:s.array(Ae).describe("Every finding of both sources, including suppressed and superseded ones, whatever --verbose. Sorted by file, line, then source.")}).strict().describe("One check, combined from both results files."),fe=s.object({framework:s.enum(["react-router","none","unknown","mixed"]),surface:s.enum(["react-router","theme-app-extension","config-only","unknown","mixed"]),languages:s.array(s.object({name:s.string().describe("The language, such as typescript."),support:s.enum(["supported","unsupported"]).describe("Whether the deterministic checks analyze it."),files:s.array(s.object({path:p()}).strict())}).strict())}).strict().describe("What the latest check detected in the app."),ge=s.object({filesScanned:s.number().int().nonnegative().describe("The number of files scanned."),filesSkipped:s.array(s.object({path:p(),reason:s.enum(["too-large","unreadable"]),sizeBytes:s.number().int().nonnegative().nullable().describe("The file size, or null when unknown."),detail:s.string().min(1).nullable().describe("Why the file was unreadable, or null when none is recorded.")}).strict()),gaps:s.array(s.object({code:s.enum(["skipped-file","unsupported-framework","unsupported-language","unresolved-check"]),message:s.string(),checkId:s.string().nullable().describe("The check that the gap concerns, or null."),filePath:p().nullable().describe("The file that the gap concerns, or null.")}).strict()),scanDirectories:s.array($)}).strict().describe("What the latest check covered."),me=s.object({path:p().describe("The absolute path of deterministic-findings.json."),generatedAt:F().nullable().describe("When check wrote the file, or null when the recorded time is not a valid instant."),engine:s.object({name:s.string(),version:s.string(),ruleset:s.string()}).strict(),scope:y}).strict().describe("deterministic-findings.json, which check writes, with the scope of the scan."),be=s.object({path:p().describe("The absolute path of agent-findings.json."),generatedAt:F().nullable().describe("When record wrote the file, or null when the recorded time is not a valid instant."),engine:s.object({name:s.string(),version:s.string()}).strict(),scope:y}).strict().describe("agent-findings.json, which record writes, with the scope that the agent reported."),v=W({name:"AppSecurityReviewResult",schema:s.object({status:s.literal("success"),valid:s.boolean().describe("Whether --blocking passed: no check in checks has an active finding and a severity at or above the level. Unresolved checks never fail it, and --blocking none always passes."),app:j,resultsDirectory:p().describe("The absolute path of the results directory."),resultsFiles:s.object({deterministic:me.nullable(),agent:be.nullable()}).strict().describe("The results files that the review combines. Null when a file does not exist."),detection:fe.nullable().describe("What the latest check detected in the app, or null without deterministic-findings.json."),coverage:ge.nullable().describe("What the latest check covered, or null without deterministic-findings.json."),scopeDiffers:s.boolean().describe("Whether the agent reported another scope than the latest scan used. False unless both results files exist."),checks:s.array(he).describe("The checks after --check-id, most severe first, then by ID. Empty when no results file exists."),blocking:R}).strict().describe("The combined results of the app security check."),definitions:{AppSecurityApp:j,AppSecurityScope:y,AppSecurityScanDirectory:$,AppSecurityBlocking:R,AppSecurityDeterministicResultsFile:me,AppSecurityAgentResultsFile:be,AppSecurityDetection:fe,AppSecurityCoverage:ge,AppSecurityCheck:he,AppSecuritySourceResult:D,AppSecurityFinding:Ae,AppSecurityDeterministicFinding:ke,AppSecurityAgentFinding:we,AppSecurityLocation:T,AppSecurityEvidence:Se}});d();var Re={high:"High",medium:"Medium",low:"Low"},qe={executed:"passed",not_applicable:"not applicable",unresolved:"unresolved"},Je={executed:"executed",not_applicable:"not applicable",unresolved:"unresolved"},k=["deterministic","agent"],Ye={deterministic:"deterministic-findings.json",agent:"agent-findings.json"},_e=3,Ve="Agent findings were recorded for a different scope than the latest scan.",Ce="agent result stale",Xe="The agent result is older than the deterministic result, so both are shown.",Qe={info:U,success:B,warning:M,error:H};function xe(e){for(let t of Ze(e))Qe[t.type](t.options)}function Ze(e){let{checks:t}=e.result,n=t.filter(r=>r.status==="unresolved"&&l(r).length===0),i=t.filter(r=>r.status!=="unresolved"&&l(r).length===0),o=t.filter(r=>l(r).length>0);return[...n.length>0?[ht(n,e.verbose)]:[],...i.length>0?[ft(i,e.verbose)]:[],...o.map(r=>mt(r,e.verbose,e.now)),dt(et(e))]}function et(e){let{result:t}=e,n=t.sources.deterministic!==null||t.sources.agent!==null,i=_(t.checks),o=t.sources.deterministic?.document,r=t.blocking.blockedChecks>0,c=t.checks.filter(m).length;return{type:nt(t.checks,i,n),headline:st(t.checks,i,n),...t.filter&&n?{filterLine:`Showing ${t.checks.length} of ${t.allChecks.length} checks (--check-id).`}:{},checksWithFindings:t.checks.filter(a=>l(a).length>0).map(it),otherChecks:ot(i),...c>0?{staleAgentResults:tt(c)}:{},...o?{coverage:ct(o)}:{},scopeLines:at(t.sources),...t.scopeDiffers?{scopeNote:Ve}:{},resultsFiles:{directory:t.resultsDirectory,rows:k.map(a=>ut(a,t.sources[a]?.document,e.now))},...r?{blocking:`${u(t.blocking.blockedChecks,"check")} at or above ${t.blocking.level} (--blocking ${t.blocking.level}).`}:{nextSteps:lt(t,i,n,c,e.commands)}}}function tt(e){let t=e===1?"shows":"show";return`${u(e,"check")} ${t} both sources because the agent results are older than the deterministic results.`}function nt(e,t,n){return n?e.some(i=>i.severity==="high"&&l(i).length>0)?"error":t.withFindings>0||t.unresolved>0?"warning":"success":"info"}function st(e,t,n){if(!n)return"No app security check results to review.";if(t.withFindings===0)return`No findings in ${u(e.length,"check")}.`;let i=t.unresolved>0?` ${u(t.unresolved,"check")} unresolved.`:"";return`${le(t)}.${i}`}function it(e){return{severity:Re[e.severity],id:e.id,counts:rt(e)}}function rt(e){let t=l(e);return k.map(n=>[n,t.filter(i=>i.source===n).length]).filter(([,n])=>n>0).map(([n,i])=>`${i} ${n}`).join(", ")}function ot(e){return[w(de(e)),De(e)].filter(t=>t!=="")}function De(e){return w([e.suppressed>0?`${u(e.suppressed,"finding")} suppressed`:void 0,e.superseded>0?`${u(e.superseded,"finding")} superseded`:void 0])}function E(e){return De(_([e]))}function w(e){return e.filter(t=>t!==void 0).join(" \xB7 ")}function ct(e){let t=e.coverage.files_skipped,{too_large:n,unreadable:i}=Z(t),o=[n>0?`${n} too large`:void 0,i>0?`${i} unreadable`:void 0].filter(h=>h!==void 0),r=t.length===0?"none skipped":`${t.length} skipped (${o.join(", ")})`,c=e.detection.languages.filter(h=>h.support==="unsupported"),a=c.length===0?"":` Unsupported ${c.length===1?"language":"languages"}: ${c.map(h=>`${h.name} (${u(h.files.length,"file")})`).join(", ")}.`;return`Deterministic coverage: ${u(e.coverage.files_scanned,"file")} scanned, ${r}.${a}`}function je(e){let t=[...e.include_dirs.map(n=>`--include-dir ${n}`),...e.excludes.map(n=>`--exclude ${n}`),...e.no_git_ignore?["--no-git-ignore"]:[]];return t.length===0?"none":t.join(" ")}function at({deterministic:e,agent:t}){return[...e?[`Scan directories: ${e.document.coverage.scan_directories.map(({directory:n})=>n).join(", ")}`,`Scan scope: ${je(e.document.coverage.scope)}`]:[],...t?[`Scope reported by the agent: ${je(t.document.scope)}`]:[]]}function ut(e,t,n){let i=Ye[e];return t?{name:i,updated:Fe(t.generated_at,n),engine:t.engine.version}:{name:i,updated:"not found"}}function Fe(e,t){let n=Date.parse(e);return Number.isNaN(n)?"unknown":P(new Date(n),t)}function lt(e,t,n,i,o){let r={command:ie(o.scan)};if(!n)return[["Run",r,"or have your coding agent run it."]];let c=[];if(t.withFindings>0){let a=["Fix the issues, then run",r,"again."];e.sources.agent===null?c.push(a,"For a deeper review, have your agent run the same command and record its findings."):i>0?c.push(a):c.push([...a,"To refresh agent findings, have your agent run the command and record its findings."])}return i>0?c.push(["Agent results are older than the deterministic results. Have your coding agent run",r,"and record its findings again to refresh them."]):t.withFindings===0&&e.sources.agent===null&&c.push(["For a deeper review, have your coding agent run",r,{char:"."}]),c}function dt(e){let t=[];return e.filterLine&&t.push({body:{subdued:e.filterLine}}),e.checksWithFindings.length>0&&t.push({title:"Checks with findings",body:{tabularData:e.checksWithFindings.map(n=>[n.severity,n.id,n.counts]),firstColumnSubdued:!0}}),e.otherChecks.length>0&&t.push({title:"Other checks",body:e.otherChecks.join(`
2
2
  `)}),e.staleAgentResults&&t.push({body:e.staleAgentResults}),e.coverage&&t.push({body:{subdued:e.coverage}}),e.scopeLines.length>0&&t.push({body:{subdued:e.scopeLines.join(`
3
3
  `)}}),e.scopeNote&&t.push({body:e.scopeNote}),t.push({title:`Results files in ${e.resultsFiles.directory}`,body:{tabularData:[["",{subdued:"Updated"},{subdued:"Engine"}],...e.resultsFiles.rows.map(pt)]}}),e.blocking===void 0?e.nextSteps.length>0&&t.push({title:"Next steps",body:{list:{items:e.nextSteps}}}):t.push({title:"Blocking",body:e.blocking}),{type:e.type,options:{headline:e.headline,customSections:t}}}function pt(e){return e.engine===void 0?[e.name,{subdued:e.updated}]:[e.name,e.updated,e.engine]}function ht(e,t){return{type:"warning",options:{headline:`${u(e.length,"check")} unresolved.`,customSections:e.flatMap(n=>[{title:`${n.id} \xB7 ${n.title}`,body:{tabularData:Te(n,{withDispositions:!0}),firstColumnSubdued:!0}},...t?n.findings.map(i=>I(i,t,`${n.id} \xB7 `)):[]])}}}function ft(e,t){let n=e.filter(X).length,i=e.length-n;return{type:"info",options:{headline:[n>0?`${u(n,"check")} passed.`:void 0,i>0?`${u(i,"check")} not applicable.`:void 0].filter(r=>r!==void 0).join(" "),customSections:[{body:{tabularData:e.map(gt)}},...t?e.flatMap(r=>r.findings.map(c=>I(c,t,`${r.id} \xB7 `))):[]]}}}function gt(e){let t=E(e);return[e.id,w([qe[e.status],t===""?void 0:t,m(e)?Ce:void 0])]}function mt(e,t,n){let i=E(e),o=t?e.findings:l(e);return{type:e.severity==="high"?"error":"warning",options:{headline:`${Re[e.severity]} \xB7 ${e.id} \xB7 ${e.title}`,...i===""?{}:{body:{subdued:i}},...e.docs_url?{link:{label:`${e.id} on shopify.dev`,url:e.docs_url}}:{},customSections:[...bt(e,n),...o.map(r=>I(r,t))]}}}function bt(e,t){if(m(e))return[{body:{tabularData:k.flatMap(c=>{let a=e.by_source[c];return a?[[c,Ee(a),Fe(a.generated_at,t)]]:[]}),firstColumnSubdued:!0}},{body:{subdued:Xe}}];let{deterministic:n,agent:i}=e.by_source;return n!==null&&i!==null&&n.status!==i.status?[{body:{tabularData:Te(e,{withDispositions:!1}),firstColumnSubdued:!0}}]:[]}function Te(e,t){let n=m(e),i=k.flatMap(r=>{let c=e.by_source[r];if(!c)return[];let a=n&&r==="agent"?Ce:void 0;return[[r,w([Ee(c),a])]]}),o=t.withDispositions?E(e):"";return o===""?i:[...i,["findings",o]]}function Ee(e){let t=Je[e.status];return e.reason?`${t} \u2014 ${e.reason.message}`:t}function I(e,t,n=""){let i=e.disposition==="active"?"":` (${e.disposition})`,o=[e.message];if(e.snippet&&o.push({subdued:`
4
4
  Code: ${e.snippet}`}),e.source==="deterministic"){e.fix&&o.push({subdued:`
@@ -1,4 +1,4 @@
1
- import{b as h}from"./chunk-ZQDDRIBA.js";import{Ba as g,ta as u,va as c}from"./chunk-LWCTKI4Z.js";import{c as f,p}from"./chunk-IWTNUJGY.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static description="Generate CLI commands documentation";static hidden=!0;async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
1
+ import{b as h}from"./chunk-OLKLHVHA.js";import{Ba as g,ta as u,va as c}from"./chunk-RIG66DIQ.js";import{c as f,p}from"./chunk-IWTNUJGY.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static description="Generate CLI commands documentation";static hidden=!0;async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
2
2
  * ${$}
3
3
  *${D}
4
4
  */