@shopify/cli 4.1.0 → 4.3.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 (459) hide show
  1. package/dist/{acorn-LOOAJL3S.js → acorn-7M27BPGP.js} +1 -1
  2. package/dist/analytics-JH64XI2J.js +1 -0
  3. package/dist/analytics-MEGKKFGF.js +1 -0
  4. package/dist/angular-DW5TQVCM.js +4 -0
  5. package/dist/{babel-URCL33XX.js → babel-I2RLWM7N.js} +1 -1
  6. package/dist/bootstrap.js +1 -1
  7. package/dist/{chokidar-G4ONJSK4.js → chokidar-VDIVGBZH.js} +1 -1
  8. package/dist/chunk-25HJX3L2.js +5 -0
  9. package/dist/chunk-2EHBJWC6.js +26 -0
  10. package/dist/chunk-2GAFKG64.js +4 -0
  11. package/dist/chunk-2GU7OY3H.js +1 -0
  12. package/dist/{chunk-4IC626OL.js → chunk-2K7FGAT6.js} +1 -1
  13. package/dist/{chunk-PRVQAHWI.js → chunk-2O22LZKV.js} +1 -1
  14. package/dist/{chunk-NMBBTTIH.js → chunk-2RBIR3NM.js} +1 -1
  15. package/dist/chunk-2TMQG2UT.js +1 -0
  16. package/dist/chunk-2XZBQZ5R.js +7 -0
  17. package/dist/{chunk-Q4T2T2QE.js → chunk-33OHQUHZ.js} +1 -1
  18. package/dist/chunk-3AOQKI4B.js +1 -0
  19. package/dist/{chunk-OBEWZXOQ.js → chunk-3SPDFV5D.js} +1 -1
  20. package/dist/chunk-3YDYZ232.js +103 -0
  21. package/dist/chunk-4FFPTEKD.js +1 -0
  22. package/dist/chunk-4J32OHLY.js +1382 -0
  23. package/dist/chunk-4QTEPWEJ.js +283 -0
  24. package/dist/chunk-57PPQKJT.js +15 -0
  25. package/dist/{chunk-AGNMOFJS.js → chunk-5BKCIDMS.js} +1 -1
  26. package/dist/{chunk-JUVAGMIH.js → chunk-5C7HDTHJ.js} +1 -1
  27. package/dist/chunk-5FFHQTRC.js +4 -0
  28. package/dist/{chunk-2GK56X53.js → chunk-5FVB7JHP.js} +1 -1
  29. package/dist/{chunk-UYXEA3Y6.js → chunk-5H3VTG77.js} +1 -1
  30. package/dist/chunk-5O43334U.js +2 -0
  31. package/dist/chunk-5XDQ76DQ.js +1 -0
  32. package/dist/{chunk-PD5ZHJWI.js → chunk-636CTEW7.js} +1 -1
  33. package/dist/chunk-6JKGUQRD.js +1 -0
  34. package/dist/chunk-6KETAPWL.js +1 -0
  35. package/dist/{chunk-ULFWK45W.js → chunk-6LWOWDF4.js} +2 -2
  36. package/dist/chunk-7572RLUP.js +1 -0
  37. package/dist/chunk-762JWOWJ.js +5 -0
  38. package/dist/{chunk-IU2ZQ6TE.js → chunk-773TIA5M.js} +1 -1
  39. package/dist/{chunk-76R52ODR.js → chunk-7D45IAMQ.js} +1 -1
  40. package/dist/chunk-7FQFEB33.js +370 -0
  41. package/dist/chunk-7LV55VWE.js +1 -0
  42. package/dist/{chunk-QUTQDXSL.js → chunk-7UNQOKZW.js} +1 -1
  43. package/dist/chunk-A27NZMWB.js +1 -0
  44. package/dist/chunk-A4SBXDZB.js +14 -0
  45. package/dist/{chunk-4DCQNGUV.js → chunk-A5HKAMAC.js} +10 -10
  46. package/dist/{chunk-Z35BTAM6.js → chunk-AAK376RT.js} +1 -1
  47. package/dist/chunk-AERKD4TO.js +3 -0
  48. package/dist/{chunk-L2MGAEV3.js → chunk-ANBOLDON.js} +2 -2
  49. package/dist/{chunk-UJVH7FZS.js → chunk-AO3RFGNV.js} +1 -1
  50. package/dist/{chunk-KHSYW7I4.js → chunk-ATSMK66C.js} +1 -1
  51. package/dist/chunk-AU5EZQW7.js +5 -0
  52. package/dist/chunk-AVD3INWF.js +1 -0
  53. package/dist/chunk-AWEB5AQM.js +1 -0
  54. package/dist/chunk-AXNAGI32.js +1 -0
  55. package/dist/chunk-BL46CZ2M.js +2 -0
  56. package/dist/chunk-BQWK3C47.js +278 -0
  57. package/dist/chunk-CEHXOWA6.js +3 -0
  58. package/dist/{chunk-EKXY5COY.js → chunk-CFOXXOO2.js} +1 -1
  59. package/dist/{chunk-PIBY5DDZ.js → chunk-CRALWNNO.js} +1 -1
  60. package/dist/chunk-CV5EQGES.js +22 -0
  61. package/dist/chunk-CX5CC6P5.js +1 -0
  62. package/dist/chunk-DCLUZFT7.js +2 -0
  63. package/dist/{chunk-Q33IBIVJ.js → chunk-DNXYKGV2.js} +1 -1
  64. package/dist/chunk-DTIWUT2T.js +18 -0
  65. package/dist/{chunk-VICYNG2W.js → chunk-DYNH5SKT.js} +1 -1
  66. package/dist/chunk-DZQYG32N.js +2 -0
  67. package/dist/{chunk-FQWB2F75.js → chunk-E7DHELFH.js} +1 -1
  68. package/dist/chunk-EH7ZTFS4.js +613 -0
  69. package/dist/{chunk-P6XE4MH5.js → chunk-EJDWYASP.js} +1 -1
  70. package/dist/chunk-EKVTNWHM.js +1 -0
  71. package/dist/{chunk-6M3ZYNGO.js → chunk-ET2CGROE.js} +1 -1
  72. package/dist/chunk-EVZA2TCI.js +3 -0
  73. package/dist/{chunk-QSTEVZFQ.js → chunk-F3TMLDLC.js} +1 -1
  74. package/dist/chunk-FIYAECXH.js +28 -0
  75. package/dist/{chunk-WDC3KIZT.js → chunk-FKIVKNOV.js} +1 -1
  76. package/dist/chunk-FOFJBRSL.js +11 -0
  77. package/dist/chunk-FQ5ZZX2G.js +25 -0
  78. package/dist/chunk-G2LVUM7N.js +6 -0
  79. package/dist/chunk-G2OHWAY2.js +7 -0
  80. package/dist/chunk-G3JJLXPH.js +1 -0
  81. package/dist/chunk-G3RWLAOG.js +1 -0
  82. package/dist/chunk-G4OQABDT.js +836 -0
  83. package/dist/{chunk-KLMDWDT2.js → chunk-GB3YC4TI.js} +1 -1
  84. package/dist/{chunk-OCOY5MV2.js → chunk-GCN4O7HM.js} +1 -1
  85. package/dist/chunk-GDHD3TGC.js +6 -0
  86. package/dist/{chunk-JXW374CL.js → chunk-GJXINXSU.js} +11 -11
  87. package/dist/chunk-GWHV62YT.js +1 -0
  88. package/dist/chunk-HCTZN7L4.js +2 -0
  89. package/dist/{chunk-ZSBA6VIC.js → chunk-HDC5V7RY.js} +1 -1
  90. package/dist/{chunk-7NH7CHVI.js → chunk-HIQHYPLU.js} +1 -1
  91. package/dist/{chunk-XOTA6JTZ.js → chunk-HOSFU6UP.js} +3 -3
  92. package/dist/chunk-I22ZTRKK.js +3 -0
  93. package/dist/chunk-I4R7TML2.js +7 -0
  94. package/dist/{chunk-EENHXSWU.js → chunk-I5A6BPCP.js} +1 -1
  95. package/dist/chunk-IWOTLFOY.js +32 -0
  96. package/dist/{chunk-7UYZQN4V.js → chunk-J3H4LPN6.js} +3 -3
  97. package/dist/{chunk-XULPJ6UG.js → chunk-J3HX6ZGD.js} +1 -1
  98. package/dist/chunk-J3JPJCWP.js +1 -0
  99. package/dist/chunk-J5BRKYGE.js +294 -0
  100. package/dist/chunk-JAWKLBOB.js +3 -0
  101. package/dist/{chunk-MCVRONUY.js → chunk-JAWOP4HJ.js} +1 -1
  102. package/dist/{chunk-ZGK3LGCH.js → chunk-JCIN73BE.js} +1 -1
  103. package/dist/chunk-JEZ3PGVC.js +1 -0
  104. package/dist/{chunk-C7BTJ32Z.js → chunk-JJ6RM54S.js} +1 -1
  105. package/dist/chunk-JK3NIHTX.js +17 -0
  106. package/dist/chunk-JLE4NBMT.js +1 -0
  107. package/dist/chunk-JSOGPMWB.js +5 -0
  108. package/dist/chunk-JUYJZUYU.js +1 -0
  109. package/dist/chunk-KRQGLK2Q.js +3 -0
  110. package/dist/{chunk-3VZEETAV.js → chunk-KRZABRYT.js} +1 -1
  111. package/dist/{chunk-BS3BKORT.js → chunk-L2PC4MUV.js} +1 -1
  112. package/dist/chunk-LCZDC6EE.js +5 -0
  113. package/dist/chunk-LXVORHCQ.js +1 -0
  114. package/dist/chunk-M2YINBHF.js +32 -0
  115. package/dist/chunk-M7YFD4EV.js +10 -0
  116. package/dist/chunk-MEIEEENL.js +1 -0
  117. package/dist/chunk-MIDYZPO4.js +1 -0
  118. package/dist/chunk-MINZGZ4N.js +1 -0
  119. package/dist/chunk-MMIHHCMW.js +5 -0
  120. package/dist/{chunk-PRKBO42R.js → chunk-MPW2YJWU.js} +1 -1
  121. package/dist/chunk-MRS6LAY7.js +1 -0
  122. package/dist/chunk-N3CNWCC2.js +19 -0
  123. package/dist/{chunk-M2D7USAX.js → chunk-N3NE4MVN.js} +1 -1
  124. package/dist/chunk-N3YTDGFY.js +4 -0
  125. package/dist/{chunk-MHWV5RQV.js → chunk-N5LVGFDS.js} +2 -2
  126. package/dist/{chunk-QBSKKQBN.js → chunk-NILXAUUT.js} +1 -1
  127. package/dist/{chunk-5Y7GIF2W.js → chunk-NJOO5XJV.js} +1 -1
  128. package/dist/{chunk-ULQG3XQS.js → chunk-NNOSZ447.js} +1 -1
  129. package/dist/{chunk-6G6TMKXF.js → chunk-NTRAWIEJ.js} +21 -21
  130. package/dist/chunk-NWXDOCL5.js +1 -0
  131. package/dist/{chunk-2AJ5FI2K.js → chunk-OU3M32A2.js} +1 -1
  132. package/dist/chunk-OU4SKQTC.js +5 -0
  133. package/dist/chunk-OXJBYKMX.js +1 -0
  134. package/dist/chunk-OZBY45KT.js +1 -0
  135. package/dist/{chunk-75VPUOC5.js → chunk-P2OI2P2M.js} +1 -1
  136. package/dist/chunk-PCCK4YTE.js +1 -0
  137. package/dist/{chunk-6RE2SNCU.js → chunk-PFGYC53K.js} +1 -1
  138. package/dist/chunk-PMS4MNHB.js +6 -0
  139. package/dist/chunk-PNP5OKNZ.js +1 -0
  140. package/dist/{chunk-KN3WTTHZ.js → chunk-PXHY753L.js} +1 -1
  141. package/dist/chunk-Q73GEVSJ.js +11 -0
  142. package/dist/{chunk-5WVAHE5E.js → chunk-Q77MM2N2.js} +1 -1
  143. package/dist/chunk-Q7C44DX5.js +4 -0
  144. package/dist/chunk-QDVJJKLB.js +1 -0
  145. package/dist/{chunk-5CH3B62S.js → chunk-RJ5VF3QY.js} +1 -1
  146. package/dist/{chunk-E3EMHAJB.js → chunk-RKDZGK5K.js} +1 -1
  147. package/dist/{chunk-TYZXGSHO.js → chunk-RSRYC5ZF.js} +1 -1
  148. package/dist/chunk-S22NCNAJ.js +1 -0
  149. package/dist/chunk-S5IFJ737.js +3 -0
  150. package/dist/chunk-S6B2ADVR.js +8 -0
  151. package/dist/chunk-S7F5KFQP.js +1 -0
  152. package/dist/chunk-SSCYLDSX.js +3 -0
  153. package/dist/{chunk-QFWIDATO.js → chunk-STJ3LWFL.js} +1 -1
  154. package/dist/chunk-T3ERXB7F.js +8 -0
  155. package/dist/chunk-T4IV643Z.js +9 -0
  156. package/dist/chunk-T4NS63K4.js +16 -0
  157. package/dist/chunk-T6CC5WUU.js +159 -0
  158. package/dist/{chunk-3TNEIDOD.js → chunk-T7KHS6RF.js} +1 -1
  159. package/dist/{chunk-QYR5VPQA.js → chunk-TOLPNBZK.js} +1 -1
  160. package/dist/{chunk-DRFGABEB.js → chunk-TP7E54WN.js} +1 -1
  161. package/dist/chunk-TPCG6DCA.js +1 -0
  162. package/dist/{chunk-SXTMSGUE.js → chunk-TRYWVIVJ.js} +1 -1
  163. package/dist/chunk-TU47HMTL.js +1 -0
  164. package/dist/chunk-TUNUEOHO.js +3 -0
  165. package/dist/{chunk-MWY3A7O3.js → chunk-TY6BZTG3.js} +1 -1
  166. package/dist/chunk-TYMYIUIQ.js +1 -0
  167. package/dist/chunk-UB26DGTR.js +6 -0
  168. package/dist/chunk-UC7KMA6W.js +8 -0
  169. package/dist/chunk-UOHNRH6E.js +7 -0
  170. package/dist/{chunk-ZR76GGZ6.js → chunk-UQWFDL3F.js} +1 -1
  171. package/dist/chunk-USLYL5AC.js +1 -0
  172. package/dist/chunk-UTO4Z6P6.js +567 -0
  173. package/dist/{chunk-M2ZHFKPN.js → chunk-UU5P2IYU.js} +1 -1
  174. package/dist/chunk-UYSF234H.js +1 -0
  175. package/dist/chunk-VE35YELD.js +1 -0
  176. package/dist/{chunk-WSDN25F5.js → chunk-VI34CKV6.js} +1 -1
  177. package/dist/chunk-VJ6KDRZI.js +1 -0
  178. package/dist/{chunk-VBUZWRUL.js → chunk-VJEKDBGZ.js} +1 -1
  179. package/dist/chunk-VKWPEFWQ.js +1 -0
  180. package/dist/chunk-VPPWSKOY.js +1 -0
  181. package/dist/chunk-VRJTLVG3.js +1 -0
  182. package/dist/chunk-VUMUCNI7.js +1 -0
  183. package/dist/chunk-W7DDV2EY.js +1 -0
  184. package/dist/chunk-WA3YC5W4.js +15 -0
  185. package/dist/chunk-WHNWE7P2.js +1 -0
  186. package/dist/chunk-WVRGCNBZ.js +1 -0
  187. package/dist/{chunk-MOA33ZFO.js → chunk-WW7TENNA.js} +1 -1
  188. package/dist/{chunk-HZA6IAA4.js → chunk-XVUHUA36.js} +1 -1
  189. package/dist/{chunk-OLZHWPZP.js → chunk-XWPPBOGF.js} +1 -1
  190. package/dist/chunk-YIRFEW5M.js +1 -0
  191. package/dist/{chunk-KR6QDE7D.js → chunk-YL3TYQGT.js} +1 -1
  192. package/dist/{chunk-7MUKLZOL.js → chunk-YLQ3LNNY.js} +3 -3
  193. package/dist/chunk-YMAWEIUR.js +1 -0
  194. package/dist/chunk-YPBCSDFQ.js +1 -0
  195. package/dist/{chunk-KZOBF55B.js → chunk-YSIBRY6C.js} +1 -1
  196. package/dist/{chunk-KHTV6PBV.js → chunk-YVQXEPHY.js} +1 -1
  197. package/dist/{chunk-4LNCYIS3.js → chunk-ZDF5N422.js} +1 -1
  198. package/dist/{chunk-T4M5CWAO.js → chunk-ZG7BVVT2.js} +1 -1
  199. package/dist/chunk-ZGJ3DFTQ.js +9 -0
  200. package/dist/{chunk-NKQBEFPS.js → chunk-ZI7LK3LW.js} +1 -1
  201. package/dist/chunk-ZM75DSIW.js +1 -0
  202. package/dist/{chunk-URZPVSJZ.js → chunk-ZUKLGZOU.js} +66 -66
  203. package/dist/cli/commands/app/app-logs/sources.js +1 -2
  204. package/dist/cli/commands/app/build.js +1 -1
  205. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  206. package/dist/cli/commands/app/bulk/execute.js +1 -9
  207. package/dist/cli/commands/app/bulk/status.js +1 -5
  208. package/dist/cli/commands/app/config/link.js +1 -4
  209. package/dist/cli/commands/app/config/pull.js +1 -1
  210. package/dist/cli/commands/app/config/use.js +1 -1
  211. package/dist/cli/commands/app/config/validate.js +1 -3
  212. package/dist/cli/commands/app/demo/watcher.js +1 -1
  213. package/dist/cli/commands/app/deploy.js +1 -22
  214. package/dist/cli/commands/app/dev/clean.js +1 -5
  215. package/dist/cli/commands/app/dev.js +1 -320
  216. package/dist/cli/commands/app/env/pull.js +1 -11
  217. package/dist/cli/commands/app/env/show.js +1 -1
  218. package/dist/cli/commands/app/execute.js +1 -1
  219. package/dist/cli/commands/app/function/build.js +1 -1
  220. package/dist/cli/commands/app/function/info.js +1 -16
  221. package/dist/cli/commands/app/function/replay.js +1 -5
  222. package/dist/cli/commands/app/function/run.js +1 -1
  223. package/dist/cli/commands/app/function/schema.js +1 -1
  224. package/dist/cli/commands/app/function/typegen.js +1 -1
  225. package/dist/cli/commands/app/generate/extension.js +1 -5
  226. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -4
  227. package/dist/cli/commands/app/import-extensions.js +1 -1
  228. package/dist/cli/commands/app/info.js +1 -11
  229. package/dist/cli/commands/app/init.js +1 -10
  230. package/dist/cli/commands/app/logs.js +1 -2
  231. package/dist/cli/commands/app/release.js +1 -4
  232. package/dist/cli/commands/app/versions/list.js +1 -1
  233. package/dist/cli/commands/app/webhook/trigger.js +1 -25
  234. package/dist/cli/commands/auth/login.js +1 -1
  235. package/dist/cli/commands/auth/logout.js +1 -1
  236. package/dist/cli/commands/cache/clear.js +1 -1
  237. package/dist/cli/commands/config/autoupgrade/constants.js +1 -1
  238. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  239. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  240. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  241. package/dist/cli/commands/debug/command-flags.js +1 -1
  242. package/dist/cli/commands/doc/fetch.d.ts +12 -0
  243. package/dist/cli/commands/doc/fetch.js +1 -0
  244. package/dist/cli/commands/doc/search.d.ts +13 -0
  245. package/dist/cli/commands/doc/search.js +1 -0
  246. package/dist/cli/commands/docs/generate.js +1 -1
  247. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  248. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  249. package/dist/cli/commands/help.js +1 -1
  250. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  251. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  252. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  253. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  254. package/dist/cli/commands/notifications/generate.js +1 -1
  255. package/dist/cli/commands/notifications/list.js +1 -1
  256. package/dist/cli/commands/organization/list.js +1 -1
  257. package/dist/cli/commands/search.d.ts +4 -0
  258. package/dist/cli/commands/search.js +1 -1
  259. package/dist/cli/commands/theme/check.js +1 -1
  260. package/dist/cli/commands/theme/console.js +1 -15
  261. package/dist/cli/commands/theme/delete.js +1 -7
  262. package/dist/cli/commands/theme/dev.js +1 -26
  263. package/dist/cli/commands/theme/duplicate.js +1 -32
  264. package/dist/cli/commands/theme/info.js +1 -1
  265. package/dist/cli/commands/theme/init.js +1 -8
  266. package/dist/cli/commands/theme/language-server.js +1 -1
  267. package/dist/cli/commands/theme/list.js +1 -1
  268. package/dist/cli/commands/theme/metafields/pull.js +1 -3
  269. package/dist/cli/commands/theme/open.js +1 -8
  270. package/dist/cli/commands/theme/package.js +1 -7
  271. package/dist/cli/commands/theme/preview.js +1 -1
  272. package/dist/cli/commands/theme/profile.js +1 -3
  273. package/dist/cli/commands/theme/publish.js +1 -7
  274. package/dist/cli/commands/theme/pull.js +1 -3
  275. package/dist/cli/commands/theme/push.js +1 -28
  276. package/dist/cli/commands/theme/rename.js +1 -6
  277. package/dist/cli/commands/theme/share.js +1 -3
  278. package/dist/cli/commands/upgrade.js +1 -1
  279. package/dist/cli/commands/version.js +1 -1
  280. package/dist/cli/services/commands/doc/fetch.d.ts +1 -0
  281. package/dist/cli/services/commands/doc/fetch.js +45 -0
  282. package/dist/cli/services/commands/doc/search.d.ts +1 -0
  283. package/dist/cli/services/commands/doc/search.js +47 -0
  284. package/dist/command-registry.js +1 -1
  285. package/dist/conf-store-UY3MDGGA.js +1 -0
  286. package/dist/configs/all.yml +3 -0
  287. package/dist/configs/recommended.yml +3 -0
  288. package/dist/{custom-oclif-loader-DVFFWCBV.js → custom-oclif-loader-3AICQCNU.js} +1 -1
  289. package/dist/data/filters.json +60 -0
  290. package/dist/data/latest.json +1 -1
  291. package/dist/data/setting.json +29 -9
  292. package/dist/data/shopify_system_translations.json +71 -19
  293. package/dist/data/tags.json +3 -3
  294. package/dist/deprecations-KNUMDRIU.js +1 -0
  295. package/dist/{devtools-OLOT2NY4.js → devtools-37DE4MUR.js} +1 -1
  296. package/dist/{devtools-UFRKBFGI.js → devtools-WAWU5KQL.js} +1 -1
  297. package/dist/dist-C5IV2YDQ.js +1 -0
  298. package/dist/dist-VL4KZWV2.js +1 -0
  299. package/dist/environments-YPRVO2CF.js +1 -0
  300. package/dist/error-XRBQTNFM.js +1 -0
  301. package/dist/error-handler-NI7D6GSY.js +1 -0
  302. package/dist/{estree-KI7NUW53.js → estree-JV5M77BA.js} +2 -2
  303. package/dist/{flow-MLHT7MTJ.js → flow-N4JYPYMQ.js} +1 -1
  304. package/dist/fs-LJWVNO4H.js +1 -0
  305. package/dist/{glimmer-HAJ4HQCW.js → glimmer-JEV3BXHR.js} +1 -1
  306. package/dist/{graphql-F7IHGXDT.js → graphql-DTF6MHYF.js} +1 -1
  307. package/dist/hooks/app-init.js +1 -1
  308. package/dist/hooks/did-you-mean.js +1 -1
  309. package/dist/hooks/hydrogen-init.js +1 -1
  310. package/dist/hooks/plugin-plugins.js +1 -1
  311. package/dist/hooks/postrun.js +1 -1
  312. package/dist/hooks/prerun.js +1 -1
  313. package/dist/hooks/public-metadata.js +1 -1
  314. package/dist/hooks/sensitive-metadata.js +1 -1
  315. package/dist/hooks/tunnel-provider.js +1 -1
  316. package/dist/hooks/tunnel-start.js +1 -1
  317. package/dist/html-LVOJ3RQS.js +25 -0
  318. package/dist/{http-proxy-node16-Q5DZMBHC.js → http-proxy-node16-X2WAMUT5.js} +1 -1
  319. package/dist/index.js +23 -1175
  320. package/dist/is-global-W6ALVC5L.js +1 -0
  321. package/dist/is-wsl-UEMXYJPN.js +1 -0
  322. package/dist/{latest-version-EFWBOTWM.js → latest-version-32HXMWJ7.js} +1 -1
  323. package/dist/lib-AIKYSHWL.js +1 -0
  324. package/dist/lib-O5EZ4NVT.js +1 -0
  325. package/dist/lib-Q4PWEMFD.js +1 -0
  326. package/dist/lib-QJDPPAWN.js +1 -0
  327. package/dist/{local-MTKXSZ3I.js → local-GKEWZAIV.js} +1 -1
  328. package/dist/local-storage-ZOZMA22B.js +1 -0
  329. package/dist/{markdown-PLKL4IZK.js → markdown-J6CE6POI.js} +2 -2
  330. package/dist/{meriyah-AYZQ3BGY.js → meriyah-PNQQZQYI.js} +1 -1
  331. package/dist/metadata-UEUN64TK.js +1 -0
  332. package/dist/{morph-EMYAITFM.js → morph-CGOZEPPZ.js} +4 -4
  333. package/dist/{multipart-parser-Q4QJZK3V.js → multipart-parser-5NSSTW27.js} +1 -1
  334. package/dist/node-package-manager-4ASQQIIF.js +1 -0
  335. package/dist/notifications-system-HLXJCAMG.js +1 -0
  336. package/dist/{npa-ICFSA3NL.js → npa-A4YSCQ5Q.js} +1 -1
  337. package/dist/{open-VA7TLUIL.js → open-KLSGXBIW.js} +1 -1
  338. package/dist/out-CDCY25QC.js +1 -0
  339. package/dist/output-S6E37GJQ.js +1 -0
  340. package/dist/{path-CWUNINMX.js → path-MBXP7ZIC.js} +1 -1
  341. package/dist/{postcss-3FJQPJI2.js → postcss-Q36SHOML.js} +2 -2
  342. package/dist/{prettier-NVRHEAFO.js → prettier-EGVCP5CY.js} +1 -1
  343. package/dist/{source-map-3K6Y2OMO.js → source-map-E7FCCJL7.js} +1 -1
  344. package/dist/system-YQZNGSWB.js +1 -0
  345. package/dist/tsconfig.tsbuildinfo +1 -1
  346. package/dist/typescript-5R4Y7PXE.js +1 -0
  347. package/dist/{typescript-ODJ335NU.js → typescript-WYPDGPSV.js} +1 -1
  348. package/dist/ui-D2FFWRK7.js +1 -0
  349. package/dist/upgrade-TVTCFMXM.js +1 -0
  350. package/dist/version-J6MDN7BZ.js +1 -0
  351. package/dist/version-RIRW5EXQ.js +1 -0
  352. package/dist/workerd-QOTT6UCO.js +18 -0
  353. package/dist/{yaml-BIHS2GQW.js → yaml-6KWCJ64X.js} +1 -1
  354. package/oclif.manifest.json +442 -9
  355. package/package.json +18 -12
  356. package/dist/analytics-5TEIW43T.js +0 -1
  357. package/dist/analytics-GG7CYCGL.js +0 -1
  358. package/dist/angular-VRDO2DBE.js +0 -4
  359. package/dist/chunk-3D4JXJPS.js +0 -2
  360. package/dist/chunk-3NBK56IK.js +0 -1
  361. package/dist/chunk-4ZGSSQC6.js +0 -1
  362. package/dist/chunk-54CAKCYR.js +0 -144
  363. package/dist/chunk-5UHQVR2Z.js +0 -1
  364. package/dist/chunk-67MH4AXG.js +0 -1
  365. package/dist/chunk-6CYMJ76C.js +0 -9
  366. package/dist/chunk-6HBRBQAN.js +0 -6
  367. package/dist/chunk-6ITDI2SD.js +0 -1
  368. package/dist/chunk-6SF3ZETE.js +0 -1
  369. package/dist/chunk-6WL4GA2M.js +0 -15
  370. package/dist/chunk-7ESSIN27.js +0 -567
  371. package/dist/chunk-7QIOUDCX.js +0 -8
  372. package/dist/chunk-7ZT57XT7.js +0 -2
  373. package/dist/chunk-AKML26N3.js +0 -7
  374. package/dist/chunk-C2IK2HY3.js +0 -4
  375. package/dist/chunk-CBXSPL4W.js +0 -1
  376. package/dist/chunk-CEIQFLCN.js +0 -1
  377. package/dist/chunk-CERXUPGC.js +0 -14
  378. package/dist/chunk-DCPBRWVC.js +0 -1
  379. package/dist/chunk-DN2IE3VY.js +0 -1
  380. package/dist/chunk-EQU4MUQJ.js +0 -1
  381. package/dist/chunk-F2QU6WWX.js +0 -1
  382. package/dist/chunk-FFQ5EWII.js +0 -294
  383. package/dist/chunk-FKMC5OFF.js +0 -1
  384. package/dist/chunk-FUOIGXI4.js +0 -1
  385. package/dist/chunk-FYFNUDOC.js +0 -19
  386. package/dist/chunk-G4BPGWJC.js +0 -1
  387. package/dist/chunk-GVQIPEZT.js +0 -1
  388. package/dist/chunk-GZS44BUW.js +0 -102
  389. package/dist/chunk-HIBX234C.js +0 -6
  390. package/dist/chunk-HRUGYZZ4.js +0 -2
  391. package/dist/chunk-HUIJMGVJ.js +0 -586
  392. package/dist/chunk-IX5ICOBV.js +0 -7
  393. package/dist/chunk-IZ3C5J7G.js +0 -5
  394. package/dist/chunk-JAO53IH2.js +0 -1
  395. package/dist/chunk-JCL2RRU6.js +0 -1
  396. package/dist/chunk-JQJBBXMX.js +0 -17
  397. package/dist/chunk-K2WUCOQJ.js +0 -32
  398. package/dist/chunk-K6CTUBFC.js +0 -12
  399. package/dist/chunk-KKTW6ZCA.js +0 -5
  400. package/dist/chunk-LDGAHMS7.js +0 -159
  401. package/dist/chunk-M3RYUB22.js +0 -1
  402. package/dist/chunk-M56NDIMD.js +0 -1
  403. package/dist/chunk-MWGBTOO3.js +0 -1
  404. package/dist/chunk-N5PQPIBF.js +0 -374
  405. package/dist/chunk-NF2ABOOU.js +0 -1
  406. package/dist/chunk-NPEVESCV.js +0 -3
  407. package/dist/chunk-OTY24J2W.js +0 -1
  408. package/dist/chunk-OY3PNHPZ.js +0 -103
  409. package/dist/chunk-PAP22IQO.js +0 -264
  410. package/dist/chunk-PYVAWAUO.js +0 -5
  411. package/dist/chunk-QA23HIH4.js +0 -1
  412. package/dist/chunk-S6EJHWJL.js +0 -1
  413. package/dist/chunk-SIMFNECG.js +0 -1
  414. package/dist/chunk-T542UQBY.js +0 -1
  415. package/dist/chunk-TQ6HYDVC.js +0 -1
  416. package/dist/chunk-UHJYPEY2.js +0 -1
  417. package/dist/chunk-UJXUSRQK.js +0 -1
  418. package/dist/chunk-UWJ73J4B.js +0 -1
  419. package/dist/chunk-UXVZ2P63.js +0 -1411
  420. package/dist/chunk-VPRTJUIN.js +0 -1
  421. package/dist/chunk-WFXRSKRK.js +0 -1
  422. package/dist/chunk-XEFQQPL4.js +0 -1
  423. package/dist/chunk-XITQULK4.js +0 -3
  424. package/dist/chunk-XONFGLJQ.js +0 -847
  425. package/dist/chunk-XR6GMMEU.js +0 -1
  426. package/dist/chunk-XXVEHDVO.js +0 -1
  427. package/dist/chunk-Y7JGYGV7.js +0 -1
  428. package/dist/chunk-YOZNRLFC.js +0 -1
  429. package/dist/chunk-YTNDFQJT.js +0 -3
  430. package/dist/chunk-ZBRRJDGW.js +0 -1
  431. package/dist/chunk-ZTMSBSYD.js +0 -1
  432. package/dist/conf-store-BMZFATRQ.js +0 -1
  433. package/dist/deprecations-7LHRXPXU.js +0 -1
  434. package/dist/dist-LDXPBYSZ.js +0 -1
  435. package/dist/dist-V63ILV6L.js +0 -1
  436. package/dist/environments-5X7S2O5U.js +0 -1
  437. package/dist/error-ZRLNNGIQ.js +0 -1
  438. package/dist/error-handler-PRZFHPRG.js +0 -1
  439. package/dist/fs-H7V6IRSH.js +0 -1
  440. package/dist/html-VSSXOZOQ.js +0 -25
  441. package/dist/is-global-IOWPCT2U.js +0 -1
  442. package/dist/is-wsl-FVUIXDOK.js +0 -1
  443. package/dist/lib-5L7UKDEK.js +0 -1
  444. package/dist/lib-C3VO2BQW.js +0 -1
  445. package/dist/lib-QB6I6CTC.js +0 -1
  446. package/dist/lib-WU3FEA6I.js +0 -1
  447. package/dist/local-storage-CYEL4MXF.js +0 -1
  448. package/dist/metadata-NOVBMKLM.js +0 -1
  449. package/dist/node-package-manager-N5CVNHA3.js +0 -1
  450. package/dist/notifications-system-YX2GPLDW.js +0 -1
  451. package/dist/out-WLY6KV4B.js +0 -1
  452. package/dist/output-Q46DT46U.js +0 -1
  453. package/dist/system-E6Q3OBX3.js +0 -1
  454. package/dist/typescript-K5CWIA4V.js +0 -1
  455. package/dist/ui-WRS2IDPP.js +0 -1
  456. package/dist/upgrade-TKUN2M5P.js +0 -1
  457. package/dist/version-5W5RVAPA.js +0 -1
  458. package/dist/version-BQJ3FPXD.js +0 -1
  459. package/dist/workerd-GOK6GWEX.js +0 -18
