@shopify/cli 4.5.1 → 4.6.0

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 (368) hide show
  1. package/dist/analytics-6S5JVSRO.js +1 -0
  2. package/dist/analytics-E252SR3P.js +1 -0
  3. package/dist/assets/hydrogen/starter/package.json +1 -1
  4. package/dist/bootstrap.js +1 -1
  5. package/dist/{chokidar-VDIVGBZH.js → chokidar-5RWEYTNQ.js} +1 -1
  6. package/dist/{chunk-XU6CCL4P.js → chunk-2I62GKIH.js} +80 -80
  7. package/dist/{chunk-PGN5EZTI.js → chunk-2JFZ6GZC.js} +2 -2
  8. package/dist/{chunk-UQWFDL3F.js → chunk-2KD4LHRT.js} +1 -1
  9. package/dist/chunk-2MCH43SL.js +11 -0
  10. package/dist/{chunk-BEXQB4RT.js → chunk-2SNT7U7B.js} +1 -1
  11. package/dist/{chunk-U2LQBJJL.js → chunk-2VIUGNYO.js} +1 -1
  12. package/dist/chunk-2Y6CYLKF.js +1 -0
  13. package/dist/{chunk-KHXDP3SF.js → chunk-3EHRA4LA.js} +1 -1
  14. package/dist/{chunk-GQG6WELZ.js → chunk-3EPQ6UOK.js} +6 -6
  15. package/dist/{chunk-ZHPXJRHR.js → chunk-3NO6PWNL.js} +1 -1
  16. package/dist/chunk-3TFUSDHY.js +370 -0
  17. package/dist/{chunk-SFMXFH33.js → chunk-46NA23I7.js} +1 -1
  18. package/dist/{chunk-C5U4NLNU.js → chunk-47URTBZF.js} +1 -1
  19. package/dist/chunk-4FEBSLSU.js +1 -0
  20. package/dist/{chunk-DCUAVLTM.js → chunk-4HB4VZJQ.js} +1 -1
  21. package/dist/{chunk-DU5LZYQX.js → chunk-4JARSKED.js} +1 -1
  22. package/dist/{chunk-IHUCBI6L.js → chunk-4KZRP2JP.js} +141 -141
  23. package/dist/{chunk-2GDACKZF.js → chunk-4P7PWLUN.js} +1 -1
  24. package/dist/{chunk-MYQQOOGA.js → chunk-4YCMEC5R.js} +1 -1
  25. package/dist/{chunk-Q2X7IXPQ.js → chunk-53ZA2HD3.js} +1 -1
  26. package/dist/{chunk-DE3WCNP6.js → chunk-57YF2UNT.js} +1 -1
  27. package/dist/{chunk-MOCD7GFI.js → chunk-5EFQILLF.js} +1 -1
  28. package/dist/chunk-5JPV3HPJ.js +1 -0
  29. package/dist/{chunk-OCYPWE2O.js → chunk-5LJ5H4TD.js} +1 -1
  30. package/dist/{chunk-JVMYTC3J.js → chunk-5Y2VD4I3.js} +1 -1
  31. package/dist/{chunk-YBFCDINU.js → chunk-6BX62FFE.js} +1 -1
  32. package/dist/{chunk-6ZMNEURG.js → chunk-6FJBCRVK.js} +1 -1
  33. package/dist/{chunk-2WDKXDFM.js → chunk-6Q5VRSRN.js} +1 -1
  34. package/dist/{chunk-GDHD3TGC.js → chunk-6QDOCBD4.js} +1 -1
  35. package/dist/{chunk-BVFIJSD7.js → chunk-6SXB44CE.js} +1 -1
  36. package/dist/chunk-6UTUJKKC.js +16 -0
  37. package/dist/{chunk-E24W34C4.js → chunk-6YCGMS7X.js} +15 -15
  38. package/dist/chunk-72GN655L.js +1 -0
  39. package/dist/chunk-7CPECP5P.js +1 -0
  40. package/dist/{chunk-XH5FCMS5.js → chunk-7HAFBCL3.js} +1 -1
  41. package/dist/chunk-7XPFLQEM.js +1 -0
  42. package/dist/{chunk-DDVT2K7E.js → chunk-A3JE5LX3.js} +1 -1
  43. package/dist/{chunk-ASOT7VNB.js → chunk-AJ6VOBXU.js} +1 -1
  44. package/dist/{chunk-XWQ72WTQ.js → chunk-B2WK53GH.js} +1 -1
  45. package/dist/chunk-B34VYVGV.js +1 -0
  46. package/dist/chunk-B6SY4BIK.js +2 -0
  47. package/dist/{chunk-H7DDRARV.js → chunk-BBEHNPKK.js} +1 -1
  48. package/dist/{chunk-GKQ6CSJZ.js → chunk-BCTMBKAU.js} +1 -1
  49. package/dist/chunk-BGUHH7AW.js +10 -0
  50. package/dist/chunk-BOAGJ6P5.js +1 -0
  51. package/dist/chunk-C256W7D2.js +26 -0
  52. package/dist/chunk-CTNBSUVU.js +83 -0
  53. package/dist/{chunk-MQXSMZQZ.js → chunk-CXWLHQKA.js} +1 -1
  54. package/dist/chunk-DHU767C3.js +1 -0
  55. package/dist/{chunk-NGPJXONG.js → chunk-DKHMLETG.js} +1 -1
  56. package/dist/{chunk-QPJQ67GU.js → chunk-DODCPRXT.js} +144 -144
  57. package/dist/{chunk-QDYDB7DY.js → chunk-E3RDAVJT.js} +3 -3
  58. package/dist/chunk-E3RQCWSC.js +6 -0
  59. package/dist/{chunk-EDSKA6UB.js → chunk-EBZ6MDEM.js} +1 -1
  60. package/dist/chunk-ELJ7SKMH.js +1 -0
  61. package/dist/{chunk-FOPGI6GO.js → chunk-EQTULRM7.js} +1 -1
  62. package/dist/{chunk-SRAHMYWJ.js → chunk-ERCJPRN3.js} +1 -1
  63. package/dist/{chunk-M2AS5BWX.js → chunk-ESZS7L6O.js} +1 -1
  64. package/dist/{chunk-IBBFRL3Y.js → chunk-ET2O5DAS.js} +1 -1
  65. package/dist/chunk-EZ7EBYDT.js +684 -0
  66. package/dist/{chunk-AVMNXIXF.js → chunk-EZNJDFFK.js} +1 -1
  67. package/dist/chunk-F34LB7M4.js +20 -0
  68. package/dist/{chunk-QVYZZNAS.js → chunk-FE24P4UQ.js} +1 -1
  69. package/dist/chunk-FFSDGRAN.js +1 -0
  70. package/dist/{chunk-ALQKJAHP.js → chunk-FMTPUYSH.js} +1 -1
  71. package/dist/{chunk-IQYZAALJ.js → chunk-FPWLEGKZ.js} +1 -1
  72. package/dist/{chunk-APYASWBA.js → chunk-FT4HLDK7.js} +1 -1
  73. package/dist/{chunk-E7OLCSAL.js → chunk-G3YYMKWG.js} +1 -1
  74. package/dist/chunk-G7QW5OSQ.js +6 -0
  75. package/dist/{chunk-JO4ZHVOD.js → chunk-GCDEDRY7.js} +1 -1
  76. package/dist/{chunk-GAYQKMOM.js → chunk-GEE5MXHT.js} +1 -1
  77. package/dist/{chunk-IIHPONSQ.js → chunk-H4MYBJ6C.js} +1 -1
  78. package/dist/chunk-HDXBZLHH.js +8 -0
  79. package/dist/chunk-HSKB5OTM.js +1 -0
  80. package/dist/{chunk-5T3OVTF5.js → chunk-HT6MOPLW.js} +1 -1
  81. package/dist/chunk-HZXY7RWJ.js +19 -0
  82. package/dist/{chunk-WIXW233Y.js → chunk-IDAWPBJM.js} +1 -1
  83. package/dist/{chunk-UHJ65YFN.js → chunk-IDLDQ2JB.js} +1 -1
  84. package/dist/{chunk-KOB6T6NK.js → chunk-IKYZ5L3F.js} +1 -1
  85. package/dist/{chunk-O2PI2PYG.js → chunk-ILQXBASM.js} +1 -1
  86. package/dist/{chunk-O7MONSF7.js → chunk-IYU72M55.js} +1 -1
  87. package/dist/{chunk-JCNRQYRP.js → chunk-J3IHP46B.js} +2 -2
  88. package/dist/{chunk-UB5BVO76.js → chunk-J4KJQHNS.js} +1 -1
  89. package/dist/{chunk-3GMW7IEC.js → chunk-JHRZCUBE.js} +1 -1
  90. package/dist/chunk-JIBLEZ57.js +18 -0
  91. package/dist/{chunk-TXJEP4FB.js → chunk-JIKIYMCT.js} +1 -1
  92. package/dist/{chunk-MKCXLBQ4.js → chunk-JJTGHARS.js} +1 -1
  93. package/dist/chunk-JJZNUFPD.js +44 -0
  94. package/dist/{chunk-U7ZRDNZU.js → chunk-JQP3ZCAG.js} +1 -1
  95. package/dist/{chunk-5UXPTCSD.js → chunk-JS3X6BDT.js} +1 -1
  96. package/dist/{chunk-YZY4M6IH.js → chunk-K7IZMKBR.js} +1 -1
  97. package/dist/{chunk-5JCREGSD.js → chunk-KGZH4RFA.js} +1 -1
  98. package/dist/{chunk-JNEGEJH6.js → chunk-KO4FB4QU.js} +1 -1
  99. package/dist/chunk-KPRKIZ5M.js +3 -0
  100. package/dist/chunk-KUN74JD4.js +4 -0
  101. package/dist/chunk-KURWC4A5.js +16 -0
  102. package/dist/{chunk-XDEAZP2I.js → chunk-L3D2CASO.js} +1 -1
  103. package/dist/{chunk-P6S5YLOP.js → chunk-L7DZTIHJ.js} +1 -1
  104. package/dist/{chunk-QPY6WJTT.js → chunk-LBDAYBIF.js} +1 -1
  105. package/dist/{chunk-ZG7BVVT2.js → chunk-LD6ZCTZ3.js} +1 -1
  106. package/dist/{chunk-TDCY3BRI.js → chunk-LH3RIIOB.js} +1 -1
  107. package/dist/{chunk-BZAZMLII.js → chunk-LWRDNTAD.js} +1 -1
  108. package/dist/{chunk-MMKBIMMC.js → chunk-LWWBU7ET.js} +1 -1
  109. package/dist/chunk-M4BEPPA3.js +1 -0
  110. package/dist/chunk-M4YPMHIM.js +1 -0
  111. package/dist/{chunk-VSZS3FAJ.js → chunk-M5KKLAM6.js} +1 -1
  112. package/dist/{chunk-Q2UHGP2Z.js → chunk-MBLHXPGK.js} +1 -1
  113. package/dist/{chunk-3YCTWCHH.js → chunk-MDHJJVXA.js} +1 -1
  114. package/dist/{chunk-5U6MXSNY.js → chunk-MDXSLAIC.js} +1 -1
  115. package/dist/{chunk-NV5IDANV.js → chunk-NA2ERJIJ.js} +1 -1
  116. package/dist/chunk-NOKCVDYD.js +317 -0
  117. package/dist/chunk-O6XSWAP2.js +4 -0
  118. package/dist/{chunk-OVLTFTZW.js → chunk-OB62WVZ5.js} +1 -1
  119. package/dist/{chunk-UYNCJGMC.js → chunk-OT52JOML.js} +1 -1
  120. package/dist/chunk-OTT73YUA.js +5 -0
  121. package/dist/{chunk-ZVQBSXE4.js → chunk-OUUOML3D.js} +1 -1
  122. package/dist/{chunk-7ZLKT2TB.js → chunk-P7XC5HS2.js} +1 -1
  123. package/dist/{chunk-KC2TN7AR.js → chunk-PALG4SNB.js} +1 -1
  124. package/dist/{chunk-T5DF2GGD.js → chunk-PB37BTPE.js} +1 -1
  125. package/dist/{chunk-WO5YOBQ7.js → chunk-PWYRKTJ4.js} +1 -1
  126. package/dist/{chunk-H7PNMMDO.js → chunk-PXSX63RF.js} +1 -1
  127. package/dist/{chunk-QMSYJIAU.js → chunk-QDPDB5EP.js} +1 -1
  128. package/dist/{chunk-7XQDZF73.js → chunk-QG7TELFC.js} +1 -1
  129. package/dist/{chunk-OASPW2P2.js → chunk-QU5NL2QT.js} +1 -1
  130. package/dist/{chunk-DQE7XRCK.js → chunk-QV53BSQP.js} +1 -1
  131. package/dist/{chunk-CNOL26GA.js → chunk-QXXA2EQY.js} +1 -1
  132. package/dist/{chunk-T3AJL2M5.js → chunk-QZ5FMWZS.js} +1 -1
  133. package/dist/chunk-R26GJEH3.js +1 -0
  134. package/dist/{chunk-TDSR2X7X.js → chunk-RTW4RZWH.js} +2 -2
  135. package/dist/{chunk-FPCPFECH.js → chunk-SEV3S3WH.js} +1 -1
  136. package/dist/{chunk-YYHCPLBX.js → chunk-TAFOSPBW.js} +1 -1
  137. package/dist/{chunk-MCATVWHC.js → chunk-TAV2ENJY.js} +1 -1
  138. package/dist/{chunk-ZNWFTUFV.js → chunk-TQNALMQH.js} +1 -1
  139. package/dist/chunk-TR4OWSEX.js +77 -0
  140. package/dist/{chunk-RFDT525K.js → chunk-TUJNCWHZ.js} +1 -1
  141. package/dist/{chunk-2MNOWKMI.js → chunk-U564K7SX.js} +1 -1
  142. package/dist/chunk-UKQ7NE5V.js +1 -0
  143. package/dist/{chunk-ICFFBMFB.js → chunk-UM3OHLCX.js} +1 -1
  144. package/dist/{chunk-4TC4M4RC.js → chunk-V65P572N.js} +3 -3
  145. package/dist/chunk-VFIVXK53.js +2 -0
  146. package/dist/chunk-VVFPW4ZQ.js +2 -0
  147. package/dist/{chunk-TVU4YD2H.js → chunk-VYITPC34.js} +1 -1
  148. package/dist/{chunk-3QVXHF6I.js → chunk-VZKR2YFM.js} +1 -1
  149. package/dist/{chunk-WMDYHUPS.js → chunk-W2GMKXM7.js} +1 -1
  150. package/dist/{chunk-72K36DID.js → chunk-W4X3635B.js} +1 -1
  151. package/dist/chunk-W6ST525S.js +99 -0
  152. package/dist/{chunk-RIRSTGFU.js → chunk-WEEYQX3M.js} +1 -1
  153. package/dist/{chunk-KOUKBXOZ.js → chunk-WO7LKJCJ.js} +1 -1
  154. package/dist/{chunk-6XLVKD6Q.js → chunk-WPRAJ25Z.js} +1 -1
  155. package/dist/{chunk-LUG2BZJP.js → chunk-WR2ZQGUR.js} +1 -1
  156. package/dist/{chunk-5K4DONQJ.js → chunk-WWX265PC.js} +1 -1
  157. package/dist/chunk-XERJY4IG.js +103 -0
  158. package/dist/{chunk-GXUZ3V7S.js → chunk-XGCJWCC4.js} +1 -1
  159. package/dist/{chunk-PGKP7W5T.js → chunk-XGMPC7KK.js} +1 -1
  160. package/dist/chunk-XGRVAPLR.js +7 -0
  161. package/dist/{chunk-TC3JOEMA.js → chunk-Y2PC2BBJ.js} +60 -60
  162. package/dist/{chunk-ODH2U44N.js → chunk-Y4QC2YVE.js} +1 -1
  163. package/dist/chunk-YNJZ2VXV.js +5 -0
  164. package/dist/chunk-Z5DDPQ26.js +3 -0
  165. package/dist/{chunk-EXQXGSGY.js → chunk-ZK7VJZ6V.js} +1 -1
  166. package/dist/{chunk-COTYR5RC.js → chunk-ZLT4DPHN.js} +1 -1
  167. package/dist/{chunk-CGULQAB5.js → chunk-ZOBQKNGK.js} +1 -1
  168. package/dist/chunk-ZTE46E4Z.js +153 -0
  169. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  170. package/dist/cli/commands/app/build.js +1 -1
  171. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  172. package/dist/cli/commands/app/bulk/execute.js +1 -1
  173. package/dist/cli/commands/app/bulk/status.js +1 -1
  174. package/dist/cli/commands/app/config/link.js +1 -1
  175. package/dist/cli/commands/app/config/pull.js +1 -1
  176. package/dist/cli/commands/app/config/use.js +1 -1
  177. package/dist/cli/commands/app/config/validate.js +1 -1
  178. package/dist/cli/commands/app/demo/watcher.js +1 -1
  179. package/dist/cli/commands/app/deploy.js +1 -1
  180. package/dist/cli/commands/app/dev/clean.js +1 -1
  181. package/dist/cli/commands/app/dev.js +1 -1
  182. package/dist/cli/commands/app/env/pull.js +1 -1
  183. package/dist/cli/commands/app/env/show.js +1 -1
  184. package/dist/cli/commands/app/execute.js +1 -1
  185. package/dist/cli/commands/app/function/build.js +1 -1
  186. package/dist/cli/commands/app/function/info.js +1 -1
  187. package/dist/cli/commands/app/function/replay.js +1 -1
  188. package/dist/cli/commands/app/function/run.js +1 -1
  189. package/dist/cli/commands/app/function/schema.js +1 -1
  190. package/dist/cli/commands/app/function/typegen.js +1 -1
  191. package/dist/cli/commands/app/generate/extension.js +1 -1
  192. package/dist/cli/commands/app/graphiql.js +1 -1
  193. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  194. package/dist/cli/commands/app/import-extensions.js +1 -1
  195. package/dist/cli/commands/app/info.js +1 -1
  196. package/dist/cli/commands/app/init.js +1 -1
  197. package/dist/cli/commands/app/logs.js +1 -1
  198. package/dist/cli/commands/app/release.js +1 -1
  199. package/dist/cli/commands/app/versions/list.js +1 -1
  200. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  201. package/dist/cli/commands/auth/login.js +1 -1
  202. package/dist/cli/commands/auth/logout.js +1 -1
  203. package/dist/cli/commands/cache/clear.js +1 -1
  204. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  205. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  206. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  207. package/dist/cli/commands/debug/command-flags.js +1 -1
  208. package/dist/cli/commands/doc/fetch.js +1 -1
  209. package/dist/cli/commands/doc/search.js +1 -1
  210. package/dist/cli/commands/docs/generate.js +1 -1
  211. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  212. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  213. package/dist/cli/commands/help.js +1 -1
  214. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  215. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  216. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  217. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  218. package/dist/cli/commands/notifications/generate.js +1 -1
  219. package/dist/cli/commands/notifications/list.js +1 -1
  220. package/dist/cli/commands/organization/list.js +1 -1
  221. package/dist/cli/commands/search.js +1 -1
  222. package/dist/cli/commands/theme/check.js +1 -1
  223. package/dist/cli/commands/theme/console.js +1 -1
  224. package/dist/cli/commands/theme/delete.js +1 -1
  225. package/dist/cli/commands/theme/dev.js +1 -1
  226. package/dist/cli/commands/theme/duplicate.js +1 -1
  227. package/dist/cli/commands/theme/info.js +1 -1
  228. package/dist/cli/commands/theme/init.js +1 -1
  229. package/dist/cli/commands/theme/language-server.js +1 -1
  230. package/dist/cli/commands/theme/list.js +1 -1
  231. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  232. package/dist/cli/commands/theme/open.js +1 -1
  233. package/dist/cli/commands/theme/package.js +1 -1
  234. package/dist/cli/commands/theme/preview.js +1 -1
  235. package/dist/cli/commands/theme/profile.js +1 -1
  236. package/dist/cli/commands/theme/publish.js +1 -1
  237. package/dist/cli/commands/theme/pull.js +1 -1
  238. package/dist/cli/commands/theme/push.js +1 -1
  239. package/dist/cli/commands/theme/rename.js +1 -1
  240. package/dist/cli/commands/theme/share.js +1 -1
  241. package/dist/cli/commands/upgrade.js +1 -1
  242. package/dist/cli/commands/version.js +1 -1
  243. package/dist/cli/help.js +1 -1
  244. package/dist/command-registry.js +1 -1
  245. package/dist/conf-store-N5P2ZEAD.js +1 -0
  246. package/dist/configs/all.yml +3 -0
  247. package/dist/configs/recommended.yml +3 -0
  248. package/dist/custom-oclif-loader-4ZAXX5MR.js +1 -0
  249. package/dist/data/filters.json +1 -1
  250. package/dist/data/objects.json +30 -3
  251. package/dist/data/shopify_system_translations.json +48 -4
  252. package/dist/deprecations-4TY4DNME.js +1 -0
  253. package/dist/dist-6ZJS4I57.js +1 -0
  254. package/dist/dist-7W2KJOYN.js +1 -0
  255. package/dist/environments-TR5WW2MD.js +1 -0
  256. package/dist/error-VJQM4MFE.js +1 -0
  257. package/dist/error-handler-IYGE3Z72.js +1 -0
  258. package/dist/{fs-7LCRIUF3.js → fs-EOQL26C3.js} +1 -1
  259. package/dist/hooks/app-init.js +1 -1
  260. package/dist/hooks/did-you-mean.js +1 -1
  261. package/dist/hooks/hydrogen-init.js +1 -1
  262. package/dist/hooks/plugin-plugins.js +1 -1
  263. package/dist/hooks/postrun.js +1 -1
  264. package/dist/hooks/prerun.js +1 -1
  265. package/dist/hooks/public-metadata.js +1 -1
  266. package/dist/hooks/sensitive-metadata.js +1 -1
  267. package/dist/hooks/tunnel-provider.js +1 -1
  268. package/dist/hooks/tunnel-start.js +1 -1
  269. package/dist/{http-proxy-node16-X2WAMUT5.js → http-proxy-node16-A6AKKRQH.js} +1 -1
  270. package/dist/index.js +15 -15
  271. package/dist/is-global-RQCPBQA3.js +1 -0
  272. package/dist/{latest-version-32HXMWJ7.js → latest-version-LDWU5F7A.js} +7 -7
  273. package/dist/lib-2BR2WN7L.js +1 -0
  274. package/dist/lib-JKLF33A7.js +1 -0
  275. package/dist/{lib-NOROGV6N.js → lib-P3APEIHY.js} +1 -1
  276. package/dist/local-TW3HCZ2S.js +1 -0
  277. package/dist/local-storage-T6FKS53K.js +1 -0
  278. package/dist/{metadata-D5GLZOLV.js → metadata-TYZDEER5.js} +1 -1
  279. package/dist/{morph-QZGREMO2.js → morph-ABSWZEVT.js} +4 -4
  280. package/dist/node-package-manager-6SWUZILX.js +1 -0
  281. package/dist/notifications-system-SMHMV2UW.js +1 -0
  282. package/dist/out-53ABAVL7.js +1 -0
  283. package/dist/{output-FYS764MJ.js → output-JG5I2TEL.js} +1 -1
  284. package/dist/system-D4Z32GDS.js +1 -0
  285. package/dist/tsconfig.tsbuildinfo +1 -1
  286. package/dist/ui-6M3XZ6MR.js +1 -0
  287. package/dist/upgrade-EKAG4IV7.js +1 -0
  288. package/dist/version-6UBWZCNS.js +1 -0
  289. package/dist/version-XRU7TEAI.js +1 -0
  290. package/dist/{workerd-N25GY5MX.js → workerd-LXBSJULF.js} +1 -1
  291. package/oclif.manifest.json +612 -2
  292. package/package.json +11 -11
  293. package/dist/analytics-CIKTYXZ6.js +0 -1
  294. package/dist/analytics-DM7CBV2M.js +0 -1
  295. package/dist/assets/dev-console/extensions/dev-console/assets/apple-touch-icon-BXMqQaSW.png +0 -0
  296. package/dist/assets/dev-console/extensions/dev-console/assets/favicon-16x16-B6uL8SrV.png +0 -0
  297. package/dist/assets/dev-console/extensions/dev-console/assets/favicon-32x32-CGwlpz_y.png +0 -0
  298. package/dist/assets/dev-console/extensions/dev-console/assets/favicon-ByUl89Ab.ico +0 -0
  299. package/dist/assets/dev-console/extensions/dev-console/assets/index-Bm_GpKQW.js +0 -51
  300. package/dist/assets/dev-console/extensions/dev-console/assets/index-DISeE29z.css +0 -1
  301. package/dist/assets/dev-console/extensions/dev-console/assets/site-B9Ae890R.webmanifest +0 -19
  302. package/dist/assets/dev-console/index.html +0 -21
  303. package/dist/chunk-2FIDORHT.js +0 -5
  304. package/dist/chunk-2HZMOK4U.js +0 -836
  305. package/dist/chunk-2O22LZKV.js +0 -44
  306. package/dist/chunk-3SJHCEQR.js +0 -7
  307. package/dist/chunk-4E354M4H.js +0 -1
  308. package/dist/chunk-5C7HDTHJ.js +0 -1
  309. package/dist/chunk-5NY4HKJF.js +0 -103
  310. package/dist/chunk-5PLLJPEW.js +0 -3
  311. package/dist/chunk-6Y3QXASG.js +0 -22
  312. package/dist/chunk-6ZRHK4ON.js +0 -1
  313. package/dist/chunk-7USHLXEN.js +0 -2
  314. package/dist/chunk-AH2ZJ73H.js +0 -16
  315. package/dist/chunk-AI756VJI.js +0 -1
  316. package/dist/chunk-DA4LHFJQ.js +0 -26
  317. package/dist/chunk-DKKBJ4H5.js +0 -2
  318. package/dist/chunk-EAXEV45I.js +0 -2
  319. package/dist/chunk-ELIH6GCC.js +0 -1
  320. package/dist/chunk-EYDNSYYE.js +0 -370
  321. package/dist/chunk-FO6FNY6P.js +0 -5
  322. package/dist/chunk-G7QLHXVA.js +0 -19
  323. package/dist/chunk-H3QZN45D.js +0 -4
  324. package/dist/chunk-HHSUBF73.js +0 -1
  325. package/dist/chunk-HXYWEKMS.js +0 -2
  326. package/dist/chunk-IDKUJQIG.js +0 -11
  327. package/dist/chunk-IOU6EKTT.js +0 -1
  328. package/dist/chunk-IRH6IGFT.js +0 -567
  329. package/dist/chunk-IRTCLR3F.js +0 -10
  330. package/dist/chunk-J3KRY2SD.js +0 -1
  331. package/dist/chunk-JOYM7AEQ.js +0 -1
  332. package/dist/chunk-LKZ7ARYS.js +0 -18
  333. package/dist/chunk-N5HGT3TE.js +0 -4
  334. package/dist/chunk-NJOO5XJV.js +0 -1
  335. package/dist/chunk-NNOSZ447.js +0 -1
  336. package/dist/chunk-OHASEW7T.js +0 -1
  337. package/dist/chunk-PGODIZ64.js +0 -1
  338. package/dist/chunk-PTIJDS6I.js +0 -3
  339. package/dist/chunk-Q6LCSRIW.js +0 -1
  340. package/dist/chunk-SKM44SK5.js +0 -4
  341. package/dist/chunk-T6CC5WUU.js +0 -159
  342. package/dist/chunk-UZ7U322K.js +0 -283
  343. package/dist/chunk-VHAZBDFE.js +0 -21
  344. package/dist/chunk-VRRDIXFQ.js +0 -6
  345. package/dist/chunk-YB3SGPFF.js +0 -1
  346. package/dist/chunk-YJCJDCVP.js +0 -1
  347. package/dist/chunk-ZDQNCYRH.js +0 -5
  348. package/dist/conf-store-OC4XCP45.js +0 -1
  349. package/dist/custom-oclif-loader-3AICQCNU.js +0 -1
  350. package/dist/deprecations-M5JGGK47.js +0 -1
  351. package/dist/dist-3SP7TISC.js +0 -1
  352. package/dist/dist-Z4H2OM7V.js +0 -1
  353. package/dist/environments-ZLSO534C.js +0 -1
  354. package/dist/error-ZBG2MA5U.js +0 -1
  355. package/dist/error-handler-MCUV4RZV.js +0 -1
  356. package/dist/is-global-RURDJZDU.js +0 -1
  357. package/dist/lib-QJDPPAWN.js +0 -1
  358. package/dist/lib-UCG2DNMS.js +0 -1
  359. package/dist/local-5AKD7T5X.js +0 -1
  360. package/dist/local-storage-TJU77VRQ.js +0 -1
  361. package/dist/node-package-manager-FA3Y6DPG.js +0 -1
  362. package/dist/notifications-system-76GJJAJP.js +0 -1
  363. package/dist/out-CDCY25QC.js +0 -1
  364. package/dist/system-KDM2BB7R.js +0 -1
  365. package/dist/ui-QIHGXICT.js +0 -1
  366. package/dist/upgrade-DY4L43H4.js +0 -1
  367. package/dist/version-LULWCT5R.js +0 -1
  368. package/dist/version-WIERCO5R.js +0 -1
