@shopify/cli 4.8.3 → 4.8.5

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 (308) hide show
  1. package/dist/analytics-4D5FCVMV.js +1 -0
  2. package/dist/{analytics-VCJLTHBI.js → analytics-XRYJEPWC.js} +1 -1
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-BR5CFKIN.js → chunk-2IZROVCY.js} +1 -1
  5. package/dist/{chunk-QIGFVVLB.js → chunk-2JM3XHTQ.js} +1 -1
  6. package/dist/{chunk-6NO44HAQ.js → chunk-2SOA4M4G.js} +1 -1
  7. package/dist/{chunk-ERMLZF2C.js → chunk-2WNF5BX4.js} +1 -1
  8. package/dist/{chunk-QCMGYBFD.js → chunk-2Z52XJQG.js} +1 -1
  9. package/dist/chunk-34PQ6LJC.js +1 -0
  10. package/dist/{chunk-LUSG2EHB.js → chunk-3CKUOG4B.js} +1 -1
  11. package/dist/{chunk-KLI5Z5RC.js → chunk-3NW372KT.js} +1 -1
  12. package/dist/{chunk-G52SCW6W.js → chunk-4DIR65KL.js} +1 -1
  13. package/dist/{chunk-QGYETVYA.js → chunk-4JLOCGTK.js} +1 -1
  14. package/dist/{chunk-RVEAQUUF.js → chunk-4JU7N2OF.js} +1 -1
  15. package/dist/{chunk-34YS3IUO.js → chunk-4NZ465W4.js} +1 -1
  16. package/dist/{chunk-DE3HBSUU.js → chunk-4SXHXMK6.js} +1 -1
  17. package/dist/{chunk-46ISGKTW.js → chunk-4UAJ6ULU.js} +1 -1
  18. package/dist/{chunk-HHWZV7CG.js → chunk-4UD2LW4O.js} +1 -1
  19. package/dist/{chunk-5YSO5HRH.js → chunk-4XE6E4DC.js} +1 -1
  20. package/dist/chunk-5EME57E6.js +7 -0
  21. package/dist/chunk-5GUXN2RU.js +6 -0
  22. package/dist/{chunk-C2AA5NVP.js → chunk-5N33O2RV.js} +1 -1
  23. package/dist/{chunk-2E3JUVRC.js → chunk-5PAPCPUM.js} +1 -1
  24. package/dist/{chunk-3D3IYIZ7.js → chunk-5U24BORP.js} +1 -1
  25. package/dist/{chunk-FYVFGKCJ.js → chunk-6ARAJULJ.js} +1 -1
  26. package/dist/{chunk-34EOYW4N.js → chunk-6ICRPFG4.js} +1 -1
  27. package/dist/{chunk-VCJ252CK.js → chunk-6IOVTFAH.js} +1 -1
  28. package/dist/{chunk-I44E5KLI.js → chunk-6LNTC6EK.js} +1 -1
  29. package/dist/{chunk-UU3VUYVX.js → chunk-6QU2BHVL.js} +1 -1
  30. package/dist/{chunk-HPGQGIPA.js → chunk-6QWLOSUQ.js} +1 -1
  31. package/dist/{chunk-ALDLKZJW.js → chunk-77KSMVIO.js} +1 -1
  32. package/dist/{chunk-N34YKDEK.js → chunk-7O2KMA4J.js} +1 -1
  33. package/dist/{chunk-HG63NM4M.js → chunk-7VJPQ52S.js} +1 -1
  34. package/dist/{chunk-ZRFOMQ2L.js → chunk-7ZEVVGCH.js} +1 -1
  35. package/dist/{chunk-M7YZJWY3.js → chunk-A2BZY6TE.js} +1 -1
  36. package/dist/{chunk-ETHKJFFN.js → chunk-A5FV7HOY.js} +1 -1
  37. package/dist/{chunk-5QCSJYJ4.js → chunk-ADS7BFDG.js} +1 -1
  38. package/dist/chunk-ADUMJRRY.js +1 -0
  39. package/dist/{chunk-SLZ6UMVV.js → chunk-AEPBX4GI.js} +1 -1
  40. package/dist/{chunk-6ZGCTTAD.js → chunk-AI4SPBPV.js} +1 -1
  41. package/dist/{chunk-AU2OGZBS.js → chunk-AKETXXYD.js} +1 -1
  42. package/dist/{chunk-HZASAGTU.js → chunk-ANOCIVJ3.js} +1 -1
  43. package/dist/{chunk-2AFQC53K.js → chunk-AOPEKBDL.js} +1 -1
  44. package/dist/{chunk-SZ2V5WT6.js → chunk-BMPCDXJR.js} +1 -1
  45. package/dist/{chunk-VTKZJ6MD.js → chunk-BPJRQOHO.js} +1 -1
  46. package/dist/{chunk-CRSAEF22.js → chunk-BU6LJZG7.js} +1 -1
  47. package/dist/{chunk-PYCGZSME.js → chunk-C4UCOQUP.js} +1 -1
  48. package/dist/{chunk-DGZCOTKZ.js → chunk-CAKGQWX4.js} +1 -1
  49. package/dist/{chunk-NKSLEPE2.js → chunk-CBGDD3ZG.js} +1 -1
  50. package/dist/chunk-CUGLV7UX.js +1 -0
  51. package/dist/{chunk-6QDI53VP.js → chunk-CWSQIPY5.js} +1 -1
  52. package/dist/{chunk-6TPUTSNR.js → chunk-D34ZSTCK.js} +1 -1
  53. package/dist/{chunk-4XZJKSDD.js → chunk-D6LV5CJL.js} +1 -1
  54. package/dist/{chunk-YKHDUKFK.js → chunk-DGMHUJV3.js} +1 -1
  55. package/dist/{chunk-BV4K7JX5.js → chunk-DKAWQBTI.js} +1 -1
  56. package/dist/{chunk-RM3XC2IX.js → chunk-DPMOLROM.js} +1 -1
  57. package/dist/{chunk-WE72MX7V.js → chunk-DV7FOLG4.js} +1 -1
  58. package/dist/{chunk-BO45JVQ3.js → chunk-EBBS7VG6.js} +1 -1
  59. package/dist/{chunk-E2IUEX5H.js → chunk-EJJPVVQ2.js} +1 -1
  60. package/dist/{chunk-7W7RGEII.js → chunk-ENUN2VSC.js} +1 -1
  61. package/dist/{chunk-TWTZLWO7.js → chunk-EX7Y3BEH.js} +1 -1
  62. package/dist/{chunk-AWTBC3MC.js → chunk-F33TYJM5.js} +3 -3
  63. package/dist/{chunk-ULIXS6H7.js → chunk-FDK3NDYQ.js} +1 -1
  64. package/dist/{chunk-UCP6UA7M.js → chunk-FLV6UQRA.js} +1 -1
  65. package/dist/{chunk-LOSBZZHU.js → chunk-FTC3BXSD.js} +1 -1
  66. package/dist/{chunk-B3GLHLAQ.js → chunk-FXBQKJTS.js} +1 -1
  67. package/dist/{chunk-YSOLGBU3.js → chunk-FXWNYGIW.js} +1 -1
  68. package/dist/{chunk-FKW62ZUV.js → chunk-G5272L77.js} +1 -1
  69. package/dist/{chunk-TNYPQ2UL.js → chunk-G5QSVBYP.js} +3 -3
  70. package/dist/{chunk-GKRGXRD4.js → chunk-G6SURO6V.js} +1 -1
  71. package/dist/{chunk-CM4QZI6V.js → chunk-G7C4LBG2.js} +1 -1
  72. package/dist/{chunk-CNDB4VEM.js → chunk-GBYDMHZ3.js} +1 -1
  73. package/dist/{chunk-RIWEYVNK.js → chunk-GCJAY2XJ.js} +1 -1
  74. package/dist/{chunk-2C27YWUC.js → chunk-GR6NR5QK.js} +1 -1
  75. package/dist/{chunk-6ECS5KDX.js → chunk-GUPUXFIP.js} +1 -1
  76. package/dist/{chunk-XCTRPBWM.js → chunk-GW7IEG4G.js} +1 -1
  77. package/dist/{chunk-SYJXM2RN.js → chunk-H5MENHJ2.js} +1 -1
  78. package/dist/{chunk-LZSDOB4O.js → chunk-H6TWXT6Q.js} +1 -1
  79. package/dist/chunk-HGFCNPSN.js +1 -0
  80. package/dist/{chunk-KIPKRAUB.js → chunk-HKHGJYRC.js} +1 -1
  81. package/dist/{chunk-CSNXCRPY.js → chunk-HS3VTFW3.js} +1 -1
  82. package/dist/{chunk-CYSB5AJJ.js → chunk-HSETBDXR.js} +1 -1
  83. package/dist/{chunk-U5APMZGT.js → chunk-I6DVGPJ7.js} +1 -1
  84. package/dist/{chunk-DDWJRJWW.js → chunk-IKNCFVVX.js} +1 -1
  85. package/dist/{chunk-BAUHOB76.js → chunk-IMIPD73V.js} +1 -1
  86. package/dist/{chunk-I7XKF22Z.js → chunk-IPN5OHBY.js} +1 -1
  87. package/dist/{chunk-T5I2LEDJ.js → chunk-IYFHBTJ2.js} +1 -1
  88. package/dist/{chunk-Z6MS5OET.js → chunk-J2HBEHCX.js} +1 -1
  89. package/dist/{chunk-3DXA7B3Y.js → chunk-J774336K.js} +1 -1
  90. package/dist/{chunk-VEXW766J.js → chunk-K3OI5VDE.js} +1 -1
  91. package/dist/{chunk-O4ZMMPEP.js → chunk-K5OTE6CX.js} +1 -1
  92. package/dist/{chunk-5QNB6464.js → chunk-KB43BSFM.js} +1 -1
  93. package/dist/{chunk-KSSPT7G5.js → chunk-KDMJ2BLO.js} +12 -12
  94. package/dist/{chunk-TBC5FH2W.js → chunk-KGRDHI2A.js} +1 -1
  95. package/dist/{chunk-NS7QRCJF.js → chunk-KHRZFJHM.js} +1 -1
  96. package/dist/{chunk-SUQF2LM7.js → chunk-KNCYAIJ2.js} +1 -1
  97. package/dist/{chunk-IAURXPUJ.js → chunk-KYNXMDFU.js} +5 -5
  98. package/dist/{chunk-AURREHRU.js → chunk-L7CQQML6.js} +1 -1
  99. package/dist/{chunk-JKWKFDP7.js → chunk-LCVDLQEZ.js} +1 -1
  100. package/dist/{chunk-F4S4ITHP.js → chunk-LZZAD3FW.js} +1 -1
  101. package/dist/{chunk-HLLMMIIM.js → chunk-M2M3I63K.js} +1 -1
  102. package/dist/chunk-MFP63IUM.js +272 -0
  103. package/dist/{chunk-AHJT2Z7G.js → chunk-MMHTYLTG.js} +1 -1
  104. package/dist/{chunk-3U7O3PMX.js → chunk-MNYKIPG7.js} +1 -1
  105. package/dist/{chunk-XSFF6KEB.js → chunk-MVJSQT7V.js} +1 -1
  106. package/dist/{chunk-E767ITG2.js → chunk-NAQ7KT6L.js} +1 -1
  107. package/dist/{chunk-O2YFSYDR.js → chunk-NDAUL4H4.js} +1 -1
  108. package/dist/{chunk-RAJX2CQP.js → chunk-NDFKLPHJ.js} +1 -1
  109. package/dist/{chunk-WKC5HDMY.js → chunk-NPATN7YS.js} +1 -1
  110. package/dist/{chunk-CF3PBTFV.js → chunk-NUKSSKYR.js} +1 -1
  111. package/dist/chunk-NVNDQQN6.js +8 -0
  112. package/dist/{chunk-3X7XO4LN.js → chunk-NZ3HLDJG.js} +1 -1
  113. package/dist/{chunk-OI3MNE72.js → chunk-NZE4C4OI.js} +1 -1
  114. package/dist/{chunk-777JJJYW.js → chunk-O452KNRL.js} +1 -1
  115. package/dist/{chunk-Z3JINOCM.js → chunk-OAEGTH4Q.js} +1 -1
  116. package/dist/{chunk-4CLJ6W23.js → chunk-OJSF3H2G.js} +20 -20
  117. package/dist/{chunk-OZJBUWZK.js → chunk-P5R6JZMT.js} +1 -1
  118. package/dist/{chunk-NG5FY45G.js → chunk-PDWJ2YH2.js} +1 -1
  119. package/dist/{chunk-PXAYMXQN.js → chunk-PIQI72DV.js} +1 -1
  120. package/dist/{chunk-RFORHGOR.js → chunk-PJ7L6NSD.js} +1 -1
  121. package/dist/{chunk-GO4KOSHA.js → chunk-PL7AJVTV.js} +1 -1
  122. package/dist/{chunk-PXM3ENVN.js → chunk-POOKYUTJ.js} +1 -1
  123. package/dist/{chunk-2NHLSPBM.js → chunk-PQDB3FUL.js} +1 -1
  124. package/dist/{chunk-T3IMDY72.js → chunk-PSSOCUUD.js} +3 -3
  125. package/dist/{chunk-MQM3PRVN.js → chunk-PU6KWWVK.js} +1 -1
  126. package/dist/{chunk-AQJEA33T.js → chunk-PWXGGZQB.js} +1 -1
  127. package/dist/{chunk-BU4EGAMH.js → chunk-QKUTVLRJ.js} +1 -1
  128. package/dist/{chunk-SVO2M3F5.js → chunk-QOOVB6RW.js} +1 -1
  129. package/dist/{chunk-4ZMWIIJV.js → chunk-R4TOHQH3.js} +98 -92
  130. package/dist/{chunk-UI75K6AX.js → chunk-RGJVJ22M.js} +1 -1
  131. package/dist/{chunk-TEHDOYO2.js → chunk-RSGIMVPN.js} +1 -1
  132. package/dist/{chunk-EIASA32Z.js → chunk-RU6J6QQF.js} +1 -1
  133. package/dist/{chunk-RPM2BFMN.js → chunk-RX63KGTK.js} +1 -1
  134. package/dist/{chunk-7YBBERPS.js → chunk-SOJHJ4QK.js} +1 -1
  135. package/dist/{chunk-NTV746FL.js → chunk-SYBKHTVU.js} +1 -1
  136. package/dist/{chunk-BIV3GWMB.js → chunk-T3B6KIPU.js} +1 -1
  137. package/dist/{chunk-F3FHSS7N.js → chunk-TIG7SSKB.js} +1 -1
  138. package/dist/{chunk-MF2PINFC.js → chunk-TTV2GWNE.js} +1 -1
  139. package/dist/{chunk-BR3GYG2H.js → chunk-TUWRPDTE.js} +1 -1
  140. package/dist/{chunk-PUGAY4JP.js → chunk-UBTHWHPB.js} +3 -3
  141. package/dist/chunk-UDWSRNKO.js +1 -0
  142. package/dist/{chunk-SASKWPDJ.js → chunk-UJSCQJLW.js} +1 -1
  143. package/dist/{chunk-XNMDPOYU.js → chunk-VE6BYYBP.js} +1 -1
  144. package/dist/{chunk-ZC7FWXYM.js → chunk-VIMFXQ3Q.js} +1 -1
  145. package/dist/{chunk-MPO2T5YQ.js → chunk-VPOAOUT4.js} +1 -1
  146. package/dist/{chunk-HEABWGTV.js → chunk-VVPIXC3W.js} +1 -1
  147. package/dist/chunk-W3BNL2Q5.js +1 -0
  148. package/dist/{chunk-YJCNZGPY.js → chunk-WAZL37JY.js} +1 -1
  149. package/dist/{chunk-MI5HPOXV.js → chunk-WDY5CK2T.js} +1 -1
  150. package/dist/{chunk-PZH4WAOO.js → chunk-WHXY372K.js} +1 -1
  151. package/dist/{chunk-XBL6HWDC.js → chunk-WHZKFG2B.js} +1 -1
  152. package/dist/{chunk-GK23CIPB.js → chunk-WKRX4FBZ.js} +1 -1
  153. package/dist/{chunk-PERAXNOY.js → chunk-WKTIQUQP.js} +2 -2
  154. package/dist/{chunk-T7BQYKKT.js → chunk-WLU7UG44.js} +1 -1
  155. package/dist/{chunk-EIEPBDNX.js → chunk-WM3GKSPE.js} +1 -1
  156. package/dist/{chunk-B52JFWYO.js → chunk-WNBRPWSB.js} +1 -1
  157. package/dist/{chunk-GSYVQPMP.js → chunk-WQOV3LQA.js} +1 -1
  158. package/dist/{chunk-J6BXYZRY.js → chunk-WWRLFLGM.js} +1 -1
  159. package/dist/{chunk-77QBDEU4.js → chunk-XOEBZR5C.js} +1 -1
  160. package/dist/{chunk-5VBEPL4S.js → chunk-XRWQ7AXY.js} +1 -1
  161. package/dist/{chunk-WXDINLQ6.js → chunk-YGSXN3YD.js} +1 -1
  162. package/dist/{chunk-EQ7HQXEK.js → chunk-YN5SVIOI.js} +1 -1
  163. package/dist/{chunk-56362WJR.js → chunk-YVB7ZPHR.js} +2 -2
  164. package/dist/{chunk-ASBTWQJO.js → chunk-Z4E2EXZV.js} +1 -1
  165. package/dist/{chunk-JGSHB34D.js → chunk-ZFA5DIJ3.js} +1 -1
  166. package/dist/{chunk-65DQFHSH.js → chunk-ZIAXZ5VG.js} +1 -1
  167. package/dist/{chunk-E6DIK7Z7.js → chunk-ZMD5TNU5.js} +1 -1
  168. package/dist/{chunk-ZBMPFLOH.js → chunk-ZMTTZXC4.js} +1 -1
  169. package/dist/{chunk-BQTD7UV2.js → chunk-ZZNGFCJ3.js} +1 -1
  170. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  171. package/dist/cli/commands/app/build.js +1 -1
  172. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  173. package/dist/cli/commands/app/bulk/execute.js +1 -1
  174. package/dist/cli/commands/app/bulk/status.js +1 -1
  175. package/dist/cli/commands/app/config/link.js +1 -1
  176. package/dist/cli/commands/app/config/pull.js +1 -1
  177. package/dist/cli/commands/app/config/use.js +1 -1
  178. package/dist/cli/commands/app/config/validate.js +1 -1
  179. package/dist/cli/commands/app/demo/watcher.js +1 -1
  180. package/dist/cli/commands/app/deploy.js +1 -1
  181. package/dist/cli/commands/app/dev/clean.js +1 -1
  182. package/dist/cli/commands/app/dev.js +1 -1
  183. package/dist/cli/commands/app/doctor/instructions.js +1 -1
  184. package/dist/cli/commands/app/doctor.js +1 -1
  185. package/dist/cli/commands/app/env/pull.js +1 -1
  186. package/dist/cli/commands/app/env/show.js +1 -1
  187. package/dist/cli/commands/app/execute.js +1 -1
  188. package/dist/cli/commands/app/function/build.js +1 -1
  189. package/dist/cli/commands/app/function/info.js +1 -1
  190. package/dist/cli/commands/app/function/replay.js +1 -1
  191. package/dist/cli/commands/app/function/run.js +1 -1
  192. package/dist/cli/commands/app/function/schema.js +1 -1
  193. package/dist/cli/commands/app/function/typegen.js +1 -1
  194. package/dist/cli/commands/app/generate/extension.js +1 -1
  195. package/dist/cli/commands/app/graphiql.js +1 -1
  196. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  197. package/dist/cli/commands/app/import-extensions.js +1 -1
  198. package/dist/cli/commands/app/info.js +1 -1
  199. package/dist/cli/commands/app/init.js +1 -1
  200. package/dist/cli/commands/app/logs.js +1 -1
  201. package/dist/cli/commands/app/release.js +1 -1
  202. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  203. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  204. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  205. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  206. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  207. package/dist/cli/commands/app/versions/list.js +1 -1
  208. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  209. package/dist/cli/commands/auth/login.js +1 -1
  210. package/dist/cli/commands/auth/logout.js +1 -1
  211. package/dist/cli/commands/cache/clear.js +1 -1
  212. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  213. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  214. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  215. package/dist/cli/commands/debug/command-flags.js +1 -1
  216. package/dist/cli/commands/doc/fetch.js +1 -1
  217. package/dist/cli/commands/doc/search.js +1 -1
  218. package/dist/cli/commands/docs/generate.js +1 -1
  219. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  220. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  221. package/dist/cli/commands/help.js +1 -1
  222. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  223. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  224. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  225. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  226. package/dist/cli/commands/notifications/generate.js +1 -1
  227. package/dist/cli/commands/notifications/list.js +1 -1
  228. package/dist/cli/commands/organization/list.js +1 -1
  229. package/dist/cli/commands/search.js +1 -1
  230. package/dist/cli/commands/send-analytics.js +1 -1
  231. package/dist/cli/commands/theme/check.js +1 -1
  232. package/dist/cli/commands/theme/console.js +1 -1
  233. package/dist/cli/commands/theme/delete.js +1 -1
  234. package/dist/cli/commands/theme/dev.js +1 -1
  235. package/dist/cli/commands/theme/duplicate.js +1 -1
  236. package/dist/cli/commands/theme/info.js +1 -1
  237. package/dist/cli/commands/theme/init.js +1 -1
  238. package/dist/cli/commands/theme/language-server.js +1 -1
  239. package/dist/cli/commands/theme/list.js +1 -1
  240. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  241. package/dist/cli/commands/theme/open.js +1 -1
  242. package/dist/cli/commands/theme/package.js +1 -1
  243. package/dist/cli/commands/theme/preview.js +1 -1
  244. package/dist/cli/commands/theme/profile.js +1 -1
  245. package/dist/cli/commands/theme/publish.js +1 -1
  246. package/dist/cli/commands/theme/pull.js +1 -1
  247. package/dist/cli/commands/theme/push.js +1 -1
  248. package/dist/cli/commands/theme/rename.js +1 -1
  249. package/dist/cli/commands/theme/share.js +1 -1
  250. package/dist/cli/commands/upgrade.js +1 -1
  251. package/dist/cli/commands/version.js +1 -1
  252. package/dist/command-registry.js +1 -1
  253. package/dist/{conf-store-F4NCJPWK.js → conf-store-5UUKEHZV.js} +1 -1
  254. package/dist/configs/all.yml +8 -5
  255. package/dist/configs/recommended.yml +8 -5
  256. package/dist/data/objects.json +487 -75
  257. package/dist/data/shopify_system_translations.json +8 -7
  258. package/dist/data/tags.json +23 -0
  259. package/dist/{deprecations-PX5KIFDO.js → deprecations-DVGWC3RL.js} +1 -1
  260. package/dist/dist-CN7N5IOM.js +1 -0
  261. package/dist/dist-Q5U4WGYG.js +1 -0
  262. package/dist/{environments-TLO674UK.js → environments-M4CFP4XF.js} +1 -1
  263. package/dist/{error-YLDXWEC5.js → error-ZES2RSN7.js} +1 -1
  264. package/dist/error-handler-CRTU67VJ.js +1 -0
  265. package/dist/{fs-CDN2NZJC.js → fs-GELMKEWX.js} +1 -1
  266. package/dist/hooks/did-you-mean.js +1 -1
  267. package/dist/hooks/hydrogen-init.js +1 -1
  268. package/dist/hooks/postrun.js +1 -1
  269. package/dist/hooks/prerun.js +1 -1
  270. package/dist/hooks/public-metadata.js +1 -1
  271. package/dist/hooks/sensitive-metadata.js +1 -1
  272. package/dist/hooks/tunnel-provider.js +1 -1
  273. package/dist/hooks/tunnel-start.js +1 -1
  274. package/dist/index.js +1 -1
  275. package/dist/{is-global-KBYTYD3Y.js → is-global-X2QNCXXB.js} +1 -1
  276. package/dist/{local-IBYCFEVA.js → local-HMFFXIE3.js} +1 -1
  277. package/dist/{metadata-LOCKHSUF.js → metadata-SXJZZMCI.js} +1 -1
  278. package/dist/{node-package-manager-ESOHDRPJ.js → node-package-manager-2D2CIFTG.js} +1 -1
  279. package/dist/notifications-system-WH6MAXEN.js +1 -0
  280. package/dist/os-PY42WAOB.js +1 -0
  281. package/dist/{output-OAORC6TH.js → output-MSTNB7GI.js} +1 -1
  282. package/dist/{system-VNXEM5E7.js → system-7XRI63YJ.js} +1 -1
  283. package/dist/tsconfig.tsbuildinfo +1 -1
  284. package/dist/{ui-CIZHMGKK.js → ui-77QYNWJB.js} +1 -1
  285. package/dist/upgrade-UVPNOKKK.js +1 -0
  286. package/dist/version-DXGPL73I.js +1 -0
  287. package/dist/{version-JJYR4NOL.js → version-XMVQO6PD.js} +1 -1
  288. package/dist/{workerd-JWZNKSHU.js → workerd-SOWC66FA.js} +1 -1
  289. package/oclif.manifest.json +1 -1
  290. package/package.json +7 -7
  291. package/dist/analytics-AL5WLCEC.js +0 -1
  292. package/dist/chunk-3CFHLIBD.js +0 -7
  293. package/dist/chunk-4EHFK2OI.js +0 -1
  294. package/dist/chunk-7YDT5AOW.js +0 -8
  295. package/dist/chunk-BJ3JF35I.js +0 -6
  296. package/dist/chunk-ENEPD4BS.js +0 -1
  297. package/dist/chunk-EWKIFVW3.js +0 -273
  298. package/dist/chunk-NNCLTG6A.js +0 -1
  299. package/dist/chunk-OSMT4BVT.js +0 -1
  300. package/dist/chunk-PJH3JJEQ.js +0 -1
  301. package/dist/chunk-RV4UQZ2W.js +0 -1
  302. package/dist/dist-WO24PYXH.js +0 -1
  303. package/dist/dist-X7YIFLSP.js +0 -1
  304. package/dist/error-handler-SY45FR6A.js +0 -1
  305. package/dist/notifications-system-EMCOAF3T.js +0 -1
  306. package/dist/os-XLJNYIZF.js +0 -1
  307. package/dist/upgrade-AIZVY3E5.js +0 -1
  308. package/dist/version-CNIDTUMV.js +0 -1