@@ -0,0 +1,3 @@
1
+ import{a as n}from"./chunk-WHNWE7P2.js";import{k as i,q as m}from"./chunk-TUNUEOHO.js";import{b as t}from"./chunk-OXJBYKMX.js";import{r as c}from"./chunk-T6CC5WUU.js";import{e as l,g as r}from"./chunk-VKWPEFWQ.js";r();var a=l(c(),1),s,o=class extends m{async command(e){let d={path:e.path,password:e.password,store:e.store,force:e.force,verbose:e.verbose,noColor:e["no-color"]};await n(d)}};s=o;o.summary="Download metafields definitions from your shop into a local file.";o.descriptionWithMarkdown=`Retrieves metafields from Shopify Admin.
2
+
3
+ If the metafields file already exists, it will be overwritten.`;o.description=s.descriptionWithoutMarkdown();o.flags={...t,...i,force:a.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"})};o.multiEnvironmentsFlags=null;var v=o;export{v as a};
@@ -1 +1 @@
1
- import{a as o}from"./chunk-2AJ5FI2K.js";import{b as e}from"./chunk-XOTA6JTZ.js";import{g as i}from"./chunk-VPRTJUIN.js";i();var t=class extends e{static{this.description="View the UI kit components that display static output"}static{this.hidden=!0}async run(){await o()}};export{t as a};
1
+ import{a as o}from"./chunk-OU3M32A2.js";import{b as e}from"./chunk-HOSFU6UP.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var t=class extends e{static{this.description="View the UI kit components that display static output"}static{this.hidden=!0}async run(){await o()}};export{t as a};
@@ -1,4 +1,4 @@
1
- import{c as w}from"./chunk-QBSKKQBN.js";import{c as F,e as x}from"./chunk-FQWB2F75.js";import{B as h,m as S,t as L,u as P,v as f,z as N}from"./chunk-L2MGAEV3.js";import{o as $,q as m}from"./chunk-ZSBA6VIC.js";import{a as c}from"./chunk-F2QU6WWX.js";import{O as V,S as y,v as R}from"./chunk-6G6TMKXF.js";import{Cb as U,Db as D,Gb as u,Ib as p,Nb as d,Qb as l,Rb as E,zb as A}from"./chunk-N5PQPIBF.js";import{c as _}from"./chunk-YTNDFQJT.js";import{p as C,q as b,r as I}from"./chunk-IU2ZQ6TE.js";import{g as v}from"./chunk-VPRTJUIN.js";v();function M(){let e=U();if(!(!e||e==="unknown"))return e==="homebrew"?"brew upgrade shopify-cli":e==="yarn"?`${e} global add @shopify/cli@latest`:`${e} ${e==="pnpm"?"add":"install"} -g @shopify/cli@latest`}async function re(e={}){let n=I()??b(),o=D(n),t=A();if(_()){d("Skipping upgrade in development mode.");return}if(!(e.autoupgrade&&!t))if(t){let a=M();if(!a)throw new Error("Could not determine the package manager");let[r,...i]=a.split(" ");if(!r)throw new Error("Could not determine the command to run");let s=f("@shopify/cli",c),T=s?`\u2728 New version of Shopify CLI available! (${c} \u2192 ${s})`:"\u2728 New version of Shopify CLI available!";d(p`${T}
1
+ import{c as w}from"./chunk-NILXAUUT.js";import{c as F,e as x}from"./chunk-E7DHELFH.js";import{B as h,m as S,t as L,u as P,v as f,z as N}from"./chunk-ANBOLDON.js";import{o as $,q as m}from"./chunk-HDC5V7RY.js";import{a as c}from"./chunk-VPPWSKOY.js";import{O as V,S as y,v as R}from"./chunk-NTRAWIEJ.js";import{Bb as U,Cb as D,Fb as u,Hb as p,Mb as d,Pb as l,Qb as E,yb as A}from"./chunk-7FQFEB33.js";import{c as _}from"./chunk-S5IFJ737.js";import{p as C,q as b,r as I}from"./chunk-773TIA5M.js";import{g as v}from"./chunk-VKWPEFWQ.js";v();function M(){let e=U();if(!(!e||e==="unknown"))return e==="homebrew"?"brew upgrade shopify-cli":e==="yarn"?`${e} global add @shopify/cli@latest`:`${e} ${e==="pnpm"?"add":"install"} -g @shopify/cli@latest`}async function re(e={}){let n=I()??b(),o=D(n),t=A();if(_()){d("Skipping upgrade in development mode.");return}if(!(e.autoupgrade&&!t))if(t){let a=M();if(!a)throw new Error("Could not determine the package manager");let[r,...i]=a.split(" ");if(!r)throw new Error("Could not determine the command to run");let s=f("@shopify/cli",c),T=s?`\u2728 New version of Shopify CLI available! (${c} \u2192 ${s})`:"\u2728 New version of Shopify CLI available!";d(p`${T}
2
2
  Now upgrading by running: ${u.genericShellCommand(a)}...`),await V(r,i,{stdio:"inherit"}),R({headline:"Shopify CLI upgraded.",body:s?`You're now on version ${s}.`:"You're now on the latest version."})}else if(o)await Y(o,c);else throw new Error("Could not determine the local project directory")}function ie(){let e=c,n=f("@shopify/cli",e);if(!n){l("Auto-upgrade: No newer version available.");return}if(process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1")return l("Auto-upgrade: Forcing auto-upgrade because of SHOPIFY_CLI_FORCE_AUTO_UPGRADE."),n;if(!m()){l("Auto-upgrade: Skipping because auto-upgrade is not enabled.");return}if(y()){l("Auto-upgrade: Skipping auto-upgrade in CI.");return}if(w(e)){l("Auto-upgrade: Skipping auto-upgrade for pre-release version.");return}return n}async function se(){try{let{notifications:e}=await F();return x(e,"",["autoupgrade"]).some(o=>o.type==="error")}catch{return!1}}async function ce(){if(y()||w(c)||m())return;let e=f("@shopify/cli",c);e&&await $("warn-on-available-upgrade",{days:1},async()=>{E(G(e))})}function G(e,n=!1){let o=M(),t=o?p`💡 Version ${e} available! Run ${u.genericShellCommand(o)}`.value:p`💡 Version ${e} available!`.value;if(n){let a=`https://github.com/Shopify/cli/releases/tag/${e}`,r=p`⚠️ This is a major version — review breaking changes before upgrading:\n ${u.link(a,a)}`.value;return`${t}
3
3
 
4
4
  ${r}`}return t}async function Y(e,n){let o=(await h(e)).content,t=o.dependencies??{},a=o.devDependencies??{},i={...t,...a}[await k()];if(!i){l("Auto-upgrade: CLI dependency not found in project dependencies, skipping local upgrade.");return}i.slice(0,1).match(/[\^~]/)&&(i=n);let s=await P(await k(),i);s?q(i,s):W(i),await J("prod",t,e),await J("dev",a,e)}async function J(e,n,o){let t=[await k(),...await j()].filter(r=>!!n[r]).map(r=>({name:r,version:"latest"})),a=await L(o);t.length>0&&await N(t,{packageManager:await S(o),type:e,directory:o,stdout:process.stdout,stderr:process.stderr,addToRootDirectory:a})}async function k(){return(await O()).name}async function j(){return(await O())?.oclif?.plugins??[]}var g;async function O(){if(!g){let e=await h(C(import.meta.url));g=g??e.content}return g}function W(e){d(p`You're on the latest version, ${u.yellow(e)}, no need to upgrade!`)}function q(e,n){d(p`Upgrading CLI from ${u.yellow(e)} to ${u.yellow(n)}...`)}export{M as a,re as b,ie as c,se as d,ce as e,G as f};
@@ -0,0 +1 @@
1
+ import{n as a}from"./chunk-G4OQABDT.js";import{d as o}from"./chunk-TPCG6DCA.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 +1 @@
1
- import{b as a}from"./chunk-NMBBTTIH.js";import{Fa as i}from"./chunk-XONFGLJQ.js";import{b as s}from"./chunk-XOTA6JTZ.js";import{r as m}from"./chunk-LDGAHMS7.js";import{e as d,g as e}from"./chunk-VPRTJUIN.js";e();var n=d(m(),1);var t=class c extends s{static{this.description="List current notifications configured for the CLI."}static{this.hidden=!0}static{this.flags={"ignore-errors":n.Flags.boolean({hidden:!1,description:"Don't fail if an error occurs.",env:"SHOPIFY_FLAG_IGNORE_ERRORS"})}}async run(){let{flags:f}=await this.parse(c);try{await a()}catch(r){let o="Error fetching notifications";if(r instanceof Error&&(o=o.concat(`: ${r.message}`)),await i(o,"expected_error"),!f["ignore-errors"])throw r}}};export{t as a};
1
+ import{b as a}from"./chunk-2RBIR3NM.js";import{Ia as i}from"./chunk-G4OQABDT.js";import{b as s}from"./chunk-HOSFU6UP.js";import{r as m}from"./chunk-T6CC5WUU.js";import{e as d,g as e}from"./chunk-VKWPEFWQ.js";e();var n=d(m(),1);var t=class c extends s{static{this.description="List current notifications configured for the CLI."}static{this.hidden=!0}static{this.flags={"ignore-errors":n.Flags.boolean({hidden:!1,description:"Don't fail if an error occurs.",env:"SHOPIFY_FLAG_IGNORE_ERRORS"})}}async run(){let{flags:f}=await this.parse(c);try{await a()}catch(r){let o="Error fetching notifications";if(r instanceof Error&&(o=o.concat(`: ${r.message}`)),await i(o,"expected_error"),!f["ignore-errors"])throw r}}};export{t as a};
@@ -0,0 +1,17 @@
1
+ import{a as B,j as C,m as P}from"./chunk-3YDYZ232.js";import{B as U,C as _}from"./chunk-DTIWUT2T.js";import{e as g}from"./chunk-VJ6KDRZI.js";import{l as v,m as w}from"./chunk-5XDQ76DQ.js";import{xa as E}from"./chunk-G4OQABDT.js";import{Pb as m}from"./chunk-7FQFEB33.js";import{g as T}from"./chunk-VKWPEFWQ.js";T();var $=20,J=1024*1024,A=2;function oe(t,e,r,s,o={},l){let n=B(r),i=new Map,c=a=>a.total===0?"[100%]":`[${Math.round(a.current/a.total*100)}%]`,u=R(t,e,n),h=Promise.all([s.ready(),u]).then(()=>q(n,s,t,e,i)),p=h.then(a=>a.promise).then(()=>j(n,s,t,e,o,i)),k=o?.deferPartialWork?u:p.then(a=>a.promise);return o?.backgroundWorkCatch&&Promise.all([u,h.then(a=>a.promise),p.then(a=>a.promise)]).catch(o.backgroundWorkCatch),{uploadResults:i,workPromise:k,renderThemeSyncProgress:async()=>{if(o?.deferPartialWork)return;let{progress:a,promise:d}=await h,f=o.multiEnvironment?4e3:1e3;await g(b({promise:d,titleGetter:()=>`Uploading files to remote theme ${c(a)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment);let{progress:y,promise:F}=await p;await g(b({promise:F,titleGetter:()=>`Cleaning your remote theme ${c(y)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment),await g([{title:"Theme upload complete",task:async()=>{}}],l?.stderr,o?.multiEnvironment),H(i,o?.environment)}}}function b({promise:t,titleGetter:e,updateInterval:r}){let s=[],o=()=>{s.push({title:e(),task:async()=>{await Promise.race([t,new Promise(n=>setTimeout(()=>n("timeout"),r))])==="timeout"&&o()}})};return o(),s}function j(t,e,r,s,o,l){if(o.nodelete)return{progress:{current:0,total:0},promise:Promise.resolve()};let n=L(t,e),i=x(n),c={current:0,total:i.length};if(i.length===0)return{progress:c,promise:Promise.resolve()};let u=[];for(let p=0;p<i.length;p+=$){let k=i.slice(p,p+$),a=v(r.id,k.map(d=>d.key),s).then(d=>{d.forEach(f=>{if(l.set(f.key,f),!f.success){let y=f.errors?.asset?.map(F=>`-${F}`).join(`
2
+ `);_(f.key,"delete")(new Error(`Failed to delete ${f.key}: ${y}`))}}),c.current+=k.length});u.push(a)}let h=Promise.all(u).then(()=>{c.current=c.total});return{progress:c,promise:h}}function L(t,e){let s=e.applyIgnoreFilters(t).filter(o=>!e.files.has(o.key));return m(`Files to be deleted:
3
+ ${s.map(o=>`-${o.key}`).join(`
4
+ `)}`),s}function x(t){let e=P(t);return[...e.contextualizedJsonFiles,...e.templateJsonFiles,...e.sectionJsonFiles,...e.otherJsonFiles,...e.sectionLiquidFiles,...e.blockLiquidFiles,...e.layoutFiles,...e.otherLiquidFiles,...e.configDataFile,...e.configSchemaFile,...e.staticAssetFiles]}var D=[{key:"config/settings_schema.json",value:"[]"},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"}];async function R(t,e,r){let s=new Set(r.map(l=>l.key)),o=D.filter(({key:l})=>!s.has(l));o.length>0&&await w(t.id,o,e)}function q(t,e,r,s,o){let l=I(e,t);e.unsyncedFileKeys.clear(),l.forEach(a=>e.unsyncedFileKeys.add(a.key));let{independentFiles:n,dependentFiles:i}=z(l),c={current:0,total:l.length},u=a=>a.length===0?Promise.resolve():Promise.all(S(a).map(d=>N(d,e,s,r.id,o).then(()=>{c.current+=d.length,d.forEach(f=>e.unsyncedFileKeys.delete(f.key))}))).then(()=>{}),h=i.reduce((a,d)=>a.then(()=>u(d)),Promise.resolve()),p=Promise.resolve().then(()=>u(n.flat())),k=Promise.all([h,p]).then(()=>{c.current=c.total});return{progress:c,promise:k}}function I(t,e){let r=K(t),s=t.applyIgnoreFilters(r),o=new Map(e.map(n=>[n.key,n])),l=s.filter(n=>{let i=o.get(n.key);return!i||i.checksum!==n.checksum});return m(`Files to be uploaded:
5
+ ${l.map(n=>`-${n.key}`).join(`
6
+ `)}`),l}function z(t){let e=P(t);return{independentFiles:[e.otherLiquidFiles,e.otherJsonFiles,e.staticAssetFiles],dependentFiles:[e.configSchemaFile,e.layoutFiles,e.blockLiquidFiles,e.sectionLiquidFiles,e.sectionJsonFiles,e.templateJsonFiles,e.contextualizedJsonFiles,e.configDataFile]}}function S(t){let e=[],r=[],s=0;for(let o of t){let l=r.length>=$,n=s>=J;(l||n)&&(e.push(r),r=[],s=0),r.push(o),s+=o.size??0}return r.length>0&&e.push(r),e}function K(t){let e=[];return t.files.forEach((r,s)=>{let o=r.value?Buffer.byteLength(r.value,"utf8"):r.attachment?.length??0;e.push({key:s,checksum:r.checksum,size:o})}),e}async function N(t,e,r,s,o){let l=t.map(i=>{let c=e.files.get(i.key)?.value,u=e.files.get(i.key)?.attachment;return{key:i.key,...c&&{value:c},...u&&{attachment:u}}});m(`Uploading the following files:
7
+ ${t.map(i=>`-${i.key}`).join(`
8
+ `)}`),(await M(l,s,r)).forEach(i=>{o.set(i.key,i),W(i,e,s)})}function W(t,e,r){if(t.success)e.uploadErrors.delete(t.key);else{let s=t.errors?.asset??["Response was not successful."];e.uploadErrors.set(t.key,s),C(r,t.key)}}async function M(t,e,r,s=0){if(t.length===0)return[];s>0&&m(`Retry Attempt ${s}/${A} for the following files:
9
+ ${t.map(n=>`-${n.key}`).join(`
10
+ `)}`);let o=await w(e,t,r);m(`File Upload Results:
11
+ ${o.map(n=>`-${n.key}: ${n.success?"success":"failure"}`).join(`
12
+ `)}`);let l=o.filter(n=>!n.success);if(l.length>0){m(`The following files failed to upload:
13
+ ${l.map(i=>`-${i.key}`).join(`
14
+ `)}`);let n=await G(l,t,e,r,s);return o.concat(n)}return o}async function G(t,e,r,s,o){let l=new Set(t.map(i=>i.key)),n=e.filter(i=>l.has(i.key));return o===A?(E("theme-service:upload-failed-retry:max-retry"),m(`Max retry count reached for the following files:
15
+ ${n.map(i=>`-${i.key}`).join(`
16
+ `)}`),t):(E(`theme-service:upload-failed-retry:${n.length}`),M(n,r,s,o+1))}function H(t,e){for(let[r,s]of t.entries())if(!s.success){let o=s.errors?.asset?.join(`
17
+ `)??"File upload failed",l=e?`[${e}] ${r}`:r;U(l,new Error(o))}}export{oe as a};
@@ -0,0 +1 @@
1
+ import{a as J,b as N,c as q,f as C,h as F}from"./chunk-A27NZMWB.js";import{a as E}from"./chunk-EKVTNWHM.js";import{a as k,c as A}from"./chunk-5BKCIDMS.js";import{b as x}from"./chunk-CFOXXOO2.js";import{g as z,h as y}from"./chunk-G4OQABDT.js";import{b}from"./chunk-OXJBYKMX.js";import{E as m,v as f,x as S}from"./chunk-NTRAWIEJ.js";import{d as u}from"./chunk-TPCG6DCA.js";import{Fb as c,Hb as n,Lb as O,Ta as v,ma as w,ua as g}from"./chunk-7FQFEB33.js";import{e as I,g as l}from"./chunk-VKWPEFWQ.js";l();l();var M=I(z(),1);async function D(s,e){if(s)try{return JSON.parse(s)}catch(t){let r=t instanceof Error?t.message:"Unknown error";throw new u(n`Invalid JSON in ${c.yellow("--variables")} flag: ${r}`,"Please provide valid JSON format.")}else if(e){if(!await v(e))throw new u(n`Variable file not found at ${c.path(e)}. Please check the path and try again.`);let t=await w(e,{encoding:"utf8"});try{return JSON.parse(t)}catch(r){let p=r instanceof Error?r.message:"Unknown error";throw new u(n`Invalid JSON in variable file ${c.path(e)}: ${p}`,"Please provide valid JSON format.")}}}async function $(s){let{remoteApp:e,store:t,query:r,variables:p,variableFile:L,version:R,outputFile:d}=s,{adminSession:V,version:G}=await m({title:n`Authenticating`,task:async()=>{let o=await J(e,t.shopDomain),i=await q({adminSession:o,userSpecifiedVersion:R});return{adminSession:o,version:i}},renderOptions:{stdout:process.stderr}}),P=await D(p,L);N(r),C(r,t);try{let o=await m({title:n`Executing GraphQL operation`,task:async()=>x({query:(0,M.parse)(r),session:V,variables:P,version:G,responseOptions:{handleErrors:!1}}),renderOptions:{stdout:process.stderr}}),i=JSON.stringify(o,null,2);d?(await g(d,i),f({headline:"Operation succeeded.",body:`Results written to ${d}`})):(f({headline:"Operation succeeded."}),O(i))}catch(o){if(o instanceof y){let i={errors:o.response.errors},Q=JSON.stringify(i,null,2);S({headline:"GraphQL operation failed.",body:Q});return}throw o}}var h,a=class extends E{async run(){let{flags:e}=await this.parse(h),{query:t,appContextResult:r,store:p}=await F(e);return await $({organization:r.organization,remoteApp:r.remoteApp,store:p,query:t,variables:e.variables,variableFile:e["variable-file"],outputFile:e["output-file"],...e.version&&{version:e.version}}),{app:r.app}}};h=a;a.summary="Execute GraphQL queries and mutations.";a.descriptionWithMarkdown="Executes an Admin API GraphQL query or mutation on the specified store. Mutations are only allowed on dev stores.\n\n For operations that process large amounts of data, use [`bulk execute`](https://shopify.dev/docs/api/shopify-cli/app/app-bulk-execute) instead.";a.description=h.descriptionWithoutMarkdown();a.flags={...b,...k,...A};var oe=a;export{oe as a};
@@ -0,0 +1,5 @@
1
+ import{a as D}from"./chunk-NWXDOCL5.js";import{b as ne,c as re}from"./chunk-7572RLUP.js";import{c as ee,d as te}from"./chunk-PMS4MNHB.js";import{A as T}from"./chunk-25HJX3L2.js";import{a as Z}from"./chunk-EKVTNWHM.js";import{a as Q}from"./chunk-5BKCIDMS.js";import{Fa as X}from"./chunk-4QTEPWEJ.js";import{b as Y,c as V}from"./chunk-OXJBYKMX.js";import{B as q,a as S,i as K,j as U,k as b,p as C}from"./chunk-NTRAWIEJ.js";import{d as M}from"./chunk-TPCG6DCA.js";import{r as ye}from"./chunk-T6CC5WUU.js";import{a as J}from"./chunk-3SPDFV5D.js";import{eb as O,fb as l,gb as s,ib as j,jb as G,kb as H,ma as N}from"./chunk-7FQFEB33.js";import{f as z}from"./chunk-S5IFJ737.js";import{d as I}from"./chunk-773TIA5M.js";import{e as R,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();c();c();var y=R(O(),1);import{Writable as oe}from"stream";function ie({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:i}){let a={type:"functionRun",input:e.payload.input,output:e.payload.output,logs:e.payload.logs,name:e.source,size:0,memory_usage:0,instructions:e.payload.fuelConsumed},[u,f]=(0,y.useState)([]),[p,m]=(0,y.useState)([a,a]),[w,d]=(0,y.useState)(void 0),{input:E,export:$}=e.payload,[fe,L]=(0,y.useState)(`Watching for changes to ${e.source}...`);return(0,y.useEffect)(()=>{let A=new S;t.signal.addEventListener("abort",()=>{A.abort()});let B=async()=>{let F=await we(r,JSON.stringify(E),$);m(h=>[F,h[0]]),L(`Watching for changes to ${e.source}...`),f(h=>[...h,F])},de=async()=>{L("Replaying log with local function..."),await B()},ge=async()=>{i.onEvent(async h=>{let x=h.extensionEvents.find(v=>v.extension.handle===r.handle);if(!(!x||x.type!==ee.Updated)){if(x.buildResult?.status==="error"){d(`Error while reloading and building extension: ${x.buildResult?.error}`);return}d(void 0),L("Re-running with latest changes..."),await B()}});let F=new oe({write(h,x,v){f(he=>[...he,{type:"systemMessage",message:h.toString()}]),v()}});await i.start({stdout:F,stderr:F,signal:A.signal},!1)};return de().then(()=>{ge()}),()=>{A.abort()}},[E,$,o,r]),C(t.signal,async()=>{setTimeout(()=>{z()||J(process.pid,"SIGINT",!1,()=>{process.exit(0)})},2e3)}),{logs:u,statusMessage:fe,recentFunctionRuns:p,error:w}}async function we(e,t,o){let r="",i=new oe({write(u,f,p){r+=u,p()}});return await D({functionExtension:e,input:t,export:o,stdout:i,json:!0}),{...JSON.parse(r),type:"functionRun"}}var n=R(O(),1);var ae=({selectedRun:e,abortController:t,app:o,extension:r})=>{let{isAborted:i}=C(t.signal),{isRawModeSupported:a}=G(),u=new te(o),{logs:f,statusMessage:p,recentFunctionRuns:m,error:w}=ie({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:u});return H((d,E)=>{U(d,E,()=>t.abort()),d==="q"&&t.abort()},{isActive:!!a}),n.default.createElement(n.default.Fragment,null,n.default.createElement(j,{items:f},(d,E)=>n.default.createElement(l,{key:`replayOutputScrollerLog${E}`,flexDirection:"column"},n.default.createElement(Se,{log:d}))),i?null:n.default.createElement(l,{marginY:1,paddingTop:1,flexDirection:"column",flexGrow:1,borderStyle:"single",borderBottom:!1,borderLeft:!1,borderRight:!1,borderTop:!0},a?n.default.createElement(l,{flexDirection:"column"},n.default.createElement(l,{flexDirection:"row"},n.default.createElement(s,null,b.pointerSmall," ",p)),n.default.createElement(Re,{recentFunctionRuns:m}),n.default.createElement(s,null,b.pointerSmall," Press ",n.default.createElement(s,{bold:!0},"q")," ",b.lineVertical," quit")):null,w?n.default.createElement(s,{color:"red"},w):null))};function k({title:e,backgroundColor:t}){let o=Math.max(Math.round((28-e.length)/2),0),r=" ".repeat(o);return n.default.createElement(s,{backgroundColor:t,color:"black"},`
2
+
3
+ `,r,e,r,`
4
+ `)}function Ee({input:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(k,{title:"Input",backgroundColor:"yellow"}),n.default.createElement(s,null,T(e)))}function Fe({logs:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(k,{title:"Logs",backgroundColor:"blueBright"}),n.default.createElement(s,null,e))}function xe({output:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(k,{title:"Output",backgroundColor:"greenBright"}),n.default.createElement(s,null,T(e)))}function be({functionRun:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(k,{title:"Benchmark Results",backgroundColor:"green"}),n.default.createElement(s,null,"Name: ",e.name),n.default.createElement(s,null,"Linear Memory Usage: ",e.memory_usage,"KB"),n.default.createElement(s,null,"Instructions: ",e.instructions/1e3,"K"),n.default.createElement(s,null,"Size: ",e.size,"KB"))}function Re({recentFunctionRuns:e}){let t=e[0].instructions-e[1].instructions;return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(s,null,b.pointerSmall," Instruction count change: ",t>0?"+":"",t))}function Se({log:e}){switch(e.type){case"functionRun":return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(Ee,{input:e.input}),n.default.createElement(Fe,{logs:e.logs}),n.default.createElement(xe,{output:e.output}),n.default.createElement(be,{functionRun:e}),n.default.createElement(s,null,"\xA0"));case"systemMessage":return n.default.createElement(s,null,e.message);default:return null}}var se=R(O(),1);async function ce({selectedRun:e,abortController:t,app:o,extension:r}){return K(se.default.createElement(ae,{selectedRun:e,abortController:t,app:o,extension:r}),{exitOnCtrlC:!1})}c();async function le(e){if(e.length===0)return;let t=i=>({label:`${i.logTimestamp} (${i.status}) - ${i.identifier}`,value:i}),o=e.map(t);return await q({message:"Which function run would you like to replay locally?",choices:o})}import{existsSync as Ce,readdirSync as De}from"fs";var _=100;async function ue(e){let{watch:t,extension:o,app:r}=e,i=new S;try{let a=r.getLogsDir(),u=e.log?await ke(a,o.handle,e.log):await Ae(a,o.handle),{input:f,export:p}=u.payload;t?await ce({selectedRun:u,abortController:i,app:r,extension:o}):await D({functionExtension:o,json:e.json,input:JSON.stringify(f),export:p})}catch(a){throw i.abort(),a}}async function ke(e,t,o){let r=await Le(e,t,o);if(r===void 0)throw new M(`No log found for '${o}'.
5
+ Searched ${e} for function ${t}.`);let i=await N(r);return JSON.parse(i)}function me(e){let t=e.split(/[_.]/);if(!(t.length<6))return{namespace:t[3],functionHandle:t[4],identifier:t[5]}}async function Le(e,t,o){let r=pe(e).find(i=>{let a=me(i);return a?.namespace==="extensions"&&a?.functionHandle===t&&a?.identifier===o});return r?I(e,r):void 0}async function Ae(e,t){let o=await ve(e,t),r=await le(o);if(r===void 0)throw new M(`No logs found in ${e}`);return r}async function ve(e,t){let o=pe(e).filter(i=>{let a=me(i);return a?.namespace==="extensions"&&a?.functionHandle===t}).reverse(),r=[];for(let i=0;i<o.length&&r.length<_;i+=_){let u=o.slice(i,i+_).map(m=>I(e,m)),p=(await Promise.all(u.map(async m=>{let w=await N(m);return{...JSON.parse(w),identifier:Ie(m)}}))).filter(m=>m.payload.input!=null);r=r.concat(p)}return r}function Ie(e){return e.split("_").pop().substring(0,6)}function pe(e){return Ce(e)?De(e):[]}var P=R(ye(),1),W,g=class extends Z{async run(){let{flags:t}=await this.parse(W),{app:o}=await X({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),r=await re(o,t.path);return await ue({app:o,extension:r,path:t.path,log:t.log,json:t.json,watch:t.watch}),{app:o}}};W=g;g.summary="Replays a function run from an app log.";g.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).";g.description=W.descriptionWithoutMarkdown();g.flags={...Y,...Q,...ne,...V,log:P.Flags.string({char:"l",description:"Specifies a log identifier to replay instead of selecting from a list. The identifier is provided in the output of `shopify app dev` and is the suffix of the log file name.",env:"SHOPIFY_FLAG_LOG"}),watch:P.Flags.boolean({char:"w",hidden:!1,allowNo:!0,default:!0,description:"Re-run the function when the source code changes.",env:"SHOPIFY_FLAG_WATCH"})};var Et=g;export{Et as a};
@@ -0,0 +1 @@
1
+ import{h as l}from"./chunk-5XDQ76DQ.js";import{O as c}from"./chunk-G4OQABDT.js";import{d as u}from"./chunk-TPCG6DCA.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var s=["live","unpublished","development"];async function A(e,r){let t=await c(e,r);return p(t)}async function p(e){let r=e.storeFqdn,t=(await l(e)).filter(d);if(t.length===0)throw new u(`There are no themes in the ${r} store`);return t.sort(w)}function d(e){return s.includes(e.role)}function w(e,r){return s.indexOf(e.role)-s.indexOf(r.role)}i();function E(e,r,t){return y(e,r,t)??T(e,r,t)}function y(e,r,t){let o=t.role;if(!o)return;let n=`No themes on the store ${e} match the role "${o}"`;return m(r,h=>h.role===o).orThrow(n)}function T(e,r,t){return t.themeIdentifiers.flatMap(n=>{let h=`No themes on the store ${e} match the ID or name "${n}"`;return m(r,f=>`${f.id}`===n||f.name.toLowerCase()===n.toLowerCase()?!0:L(f.name.toLowerCase(),n.toLowerCase())).orThrow(h)})}function m(e,r){let t=e.filter(r);return t.length>0?{orThrow:o=>t}:{orThrow:o=>{throw new u(o)}}}var a=class{constructor(r){this.queryProps=r}get role(){for(let r of s)if(this.queryProps[r])return r}get themeIdentifiers(){return[this.queryProps.theme,this.queryProps.themes].flat().filter(t=>!!t)}any(){return Object.values(this.queryProps).some(r=>r?.length!==void 0?r.length>0:!!r)}};function L(e,r){let t=r.replace(/(^\*)|(\*$)/g,"");return r.startsWith("*")&&r.endsWith("*")?e.includes(t):r.startsWith("*")?e.endsWith(t):r.endsWith("*")?e.startsWith(t):!1}export{s as a,A as b,p as c,E as d,a as e};
@@ -0,0 +1,3 @@
1
+ import{n as u}from"./chunk-G4OQABDT.js";import{b as g}from"./chunk-OXJBYKMX.js";import{b as y}from"./chunk-HOSFU6UP.js";import{d as r}from"./chunk-TPCG6DCA.js";import{r as R}from"./chunk-T6CC5WUU.js";import{Lb as v,Mb as w,ua as l,wa as m}from"./chunk-7FQFEB33.js";import{f as p,i as h}from"./chunk-773TIA5M.js";import{e as A,g as s}from"./chunk-VKWPEFWQ.js";s();s();var U="text/markdown",L="X-Shopify-Surface",E="cli",F=["shopify.dev"];async function S(t,e){let c;try{c=new URL(t)}catch{throw new r(`Invalid URL: ${t}`)}let{hostname:d}=c;if(!F.some(o=>d===o||d.endsWith(`.${o}`)))throw new r(`Only documents from the following hosts can be fetched: ${F.join(", ")}.`);let i=await u(t,{headers:{Accept:U,[L]:E}});if(!i.ok)throw new r(`Failed to fetch ${t}: ${i.status} ${i.statusText}`);let f=await i.text();if(e){let o=p(e);await m(h(o)),await l(o,f),w(`Saved ${t} to ${o}`);return}v(f)}var n=A(R(),1),a=class t extends y{static{this.description="Download a complete document from shopify.dev. Every page on shopify.dev has a Markdown version, and that is what this tool returns. Use this to pull an entire document verbatim \u2014 for example, a set of instructions an agent follows like a centrally-served skill. For finding the relevant pieces of content across shopify.dev instead, use `doc search`."}static{this.examples=[`# fetch the Markdown version of a Shopify.dev page
2
+ shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli`,`# save the document to a file instead of printing it
3
+ shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli --output docs/shopify-cli.md`]}static{this.flags={...g,url:n.Flags.string({description:"The shopify.dev URL to fetch.",env:"SHOPIFY_FLAG_URL",required:!0}),output:n.Flags.string({description:"Write the document to this file path instead of printing it to stdout.",env:"SHOPIFY_FLAG_OUTPUT"})}}async run(){let{flags:e}=await this.parse(t);await S(e.url,e.output)}};export{a};
@@ -1 +1 @@
1
- import{g as t}from"./chunk-VPRTJUIN.js";t();t();var l={ez:"application/andrew-inset",aw:"application/applixware",atom:"application/atom+xml",atomcat:"application/atomcat+xml",atomdeleted:"application/atomdeleted+xml",atomsvc:"application/atomsvc+xml",dwd:"application/atsc-dwd+xml",held:"application/atsc-held+xml",rsat:"application/atsc-rsat+xml",bdoc:"application/bdoc",xcs:"application/calendar+xml",ccxml:"application/ccxml+xml",cdfx:"application/cdfx+xml",cdmia:"application/cdmi-capability",cdmic:"application/cdmi-container",cdmid:"application/cdmi-domain",cdmio:"application/cdmi-object",cdmiq:"application/cdmi-queue",cu:"application/cu-seeme",mpd:"application/dash+xml",davmount:"application/davmount+xml",dbk:"application/docbook+xml",dssc:"application/dssc+der",xdssc:"application/dssc+xml",es:"application/ecmascript",ecma:"application/ecmascript",emma:"application/emma+xml",emotionml:"application/emotionml+xml",epub:"application/epub+zip",exi:"application/exi",fdt:"application/fdt+xml",pfr:"application/font-tdpfr",geojson:"application/geo+json",gml:"application/gml+xml",gpx:"application/gpx+xml",gxf:"application/gxf",gz:"application/gzip",hjson:"application/hjson",stk:"application/hyperstudio",ink:"application/inkml+xml",inkml:"application/inkml+xml",ipfix:"application/ipfix",its:"application/its+xml",jar:"application/java-archive",war:"application/java-archive",ear:"application/java-archive",ser:"application/java-serialized-object",class:"application/java-vm",js:"application/javascript",mjs:"application/javascript",json:"application/json",map:"application/json",json5:"application/json5",jsonml:"application/jsonml+json",jsonld:"application/ld+json",lgr:"application/lgr+xml",lostxml:"application/lost+xml",hqx:"application/mac-binhex40",cpt:"application/mac-compactpro",mads:"application/mads+xml",webmanifest:"application/manifest+json",mrc:"application/marc",mrcx:"application/marcxml+xml",ma:"application/mathematica",nb:"application/mathematica",mb:"application/mathematica",mathml:"application/mathml+xml",mbox:"application/mbox",mscml:"application/mediaservercontrol+xml",metalink:"application/metalink+xml",meta4:"application/metalink4+xml",mets:"application/mets+xml",maei:"application/mmt-aei+xml",musd:"application/mmt-usd+xml",mods:"application/mods+xml",m21:"application/mp21",mp21:"application/mp21",mp4s:"application/mp4",m4p:"application/mp4",doc:"application/msword",dot:"application/msword",mxf:"application/mxf",nq:"application/n-quads",nt:"application/n-triples",cjs:"application/node",bin:"application/octet-stream",dms:"application/octet-stream",lrf:"application/octet-stream",mar:"application/octet-stream",so:"application/octet-stream",dist:"application/octet-stream",distz:"application/octet-stream",pkg:"application/octet-stream",bpk:"application/octet-stream",dump:"application/octet-stream",elc:"application/octet-stream",deploy:"application/octet-stream",exe:"application/octet-stream",dll:"application/octet-stream",deb:"application/octet-stream",dmg:"application/octet-stream",iso:"application/octet-stream",img:"application/octet-stream",msi:"application/octet-stream",msp:"application/octet-stream",msm:"application/octet-stream",buffer:"application/octet-stream",oda:"application/oda",opf:"application/oebps-package+xml",ogx:"application/ogg",omdoc:"application/omdoc+xml",onetoc:"application/onenote",onetoc2:"application/onenote",onetmp:"application/onenote",onepkg:"application/onenote",oxps:"application/oxps",relo:"application/p2p-overlay+xml",xer:"application/patch-ops-error+xml",pdf:"application/pdf",pgp:"application/pgp-encrypted",asc:"application/pgp-signature",sig:"application/pgp-signature",prf:"application/pics-rules",p10:"application/pkcs10",p7m:"application/pkcs7-mime",p7c:"application/pkcs7-mime",p7s:"application/pkcs7-signature",p8:"application/pkcs8",ac:"application/pkix-attr-cert",cer:"application/pkix-cert",crl:"application/pkix-crl",pkipath:"application/pkix-pkipath",pki:"application/pkixcmp",pls:"application/pls+xml",ai:"application/postscript",eps:"application/postscript",ps:"application/postscript",provx:"application/provenance+xml",cww:"application/prs.cww",pskcxml:"application/pskc+xml",raml:"application/raml+yaml",rdf:"application/rdf+xml",owl:"application/rdf+xml",rif:"application/reginfo+xml",rnc:"application/relax-ng-compact-syntax",rl:"application/resource-lists+xml",rld:"application/resource-lists-diff+xml",rs:"application/rls-services+xml",rapd:"application/route-apd+xml",sls:"application/route-s-tsid+xml",rusd:"application/route-usd+xml",gbr:"application/rpki-ghostbusters",mft:"application/rpki-manifest",roa:"application/rpki-roa",rsd:"application/rsd+xml",rss:"application/rss+xml",rtf:"application/rtf",sbml:"application/sbml+xml",scq:"application/scvp-cv-request",scs:"application/scvp-cv-response",spq:"application/scvp-vp-request",spp:"application/scvp-vp-response",sdp:"application/sdp",senmlx:"application/senml+xml",sensmlx:"application/sensml+xml",setpay:"application/set-payment-initiation",setreg:"application/set-registration-initiation",shf:"application/shf+xml",siv:"application/sieve",sieve:"application/sieve",smi:"application/smil+xml",smil:"application/smil+xml",rq:"application/sparql-query",srx:"application/sparql-results+xml",gram:"application/srgs",grxml:"application/srgs+xml",sru:"application/sru+xml",ssdl:"application/ssdl+xml",ssml:"application/ssml+xml",swidtag:"application/swid+xml",tei:"application/tei+xml",teicorpus:"application/tei+xml",tfi:"application/thraud+xml",tsd:"application/timestamped-data",toml:"application/toml",trig:"application/trig",ttml:"application/ttml+xml",ubj:"application/ubjson",rsheet:"application/urc-ressheet+xml",td:"application/urc-targetdesc+xml",vxml:"application/voicexml+xml",wasm:"application/wasm",wgt:"application/widget",hlp:"application/winhlp",wsdl:"application/wsdl+xml",wspolicy:"application/wspolicy+xml",xaml:"application/xaml+xml",xav:"application/xcap-att+xml",xca:"application/xcap-caps+xml",xdf:"application/xcap-diff+xml",xel:"application/xcap-el+xml",xns:"application/xcap-ns+xml",xenc:"application/xenc+xml",xhtml:"application/xhtml+xml",xht:"application/xhtml+xml",xlf:"application/xliff+xml",xml:"application/xml",xsl:"application/xml",xsd:"application/xml",rng:"application/xml",dtd:"application/xml-dtd",xop:"application/xop+xml",xpl:"application/xproc+xml",xslt:"application/xml",xspf:"application/xspf+xml",mxml:"application/xv+xml",xhvml:"application/xv+xml",xvml:"application/xv+xml",xvm:"application/xv+xml",yang:"application/yang",yin:"application/yin+xml",zip:"application/zip","3gpp":"video/3gpp",adp:"audio/adpcm",amr:"audio/amr",au:"audio/basic",snd:"audio/basic",mid:"audio/midi",midi:"audio/midi",kar:"audio/midi",rmi:"audio/midi",mxmf:"audio/mobile-xmf",mp3:"audio/mpeg",m4a:"audio/mp4",mp4a:"audio/mp4",mpga:"audio/mpeg",mp2:"audio/mpeg",mp2a:"audio/mpeg",m2a:"audio/mpeg",m3a:"audio/mpeg",oga:"audio/ogg",ogg:"audio/ogg",spx:"audio/ogg",opus:"audio/ogg",s3m:"audio/s3m",sil:"audio/silk",wav:"audio/wav",weba:"audio/webm",xm:"audio/xm",ttc:"font/collection",otf:"font/otf",ttf:"font/ttf",woff:"font/woff",woff2:"font/woff2",exr:"image/aces",apng:"image/apng",avif:"image/avif",bmp:"image/bmp",cgm:"image/cgm",drle:"image/dicom-rle",emf:"image/emf",fits:"image/fits",g3:"image/g3fax",gif:"image/gif",heic:"image/heic",heics:"image/heic-sequence",heif:"image/heif",heifs:"image/heif-sequence",hej2:"image/hej2k",hsj2:"image/hsj2",ief:"image/ief",jls:"image/jls",jp2:"image/jp2",jpg2:"image/jp2",jpeg:"image/jpeg",jpg:"image/jpeg",jpe:"image/jpeg",jph:"image/jph",jhc:"image/jphc",jpm:"image/jpm",jpx:"image/jpx",jpf:"image/jpx",jxr:"image/jxr",jxra:"image/jxra",jxrs:"image/jxrs",jxs:"image/jxs",jxsc:"image/jxsc",jxsi:"image/jxsi",jxss:"image/jxss",ktx:"image/ktx",ktx2:"image/ktx2",png:"image/png",btif:"image/prs.btif",pti:"image/prs.pti",sgi:"image/sgi",svg:"image/svg+xml",svgz:"image/svg+xml",t38:"image/t38",tif:"image/tiff",tiff:"image/tiff",tfx:"image/tiff-fx",webp:"image/webp",wmf:"image/wmf","disposition-notification":"message/disposition-notification",u8msg:"message/global",u8dsn:"message/global-delivery-status",u8mdn:"message/global-disposition-notification",u8hdr:"message/global-headers",eml:"message/rfc822",mime:"message/rfc822","3mf":"model/3mf",gltf:"model/gltf+json",glb:"model/gltf-binary",igs:"model/iges",iges:"model/iges",msh:"model/mesh",mesh:"model/mesh",silo:"model/mesh",mtl:"model/mtl",obj:"model/obj",stpz:"model/step+zip",stpxz:"model/step-xml+zip",stl:"model/stl",wrl:"model/vrml",vrml:"model/vrml",x3db:"model/x3d+fastinfoset",x3dbz:"model/x3d+binary",x3dv:"model/x3d-vrml",x3dvz:"model/x3d+vrml",x3d:"model/x3d+xml",x3dz:"model/x3d+xml",appcache:"text/cache-manifest",manifest:"text/cache-manifest",ics:"text/calendar",ifb:"text/calendar",coffee:"text/coffeescript",litcoffee:"text/coffeescript",css:"text/css",csv:"text/csv",html:"text/html",htm:"text/html",shtml:"text/html",jade:"text/jade",jsx:"text/jsx",less:"text/less",markdown:"text/markdown",md:"text/markdown",mml:"text/mathml",mdx:"text/mdx",n3:"text/n3",txt:"text/plain",text:"text/plain",conf:"text/plain",def:"text/plain",list:"text/plain",log:"text/plain",in:"text/plain",ini:"text/plain",dsc:"text/prs.lines.tag",rtx:"text/richtext",sgml:"text/sgml",sgm:"text/sgml",shex:"text/shex",slim:"text/slim",slm:"text/slim",spdx:"text/spdx",stylus:"text/stylus",styl:"text/stylus",tsv:"text/tab-separated-values",t:"text/troff",tr:"text/troff",roff:"text/troff",man:"text/troff",me:"text/troff",ms:"text/troff",ttl:"text/turtle",uri:"text/uri-list",uris:"text/uri-list",urls:"text/uri-list",vcard:"text/vcard",vtt:"text/vtt",yaml:"text/yaml",yml:"text/yaml","3gp":"video/3gpp","3g2":"video/3gpp2",h261:"video/h261",h263:"video/h263",h264:"video/h264",m4s:"video/iso.segment",jpgv:"video/jpeg",jpgm:"image/jpm",mj2:"video/mj2",mjp2:"video/mj2",ts:"video/mp2t",mp4:"video/mp4",mp4v:"video/mp4",mpg4:"video/mp4",mpeg:"video/mpeg",mpg:"video/mpeg",mpe:"video/mpeg",m1v:"video/mpeg",m2v:"video/mpeg",ogv:"video/ogg",qt:"video/quicktime",mov:"video/quicktime",webm:"video/webm"};function o(i){let a=(""+i).trim().toLowerCase(),p=a.lastIndexOf(".");return l[~p?a.substring(++p):a]}function s(i){return o(i)??"application/octet-stream"}function n(i){Object.entries(i).forEach(([a,p])=>{l[a]=p})}export{s as a,n as b};
1
+ import{g as t}from"./chunk-VKWPEFWQ.js";t();t();var l={ez:"application/andrew-inset",aw:"application/applixware",atom:"application/atom+xml",atomcat:"application/atomcat+xml",atomdeleted:"application/atomdeleted+xml",atomsvc:"application/atomsvc+xml",dwd:"application/atsc-dwd+xml",held:"application/atsc-held+xml",rsat:"application/atsc-rsat+xml",bdoc:"application/bdoc",xcs:"application/calendar+xml",ccxml:"application/ccxml+xml",cdfx:"application/cdfx+xml",cdmia:"application/cdmi-capability",cdmic:"application/cdmi-container",cdmid:"application/cdmi-domain",cdmio:"application/cdmi-object",cdmiq:"application/cdmi-queue",cu:"application/cu-seeme",mpd:"application/dash+xml",davmount:"application/davmount+xml",dbk:"application/docbook+xml",dssc:"application/dssc+der",xdssc:"application/dssc+xml",es:"application/ecmascript",ecma:"application/ecmascript",emma:"application/emma+xml",emotionml:"application/emotionml+xml",epub:"application/epub+zip",exi:"application/exi",fdt:"application/fdt+xml",pfr:"application/font-tdpfr",geojson:"application/geo+json",gml:"application/gml+xml",gpx:"application/gpx+xml",gxf:"application/gxf",gz:"application/gzip",hjson:"application/hjson",stk:"application/hyperstudio",ink:"application/inkml+xml",inkml:"application/inkml+xml",ipfix:"application/ipfix",its:"application/its+xml",jar:"application/java-archive",war:"application/java-archive",ear:"application/java-archive",ser:"application/java-serialized-object",class:"application/java-vm",js:"application/javascript",mjs:"application/javascript",json:"application/json",map:"application/json",json5:"application/json5",jsonml:"application/jsonml+json",jsonld:"application/ld+json",lgr:"application/lgr+xml",lostxml:"application/lost+xml",hqx:"application/mac-binhex40",cpt:"application/mac-compactpro",mads:"application/mads+xml",webmanifest:"application/manifest+json",mrc:"application/marc",mrcx:"application/marcxml+xml",ma:"application/mathematica",nb:"application/mathematica",mb:"application/mathematica",mathml:"application/mathml+xml",mbox:"application/mbox",mscml:"application/mediaservercontrol+xml",metalink:"application/metalink+xml",meta4:"application/metalink4+xml",mets:"application/mets+xml",maei:"application/mmt-aei+xml",musd:"application/mmt-usd+xml",mods:"application/mods+xml",m21:"application/mp21",mp21:"application/mp21",mp4s:"application/mp4",m4p:"application/mp4",doc:"application/msword",dot:"application/msword",mxf:"application/mxf",nq:"application/n-quads",nt:"application/n-triples",cjs:"application/node",bin:"application/octet-stream",dms:"application/octet-stream",lrf:"application/octet-stream",mar:"application/octet-stream",so:"application/octet-stream",dist:"application/octet-stream",distz:"application/octet-stream",pkg:"application/octet-stream",bpk:"application/octet-stream",dump:"application/octet-stream",elc:"application/octet-stream",deploy:"application/octet-stream",exe:"application/octet-stream",dll:"application/octet-stream",deb:"application/octet-stream",dmg:"application/octet-stream",iso:"application/octet-stream",img:"application/octet-stream",msi:"application/octet-stream",msp:"application/octet-stream",msm:"application/octet-stream",buffer:"application/octet-stream",oda:"application/oda",opf:"application/oebps-package+xml",ogx:"application/ogg",omdoc:"application/omdoc+xml",onetoc:"application/onenote",onetoc2:"application/onenote",onetmp:"application/onenote",onepkg:"application/onenote",oxps:"application/oxps",relo:"application/p2p-overlay+xml",xer:"application/patch-ops-error+xml",pdf:"application/pdf",pgp:"application/pgp-encrypted",asc:"application/pgp-signature",sig:"application/pgp-signature",prf:"application/pics-rules",p10:"application/pkcs10",p7m:"application/pkcs7-mime",p7c:"application/pkcs7-mime",p7s:"application/pkcs7-signature",p8:"application/pkcs8",ac:"application/pkix-attr-cert",cer:"application/pkix-cert",crl:"application/pkix-crl",pkipath:"application/pkix-pkipath",pki:"application/pkixcmp",pls:"application/pls+xml",ai:"application/postscript",eps:"application/postscript",ps:"application/postscript",provx:"application/provenance+xml",cww:"application/prs.cww",pskcxml:"application/pskc+xml",raml:"application/raml+yaml",rdf:"application/rdf+xml",owl:"application/rdf+xml",rif:"application/reginfo+xml",rnc:"application/relax-ng-compact-syntax",rl:"application/resource-lists+xml",rld:"application/resource-lists-diff+xml",rs:"application/rls-services+xml",rapd:"application/route-apd+xml",sls:"application/route-s-tsid+xml",rusd:"application/route-usd+xml",gbr:"application/rpki-ghostbusters",mft:"application/rpki-manifest",roa:"application/rpki-roa",rsd:"application/rsd+xml",rss:"application/rss+xml",rtf:"application/rtf",sbml:"application/sbml+xml",scq:"application/scvp-cv-request",scs:"application/scvp-cv-response",spq:"application/scvp-vp-request",spp:"application/scvp-vp-response",sdp:"application/sdp",senmlx:"application/senml+xml",sensmlx:"application/sensml+xml",setpay:"application/set-payment-initiation",setreg:"application/set-registration-initiation",shf:"application/shf+xml",siv:"application/sieve",sieve:"application/sieve",smi:"application/smil+xml",smil:"application/smil+xml",rq:"application/sparql-query",srx:"application/sparql-results+xml",gram:"application/srgs",grxml:"application/srgs+xml",sru:"application/sru+xml",ssdl:"application/ssdl+xml",ssml:"application/ssml+xml",swidtag:"application/swid+xml",tei:"application/tei+xml",teicorpus:"application/tei+xml",tfi:"application/thraud+xml",tsd:"application/timestamped-data",toml:"application/toml",trig:"application/trig",ttml:"application/ttml+xml",ubj:"application/ubjson",rsheet:"application/urc-ressheet+xml",td:"application/urc-targetdesc+xml",vxml:"application/voicexml+xml",wasm:"application/wasm",wgt:"application/widget",hlp:"application/winhlp",wsdl:"application/wsdl+xml",wspolicy:"application/wspolicy+xml",xaml:"application/xaml+xml",xav:"application/xcap-att+xml",xca:"application/xcap-caps+xml",xdf:"application/xcap-diff+xml",xel:"application/xcap-el+xml",xns:"application/xcap-ns+xml",xenc:"application/xenc+xml",xhtml:"application/xhtml+xml",xht:"application/xhtml+xml",xlf:"application/xliff+xml",xml:"application/xml",xsl:"application/xml",xsd:"application/xml",rng:"application/xml",dtd:"application/xml-dtd",xop:"application/xop+xml",xpl:"application/xproc+xml",xslt:"application/xml",xspf:"application/xspf+xml",mxml:"application/xv+xml",xhvml:"application/xv+xml",xvml:"application/xv+xml",xvm:"application/xv+xml",yang:"application/yang",yin:"application/yin+xml",zip:"application/zip","3gpp":"video/3gpp",adp:"audio/adpcm",amr:"audio/amr",au:"audio/basic",snd:"audio/basic",mid:"audio/midi",midi:"audio/midi",kar:"audio/midi",rmi:"audio/midi",mxmf:"audio/mobile-xmf",mp3:"audio/mpeg",m4a:"audio/mp4",mp4a:"audio/mp4",mpga:"audio/mpeg",mp2:"audio/mpeg",mp2a:"audio/mpeg",m2a:"audio/mpeg",m3a:"audio/mpeg",oga:"audio/ogg",ogg:"audio/ogg",spx:"audio/ogg",opus:"audio/ogg",s3m:"audio/s3m",sil:"audio/silk",wav:"audio/wav",weba:"audio/webm",xm:"audio/xm",ttc:"font/collection",otf:"font/otf",ttf:"font/ttf",woff:"font/woff",woff2:"font/woff2",exr:"image/aces",apng:"image/apng",avif:"image/avif",bmp:"image/bmp",cgm:"image/cgm",drle:"image/dicom-rle",emf:"image/emf",fits:"image/fits",g3:"image/g3fax",gif:"image/gif",heic:"image/heic",heics:"image/heic-sequence",heif:"image/heif",heifs:"image/heif-sequence",hej2:"image/hej2k",hsj2:"image/hsj2",ief:"image/ief",jls:"image/jls",jp2:"image/jp2",jpg2:"image/jp2",jpeg:"image/jpeg",jpg:"image/jpeg",jpe:"image/jpeg",jph:"image/jph",jhc:"image/jphc",jpm:"image/jpm",jpx:"image/jpx",jpf:"image/jpx",jxr:"image/jxr",jxra:"image/jxra",jxrs:"image/jxrs",jxs:"image/jxs",jxsc:"image/jxsc",jxsi:"image/jxsi",jxss:"image/jxss",ktx:"image/ktx",ktx2:"image/ktx2",png:"image/png",btif:"image/prs.btif",pti:"image/prs.pti",sgi:"image/sgi",svg:"image/svg+xml",svgz:"image/svg+xml",t38:"image/t38",tif:"image/tiff",tiff:"image/tiff",tfx:"image/tiff-fx",webp:"image/webp",wmf:"image/wmf","disposition-notification":"message/disposition-notification",u8msg:"message/global",u8dsn:"message/global-delivery-status",u8mdn:"message/global-disposition-notification",u8hdr:"message/global-headers",eml:"message/rfc822",mime:"message/rfc822","3mf":"model/3mf",gltf:"model/gltf+json",glb:"model/gltf-binary",igs:"model/iges",iges:"model/iges",msh:"model/mesh",mesh:"model/mesh",silo:"model/mesh",mtl:"model/mtl",obj:"model/obj",stpz:"model/step+zip",stpxz:"model/step-xml+zip",stl:"model/stl",wrl:"model/vrml",vrml:"model/vrml",x3db:"model/x3d+fastinfoset",x3dbz:"model/x3d+binary",x3dv:"model/x3d-vrml",x3dvz:"model/x3d+vrml",x3d:"model/x3d+xml",x3dz:"model/x3d+xml",appcache:"text/cache-manifest",manifest:"text/cache-manifest",ics:"text/calendar",ifb:"text/calendar",coffee:"text/coffeescript",litcoffee:"text/coffeescript",css:"text/css",csv:"text/csv",html:"text/html",htm:"text/html",shtml:"text/html",jade:"text/jade",jsx:"text/jsx",less:"text/less",markdown:"text/markdown",md:"text/markdown",mml:"text/mathml",mdx:"text/mdx",n3:"text/n3",txt:"text/plain",text:"text/plain",conf:"text/plain",def:"text/plain",list:"text/plain",log:"text/plain",in:"text/plain",ini:"text/plain",dsc:"text/prs.lines.tag",rtx:"text/richtext",sgml:"text/sgml",sgm:"text/sgml",shex:"text/shex",slim:"text/slim",slm:"text/slim",spdx:"text/spdx",stylus:"text/stylus",styl:"text/stylus",tsv:"text/tab-separated-values",t:"text/troff",tr:"text/troff",roff:"text/troff",man:"text/troff",me:"text/troff",ms:"text/troff",ttl:"text/turtle",uri:"text/uri-list",uris:"text/uri-list",urls:"text/uri-list",vcard:"text/vcard",vtt:"text/vtt",yaml:"text/yaml",yml:"text/yaml","3gp":"video/3gpp","3g2":"video/3gpp2",h261:"video/h261",h263:"video/h263",h264:"video/h264",m4s:"video/iso.segment",jpgv:"video/jpeg",jpgm:"image/jpm",mj2:"video/mj2",mjp2:"video/mj2",ts:"video/mp2t",mp4:"video/mp4",mp4v:"video/mp4",mpg4:"video/mp4",mpeg:"video/mpeg",mpg:"video/mpeg",mpe:"video/mpeg",m1v:"video/mpeg",m2v:"video/mpeg",ogv:"video/ogg",qt:"video/quicktime",mov:"video/quicktime",webm:"video/webm"};function o(i){let a=(""+i).trim().toLowerCase(),p=a.lastIndexOf(".");return l[~p?a.substring(++p):a]}function s(i){return o(i)??"application/octet-stream"}function n(i){Object.entries(i).forEach(([a,p])=>{l[a]=p})}export{s as a,n as b};
@@ -1,4 +1,4 @@
1
- import{b as C}from"./chunk-MHWV5RQV.js";import{b as f}from"./chunk-XOTA6JTZ.js";import{A as S,u as i,y as x}from"./chunk-6G6TMKXF.js";import{d as v}from"./chunk-M56NDIMD.js";import{Qb as I}from"./chunk-N5PQPIBF.js";import{g as a}from"./chunk-VPRTJUIN.js";a();a();a();var m={on:"Autocorrect on. The system will automatically run commands even when you mistype them.",off:"Autocorrect off. You'll need to confirm corrections for mistyped commands."};a();function p(o=W()){return!!o.get("autocorrectEnabled")}function y(o,n=W()){n.set("autocorrectEnabled",o)}function W(){return b??(b=new C({projectName:"did-you-mean"})),b}var b;var A,s=class extends f{async run(){y(!0),i({body:m.on})}};A=s;s.summary="Enable autocorrect. Off by default.";s.descriptionWithMarkdown=`Enable autocorrect. Off by default.
1
+ import{b as C}from"./chunk-N5LVGFDS.js";import{b as f}from"./chunk-HOSFU6UP.js";import{A as S,u as i,y as x}from"./chunk-NTRAWIEJ.js";import{d as v}from"./chunk-TPCG6DCA.js";import{Pb as I}from"./chunk-7FQFEB33.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();a();a();var m={on:"Autocorrect on. The system will automatically run commands even when you mistype them.",off:"Autocorrect off. You'll need to confirm corrections for mistyped commands."};a();function p(o=W()){return!!o.get("autocorrectEnabled")}function y(o,n=W()){n.set("autocorrectEnabled",o)}function W(){return b??(b=new C({projectName:"did-you-mean"})),b}var b;var A,s=class extends f{async run(){y(!0),i({body:m.on})}};A=s;s.summary="Enable autocorrect. Off by default.";s.descriptionWithMarkdown=`Enable autocorrect. Off by default.
2
2
 
3
3
  When autocorrection is enabled, Shopify CLI automatically runs a corrected version of your command if a correction is available.
4
4
 
@@ -0,0 +1,5 @@
1
+ import{a as h}from"./chunk-OZBY45KT.js";import{a as v}from"./chunk-EKVTNWHM.js";import{a as m}from"./chunk-5BKCIDMS.js";import{Fa as c}from"./chunk-4QTEPWEJ.js";import{z as n}from"./chunk-G4OQABDT.js";import{b as l}from"./chunk-OXJBYKMX.js";import{v as d}from"./chunk-NTRAWIEJ.js";import{d as a}from"./chunk-TPCG6DCA.js";import{r as x}from"./chunk-T6CC5WUU.js";import{e as S,g as p}from"./chunk-VKWPEFWQ.js";p();p();async function f(o){let e=o.appContextResult.developerPlatformClient,r=o.appContextResult.remoteApp;if(!e.supportsDevSessions)throw new a("Dev preview is not supported for this app. It's valid only for apps created on the Next-Gen Dev Platform.");let s=await e.devSessionDelete({shopFqdn:o.store.shopDomain,appId:r.id});if(s.devSessionDelete?.userErrors.length){let u=s.devSessionDelete.userErrors.map(g=>g.message).join(`
2
+ `);throw new a(`Failed to stop the dev preview: ${u}`)}d({headline:"Dev preview stopped.",body:[`The dev preview has been stopped on ${o.store.shopDomain} and the app's active version has been restored.`,"You can start it again with",{command:"shopify app dev"}]})}var w=S(x(),1);var i,t=class extends v{async run(){let{flags:e}=await this.parse(i),r=await c({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),s=await h({appContextResult:r,storeFqdn:e.store,forceReselectStore:e.reset});return await f({appContextResult:r,store:s}),{app:r.app}}};i=t;t.summary="Cleans up the dev preview from the selected store.";t.descriptionWithMarkdown=`Stop the dev preview that was started with \`shopify app dev\`.
3
+
4
+ It restores the app's active version to the selected development store.
5
+ `;t.description=i.descriptionWithoutMarkdown();t.flags={...l,...m,store:w.Flags.string({hidden:!1,char:"s",description:"Store URL. Must be an existing development store.",env:"SHOPIFY_FLAG_STORE",parse:async o=>n(o)})};var q=t;export{q as a};
@@ -0,0 +1 @@
1
+ import{a as p,b as u}from"./chunk-6LWOWDF4.js";import{m as l,n as f}from"./chunk-G4OQABDT.js";import{d as i}from"./chunk-TPCG6DCA.js";import{Ga as m,na as c}from"./chunk-7FQFEB33.js";import{d as a}from"./chunk-773TIA5M.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();import{writeFile as w}from"fs/promises";var d=1024*1024,h=100,g=h*d;async function b(o,t){let e=a(t,"manifest.json");await w(e,JSON.stringify(o,null,2))}var S=["!**/*.js.map","!**/*.metafile.json"];async function N(o,t,e){let r=e??["**/*",...S];t.endsWith(".br")?await u({inputDirectory:o,outputPath:t,matchFilePattern:r}):await p({inputDirectory:o,outputZipPath:t,matchFilePattern:r})}async function T(o,t){let e=await m(t);if(e>g){let E=`${(Math.ceil(e/d*100)/100).toFixed(2)} MB`;throw new i(`Your app bundle exceeds the ${h} MB upload limit (it is ${E}).`,"Check the asset paths in your extension configuration \u2014 a misconfigured source can pull in much more than intended. Exclude large files or directories from your bundle, then try again.")}let r=l(),n=c(t);r.append("my_upload",n),await f(o,{method:"put",body:n,headers:r.getHeaders()},"slow-request")}async function j(o,t){let e=await o.generateSignedUploadUrl(t);if(!e.assetUrl||e.userErrors?.length>0){let r=e.userErrors.map(n=>n.message).join(", ");throw new i(r)}return e.assetUrl}export{b as a,S as b,N as c,T as d,j as e};
@@ -0,0 +1,32 @@
1
+ import{a as C}from"./chunk-W7DDV2EY.js";import{a as N}from"./chunk-STJ3LWFL.js";import{a as v,b as J}from"./chunk-MIDYZPO4.js";import{a as p}from"./chunk-VJ6KDRZI.js";import{r as E}from"./chunk-5XDQ76DQ.js";import{k as c,m as F,q as S}from"./chunk-TUNUEOHO.js";import{O as w}from"./chunk-G4OQABDT.js";import{b as q,c as D}from"./chunk-OXJBYKMX.js";import{A as T,S as O,v as I,x as u}from"./chunk-NTRAWIEJ.js";import{r as M}from"./chunk-T6CC5WUU.js";import{Lb as a}from"./chunk-7FQFEB33.js";import{e as A,g as h}from"./chunk-VKWPEFWQ.js";h();h();async function _(t,o,e){let{name:r,verbose:d,noColor:l,json:m,force:x}=e,g=O()||x;if(C({verbose:d,noColor:l}),g&&!o){let s="A theme ID is required to duplicate a theme, specify one with the --theme flag";m?a(JSON.stringify({message:s,errors:[]})):u({body:[s]});return}let i=o?await J(t,o):await v(t,{header:"Select a theme to duplicate",filter:{theme:o}});if(!i){let s=`No theme with ID ${o} could be found. Use shopify theme list to find a theme ID.`;m?a(JSON.stringify({message:s,errors:[]})):u({body:[s]});return}if(i?.role==="development"){let s="Development themes can't be duplicated. Use shopify theme push to upload it to the store first.";m?a(JSON.stringify({message:s,errors:[]})):u({body:[s]});return}if(!g&&!await T({message:`Do you want to duplicate '${i.name}' on ${t.storeFqdn}?`,confirmationMessage:`Yes, duplicate '${i.name}'`,cancellationMessage:"No, cancel duplicate"}))return;let b=await E(i.id,r,t);m?j(i,t,b):P(i,t,b)}function P(t,o,e){if(e.userErrors&&e.userErrors.length>0){let r=e.userErrors.map(d=>d.message).join(", ");u({body:["The theme",...p(t),"could not be duplicated due to errors: ",{subdued:r},{char:"."},...e.requestId?[`
2
+ Request ID: `,{subdued:e.requestId}]:[]]})}else e.theme?I({body:["The theme",...p(t),"has been duplicated",{char:"."}],nextSteps:[[{link:{label:"View the duplicated theme",url:N(e.theme,o)}}]]}):u({body:["The theme",...p(t),"unexpectedly could not be duplicated",{char:"."},...e.requestId?[`
3
+ Request ID: `,{subdued:e.requestId}]:[]]})}function j(t,o,e){if(e.userErrors&&e.userErrors.length>0)a(JSON.stringify({message:`The theme '${t.name}' could not be duplicated due to errors`,errors:e.userErrors.map(r=>r.message),requestId:e.requestId}));else if(e.theme){let{id:r,name:d,role:l}=e.theme,m={theme:{id:r,name:d,role:l,shop:o.storeFqdn}};a(JSON.stringify(m))}else a(JSON.stringify({message:`The theme '${t.name}' unexpectedly could not be duplicated `,errors:[],requestId:e.requestId}))}var f=A(M(),1);var y,n=class extends S{async run(){let{flags:o}=await this.parse(y),e=F(o),r=await w(e,o.password);await _(r,o.theme,o)}};y=n;n.summary="Duplicates a theme from your theme library.";n.usage=["theme duplicate","theme duplicate --theme 10 --name 'New Theme'"];n.descriptionWithMarkdown=`If you want to duplicate your local theme, you need to run \`shopify theme push\` first.
4
+
5
+ If no theme ID is specified, you're prompted to select the theme that you want to duplicate from the list of themes in your store. You're asked to confirm that you want to duplicate the specified theme.
6
+
7
+ Prompts and confirmations are not shown when duplicate is run in a CI environment or the \`--force\` flag is used, therefore you must specify a theme ID using the \`--theme\` flag.
8
+
9
+ You can optionally name the duplicated theme using the \`--name\` flag.
10
+
11
+ If you use the \`--json\` flag, then theme information is returned in JSON format, which can be used as a machine-readable input for scripts or continuous integration.
12
+
13
+ Sample JSON output:
14
+
15
+ \`\`\`json
16
+ {
17
+ "theme": {
18
+ "id": 108267175958,
19
+ "name": "A Duplicated Theme",
20
+ "role": "unpublished",
21
+ "shop": "mystore.myshopify.com"
22
+ }
23
+ }
24
+ \`\`\`
25
+
26
+ \`\`\`json
27
+ {
28
+ "message": "The theme 'Summer Edition' could not be duplicated due to errors",
29
+ "errors": ["Maximum number of themes reached"],
30
+ "requestId": "12345-abcde-67890"
31
+ }
32
+ \`\`\``;n.description=y.descriptionWithoutMarkdown();n.flags={...q,...D,password:c.password,theme:f.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"}),name:f.Flags.string({char:"n",description:"Name of the newly duplicated theme.",env:"SHOPIFY_FLAG_NAME"}),store:c.store,environment:c.environment,force:f.Flags.boolean({char:"f",description:"Force the duplicate operation to run without prompts or confirmations.",env:"SHOPIFY_FLAG_FORCE"})};var ee=n;export{ee as a};
@@ -0,0 +1,10 @@
1
+ import{b as ye}from"./chunk-RKDZGK5K.js";import{b as Fe}from"./chunk-WA3YC5W4.js";import{a as ue,c as he}from"./chunk-RSRYC5ZF.js";import{a as Le}from"./chunk-EKVTNWHM.js";import{Ca as xe,Fa as Re,G as be,L as ve,O as Pe,Q as Ae,ca as Ie,ea as Ce,h as we}from"./chunk-4QTEPWEJ.js";import{$ as G,da as ke,o as ge}from"./chunk-UTO4Z6P6.js";import{B as re,D as ie,E as ne,f as R,g as te,i as ae,p as oe}from"./chunk-ANBOLDON.js";import{a as U}from"./chunk-VPPWSKOY.js";import{b as de}from"./chunk-OXJBYKMX.js";import{b as X}from"./chunk-N5LVGFDS.js";import{D as me,f as se,u as le,v as ce,z as S}from"./chunk-NTRAWIEJ.js";import{d as pe}from"./chunk-VI34CKV6.js";import{d as f}from"./chunk-TPCG6DCA.js";import{r as De}from"./chunk-T6CC5WUU.js";import{$ as O,$a as Q,Ab as ee,Ca as I,Fb as h,Gb as L,Hb as g,Ja as B,Oa as W,Ta as C,Ua as x,Va as q,Wa as Z,ka as V,ma as Y,sa as _,ua as $,wa as K,zb as J}from"./chunk-7FQFEB33.js";import{e as fe}from"./chunk-S5IFJ737.js";import{d as p,e as k,f as z,p as D,q as H}from"./chunk-773TIA5M.js";import{e as ze,g as c}from"./chunk-VKWPEFWQ.js";c();c();var b={reactRouter:{url:"https://github.com/Shopify/shopify-app-template-react-router",label:"Build a React Router app (recommended)",visible:!0,branches:{prompt:"For your React Router template, which language do you want?",options:{javascript:{branch:"javascript-cli",label:"JavaScript"},typescript:{branch:"main-cli",label:"TypeScript"}}}},remix:{url:"https://github.com/Shopify/shopify-app-template-remix",label:"Build a Remix app",visible:!1,branches:{prompt:"For your Remix template, which language do you want?",options:{javascript:{branch:"javascript",label:"JavaScript"},typescript:{branch:"main",label:"TypeScript"}}}},none:{url:"https://github.com/Shopify/shopify-app-template-extension-only",label:"Build an extension-only app",visible:!0},node:{url:"https://github.com/Shopify/shopify-app-template-node",visible:!1},ruby:{url:"https://github.com/Shopify/shopify-app-template-ruby",visible:!1}},E=Object.keys(b),F=E.filter(e=>b[e].visible),He=["reactRouter","none"],Oe=async e=>{let t=e.template,a=e.flavor,r={template:b.reactRouter.url};t??(t=await S({choices:He.map(i=>({label:b[i].label||i,value:i})),message:"Get started building your app:",defaultValue:E.find(i=>b[i].url===r.template)}));let o={...e,template:t,templateType:T(t)?t:"custom",globalCLIResult:{install:!1,alreadyInstalled:!1}},n,s;if(o.templateType!=="custom"){let i=b[o.templateType];n=i.url,i.branches&&(a?s=i.branches.options[a]?.branch:s=await S({message:i.branches.prompt||"Choose a flavor:",choices:Object.entries(i.branches.options).map(([d,m])=>({value:m.branch,label:m.label}))}))}return s&&(n=`${n}#${s}`),o.template=n||o.template||r.template,o.globalCLIResult=await ee(),o},Te=Oe;function T(e){return E.includes(e)}c();c();import{platform as Ve}from"os";async function _e({packageJSON:e,local:t,useGlobalCLI:a}){if(e.dependencies=e.dependencies??{},a?delete e.dependencies["@shopify/cli"]:e.dependencies["@shopify/cli"]=U,delete e.dependencies["@shopify/app"],t){let r=await Ye("cli");e.dependencies["@shopify/cli"]=r;let o={"@shopify/cli":r};e.overrides=e.overrides?{...e.overrides,...o}:o,e.resolutions=e.resolutions?{...e.resolutions,...o}:o}return e}async function Ye(e){return`file:${await Q(`packages/${e}`,{type:"directory",cwd:D(import.meta.url)})}`}async function $e({from:e,packageManager:t}){let a=Ve()==="win32"&&t==="yarn"?["--network-concurrency","1"]:[];return oe({directory:k(e),packageManager:t,args:a})}c();async function j(e,t){let r=(await Z([p(e,"**",".git"),p(e,"**",".github"),p(e,"**",".gitmodules"),p(e,"**",".cli-liquid-bypass"),p(e,"LICENSE*"),p(e,"**","frontend/LICENSE*"),p(e,"package.json.cli2")],{dot:!0,onlyFiles:!1,onlyDirectories:!1,ignore:["**/node_modules/**"]})).map(s=>I(s,{force:!0})),o=new Set(te[t]),n=R.filter(s=>!o.has(s)).map(s=>{let i=p(e,s);if(x(i))return B(i)});return Promise.all([...r,...n])}async function Ke(e){let t=e.packageManager,a=O(e.name),r=p(e.directory,a),o=ye(e.template);await Se(r,a),await Be(r),le({body:["Initializing project with",{command:t},`
2
+ Use the`,{command:"--package-manager"},"flag to select a different package manager."]}),await V(async i=>{let d=p(i,"download"),m=o.filePath?p(d,o.filePath):d,u=p(i,"app"),A=o.branch?`${o.baseURL}#${o.branch}`:o.baseURL;await K(d);let w=[{title:`Downloading template from ${A}`,task:async()=>{await he({repoUrl:A,destination:d,shallow:!0})}}];w.push({title:"Parsing liquid",task:async()=>{await Fe(m,u,{dependency_manager:t,app_name:e.name})}},{title:"Updating package.json",task:async()=>{let l=(await re(u)).content;l.name=a,l.author=await se()??"",l.private=!0;let v=["extensions/*"].concat(We(u));switch(t){case"npm":case"yarn":case"bun":l.workspaces=v;break;case"pnpm":{await qe(u,v),await _(p(u,".npmrc"),`auto-install-peers=true
3
+ `);break}case"homebrew":case"unknown":throw new ae}await _e({packageJSON:l,local:e.local,directory:u,useGlobalCLI:e.useGlobalCLI}),await ie(u,l)}}),e.postCloneActions.removeLockfilesFromGitignore&&w.push({title:"Removing lockfiles from .gitignore",task:async()=>{let l=p(u,".gitignore");if(await C(l)){let v=await Y(l);R.forEach(Me=>{let Ue=new RegExp(`^${Me.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`,"gm");v=v.replace(Ue,"")}),await $(l,v.trim())}}}),await fe()&&w.push({title:"[Shopifolks-only] Configuring the project's NPM registry",task:async()=>{let l=p(u,".npmrc");await _(l,`@shopify:registry=https://registry.npmjs.org
4
+ `)}});let M=!1;w.push({title:"Preparing project directory",task:async()=>{await Se(r,a),M=!0,await W(u,r)}}),w.push({title:`Installing dependencies with ${t}`,task:async()=>{await $e({from:r,packageManager:t})}},{title:"Cleaning up",task:async()=>{await j(r,t)}},{title:"Initializing a Git repository...",task:async()=>{await ue(r)}});try{await me(w)}catch(l){throw M&&await I(r).catch(()=>{}),l}});let n;if(e.selectedAppOrNameResult.result==="new"){let i=await be(r,e.name),d=e.selectedAppOrNameResult.org;n=await e.developerPlatformClient.createApp(d,i)}else n=e.selectedAppOrNameResult.app;await xe({directory:r,apiKey:n.apiKey,appId:n.id,organizationId:n.organizationId,configName:"shopify.app.toml",developerPlatformClient:e.developerPlatformClient,isNewApp:!0},!1);let s=await Re({directory:r,clientId:void 0,forceRelink:!1,userProvidedConfigName:void 0});return ce({headline:[{userInput:a},"is ready for you to build!"],nextSteps:[["Run",{command:`cd ${a}`}],["For extensions, run",{command:L(t,"shopify app generate extension")}],["To see your app, run",{command:L(t,"shopify app dev")}]],reference:[{link:{label:"Shopify docs",url:"https://shopify.dev"}},[{link:{label:"Shopify Dev MCP,",url:"https://shopify.dev/docs/apps/build/devmcp"}},"connect your AI assistant to development resources"],["For an overview of commands, run",{command:L(t,"shopify app","--help")}]]}),{app:s.app}}async function Se(e,t){if(await C(e))throw new f(`
5
+ A directory with this name (${t}) already exists.
6
+ Choose a new name for your app.`)}async function Be(e){let t=new X({projectName:"shopify-cli-app"}),a=k(e);t.delete(a)}function We(e){return["web","web/frontend"].filter(t=>x(p(e,t)))}async function qe(e,t){let a=p(e,"pnpm-workspace.yaml");if(await C(a))return;let r=t.map(o=>` - '${o}'`).join(`
7
+ `);await $(a,`packages:
8
+ ${r}`)}var Ge=Ke;c();c();function N(e){try{return new URL(e)}catch{return}}function Ze(e){if(!e)return;let t=e.toLowerCase();for(let r of[t,`https://${t}`]){let o=N(r)?.hostname;if(o)return o}let a=t.replace(/^https?:\/\//,"").split("/")[0];if(a)return a}function Et(e){let t=Ze(e);if(!t)return;let a=t.match(/^([^.]+)\.myshopify\.com$/);return a?a[1]:void 0}function Ee(e){if(!e)return;let t=N(e);if(t&&t.origin!=="https://github.com")throw new f("Only GitHub repository references are supported, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]");if(!t&&!T(e))throw new f(g`Only ${F.map(a=>g`${h.yellow(a)}`.value).join(", ")} template aliases are supported, please provide a valid URL`)}function je(e,t){if(!e){if(t)throw new f(g`The ${h.yellow("--flavor")} flag requires the ${h.yellow("--template")} flag to be set`);return}if(!t)return;if(!T(e))throw new f(g`The ${h.yellow("--flavor")} flag is not supported for custom templates`);let a=b[e];if(!a.branches)throw new f(g`The ${h.yellow(e)} template does not support flavors`);if(!a.branches.options[t])throw new f(g`Invalid option for ${h.yellow("--flavor")}\nThe ${h.yellow("--flavor")} flag for ${h.yellow(e)} accepts only ${Object.keys(a.branches.options).map(r=>g`${h.yellow(r)}`.value).join(", ")}`)}var y=ze(De(),1);var Ne,P=class extends Le{async run(){let{flags:t}=await this.parse(Ne);if(Ee(t.template),je(t.template,t.flavor),t.name!==void 0&&t.name.trim()==="")throw new f("The --name flag can't be empty","Provide a valid app name, for example: --name my-app");let a=ne(t["package-manager"]),r=t.name??await Qe(t.path),o=G();await o.session();let n=await Te({template:t.template,flavor:t.flavor}),s,i;if(t["client-id"]){let m=await Ie({apiKey:t["client-id"]});i=m.title,o=m.developerPlatformClient??o,s={result:"existing",app:m}}else{let m;t["organization-id"]?m=await ke(t["organization-id"],o):m=await Ce(),o=G({organization:m});let{organization:u,apps:A,hasMorePages:w}=await o.orgAndApps(m.id);s=await Xe(t.name!==void 0,r,A,w,u,o),i=s.result==="new"?s.name:s.app.title}n.globalCLIResult.install&&await J(a),await pe(()=>({cmd_create_app_template:n.templateType,cmd_create_app_template_url:n.template}));let{app:d}=await Ge({name:i,selectedAppOrNameResult:s,packageManager:a,template:n.template,local:t.local,directory:t.path,useGlobalCLI:n.globalCLIResult.alreadyInstalled||n.globalCLIResult.install,developerPlatformClient:o,postCloneActions:{removeLockfilesFromGitignore:n.templateType!=="custom"}});return{app:d}}};Ne=P;P.summary="Create a new app project";P.flags={...de,name:y.Flags.string({char:"n",env:"SHOPIFY_FLAG_NAME",hidden:!1,description:"The name for the new app. When provided, skips the app selection prompt and creates a new app with this name."}),path:y.Flags.string({char:"p",env:"SHOPIFY_FLAG_PATH",parse:async e=>z(e),default:async()=>H(),hidden:!1}),template:y.Flags.string({description:`The app template. Accepts one of the following:
9
+ - <${F.join("|")}>
10
+ - Any GitHub repo with optional branch and subpath, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]`,env:"SHOPIFY_FLAG_TEMPLATE"}),flavor:y.Flags.string({description:"Which flavor of the given template to use.",env:"SHOPIFY_FLAG_TEMPLATE_FLAVOR"}),"package-manager":y.Flags.string({char:"d",env:"SHOPIFY_FLAG_PACKAGE_MANAGER",hidden:!1,options:["npm","yarn","pnpm","bun"]}),local:y.Flags.boolean({char:"l",env:"SHOPIFY_FLAG_LOCAL",default:!1,hidden:!0}),"client-id":y.Flags.string({hidden:!1,description:"The Client ID of your app. Use this to automatically link your new project to an existing app. Using this flag avoids the app selection prompt.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),"organization-id":y.Flags.string({hidden:!1,description:"The organization ID. Your organization ID can be found in your Dev Dashboard URL: https://dev.shopify.com/dashboard/<organization-id>",env:"SHOPIFY_FLAG_ORGANIZATION_ID",exclusive:["client-id"]})};var sa=P;async function Qe(e){for(let t=0;t<3;t++){let a=await q({suffix:"app",directory:e});if(ge(a))return a}return""}async function Xe(e,t,a,r,o,n){let s=a.length===0||e;if(s||(s=await Ae()),s)return{result:"new",name:e?t:await Pe(t),org:o};{let i=await ve(we(n,o.id),a,r);if(!i)throw new f("Unable to select an app: the selection prompt was interrupted.");let d=await n.appFromIdentifiers(i.apiKey);if(!d)throw new f(`App with id ${i.id} not found`);return{result:"existing",app:d}}}export{Ze as a,Et as b,sa as c};
@@ -0,0 +1 @@
1
+ import{o as n}from"./chunk-ANBOLDON.js";import{D as s}from"./chunk-NTRAWIEJ.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function c(e){await s([{title:"Installing dependencies",task:async()=>{await n({packageManager:e.packageManager,directory:e.directory,deep:3})}}])}export{c as a};
@@ -0,0 +1 @@
1
+ import{c as m,d as f,e as p}from"./chunk-JUYJZUYU.js";import{d as c,f as w,j as T}from"./chunk-5XDQ76DQ.js";import{b as d}from"./chunk-TUNUEOHO.js";import{B as u}from"./chunk-NTRAWIEJ.js";import{d as l}from"./chunk-TPCG6DCA.js";import{U as i}from"./chunk-7FQFEB33.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();async function A(e,r){let n=await m(e),t=new p(r.filter),a=e.storeFqdn;if(t.any())return f(a,n,t)[0];let y=r.header??"",h=n.map(o=>{let S=o.id.toString()===d()?" [current]":"";return{value:async()=>o,label:`${o.name}${S}`,group:i(o.role)}});return r.create&&h.unshift(g(e)),(await u({message:y,choices:h}))()}async function B(e,r){return(await m(e)).find(t=>t.id.toString()===r)}async function C(e,r){let n=await m(e),t=new p(r),a=e.storeFqdn;return t.any()?f(a,n,t):[]}function g(e){return{value:async()=>{let r=c,n=await w("Name of the new theme"),t=await T({name:n,role:r},e);if(!t)throw new l("The theme could not be created.");return t},label:"[Create a new theme]",group:i(c)}}export{A as a,B as b,C as c};
@@ -0,0 +1 @@
1
+ import{d as b}from"./chunk-DZQYG32N.js";import{G as h,I as u,K as T}from"./chunk-DTIWUT2T.js";import{a as F}from"./chunk-MIDYZPO4.js";import{k as y,q as O}from"./chunk-TUNUEOHO.js";import{o as f,ua as v}from"./chunk-G4OQABDT.js";import{b as I}from"./chunk-OXJBYKMX.js";import{v as _}from"./chunk-NTRAWIEJ.js";import{d as s}from"./chunk-TPCG6DCA.js";import{r as U}from"./chunk-T6CC5WUU.js";import{Mb as S,Ua as l,ma as c}from"./chunk-7FQFEB33.js";import{e as A,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();async function P({session:e,overridesContent:r,themeId:t}){v("theme-preview:create");let w=`${u(e)}/theme_preview.json?preview_theme_id=${t}`,o=await h(e,{headers:{"Content-Type":"application/json"}}),i=await f(w,{method:"POST",body:r,headers:o});if(!i.ok)throw new s(`Theme preview request failed with status ${i.status}: ${i.statusText}`);let a=await J(i);return v("theme-preview:create"),a}async function g({session:e,overridesContent:r,themeId:t,previewIdentifier:d}){v("theme-preview:update");let o=`${u(e)}/theme_preview.json?preview_theme_id=${t}&preview_identifier=${encodeURIComponent(d)}`,i=await h(e,{headers:{"Content-Type":"application/json"}}),a=await f(o,{method:"POST",body:r,headers:i});if(!a.ok)throw new s(`Theme preview request failed with status ${a.status}: ${a.statusText}`);let x=await J(a);return v("theme-preview:update"),x}async function J(e){let r=await e.json();if(r.error)throw new s(`Theme preview failed: ${r.error}`);if(!r.url||!r.preview_identifier)throw new s("Theme preview returned an unexpected response");return{url:r.url,preview_identifier:r.preview_identifier}}async function $(e){if(!l(e.overrideJson))throw new s(`Override file not found: ${e.overrideJson}`);let r=await c(e.overrideJson),t;try{t=JSON.parse(r)}catch(i){let a=i instanceof Error?i.message:String(i);throw new s(`Failed to parse override file: ${e.overrideJson}`,a)}let d=await T(e.themeId,e.adminSession,e.password),w=JSON.stringify(t),o=e.previewIdentifier?await g({session:d,overridesContent:w,themeId:e.themeId,previewIdentifier:e.previewIdentifier}):await P({session:d,overridesContent:w,themeId:e.themeId});e.json?S(JSON.stringify({url:o.url,preview_identifier:o.preview_identifier})):_({body:[{list:{title:e.previewIdentifier?"Preview updated":"Preview is ready",items:[{link:{url:o.url}},`Preview ID: ${o.preview_identifier}`]}}]}),e.open&&b(o.url,"theme preview")}var m=A(U(),1);var E,n=class extends O{async command(r,t){let d=await F(t,{filter:{theme:r.theme}});await $({adminSession:t,overrideJson:r.overrides,themeId:d.id.toString(),previewIdentifier:r["preview-id"],open:r.open,password:r.password,json:r.json})}};E=n;n.summary="Applies JSON overrides to a theme and returns a preview URL.";n.descriptionWithMarkdown="Applies a JSON overrides file to a theme and creates or updates a preview. This lets you quickly preview changes.\n\n The command returns a preview URL and a preview identifier. You can reuse the preview identifier with `--preview-id` to update an existing preview instead of creating a new one.";n.description=E.descriptionWithoutMarkdown();n.flags={...I,...y,theme:m.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID",required:!0}),overrides:m.Flags.string({description:"Path to a JSON overrides file.",env:"SHOPIFY_FLAG_OVERRIDES",required:!0}),"preview-id":m.Flags.string({description:"An existing preview identifier to update instead of creating a new preview.",env:"SHOPIFY_FLAG_PREVIEW_ID"}),open:m.Flags.boolean({description:"Automatically launch the theme preview in your default web browser.",env:"SHOPIFY_FLAG_OPEN",default:!1}),json:m.Flags.boolean({description:"Output the preview URL and identifier as JSON.",env:"SHOPIFY_FLAG_JSON",default:!1})};n.multiEnvironmentsFlags=null;var ee=n;export{ee as a};
@@ -0,0 +1,5 @@
1
+ import{ha as a,i}from"./chunk-4QTEPWEJ.js";import{Fb as e,Hb as r}from"./chunk-7FQFEB33.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};