@@ -1,5 +0,0 @@
1
- import{ha as a,i}from"./chunk-UZ7U322K.js";import{Fb as e,Hb as r}from"./chunk-EYDNSYYE.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();async function f(n,t,o){return c(n,t,o,"text")}async function c(n,t,o,S){return await a(t,o.source),S==="json"?r`${e.json({SHOPIFY_API_KEY:t.apiKey,SHOPIFY_API_SECRET:t.apiSecretKeys[0]?.secret,SCOPES:i(n.configuration)})}`:r`
2
- ${e.green("SHOPIFY_API_KEY")}=${t.apiKey}
3
- ${e.green("SHOPIFY_API_SECRET")}=${t.apiSecretKeys[0]?.secret??""}
4
- ${e.green("SCOPES")}=${i(n.configuration)}
5
- `}export{f as a,c as b};
@@ -1,19 +0,0 @@
1
- import{p as S,v as E}from"./chunk-PTIJDS6I.js";import{$ as re,aa as G}from"./chunk-QPJQ67GU.js";import{r as C}from"./chunk-VRRDIXFQ.js";import{b as $}from"./chunk-Q6LCSRIW.js";import{u as w,v as N}from"./chunk-E24W34C4.js";import{$a as A,Lb as l,Mb as P,N as x,Nb as T,Pb as L,Ta as b,na as R,ua as _}from"./chunk-EYDNSYYE.js";import{d as F,p as I}from"./chunk-773TIA5M.js";import{r as oe}from"./chunk-T6CC5WUU.js";import{e as O,g as k}from"./chunk-VKWPEFWQ.js";k();k();var i=O(G(),1),y=O(re(),1);function ie(t){switch(t){case"error":return i.Severity.ERROR;case"suggestion":case"warning":return i.Severity.WARNING;case"style":case"info":return i.Severity.INFO;case"crash":return}}function j(t){switch(t){case i.Severity.ERROR:return"error";case i.Severity.WARNING:return"warning";case i.Severity.INFO:return"info"}}function se(t,e,n){let o=i.path.fsPath(t),c=R(o).toString().split(`
2
- `).slice(e,n+1),a=c.length===1;return c.map((u,h)=>{let f=e+h+1,d=a?u.trim():u;return`${f} ${d}`}).join(`
3
- `)}function ce(t){switch(t){case i.Severity.ERROR:return{error:`
4
- [error]:`};case i.Severity.WARNING:return{warn:`
5
- [warning]:`};case i.Severity.INFO:return{info:`
6
- [info]:`}}}function ae(t){return t.map((n,o)=>{let{message:r,uri:s,start:c,end:a,check:u,severity:h}=n,f=se(s,c.line,a.line),d=o===t.length-1?"":`
7
-
8
- `;return[ce(h),{bold:u},{subdued:`
9
- ${r}`},`
10
-
11
- ${f}`,d]}).flat()}var ue=(t,e)=>t.severity-e.severity;function Y(t){let e=t.reduce((n,o)=>{let{uri:r}=o,s=i.path.fsPath(r);return n[s]??(n[s]=[]),n[s].push(o),n},{});return Object.keys(e).reduce((n,o)=>(n[o]=e[o].sort(ue),n),{})}function U(t){return t.reduce((e,n)=>(!Object.prototype.hasOwnProperty.call(e,n.severity)&&(e[n.severity]=0),e[n.severity]++,e),{})}function W(t,e,n){let o=[`${n.length} files inspected`];if(t.length===0)o.push("with no offenses found.");else{o.push(`with ${t.length} total offenses found across ${Object.keys(e).length} files.`);let r=U(t);r[i.Severity.ERROR]&&o.push(`
12
- ${r[i.Severity.ERROR]} errors.`),r[i.Severity.WARNING]&&o.push(`
13
- ${r[i.Severity.WARNING]} warnings.`),r[i.Severity.INFO]&&o.push(`
14
- ${r[i.Severity.INFO]} info issues.`)}return o}function q(t,e,n){Object.keys(t).sort().forEach(r=>{let s=r.replace(e,"").slice(1);w({headline:n?`[${n}] ${s}`:s,body:ae(t[r])})})}function H(t,e){return Object.entries(t).map(([n,o])=>{let r=o.map(c=>({check:c.check,severity:j(c.severity),start_row:c.start.line,start_column:c.start.character,end_row:c.end.line,end_column:c.end.character,message:c.message})),s=U(o);return{environment:e,path:n,offenses:r,errorCount:s[i.Severity.ERROR]??0,warningCount:s[i.Severity.WARNING]??0,infoCount:s[i.Severity.INFO]??0}})}function B(t,e){e||process.exit(0);let n=ie(e),o=n!==void 0&&t.some(r=>r.severity<=n);process.exit(o?1:0)}function fe(t){return t.split(`
15
- `).map(e=>`# ${e}`).join(`
16
- `)}async function D(t){let e=".theme-check.yml",n=F(t,e);if(await b(n)){P(`${e} already exists at ${t}`);return}let{settings:o}=await(0,i.loadConfig)(void 0,t),r=fe(y.default.stringify(o)),s=y.default.stringify({extends:"theme-check:recommended",ignore:["node_modules/**"]});await _(n,`${s}${r}`),T(`Created ${e} at ${t}`)}var de=async(t,e)=>{let n=(0,i.applyFixToString)(t.source,e),o=i.path.fsPath(t.uri);await _(o,n)};async function M(t,e){await(0,i.autofix)(t,e,de)}async function J(t,e,n){let{ignore:o,settings:r,rootUri:s}=await(0,i.loadConfig)(e,t),c={extends:[],ignore:x(o??[]),rootUri:s,...r},a=n?{[n]:c}:c;l(y.default.stringify(a))}async function V(t,e,n){let{settings:o,ignore:r,checks:s}=await(0,i.loadConfig)(e,t),c=x(r??[]),u=Object.keys(o).reduce((f,d)=>{let{severity:Q,enabled:X,...Z}=o[d];if(!X)return f;let ee=j(Q??i.Severity.INFO),v=s.find(ne=>ne.meta.code===d),te=v&&v.meta?{description:v.meta.docs.description,doc:v.meta.docs.url}:{};return f[d]={severity:ee,...te,ignored_patterns:`[${c.join(", ")}]`,...Z},f},{}),h=n?{[n]:u}:u;l(y.default.stringify(h))}function z(t){return"_handle"in t&&typeof t._handle=="object"&&t._handle!==null&&typeof t._handle.setBlocking=="function"}var m=O(oe(),1);var g=O(G(),1);var K,p=class extends E{async command(e,n,o){let r=e.path,s=e.environment?.[0],a=e.config?.startsWith(":")&&g.LegacyIdentifiers.has(e.config.slice(1))?g.LegacyIdentifiers.get(e.config.slice(1)):e.config;if(e.init){await D(r);return}if(e.version){let f=await A(F("node_modules","@shopify","theme-check-node","package.json"),{type:"file",cwd:I(import.meta.url)}),d="unknown";f&&(d=await C(f)??"unknown"),l(d);return}if(e.print){await J(r,a,s);return}if(e.list){await V(r,a,s);return}let{offenses:u,theme:h}=await me(r,e.output,a,s);if(e["auto-correct"]&&await M(h,u),!o)return B(u,e["fail-level"])}};K=p;p.summary="Validate the theme.";p.descriptionWithMarkdown="Calls and runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) to analyze your theme code for errors and to ensure that it follows theme and Liquid best practices. [Learn more about the checks that Theme Check runs.](https://shopify.dev/docs/themes/tools/theme-check/checks)";p.description=K.descriptionWithoutMarkdown();p.flags={...$,path:S.path,"auto-correct":m.Flags.boolean({char:"a",required:!1,description:"Automatically fix offenses",env:"SHOPIFY_FLAG_AUTO_CORRECT"}),config:m.Flags.string({char:"C",required:!1,description:`Use the config provided, overriding .theme-check.yml if present
17
- Supports all theme-check: config values, e.g., theme-check:theme-app-extension,
18
- theme-check:recommended, theme-check:all
19
- For backwards compatibility, :theme_app_extension is also supported `,env:"SHOPIFY_FLAG_CONFIG"}),"fail-level":m.Flags.string({required:!1,description:"Minimum severity for exit with error code",env:"SHOPIFY_FLAG_FAIL_LEVEL",options:["crash","error","suggestion","style","warning","info"],default:"error"}),init:m.Flags.boolean({required:!1,description:"Generate a .theme-check.yml file",env:"SHOPIFY_FLAG_INIT"}),list:m.Flags.boolean({required:!1,description:"List enabled checks",env:"SHOPIFY_FLAG_LIST"}),output:m.Flags.string({char:"o",required:!1,description:"The output format to use",env:"SHOPIFY_FLAG_OUTPUT",options:["text","json"],default:"text"}),print:m.Flags.boolean({required:!1,description:"Output active config to STDOUT",env:"SHOPIFY_FLAG_PRINT"}),version:m.Flags.boolean({char:"v",required:!1,description:"Print Theme Check version",env:"SHOPIFY_FLAG_VERSION"}),environment:S.environment};p.multiEnvironmentsFlags=["path"];var Ae=p;async function me(t,e,n,o){let{offenses:r,theme:s}=await(0,g.themeCheckRun)(t,n,a=>{process.env.SHOPIFY_TMP_FLAG_DEBUG&&L(a)}),c=Y(r);if(e==="text"&&(q(c,t,o),(r.length?w:N)({headline:o?`[${o}] Theme Check Summary.`:"Theme Check Summary.",body:W(r,c,s)})),e==="json"){let a=process.stdout;z(a)&&a._handle.setBlocking(!0),l(JSON.stringify(H(c,o)))}return{offenses:r,theme:s}}export{Ae as a,me as b};
@@ -1,4 +0,0 @@
1
- import{a as s}from"./chunk-6ZRHK4ON.js";import{a as r}from"./chunk-7XQDZF73.js";import{Ca as n,Fa as p}from"./chunk-UZ7U322K.js";import{b as e}from"./chunk-Q6LCSRIW.js";import{r as g}from"./chunk-T6CC5WUU.js";import{e as m,g as a}from"./chunk-VKWPEFWQ.js";a();var c=m(g(),1);var t,o=class extends s{async run(){let{flags:i}=await this.parse(t),f={directory:i.path,apiKey:i["client-id"],organizationId:i["organization-id"],configName:i.config},d=await n(f),{app:l}=await p({directory:i.path,clientId:void 0,forceRelink:!1,userProvidedConfigName:d.configFileName});return{app:l}}};t=o;o.summary="Fetch your app configuration from the Developer Dashboard.";o.descriptionWithMarkdown=`Pulls app configuration from the Developer Dashboard and creates or overwrites a configuration file. You can create a new app with this command to start with a default configuration file.
2
-
3
- For more information on the format of the created TOML configuration file, refer to the [App configuration](https://shopify.dev/docs/apps/tools/cli/configuration) page.
4
- `;o.description=t.descriptionWithoutMarkdown();o.flags={...e,...r,"organization-id":c.Flags.string({hidden:!0,env:"SHOPIFY_FLAG_ORGANIZATION_ID",exclusive:["client-id"]})};var A=o;export{A as a};
@@ -1 +0,0 @@
1
- import{n as a}from"./chunk-2HZMOK4U.js";import{d as o}from"./chunk-ELIH6GCC.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();var n={LOCALHOST:"localhost",HTTP:"http",PUBSUB:"google-pub-sub",EVENTBRIDGE:"event-bridge"},p={LOCALHOST:new RegExp("^http:","i"),HTTP:new RegExp("^https:","i"),PUBSUB:new RegExp("^pubsub:"),EVENTBRIDGE:new RegExp("^arn:aws:events:")};function c(t,e){let r=h(t);return r===n.LOCALHOST&&e===n.HTTP?!0:r===e}function f(t){return p.LOCALHOST.test(t)?new URL(t.toLowerCase()).hostname==="localhost":!1}function E(t,e){if(!c(t,e))throw new o(`Can't deliver your webhook payload to this address using '${e}'`,"Use a valid URL for address",l(e));let r=e;return f(t)&&(r=n.LOCALHOST),[t.trim(),r]}function l(t){return t===n.HTTP?["For remote HTTP testing, use a URL that starts with https://","For local HTTP testing, use http://localhost:{port}/{url-path}"]:t===n.PUBSUB?["For Google Pub/Sub, use pubsub://{project-id}:{topic-id}"]:t===n.EVENTBRIDGE?["For Amazon EventBridge, use an Amazon Resource Name (ARN) starting with arn:aws:events:"]:[]}function g(t,e){if(e.includes(t))return t;throw new o(`Api Version '${t}' does not exist`,`Allowed values: ${e.join(", ")}`,["Try again with a valid api-version value"])}function L(t,e,r){if(r.length===0)throw new o(`No topics found for '${e}'`);let i=T(t.trim(),r);if(i===void 0)throw new o(`Topic '${t}' does not exist for ApiVersion '${e}'`,`Allowed values: ${r.join(", ")}`,["Try again with a valid api-version - topic pair"]);return i}function T(t,e){return e.includes(t)?t:e.find(r=>r.toUpperCase().replace("/","_")===t)}function h(t){if(t){if(t.startsWith("pubsub:"))return n.PUBSUB;if(t.startsWith("arn:aws:events:"))return n.EVENTBRIDGE;if(f(t))return n.LOCALHOST;if(p.HTTP.test(t))return n.HTTP}}u();async function H(t,e,r){let i={method:"POST",body:e,headers:{"Content-Type":"application/json",...JSON.parse(r)}},s=await a(t,i);return s.status>=200&&s.status<300}export{H as a,n as b,c,E as d,g as e,L as f,h as g};
@@ -1,2 +0,0 @@
1
- import{a as b}from"./chunk-J3JPJCWP.js";import{a as fe}from"./chunk-GXUZ3V7S.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-5NY4HKJF.js";import{c as ee,e as te}from"./chunk-YBFCDINU.js";import{a as X}from"./chunk-2WDKXDFM.js";import{c as Q,e as v,m as Z,n as x}from"./chunk-KOB6T6NK.js";import{k as P,l as V,n as y}from"./chunk-5T3OVTF5.js";import{s as C,u as k}from"./chunk-PTIJDS6I.js";import{a as B,b as N}from"./chunk-SRAHMYWJ.js";import{o as K,s as J,t as z,u as Y,w as j}from"./chunk-Q7BOSHWX.js";import{ta as $,xa as L}from"./chunk-2HZMOK4U.js";import{a as O}from"./chunk-5C7HDTHJ.js";import{J as U,s as W,u as I,v as M,w as R,y as q,z as G}from"./chunk-E24W34C4.js";import{d as _,e as H}from"./chunk-3QVXHF6I.js";import{d as g}from"./chunk-ELIH6GCC.js";import{Fb as w,Hb as E,Mb as T,Pb as u}from"./chunk-EYDNSYYE.js";import{u as p}from"./chunk-A4SBXDZB.js";import{g as d}from"./chunk-VKWPEFWQ.js";d();d();d();d();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:a,filesOnlyPresentOnRemote:i,filesWithConflictingChecksums:l}=Ce(o,r),n=a.length===0&&i.length===0&&l.length===0;if(L(`theme-service:theme-reconciliation:manual:${n}`),n)return u("Local and remote checksums match - no need to reconcile theme assets"),he;let c=await Se({filesOnlyPresentLocally:a,filesOnlyPresentOnRemote:i,filesWithConflictingChecksums:l},s);return{workPromise:Ae(e,t,r,c)}}function Ce(e,t){let o=new Set,r=[],s=[];for(let i of e){o.add(i.key);let l=t.files.get(i.key);l?i.checksum!==l.checksum&&s.push(i):r.push(i)}let a=Array.from(t.files.values()).filter(i=>!o.has(i.key));return{filesOnlyPresentOnRemote:A(r,t),filesOnlyPresentLocally:A(a,t),filesWithConflictingChecksums:A(s,t)}}function A(e,t){return t.applyIgnoreFilters(e).filter(r=>r.key.endsWith(".json"))}async function S(e,t,o){if(e.length===0)return;I({body:{list:{title:t,items:e.map(s=>s.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)}async function Ae(e,t,o,r){let{localFilesToDelete:s,filesToDownload:a,remoteFilesToDelete:i}=r,l=s.map(m=>o.delete(m.key)),n=b(a,k,async m=>{let f=await P(e.id,m.map(h=>h.key),t);return Promise.all(f.map(h=>{if(h)return o.write(h)}))}),c=V(e.id,i.map(m=>m.key),t);await Promise.all([...l,...n,c])}async function Se(e,t){let{filesOnlyPresentLocally:o,filesOnlyPresentOnRemote:r,filesWithConflictingChecksums:s}=e,a=[],i=[],l=[];return t.noDelete||await S(o,"The files listed below are only present locally. What would you like to do?",{remote:{label:"Delete files from the local directory",callback:n=>{a.push(...n)}},local:{label:"Upload local files to the remote theme",callback:()=>{}}}),await S(r,"The files listed below are only present on the remote theme. What would you like to do?",{remote:{label:"Download remote files to the local directory",callback:n=>{i.push(...n)}},local:{label:"Delete files from the remote theme",callback:n=>{l.push(...n)}}}),await S(s,"The files listed below differ between the local and remote versions. What would you like to do?",{remote:{label:"Keep the remote version",callback:n=>{i.push(...n)}},local:{label:"Keep the local version",callback:()=>{}}}),{localFilesToDelete:a,filesToDownload:i,remoteFilesToDelete:l}}d();var De=3e3,F=class extends Error{};function we(e,t,o,r,s,a){u("Listening for changes in the theme editor");let i=5,l=0,n="",c=o,m=async()=>{await new Promise(f=>setTimeout(f,De)),c=await Fe(e,t,c,r,s).then(f=>(l=0,n="",f)).catch(f=>{if(l++,f.message!==n&&(n=f.message,v("Error while polling for changes.",f)),l>=i){let h=new g("Too many polling errors...","Please check the errors above and ensure you have a stable internet connection.");q(h),a(h)}return c})};setTimeout(async()=>{for(;;)await m()})}async function Fe(e,t,o,r,s){let a=new Set(r.unsyncedFileKeys),i=ye(o,r,a),l=await y(e.id,t).then(m=>ye(m,r,a)),n=$e(i,l),c=Oe(l,i);return await He(r,n),await Le(e,t,r,n),await _e(r,c,s),l}function Oe(e,t){let o=new Map(e.map(s=>[s.key,s]));return t.filter(s=>o.get(s.key)===void 0)}function $e(e,t){let o=new Map(e.map(s=>[s.key,s]));return t.filter(s=>{let a=o.get(s.key);if(!a||a.checksum!==s.checksum)return!0})}async function Le(e,t,o,r){let s=r.filter(i=>o.files.get(i.key)?.checksum!==i.checksum),a=b(s,k,async i=>P(e.id,i.map(l=>l.key),t).then(l=>Promise.all(l.map(async n=>{n&&(await o.write(n),T(E`• ${C.format(new Date)} Synced ${w.raw("\xBB")} ${w.gray(`download ${n.key} from remote theme`)}`))}))));await Promise.all(a)}async function _e(e,t,o){if(!o.noDelete)return Promise.all(t.map(r=>{if(e.files.get(r.key))return e.delete(r.key).then(()=>{T(E`• ${C.format(new Date)} Synced ${w.raw("\xBB")} ${w.gray(`remove ${r.key} from local theme`)}`)})}))}async function He(e,t){let o=new Map(e.files);await Promise.all(t.map(r=>e.read(r.key)));for(let r of t){let s=o.get(r.key)?.checksum,a=e.files.get(r.key)?.checksum;if(s!==a)throw new F(`Detected changes to the file '${r.key}' on both local and remote sources. Aborting...`)}}function ye(e,t,o){return t.applyIgnoreFilters(e).filter(s=>s.key.endsWith(".json")).filter(s=>!o.has(s.key))}var pe="local",D="remote";async function ge(e,t,o,r,s,a){u("Initiating theme asset reconciliation process"),await r.ready();let{workPromise:i}=await ue(e,t,o,r,s);return{updatedRemoteChecksumsPromise:i.then(async()=>{let n=await y(e.id,t);return we(e,t,n,r,s,a),n}),workPromise:i}}d();function ke(){if(Promise.withResolvers)return Promise.withResolvers();let e,t;return{promise:new Promise((r,s)=>{e=r,t=s}),resolve:e,reject:t}}import{createServer as We}from"node:http";function Pe(e,t){let{promise:o,resolve:r,reject:s}=ke(),a=ae(e,t),i=Ie(e,t,s),l=Promise.all([a,i.workPromise]).then(()=>t.localThemeFileSystem.startWatcher(e.id.toString(),t.session)),n=qe(e,t,l);return{workPromise:l,serverStart:n.start,dispatchEvent:n.dispatch,renderDevSetupProgress:i.renderProgress,backgroundJobPromise:o,resolveBackgroundJob:r}}function Ie(e,t,o){let r=n=>(v("Failed to perform the initial theme synchronization.",n),o(n),new Promise(()=>{})),a=y(e.id,t.session).then(n=>Me(e,t,n,o)),i=a.then(async({updatedRemoteChecksumsPromise:n})=>{let c=await n;return fe(e,t.session,c,t.localThemeFileSystem,{nodelete:t.options.noDelete,deferPartialWork:!0,backgroundWorkCatch:r})});return{workPromise:i.then(n=>n.workPromise).catch(r),renderProgress:async()=>{if(t.options.themeEditorSync){let{workPromise:c}=await a;await te([{title:"Performing file synchronization. This may take a while...",task:async()=>{await c}}])}let{renderThemeSyncProgress:n}=await i;await n()}}}function Me(e,t,o,r){return t.options.themeEditorSync?ge(e,t.session,o,t.localThemeFileSystem,{noDelete:t.options.noDelete,ignore:t.options.ignore,only:t.options.only},r):Promise.resolve({updatedRemoteChecksumsPromise:Promise.resolve(o),workPromise:Promise.resolve()})}function qe(e,t,o){let r=Y(),s=[`http://${t.options.host}:${t.options.port}`,`https://${t.session.storeFqdn}`,"https://online-store-web.shopifyapps.com"];r.use(ne(t.options.host,t.options.port)),r.use(z(async()=>(await o,J(i=>{i.node.req.headers.origin&&K(i,{origin:n=>s.includes(n),credentials:!0,methods:["GET","POST","HEAD","OPTIONS"],preflight:{statusCode:204}})})))),t.options.liveReload!=="off"&&r.use(le(e,t)),r.use(se(e,t)),r.use(re(e,t)),r.use(oe(e,t));let a=We(j(r));return{dispatch:r.handler.bind(r),start:async()=>new Promise(i=>a.listen({port:t.options.port,host:t.options.host},()=>i({close:async()=>{await Promise.all([new Promise(l=>{a.closeAllConnections(),a.close(l)})])}})))}}import Ge from"readline";var Ue="127.0.0.1",Ke=9292,ve=!1;async function xt(e){if(!await de(e.directory)&&!await ee(e.force))return;e.password?.startsWith("shpat_")&&R({headline:"Admin API token missing features:",body:["Directly using an Admin API token will result in some missing features.","We recommend generating a password from the Theme Access app.","Alternatively, you can authenticate normally by not passing the --password flag.",`
2
- `,{list:{title:"Known limitations:",items:["Hot module reloading","Password protected storefronts"]}}],link:{label:"Theme Access app",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-access"}}),e.listing&&await ce(e.directory,e.listing);let[t,o]=await Promise.all([Z(e.adminSession),Q(e.adminSession)]),r=o?await X(e.storePassword,e.adminSession.storeFqdn,t):void 0,s=ie(),a=me(e.directory,{filters:e,listing:e.listing,noDelete:e.noDelete,notify:e.notify}),i=e.host??Ue,l;if(e.port){if(!await N(e.port))throw new g(`Port ${e.port} is not available. Try a different port or remove the --port flag to use an available port.`);l=e.port}else l=await B(Ke);let n={local:`http://${i}:${l}`,giftCard:`http://${i}:${l}/gift_cards/[store_id]/preview`,themeEditor:`https://${e.store}/admin/themes/${e.theme.id}/editor?hr=${l}`,preview:`https://${e.store}/?preview_theme_id=${e.theme.id}`},m={session:await x(e.theme.id.toString(),e.adminSession,e.password,r,t),localThemeFileSystem:a,localThemeExtensionFileSystem:s,directory:e.directory,type:"theme",lastRequestedPath:"",options:{themeEditorSync:e["theme-editor-sync"],host:i,port:l,open:e.open,liveReload:e["live-reload"],standardEventsDevBundle:!0,standardEventsInspector:e["standard-events-inspector"],noDelete:e.noDelete,ignore:e.ignore,only:e.only,errorOverlay:e["error-overlay"]}},{serverStart:f,renderDevSetupProgress:h,backgroundJobPromise:Re,resolveBackgroundJob:Ee}=Pe(e.theme,m);Ge.emitKeypressEvents(process.stdin);let Te=ze(n,m,Ee);process.stdin.on("keypress",Te),await Promise.all([Re,h().then(f).then(()=>{process.stdin.isTTY&&process.stdin.setRawMode(!0),je(n),e.open&&be(n.local,"development server")})]),await Je(e.commandConfig,e.adminSession),process.exit(0)}async function Je(e,t){if(!ve){ve=!0;try{await _(()=>({store_fqdn_hash:O(t.storeFqdn)})),await H(()=>({store_fqdn:t.storeFqdn})),await $({config:e,exitMode:"ok"})}catch{}}}function ze(e,t,o){let r=W(be,100,{leading:!0,trailing:!1});return(s,a)=>{if(a.ctrl&&a.name==="c"){o();return}switch(a.name){case void 0:break;case"t":r(e.local,"localhost");break;case"p":r(e.preview,"theme preview");break;case"e":r(t.lastRequestedPath==="/"?e.themeEditor:`${e.themeEditor}&previewPath=${encodeURIComponent(t.lastRequestedPath)}`,"theme editor");break;case"g":r(e.giftCard,"gift card preview");break;default:break}}}function be(e,t){U(e).catch(Ye(t))}function Ye(e){return t=>{R({headline:`Failed to open ${e}.`,body:t.stack??t.message})}}function je(e){M({body:[{list:{title:p.bold("Preview your theme ")+p.cyan("(t)"),items:[{link:{url:e.local}}]}}],nextSteps:[[{link:{label:`Share your theme preview ${p.cyan("(p)")}`,url:e.preview}},{subdued:e.preview}],[{link:{label:`Customize your theme at the theme editor ${p.cyan("(e)")}`,url:e.themeEditor}}],[{link:{label:`Preview your gift cards ${p.cyan("(g)")}`,url:e.giftCard}}]]})}export{xt as a,be as b};
@@ -1,11 +0,0 @@
1
- import{b as $}from"./chunk-WW7TENNA.js";import{a as F}from"./chunk-5C7HDTHJ.js";import{R as _}from"./chunk-E24W34C4.js";import{d as T}from"./chunk-3QVXHF6I.js";import{d}from"./chunk-ELIH6GCC.js";import{Fb as h,Hb as g,Lb as P,aa as E}from"./chunk-EYDNSYYE.js";import{c as O}from"./chunk-JCNRQYRP.js";import{a as b}from"./chunk-NNOSZ447.js";import{r as I}from"./chunk-T6CC5WUU.js";import{e as S,g as w}from"./chunk-VKWPEFWQ.js";w();var u=S(I()),p=class extends u.Command{static descriptionWithoutMarkdown(){return(this.descriptionWithMarkdown??"").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm,'"$2" ($5)')}static analyticsNameOverride(){}static analyticsStopCommand(){}async catch(n){n.skipOclifErrorHandling=!0;let{errorHandler:r}=await import("./error-handler-MCUV4RZV.js");return await r(n,this.config),u.Errors.handle(n)}async init(){if(this.exitWithTimestampWhenEnvVariablePresent(),$(this.id??""),!O()){let{registerCleanBugsnagErrorsFromWithinPlugins:r}=await import("./error-handler-MCUV4RZV.js");await r(this.config)}await x(this.config),this.showNpmFlagWarning();let{showNotificationsIfNeeded:n}=await import("./notifications-system-76GJJAJP.js");return await n(),super.init()}showNpmFlagWarning(){let n=this.constructor;Object.keys(n.flags||{}).map(t=>`npm_config_${E(t).replace(/^no_/,"")}`).some(t=>process.env[t]!==void 0)&&import("./ui-QIHGXICT.js").then(({renderWarning:t})=>{t({body:["NPM scripts require an extra",{command:"--"},"separator to pass the flags. Example:",{command:"npm run dev -- --reset"}]})})}exitWithTimestampWhenEnvVariablePresent(){b(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN)&&(P(`
2
- SHOPIFY_CLI_TIMESTAMP_START
3
- { "timestamp": ${Date.now()} }
4
- SHOPIFY_CLI_TIMESTAMP_END
5
- `),process.exit(0))}async parse(n,r){let e=await super.parse(n,r);return e=await this.resultWithEnvironment(e,n,r),await j(e.flags),{...e,argv:e.argv}}environmentsFilename(){}failMissingNonTTYFlags(n,r){_()||r.forEach(e=>{if(!(e in n))throw new d(g`Flag not specified:
6
-
7
- ${h.cyan(e)}
8
-
9
- This flag is required in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal.")})}async resultWithEnvironment(n,r,e){let t=n.flags,i=this.environmentsFilename();if(!i)return n;let{environmentFilePath:o}=await import("./environments-ZLSO534C.js"),s=await o(i,{from:t.path}),m=[];t.environment&&(m=Array.isArray(t.environment)?t.environment:[t.environment]);let c=m.length>0;if(!s&&!c||c&&m.length>1)return n;let{environment:l,isDefaultEnvironment:f}=await this.loadEnvironmentForCommand(t.path,i,m[0]);if(!l||f&&!C(r?.flags,"environment"))return n;let v=await super.parse(N(r),e),y=await super.parse(r,[...e??this.argv,...W(l,r,v),...f?["--environment","default"]:[]]);return A(v.flags,y.flags,f?"default":m[0],l),y}async loadEnvironmentForCommand(n,r,e){let{loadEnvironment:t}=await import("./environments-ZLSO534C.js");return e?{environment:await t(e,r,{from:n}),isDefaultEnvironment:!1}:{environment:await t("default",r,{from:n,silent:!0}),isDefaultEnvironment:!0}}};p.baseFlags={};async function j(a){await T(()=>({cmd_all_verbose:a.verbose,cmd_all_path_override:a.path!==void 0,cmd_all_path_override_hash:a.path===void 0?void 0:F(a.path)}))}function A(a,n,r,e){let t={};for(let[o,s]of Object.entries(n)){let m=Object.prototype.hasOwnProperty.call(a,o),c=Object.prototype.hasOwnProperty.call(e,o);if(!m&&c){let l=o==="password"?`********${s.substr(-4)}`:s;t[o]=l}}if(Object.keys(t).length===0)return;let i=Object.entries(t).map(([o,s])=>`${o}: ${s}`);import("./ui-QIHGXICT.js").then(({renderInfo:o})=>{o({headline:["Using applicable flags from",{userInput:r},"environment:"],body:[{list:{items:i}}]})})}function N(a){return a?.flags?{...a,flags:Object.fromEntries(Object.entries(a.flags).map(([n,r])=>{let e={...r};return delete e.default,[n,e]}))}:a}function W(a,n,r){let e=[];for(let[t,i]of Object.entries(a)){let o=C(n?.flags,t),s=r.flags&&Object.prototype.hasOwnProperty.call(r.flags,t);if(o&&!s)if(typeof i=="boolean")if(i)e.push(`--${t}`);else throw new d(g`Environments can only specify true for boolean flags. Attempted to set ${h.yellow(t)} to false.`);else Array.isArray(i)?i.forEach(m=>e.push(`--${t}`,`${m}`)):e.push(`--${t}`,`${i}`)}return e}function C(a,n){return!!a&&Object.prototype.hasOwnProperty.call(a,n)}async function x(a){let n=Array.from(a.plugins.values()),r=["@shopify/app","@shopify/plugin-cloudflare"],e=n.filter(i=>r.includes(i.name));if(e.length>0){let i=e.map(s=>` - shopify plugins remove ${s.name}`).join(`
10
- `),{renderWarning:o}=await import("./ui-QIHGXICT.js");o({headline:`Unsupported plugins detected: ${e.map(s=>s.name).join(", ")}`,body:["They are already included in the CLI and installing them as custom plugins can cause conflicts.",`You can fix it by running:
11
- ${i}`]})}let t=n.filter(i=>!r.includes(i.name));a.plugins=new Map(t.map(i=>[i.name,i]))}var q=p;export{N as a,q as b};
@@ -1 +0,0 @@
1
- import{b as e}from"./chunk-IDKUJQIG.js";import{r}from"./chunk-T6CC5WUU.js";import{e as c,g as t}from"./chunk-VKWPEFWQ.js";t();var s=c(r(),1);var a=class o extends e{static{this.args={command:s.Args.string({description:"Command to show help for.",required:!1})}}static{this.description="Display help for Shopify CLI"}static{this.usage="help [command] [flags]"}static{this.flags={"nested-commands":s.Flags.boolean({char:"n",description:"Include all nested commands in the output.",env:"SHOPIFY_FLAG_CLI_NESTED_COMMANDS",default:!1})}}static{this.strict=!1}async run(){let{argv:i,flags:n}=await this.parse(o),l=await(0,s.loadHelpClass)(this.config);await new l(this.config,{all:n["nested-commands"]}).showHelp(i)}};export{a};