@@ -1 +1 @@
1
- import{b as o,c as l,f as m}from"./chunk-NKSLEPE2.js";import{A as a,S as h}from"./chunk-T3IMDY72.js";import{Ta as f,na as c}from"./chunk-TNYPQ2UL.js";import{d as s}from"./chunk-773TIA5M.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();async function d(n){if(n.features.includes("function")&&n.isJavaScript){let e=await m(n);return o(e.functionRunner)}return o()}function p(n){return n.configuration.build?.path?s(n.directory,n.configuration.build.path):n.outputPath}async function y(n,e){try{if(!await f(e))return;let i=c(e);if(!WebAssembly.validate(i))return;let t=new WebAssembly.Module(i);if(WebAssembly.Module.customSections(t,"name").length>0)return;if(n.isJavaScript){a({headline:"The profile won't contain names for your function.",body:"JavaScript functions built with Javy don't include a WebAssembly function name section, regardless of the wasm_opt setting. Function names will appear as <unknown> in the profile."});return}a({headline:"The profile won't contain names for your function.",body:["The built WebAssembly module doesn't contain a function name section. The default wasm-opt step removes this section, and the function compiler can also omit it. To preserve function names, set ",{userInput:"wasm_opt = false"}," under ",{userInput:"[extensions.build]"}," in shopify.extension.toml, configure the compiler to emit function names, and rebuild the function."]})}catch{}}async function W(n){let e=n.functionExtension,i=await d(e);await l(i);let t=[];n.inputPath&&t.push("--input",n.inputPath),n.export&&t.push("--export",n.export),n.json&&t.push("--json"),n.profile&&t.push("--profile"),n.schemaPath&&n.queryPath&&(t.push("--schema-path",n.schemaPath),t.push("--query-path",n.queryPath));let r=p(e);return n.profile&&await y(e,r),h(i.path,["-f",r,...t],{cwd:n.functionExtension.directory,stdin:n.stdin,stdout:n.stdout??"inherit",stderr:n.stderr??"inherit",input:n.input})}export{W as a};
1
+ import{b as o,c as l,f as m}from"./chunk-CBGDD3ZG.js";import{A as a,S as h}from"./chunk-PSSOCUUD.js";import{Ta as f,na as c}from"./chunk-G5QSVBYP.js";import{d as s}from"./chunk-773TIA5M.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();async function d(n){if(n.features.includes("function")&&n.isJavaScript){let e=await m(n);return o(e.functionRunner)}return o()}function p(n){return n.configuration.build?.path?s(n.directory,n.configuration.build.path):n.outputPath}async function y(n,e){try{if(!await f(e))return;let i=c(e);if(!WebAssembly.validate(i))return;let t=new WebAssembly.Module(i);if(WebAssembly.Module.customSections(t,"name").length>0)return;if(n.isJavaScript){a({headline:"The profile won't contain names for your function.",body:"JavaScript functions built with Javy don't include a WebAssembly function name section, regardless of the wasm_opt setting. Function names will appear as <unknown> in the profile."});return}a({headline:"The profile won't contain names for your function.",body:["The built WebAssembly module doesn't contain a function name section. The default wasm-opt step removes this section, and the function compiler can also omit it. To preserve function names, set ",{userInput:"wasm_opt = false"}," under ",{userInput:"[extensions.build]"}," in shopify.extension.toml, configure the compiler to emit function names, and rebuild the function."]})}catch{}}async function W(n){let e=n.functionExtension,i=await d(e);await l(i);let t=[];n.inputPath&&t.push("--input",n.inputPath),n.export&&t.push("--export",n.export),n.json&&t.push("--json"),n.profile&&t.push("--profile"),n.schemaPath&&n.queryPath&&(t.push("--schema-path",n.schemaPath),t.push("--query-path",n.queryPath));let r=p(e);return n.profile&&await y(e,r),h(i.path,["-f",r,...t],{cwd:n.functionExtension.directory,stdin:n.stdin,stdout:n.stdout??"inherit",stderr:n.stderr??"inherit",input:n.input})}export{W as a};
@@ -1 +1 @@
1
- import{a as b}from"./chunk-MQM3PRVN.js";import{b as F,c as P,d as w}from"./chunk-3U7O3PMX.js";import{a as y}from"./chunk-ENEPD4BS.js";import{a as m}from"./chunk-RVEAQUUF.js";import{xa as x}from"./chunk-NKSLEPE2.js";import{b as d,c as h}from"./chunk-BR5CFKIN.js";import{F as g,M as l}from"./chunk-T3IMDY72.js";import{a as _}from"./chunk-CTNBSUVU.js";import{Ab as n}from"./chunk-TNYPQ2UL.js";import{e as U,g as u}from"./chunk-VKWPEFWQ.js";u();var i=U(_(),1);var a="_start",s=class v extends y{static summary="Run a function locally for testing.";static descriptionWithMarkdown="Runs the function from your current directory for [testing purposes](https://shopify.dev/docs/apps/functions/testing-and-debugging). To learn how you can monitor and debug functions when errors occur, refer to [Shopify Functions error handling](https://shopify.dev/docs/api/functions/errors).";static description=this.descriptionWithoutMarkdown();static flags={...d,...m,...F,...h,input:i.Flags.string({char:"i",description:"The input JSON to pass to the function. If omitted, standard input is used.",env:"SHOPIFY_FLAG_INPUT"}),export:i.Flags.string({char:"e",hidden:!1,description:"Name of the WebAssembly export to invoke.",env:"SHOPIFY_FLAG_EXPORT"}),profile:i.Flags.boolean({description:"Generate a WebAssembly performance profile for the function run. The profile can be viewed in Speedscope.",env:"SHOPIFY_FLAG_PROFILE"})};async run(){let{flags:t}=await this.parse(v),o=a,{app:p}=await x({directory:t.path,userProvidedConfigName:t.config}),e=await P(p,t.path);if(t.export!==void 0)n(`Using export ${t.export} from the --export flag.`),o=t.export;else if(e.configuration.targeting!==void 0&&e.configuration.targeting.length>0){let r=e.configuration.targeting;if(r.length>1&&l({})){let O=r.map(f=>({label:f.target,value:f.export||a}));o=await g({message:"Which target would you like to execute?",choices:O})}else o=r?.[0]?.export||a,n(`Using export '${o}'. Use the --export flag or an interactive terminal to select a different export.`)}else n(`No targeting information found. Using the default export '${o}'. Use the --export flag or an interactive terminal to select a different export.`);let c=e?.configuration.targeting?.[0]?.input_query,T=c&&`${e?.directory}/${c}`,A=await w(e,t.path,t["client-id"],t.reset,t.config);return await b({functionExtension:e,json:t.json,inputPath:t.input,export:o,stdin:"inherit",schemaPath:A,queryPath:T,profile:t.profile}),{app:p}}};export{s as a};
1
+ import{a as b}from"./chunk-PU6KWWVK.js";import{b as F,c as P,d as w}from"./chunk-MNYKIPG7.js";import{a as y}from"./chunk-CUGLV7UX.js";import{a as m}from"./chunk-4JU7N2OF.js";import{xa as x}from"./chunk-CBGDD3ZG.js";import{b as d,c as h}from"./chunk-2IZROVCY.js";import{F as g,M as l}from"./chunk-PSSOCUUD.js";import{a as _}from"./chunk-CTNBSUVU.js";import{Ab as n}from"./chunk-G5QSVBYP.js";import{e as U,g as u}from"./chunk-VKWPEFWQ.js";u();var i=U(_(),1);var a="_start",s=class v extends y{static summary="Run a function locally for testing.";static descriptionWithMarkdown="Runs the function from your current directory for [testing purposes](https://shopify.dev/docs/apps/functions/testing-and-debugging). To learn how you can monitor and debug functions when errors occur, refer to [Shopify Functions error handling](https://shopify.dev/docs/api/functions/errors).";static description=this.descriptionWithoutMarkdown();static flags={...d,...m,...F,...h,input:i.Flags.string({char:"i",description:"The input JSON to pass to the function. If omitted, standard input is used.",env:"SHOPIFY_FLAG_INPUT"}),export:i.Flags.string({char:"e",hidden:!1,description:"Name of the WebAssembly export to invoke.",env:"SHOPIFY_FLAG_EXPORT"}),profile:i.Flags.boolean({description:"Generate a WebAssembly performance profile for the function run. The profile can be viewed in Speedscope.",env:"SHOPIFY_FLAG_PROFILE"})};async run(){let{flags:t}=await this.parse(v),o=a,{app:p}=await x({directory:t.path,userProvidedConfigName:t.config}),e=await P(p,t.path);if(t.export!==void 0)n(`Using export ${t.export} from the --export flag.`),o=t.export;else if(e.configuration.targeting!==void 0&&e.configuration.targeting.length>0){let r=e.configuration.targeting;if(r.length>1&&l({})){let O=r.map(f=>({label:f.target,value:f.export||a}));o=await g({message:"Which target would you like to execute?",choices:O})}else o=r?.[0]?.export||a,n(`Using export '${o}'. Use the --export flag or an interactive terminal to select a different export.`)}else n(`No targeting information found. Using the default export '${o}'. Use the --export flag or an interactive terminal to select a different export.`);let c=e?.configuration.targeting?.[0]?.input_query,T=c&&`${e?.directory}/${c}`,A=await w(e,t.path,t["client-id"],t.reset,t.config);return await b({functionExtension:e,json:t.json,inputPath:t.input,export:o,stdin:"inherit",schemaPath:A,queryPath:T,profile:t.profile}),{app:p}}};export{s as a};
@@ -1,4 +1,4 @@
1
- import{a as M}from"./chunk-6NO44HAQ.js";import{a as E}from"./chunk-NNCLTG6A.js";import{a as I}from"./chunk-RVEAQUUF.js";import{B as C,wa as j}from"./chunk-NKSLEPE2.js";import{e as O}from"./chunk-C2AA5NVP.js";import{a as z}from"./chunk-J6BXYZRY.js";import{b as R}from"./chunk-BR5CFKIN.js";import{D as y,W as _,ia as h,la as g}from"./chunk-IAURXPUJ.js";import{H as T,I as k,y as A}from"./chunk-T3IMDY72.js";import{k as D}from"./chunk-4EHFK2OI.js";import{a as H}from"./chunk-CTNBSUVU.js";import{qb as p,sb as m,xb as f}from"./chunk-TNYPQ2UL.js";import{e as F,g as l}from"./chunk-VKWPEFWQ.js";l();l();l();var L={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"}}]}}]}}]};l();async function J(e){let i="Admin",n=O(e.storeFqdn,"unstable");return{token:e.token,api:i,url:n}}async function P(e){return g({query:e.query,...await J(e.session),variables:e.variables,autoRateLimitRestore:e.autoRateLimitRestore})}l();var w={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 x=F(z(),1);var Q={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 $({query:e,session:i,toNodes:n,toVariables:t,performQuery:d=a=>P({query:e,session:i,variables:a,autoRateLimitRestore:!0})}){let a;try{let o=n(await d(t(a))),s=[];for(s.push(...o.nodes);o.pageInfo.hasNextPage;)a=o.pageInfo.endCursor,o=n(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 V(e,i){let n="";for(let t of e)n=(0,x.updateTomlValues)(n,t);return`# ${i}
1
+ import{a as M}from"./chunk-2SOA4M4G.js";import{a as E}from"./chunk-34PQ6LJC.js";import{a as I}from"./chunk-4JU7N2OF.js";import{B as C,wa as j}from"./chunk-CBGDD3ZG.js";import{e as O}from"./chunk-5N33O2RV.js";import{a as z}from"./chunk-WWRLFLGM.js";import{b as R}from"./chunk-2IZROVCY.js";import{D as y,W as _,ia as h,la as g}from"./chunk-KYNXMDFU.js";import{H as T,I as k,y as A}from"./chunk-PSSOCUUD.js";import{k as D}from"./chunk-W3BNL2Q5.js";import{a as H}from"./chunk-CTNBSUVU.js";import{qb as p,sb as m,xb as f}from"./chunk-G5QSVBYP.js";import{e as F,g as l}from"./chunk-VKWPEFWQ.js";l();l();l();var L={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"}}]}}]}}]};l();async function J(e){let i="Admin",n=O(e.storeFqdn,"unstable");return{token:e.token,api:i,url:n}}async function P(e){return g({query:e.query,...await J(e.session),variables:e.variables,autoRateLimitRestore:e.autoRateLimitRestore})}l();var w={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 x=F(z(),1);var Q={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 $({query:e,session:i,toNodes:n,toVariables:t,performQuery:d=a=>P({query:e,session:i,variables:a,autoRateLimitRestore:!0})}){let a;try{let o=n(await d(t(a))),s=[];for(s.push(...o.nodes);o.pageInfo.hasNextPage;)a=o.pageInfo.endCursor,o=n(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 V(e,i){let n="";for(let t of e)n=(0,x.updateTomlValues)(n,t);return`# ${i}
2
2
  ${n}`}function Z(e,i){let n=i.map(oe).map(a=>{switch(a.status){case"ok":{let{typeName:o,patches:s}=a;return V(s,`type: $app:${o}`)}case"not_app_reserved":return null}}).filter(a=>a!==null),t=e.flatMap(({items:a,ownerType:o,graphQLOwner:s})=>a.map(r=>({result:de(r,o),graphQLOwner:s}))).map(({result:a,graphQLOwner:o})=>{switch(a.status){case"ok":{let{namespace:s,key:r,patches:N}=a;return V(N,`namespace: ${s==="app"?"$app":`$app:${s}`} key: ${r} owner_type: ${o}`)}case"not_app_reserved":return null}}).filter(a=>a!==null);return{tomlContent:[...n,...t].join(`
3
3
  `),metafieldCount:t.length,metaobjectCount:n.length}}async function q(e){let i=await ae(e),n=i.storeFqdn,t=await ee(i),d=await ne(i);e.includeExistingDeclaredDefinitions||(t=ie(t,e.appConfiguration),d=te(d,e.appConfiguration));let{tomlContent:a,metafieldCount:o,metaobjectCount:s}=Z(t,d);X(o,s,n,a)}function X(e,i,n,t){A({headline:"Conversion to TOML complete.",body:["Converted",{warn:`${e} metafields`},"and",{warn:`${i} metaobjects`},"from",{warn:n},"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."]]}),ce(t)}async function ee(e){let i=[];return await T(Object.entries(Q).map(([n,t])=>({title:m`Loading ${p.green(n)} metafields`,task:async()=>{let d=await $({query:L,session:e,toNodes:a=>a.metafieldDefinitions,toVariables:a=>({ownerType:t,after:a})});i.push({metafields:d,ownerType:n,graphQLOwner:t})}}))),i.map(({metafields:n,ownerType:t,graphQLOwner:d})=>n.status==="ok"?{ownerType:t,items:n.items,graphQLOwner:d}:null).filter(n=>n!==null)}async function ne(e){let i=await k({title:m`Loading ${p.green("metaobjects")}`,task:async()=>$({query:w,session:e,toNodes:n=>n.metaobjectDefinitions,toVariables:n=>({after:n})})});return i.status==="ok"?i.items:[]}function ie(e,i){return e.map(n=>{let t=n.items.filter(d=>!K(i,[n.ownerType,"metafields",u(d.namespace)??"",d.key]));return t.length>0?{...n,items:t}:null}).filter(n=>n!==null)}function te(e,i){return e.filter(n=>!K(i,["metaobjects","app",u(n.type)??""]))}function K(e,i){let n=e;for(let t of i){if(!n[t])return!1;n=n[t]}return!0}async function ae(e){let{remoteApp:i,store:n}=e,t=i.apiSecretKeys[0]?.secret;if(!t)throw new D("No API secret keys found for app");return await _(n.shopDomain,i.apiKey,t)}function u(e){if(!e.match(/^app--\d+/))return null;let i="app";return e.match(/^app--\d+--/)&&(i=e.replace(/^app--\d+--/,"")),i}function de(e,i){let n=u(e.namespace);if(!n)return{status:"not_app_reserved"};let t=e.key,d=se(e),a=re(d,i,n,t);return{status:"ok",key:t,namespace:n,patches:a}}function oe(e){let i=u(e.type);if(!i)return{status:"not_app_reserved"};let n=le(e,i),t=me(n,i);return{status:"ok",typeName:i,patches:t}}function se(e){let i={name:e.name===e.key?void 0:e.name,type:e.type.name,description:e.description??void 0,capabilities:c({admin_filterable:e.capabilities.adminFilterable.enabled||void 0}),access:c({admin:W(e.access.admin),storefront:Y(e.access.storefront),customer_account:ue(e.access.customerAccount)}),validations:G(e.validations)},{type:n,validations:t}=U(i.type,i.validations);return i.type=n,i.validations=t,i}function le(e,i){return{name:e.name===i?void 0:e.name,description:e.description??void 0,display_name_field:e.displayNameKey??void 0,access:c({admin:W(e.access.admin),storefront:Y(e.access.storefront)}),capabilities:c({translatable:e.capabilities.translatable.enabled||void 0,publishable:e.capabilities.publishable.enabled||void 0,renderable:e.capabilities.renderable?.enabled||void 0,renderable_meta_title_field:e.capabilities.renderable?.data?.metaTitleKey??void 0,renderable_meta_description_field:e.capabilities.renderable?.data?.metaDescriptionKey??void 0}),fields:Object.fromEntries(e.fieldDefinitions.map(n=>{let t={type:n.type.name,description:n.description??void 0,name:n.name===n.key?void 0:n.name,required:n.required||void 0,validations:G(n.validations)},{type:d,validations:a}=U(t.type,t.validations);return t.type=d,t.validations=a,[n.key,t]}))}}function U(e,i){if(!i)return{type:e,validations:void 0};if(i.metaobject_definition_type&&typeof i.metaobject_definition_type=="string"){let n=u(i.metaobject_definition_type);return{type:`${e}<$app:${n}>`,validations:c({...i,metaobject_definition_type:void 0})}}if(i.metaobject_definition_types&&Array.isArray(i.metaobject_definition_types)&&i.metaobject_definition_types.every(n=>typeof n=="string")){let n=i.metaobject_definition_types.map(t=>u(t));return{type:`${e}<${n.map(t=>`$app:${t}`).join(",")}>`,validations:c({...i,metaobject_definition_types:void 0})}}return{type:e,validations:i}}function G(e){let i=n=>{try{return JSON.parse(n)}catch{return n}};return c(Object.fromEntries(e.filter(n=>n.value!==void 0&&n.name!=="metaobject_definition_id"&&n.name!=="metaobject_definition_ids").map(n=>[n.name,n.value?i(n.value):void 0])))}function re(e,i,n,t){let d=[[[i,"metafields",n,t,"name"],e.name],[[i,"metafields",n,t,"type"],e.type],[[i,"metafields",n,t,"description"],e.description]],a=[[[i,"metafields",n,t,"access","admin"],e.access?.admin],[[i,"metafields",n,t,"access","storefront"],e.access?.storefront],[[i,"metafields",n,t,"access","customer_account"],e.access?.customer_account],[[i,"metafields",n,t,"capabilities","admin_filterable"],e.capabilities?.admin_filterable||void 0]];return e.validations&&B(e.validations).forEach(({validationKey:s,actualValue:r})=>{d.push([[i,"metafields",n,t,"validations",s],r])}),[v(d),v(a)]}function me(e,i){let n=[[["metaobjects","app",i,"name"],e.name===i?void 0:e.name],[["metaobjects","app",i,"description"],e.description],[["metaobjects","app",i,"display_name_field"],e.display_name_field]],t=[[["metaobjects","app",i,"access","admin"],e.access?.admin],[["metaobjects","app",i,"access","storefront"],e.access?.storefront]];return e.capabilities?.translatable&&t.push([["metaobjects","app",i,"capabilities","translatable"],!0]),e.capabilities?.publishable&&t.push([["metaobjects","app",i,"capabilities","publishable"],!0]),e.capabilities?.renderable&&(t.push([["metaobjects","app",i,"capabilities","renderable"],!0]),e.capabilities?.renderable_meta_title_field&&t.push([["metaobjects","app",i,"capabilities","renderable_meta_title_field"],e.capabilities.renderable_meta_title_field]),e.capabilities?.renderable_meta_description_field&&t.push([["metaobjects","app",i,"capabilities","renderable_meta_description_field"],e.capabilities.renderable_meta_description_field])),Object.entries(e.fields).forEach(([d,a])=>{if(typeof a=="string")n.push([["metaobjects","app",i,"fields",d],a]);else{let o=Object.fromEntries(Object.entries(a).filter(([s,r])=>r!==void 0));Object.keys(o).length===1?n.push([["metaobjects","app",i,"fields",d],a.type]):(n.push([["metaobjects","app",i,"fields",d,"type"],a.type]),n.push([["metaobjects","app",i,"fields",d,"description"],a.description]),n.push([["metaobjects","app",i,"fields",d,"name"],a.name]),n.push([["metaobjects","app",i,"fields",d,"required"],a.required||void 0]),a.validations&&B(a.validations).forEach(({validationKey:r,actualValue:N})=>{n.push([["metaobjects","app",i,"fields",d,"validations",r],N])}))}}),[v(n),v(t)]}function B(e){return Object.entries(e).map(([i,n])=>{let t;return typeof n=="string"||typeof n=="number"||typeof n=="boolean"||Array.isArray(n)&&n.every(d=>typeof d=="string")?t=n:t=JSON.stringify(n),{validationKey:i,actualValue:t}})}function ce(e){let i=e.split(`
4
4
  `);for(let n of i)n.match(/^\s*\[/)?f(m`${p.green(n)}`):n.match(/^\s*#/)?f(m`${p.gray(n)}`):f(m`${n}`)}function W(e){switch(e){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 Y(e){switch(e){case"PUBLIC_READ":return"public_read";case"NONE":case null:case void 0:return}}function ue(e){switch(e){case"READ":return"read";case"READ_WRITE":return"read_write";case"NONE":case null:case void 0:return}}function c(e){if(e&&!h(e)&&!(typeof e=="object"&&Object.values(e).every(i=>i===void 0)))return e}function v(e){return e.filter(([i,n])=>n!==void 0)}var b=F(H(),1);var S=class e extends E{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 description=this.descriptionWithoutMarkdown();static flags={...R,...I,store:b.Flags.string({char:"s",description:"Store URL. Must be an existing development or Shopify Plus sandbox store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>y(i)}),"include-existing":b.Flags.boolean({description:"Include existing declared definitions in the output.",default:!1,env:"SHOPIFY_FLAG_INCLUDE_EXISTING"})};async run(){let{appContextResult:i,...n}=await k({title:m`Loading application`,task:async()=>{let{flags:t}=await this.parse(e);await C(t.path);let d=await j({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),a=await M({appContextResult:d,storeFqdn:t.store,forceReselectStore:t.reset});return{appContextResult:d,appConfiguration:d.app.configuration,remoteApp:d.remoteApp,store:a,includeExistingDeclaredDefinitions:t["include-existing"]}}});return await q(n),{app:i.app}}};export{S as a};
@@ -1,4 +1,4 @@
1
- import{a as v}from"./chunk-J3JPJCWP.js";import{a as fe}from"./chunk-AWTBC3MC.js";import{b as re,c as oe,d as se,e as ne,f as ie,h as ae,i as le,k as ce,l as me,n as de}from"./chunk-KSSPT7G5.js";import{a as X}from"./chunk-B3GLHLAQ.js";import{c as Q,e as b,m as Z,n as x}from"./chunk-CSNXCRPY.js";import{c as ee,e as te}from"./chunk-VEXW766J.js";import{k as P,l as V,n as w}from"./chunk-BR3GYG2H.js";import{s as C,u as k}from"./chunk-CNDB4VEM.js";import{a as Y,b as B}from"./chunk-GK23CIPB.js";import{o as J,s as K,t as j,u as z,w as N}from"./chunk-Q7BOSHWX.js";import{Aa as L,b as F,wa as $}from"./chunk-IAURXPUJ.js";import{A as T,C as q,D as G,N as U,w as W,y as I,z as M}from"./chunk-T3IMDY72.js";import{d as _,e as H}from"./chunk-HLLMMIIM.js";import{h as y}from"./chunk-4EHFK2OI.js";import{Ab as u,qb as g,sb as R,xb as E}from"./chunk-TNYPQ2UL.js";import{i as p}from"./chunk-B4OMIONW.js";import{g as f}from"./chunk-VKWPEFWQ.js";f();f();f();f();var he={workPromise:Promise.resolve()};async function ue(e,t,o,r,s){if(o.length===0)return he;u("Initiating theme asset reconciliation process");let{filesOnlyPresentLocally:i,filesOnlyPresentOnRemote:n,filesWithConflictingChecksums:l}=Ee(o,r),a=i.length===0&&n.length===0&&l.length===0;if(L(`theme-service:theme-reconciliation:manual:${a}`),a)return u("Local and remote checksums match - no need to reconcile theme assets"),he;let m=await De({filesOnlyPresentLocally:i,filesOnlyPresentOnRemote:n,filesWithConflictingChecksums:l},s);return{workPromise:Ae(e,t,r,m)}}function Ee(e,t){let o=new Set,r=[],s=[];for(let n of e){o.add(n.key);let l=t.files.get(n.key);l?n.checksum!==l.checksum&&s.push(n):r.push(n)}let i=Array.from(t.files.values()).filter(n=>!o.has(n.key));return{filesOnlyPresentOnRemote:S(r,t),filesOnlyPresentLocally:S(i,t),filesWithConflictingChecksums:S(s,t)}}function S(e,t){return t.applyIgnoreFilters(e).filter(r=>r.key.endsWith(".json"))}async function A(e,t,o,r){if(e.length===0)return;if(r){Ce(e,o,r);return}I({body:{list:{title:t,items:e.map(i=>i.key)}}}),await G({message:"Reconciliation Strategy",choices:[{label:o.remote.label,value:D},{label:o.local.label,value:pe}]})===D?o.remote.callback(e):o.local.callback(e)}function Ce(e,t,o){switch(o){case"keep-remote":t.remote.callback(e);break;case"keep-local":t.local.callback(e);break;case"abort":break}}function Se(e){let t=[{title:"The files listed below are only present locally.",files:e.filesOnlyPresentLocally},{title:"The files listed below are only present on the remote theme.",files:e.filesOnlyPresentOnRemote},{title:"The files listed below differ between the local and remote versions.",files:e.filesWithConflictingChecksums}];throw new y("Theme JSON files need reconciliation.",t.filter(o=>o.files.length>0).map(o=>`${o.title}
1
+ import{a as v}from"./chunk-J3JPJCWP.js";import{a as fe}from"./chunk-F33TYJM5.js";import{b as re,c as oe,d as se,e as ne,f as ie,h as ae,i as le,k as ce,l as me,n as de}from"./chunk-KDMJ2BLO.js";import{a as X}from"./chunk-FXBQKJTS.js";import{c as Q,e as b,m as Z,n as x}from"./chunk-HS3VTFW3.js";import{c as ee,e as te}from"./chunk-K3OI5VDE.js";import{k as P,l as V,n as w}from"./chunk-TUWRPDTE.js";import{s as C,u as k}from"./chunk-GBYDMHZ3.js";import{a as Y,b as B}from"./chunk-WKRX4FBZ.js";import{o as J,s as K,t as j,u as z,w as N}from"./chunk-Q7BOSHWX.js";import{Aa as L,b as F,wa as $}from"./chunk-KYNXMDFU.js";import{A as T,C as q,D as G,N as U,w as W,y as I,z as M}from"./chunk-PSSOCUUD.js";import{d as _,e as H}from"./chunk-M2M3I63K.js";import{h as y}from"./chunk-W3BNL2Q5.js";import{Ab as u,qb as g,sb as R,xb as E}from"./chunk-G5QSVBYP.js";import{i as p}from"./chunk-B4OMIONW.js";import{g as f}from"./chunk-VKWPEFWQ.js";f();f();f();f();var he={workPromise:Promise.resolve()};async function ue(e,t,o,r,s){if(o.length===0)return he;u("Initiating theme asset reconciliation process");let{filesOnlyPresentLocally:i,filesOnlyPresentOnRemote:n,filesWithConflictingChecksums:l}=Ee(o,r),a=i.length===0&&n.length===0&&l.length===0;if(L(`theme-service:theme-reconciliation:manual:${a}`),a)return u("Local and remote checksums match - no need to reconcile theme assets"),he;let m=await De({filesOnlyPresentLocally:i,filesOnlyPresentOnRemote:n,filesWithConflictingChecksums:l},s);return{workPromise:Ae(e,t,r,m)}}function Ee(e,t){let o=new Set,r=[],s=[];for(let n of e){o.add(n.key);let l=t.files.get(n.key);l?n.checksum!==l.checksum&&s.push(n):r.push(n)}let i=Array.from(t.files.values()).filter(n=>!o.has(n.key));return{filesOnlyPresentOnRemote:S(r,t),filesOnlyPresentLocally:S(i,t),filesWithConflictingChecksums:S(s,t)}}function S(e,t){return t.applyIgnoreFilters(e).filter(r=>r.key.endsWith(".json"))}async function A(e,t,o,r){if(e.length===0)return;if(r){Ce(e,o,r);return}I({body:{list:{title:t,items:e.map(i=>i.key)}}}),await G({message:"Reconciliation Strategy",choices:[{label:o.remote.label,value:D},{label:o.local.label,value:pe}]})===D?o.remote.callback(e):o.local.callback(e)}function Ce(e,t,o){switch(o){case"keep-remote":t.remote.callback(e);break;case"keep-local":t.local.callback(e);break;case"abort":break}}function Se(e){let t=[{title:"The files listed below are only present locally.",files:e.filesOnlyPresentLocally},{title:"The files listed below are only present on the remote theme.",files:e.filesOnlyPresentOnRemote},{title:"The files listed below differ between the local and remote versions.",files:e.filesWithConflictingChecksums}];throw new y("Theme JSON files need reconciliation.",t.filter(o=>o.files.length>0).map(o=>`${o.title}
2
2
  ${o.files.map(r=>`- ${r.key}`).join(`
3
3
  `)}`).join(`
4
4