@shopify/cli 4.8.3 → 4.8.4

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 (306) hide show
  1. package/dist/analytics-M4OC7RPG.js +1 -0
  2. package/dist/{analytics-VCJLTHBI.js → analytics-RGIJMP4U.js} +1 -1
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-7W7RGEII.js → chunk-2HW6VRJT.js} +1 -1
  5. package/dist/{chunk-OSMT4BVT.js → chunk-2HYR6EUD.js} +1 -1
  6. package/dist/{chunk-JKWKFDP7.js → chunk-2IRRFPEY.js} +1 -1
  7. package/dist/{chunk-FYVFGKCJ.js → chunk-2SL443J6.js} +1 -1
  8. package/dist/{chunk-5QCSJYJ4.js → chunk-2VJ6NBPV.js} +1 -1
  9. package/dist/{chunk-ALDLKZJW.js → chunk-2WATX3XV.js} +1 -1
  10. package/dist/{chunk-EQ7HQXEK.js → chunk-2ZROBXJX.js} +1 -1
  11. package/dist/{chunk-BV4K7JX5.js → chunk-3CZ7DKE5.js} +1 -1
  12. package/dist/{chunk-NG5FY45G.js → chunk-3DIRCEXA.js} +1 -1
  13. package/dist/{chunk-YKHDUKFK.js → chunk-3DT4NS4S.js} +1 -1
  14. package/dist/{chunk-77QBDEU4.js → chunk-3IQ6WXDD.js} +1 -1
  15. package/dist/{chunk-TNYPQ2UL.js → chunk-43FRAUV6.js} +3 -3
  16. package/dist/chunk-44QD4QNO.js +1 -0
  17. package/dist/{chunk-PUGAY4JP.js → chunk-4DLRS7MT.js} +3 -3
  18. package/dist/{chunk-34YS3IUO.js → chunk-4F3XYIEY.js} +1 -1
  19. package/dist/{chunk-F4S4ITHP.js → chunk-4HOJJCZ6.js} +1 -1
  20. package/dist/{chunk-Z6MS5OET.js → chunk-4OMKKYFC.js} +1 -1
  21. package/dist/{chunk-ZRFOMQ2L.js → chunk-4ZTRKEA2.js} +1 -1
  22. package/dist/{chunk-WXDINLQ6.js → chunk-5DMFEDKY.js} +1 -1
  23. package/dist/{chunk-CRSAEF22.js → chunk-5Z6EW3FA.js} +1 -1
  24. package/dist/{chunk-QGYETVYA.js → chunk-66G2HJ2A.js} +1 -1
  25. package/dist/{chunk-NTV746FL.js → chunk-66HW6J57.js} +1 -1
  26. package/dist/{chunk-6ECS5KDX.js → chunk-67QK26HI.js} +1 -1
  27. package/dist/{chunk-RIWEYVNK.js → chunk-6A3TDSON.js} +1 -1
  28. package/dist/{chunk-XNMDPOYU.js → chunk-6B727IUY.js} +1 -1
  29. package/dist/{chunk-T3IMDY72.js → chunk-6C5AVMKR.js} +3 -3
  30. package/dist/{chunk-AURREHRU.js → chunk-6CR2EEZ3.js} +1 -1
  31. package/dist/{chunk-Z3JINOCM.js → chunk-6P5FGN6P.js} +1 -1
  32. package/dist/chunk-6QADNGH4.js +6 -0
  33. package/dist/{chunk-F3FHSS7N.js → chunk-6V6UNUMM.js} +1 -1
  34. package/dist/chunk-6XLFFOPK.js +1 -0
  35. package/dist/{chunk-MQM3PRVN.js → chunk-74CYT3VX.js} +1 -1
  36. package/dist/{chunk-CM4QZI6V.js → chunk-7FVCUY54.js} +1 -1
  37. package/dist/{chunk-2NHLSPBM.js → chunk-7KLPRSQR.js} +1 -1
  38. package/dist/{chunk-ASBTWQJO.js → chunk-7LZ34C4S.js} +1 -1
  39. package/dist/{chunk-GK23CIPB.js → chunk-7VQBIGJB.js} +1 -1
  40. package/dist/{chunk-YJCNZGPY.js → chunk-A3U7JDUC.js} +1 -1
  41. package/dist/{chunk-J6BXYZRY.js → chunk-A3V2A2I4.js} +1 -1
  42. package/dist/{chunk-GSYVQPMP.js → chunk-A5U4KKNV.js} +1 -1
  43. package/dist/{chunk-7YBBERPS.js → chunk-AIILEPSK.js} +1 -1
  44. package/dist/{chunk-34EOYW4N.js → chunk-APUYMORT.js} +1 -1
  45. package/dist/{chunk-2E3JUVRC.js → chunk-AQPOPSQ7.js} +1 -1
  46. package/dist/{chunk-T5I2LEDJ.js → chunk-AU7GNCOK.js} +1 -1
  47. package/dist/{chunk-ULIXS6H7.js → chunk-BAWBC66R.js} +1 -1
  48. package/dist/{chunk-E767ITG2.js → chunk-BG7QQU23.js} +1 -1
  49. package/dist/{chunk-KIPKRAUB.js → chunk-BHJ3TGS7.js} +1 -1
  50. package/dist/{chunk-TWTZLWO7.js → chunk-BHTHUKHU.js} +1 -1
  51. package/dist/{chunk-3D3IYIZ7.js → chunk-BV62ZERJ.js} +1 -1
  52. package/dist/{chunk-46ISGKTW.js → chunk-BYX7SQPM.js} +1 -1
  53. package/dist/{chunk-EIEPBDNX.js → chunk-C4Y7PQDQ.js} +1 -1
  54. package/dist/{chunk-LUSG2EHB.js → chunk-CBMX6XI7.js} +1 -1
  55. package/dist/{chunk-C2AA5NVP.js → chunk-CFQ5G2QS.js} +1 -1
  56. package/dist/{chunk-IAURXPUJ.js → chunk-CNK3ZO2B.js} +4 -4
  57. package/dist/{chunk-M7YZJWY3.js → chunk-CP56F5UR.js} +1 -1
  58. package/dist/{chunk-4ZMWIIJV.js → chunk-CSOCXWP6.js} +98 -92
  59. package/dist/{chunk-NKSLEPE2.js → chunk-CVW2HMQO.js} +1 -1
  60. package/dist/{chunk-6TPUTSNR.js → chunk-D6LQ56XT.js} +1 -1
  61. package/dist/{chunk-I7XKF22Z.js → chunk-D6QTOQEJ.js} +1 -1
  62. package/dist/{chunk-GKRGXRD4.js → chunk-DDZEYA2I.js} +1 -1
  63. package/dist/{chunk-TEHDOYO2.js → chunk-DH3DMUE2.js} +1 -1
  64. package/dist/{chunk-CNDB4VEM.js → chunk-DO4SRE4M.js} +1 -1
  65. package/dist/{chunk-E2IUEX5H.js → chunk-DUNE3INK.js} +1 -1
  66. package/dist/{chunk-BQTD7UV2.js → chunk-DZZORIWL.js} +1 -1
  67. package/dist/{chunk-BIV3GWMB.js → chunk-EJJPEWSB.js} +1 -1
  68. package/dist/{chunk-TBC5FH2W.js → chunk-EQ2PD2ZA.js} +1 -1
  69. package/dist/{chunk-4XZJKSDD.js → chunk-ERBXXVOZ.js} +1 -1
  70. package/dist/{chunk-NS7QRCJF.js → chunk-FGRW7GT4.js} +1 -1
  71. package/dist/{chunk-CYSB5AJJ.js → chunk-FRRA5MI2.js} +1 -1
  72. package/dist/{chunk-PYCGZSME.js → chunk-FRVRTOTF.js} +1 -1
  73. package/dist/{chunk-CF3PBTFV.js → chunk-FW3RORD7.js} +1 -1
  74. package/dist/{chunk-B3GLHLAQ.js → chunk-FY47X4NG.js} +1 -1
  75. package/dist/{chunk-SVO2M3F5.js → chunk-G2YTINLI.js} +1 -1
  76. package/dist/{chunk-7YDT5AOW.js → chunk-GGPMDCCB.js} +1 -1
  77. package/dist/{chunk-RVEAQUUF.js → chunk-GINXNPAR.js} +1 -1
  78. package/dist/{chunk-DDWJRJWW.js → chunk-GJHBAOGJ.js} +1 -1
  79. package/dist/{chunk-BR3GYG2H.js → chunk-GTAYTMCP.js} +1 -1
  80. package/dist/{chunk-FKW62ZUV.js → chunk-H2HR2AQE.js} +1 -1
  81. package/dist/{chunk-GO4KOSHA.js → chunk-H7TDIRIU.js} +1 -1
  82. package/dist/{chunk-JGSHB34D.js → chunk-HINK4QAR.js} +1 -1
  83. package/dist/{chunk-G52SCW6W.js → chunk-HXVUDGLH.js} +1 -1
  84. package/dist/{chunk-56362WJR.js → chunk-HYM3HBDG.js} +1 -1
  85. package/dist/{chunk-VTKZJ6MD.js → chunk-HYPY5WH6.js} +1 -1
  86. package/dist/{chunk-AQJEA33T.js → chunk-IHEBV2KO.js} +1 -1
  87. package/dist/{chunk-HEABWGTV.js → chunk-IHH5XTPV.js} +1 -1
  88. package/dist/{chunk-3DXA7B3Y.js → chunk-JJJIRCQP.js} +1 -1
  89. package/dist/{chunk-N34YKDEK.js → chunk-JQPPLSFT.js} +1 -1
  90. package/dist/{chunk-5QNB6464.js → chunk-JWHQPDOK.js} +1 -1
  91. package/dist/{chunk-OZJBUWZK.js → chunk-JXG2T76F.js} +1 -1
  92. package/dist/{chunk-BR5CFKIN.js → chunk-K2DP5Z76.js} +1 -1
  93. package/dist/{chunk-B52JFWYO.js → chunk-KUZ5Z6HM.js} +1 -1
  94. package/dist/{chunk-3X7XO4LN.js → chunk-KWQGJ3VC.js} +1 -1
  95. package/dist/{chunk-AU2OGZBS.js → chunk-KZU727AL.js} +1 -1
  96. package/dist/{chunk-YSOLGBU3.js → chunk-L2DCUVZV.js} +1 -1
  97. package/dist/{chunk-RPM2BFMN.js → chunk-L3JBKCAS.js} +1 -1
  98. package/dist/{chunk-HG63NM4M.js → chunk-L3M7PTHU.js} +1 -1
  99. package/dist/{chunk-MF2PINFC.js → chunk-L4LDNEFK.js} +1 -1
  100. package/dist/{chunk-2AFQC53K.js → chunk-LAMTFOVF.js} +1 -1
  101. package/dist/{chunk-LOSBZZHU.js → chunk-LBA6FGKC.js} +1 -1
  102. package/dist/{chunk-ZC7FWXYM.js → chunk-LEW5IJK6.js} +1 -1
  103. package/dist/{chunk-UCP6UA7M.js → chunk-LX5UXWZ7.js} +1 -1
  104. package/dist/{chunk-XBL6HWDC.js → chunk-M7VQLMSW.js} +1 -1
  105. package/dist/{chunk-RAJX2CQP.js → chunk-MBRFIXCU.js} +1 -1
  106. package/dist/{chunk-VEXW766J.js → chunk-MYLMGH7Y.js} +1 -1
  107. package/dist/{chunk-I44E5KLI.js → chunk-NBXXTQWA.js} +1 -1
  108. package/dist/{chunk-VCJ252CK.js → chunk-NDT3F2PR.js} +1 -1
  109. package/dist/{chunk-QIGFVVLB.js → chunk-NHOF2IN6.js} +1 -1
  110. package/dist/{chunk-2C27YWUC.js → chunk-NKC3K3XP.js} +1 -1
  111. package/dist/chunk-O72SHE3Q.js +7 -0
  112. package/dist/chunk-OAG72Q2O.js +1 -0
  113. package/dist/{chunk-SUQF2LM7.js → chunk-OPOPO7DG.js} +1 -1
  114. package/dist/{chunk-MI5HPOXV.js → chunk-OUA6EOLX.js} +1 -1
  115. package/dist/{chunk-CSNXCRPY.js → chunk-OY6L7J53.js} +1 -1
  116. package/dist/{chunk-DGZCOTKZ.js → chunk-OYCAYEQE.js} +1 -1
  117. package/dist/{chunk-65DQFHSH.js → chunk-PGWQHSDV.js} +1 -1
  118. package/dist/{chunk-777JJJYW.js → chunk-PM3HRKPR.js} +1 -1
  119. package/dist/{chunk-BO45JVQ3.js → chunk-PNNW7YQG.js} +1 -1
  120. package/dist/{chunk-ETHKJFFN.js → chunk-POMWFTBD.js} +1 -1
  121. package/dist/{chunk-RM3XC2IX.js → chunk-QKTBYAUD.js} +1 -1
  122. package/dist/{chunk-PERAXNOY.js → chunk-QVO5CAJN.js} +2 -2
  123. package/dist/{chunk-E6DIK7Z7.js → chunk-QXR5DJC2.js} +1 -1
  124. package/dist/{chunk-O4ZMMPEP.js → chunk-QZEDYQVT.js} +1 -1
  125. package/dist/{chunk-BU4EGAMH.js → chunk-R3GLEZSE.js} +1 -1
  126. package/dist/{chunk-DE3HBSUU.js → chunk-RDS2WYQH.js} +1 -1
  127. package/dist/{chunk-SLZ6UMVV.js → chunk-RHBLXZGU.js} +1 -1
  128. package/dist/{chunk-6QDI53VP.js → chunk-RHNZA4IL.js} +1 -1
  129. package/dist/{chunk-HHWZV7CG.js → chunk-RIM7FNP3.js} +1 -1
  130. package/dist/{chunk-HPGQGIPA.js → chunk-S5H5U3PR.js} +1 -1
  131. package/dist/{chunk-KLI5Z5RC.js → chunk-SCLGMVNB.js} +1 -1
  132. package/dist/{chunk-EIASA32Z.js → chunk-SPNM3GES.js} +1 -1
  133. package/dist/{chunk-SYJXM2RN.js → chunk-SVYHWGMI.js} +1 -1
  134. package/dist/{chunk-AWTBC3MC.js → chunk-T4V7KOGJ.js} +3 -3
  135. package/dist/{chunk-PZH4WAOO.js → chunk-TA2M37OB.js} +1 -1
  136. package/dist/{chunk-4CLJ6W23.js → chunk-TAY7HU7X.js} +2 -2
  137. package/dist/{chunk-KSSPT7G5.js → chunk-TCFGEOE4.js} +12 -12
  138. package/dist/{chunk-SASKWPDJ.js → chunk-U6URYCC6.js} +1 -1
  139. package/dist/{chunk-MPO2T5YQ.js → chunk-UJBMY5WR.js} +1 -1
  140. package/dist/{chunk-SZ2V5WT6.js → chunk-UPGRXCFS.js} +1 -1
  141. package/dist/{chunk-6NO44HAQ.js → chunk-V2GLAK2W.js} +1 -1
  142. package/dist/{chunk-O2YFSYDR.js → chunk-V4774HTF.js} +1 -1
  143. package/dist/{chunk-XCTRPBWM.js → chunk-VBICZDA4.js} +1 -1
  144. package/dist/{chunk-T7BQYKKT.js → chunk-VDGTHMIQ.js} +1 -1
  145. package/dist/{chunk-3U7O3PMX.js → chunk-VETLNJ56.js} +1 -1
  146. package/dist/{chunk-UU3VUYVX.js → chunk-VG3YVCZW.js} +1 -1
  147. package/dist/chunk-VJ5YOXKL.js +1 -0
  148. package/dist/{chunk-5VBEPL4S.js → chunk-W4SGAPPR.js} +1 -1
  149. package/dist/{chunk-PXM3ENVN.js → chunk-W4SQE6NR.js} +1 -1
  150. package/dist/{chunk-OI3MNE72.js → chunk-WAJRWCZY.js} +1 -1
  151. package/dist/{chunk-WKC5HDMY.js → chunk-WGFGWDWP.js} +1 -1
  152. package/dist/{chunk-UI75K6AX.js → chunk-WGUCRVII.js} +1 -1
  153. package/dist/{chunk-U5APMZGT.js → chunk-WY7QF7VU.js} +1 -1
  154. package/dist/{chunk-HZASAGTU.js → chunk-X4V2CD2H.js} +1 -1
  155. package/dist/{chunk-AHJT2Z7G.js → chunk-XHXKPRF5.js} +1 -1
  156. package/dist/{chunk-WE72MX7V.js → chunk-XKHKXUQY.js} +1 -1
  157. package/dist/chunk-XOYICV6P.js +1 -0
  158. package/dist/{chunk-HLLMMIIM.js → chunk-XRJCD3AO.js} +1 -1
  159. package/dist/{chunk-XSFF6KEB.js → chunk-XWXAFJFC.js} +1 -1
  160. package/dist/{chunk-QCMGYBFD.js → chunk-XYUTD6IU.js} +1 -1
  161. package/dist/{chunk-5YSO5HRH.js → chunk-Y4BBTWM5.js} +1 -1
  162. package/dist/{chunk-LZSDOB4O.js → chunk-YHTONNIZ.js} +1 -1
  163. package/dist/{chunk-6ZGCTTAD.js → chunk-YNFXYVYN.js} +1 -1
  164. package/dist/{chunk-BAUHOB76.js → chunk-Z2HN5L6G.js} +1 -1
  165. package/dist/{chunk-ZBMPFLOH.js → chunk-Z5KYKXMH.js} +1 -1
  166. package/dist/{chunk-RFORHGOR.js → chunk-ZAH6QID2.js} +1 -1
  167. package/dist/{chunk-PXAYMXQN.js → chunk-ZCNNJCTQ.js} +1 -1
  168. package/dist/chunk-ZVA5F4QC.js +272 -0
  169. package/dist/{chunk-ERMLZF2C.js → chunk-ZVJD6CUY.js} +1 -1
  170. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  171. package/dist/cli/commands/app/build.js +1 -1
  172. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  173. package/dist/cli/commands/app/bulk/execute.js +1 -1
  174. package/dist/cli/commands/app/bulk/status.js +1 -1
  175. package/dist/cli/commands/app/config/link.js +1 -1
  176. package/dist/cli/commands/app/config/pull.js +1 -1
  177. package/dist/cli/commands/app/config/use.js +1 -1
  178. package/dist/cli/commands/app/config/validate.js +1 -1
  179. package/dist/cli/commands/app/demo/watcher.js +1 -1
  180. package/dist/cli/commands/app/deploy.js +1 -1
  181. package/dist/cli/commands/app/dev/clean.js +1 -1
  182. package/dist/cli/commands/app/dev.js +1 -1
  183. package/dist/cli/commands/app/doctor/instructions.js +1 -1
  184. package/dist/cli/commands/app/doctor.js +1 -1
  185. package/dist/cli/commands/app/env/pull.js +1 -1
  186. package/dist/cli/commands/app/env/show.js +1 -1
  187. package/dist/cli/commands/app/execute.js +1 -1
  188. package/dist/cli/commands/app/function/build.js +1 -1
  189. package/dist/cli/commands/app/function/info.js +1 -1
  190. package/dist/cli/commands/app/function/replay.js +1 -1
  191. package/dist/cli/commands/app/function/run.js +1 -1
  192. package/dist/cli/commands/app/function/schema.js +1 -1
  193. package/dist/cli/commands/app/function/typegen.js +1 -1
  194. package/dist/cli/commands/app/generate/extension.js +1 -1
  195. package/dist/cli/commands/app/graphiql.js +1 -1
  196. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  197. package/dist/cli/commands/app/import-extensions.js +1 -1
  198. package/dist/cli/commands/app/info.js +1 -1
  199. package/dist/cli/commands/app/init.js +1 -1
  200. package/dist/cli/commands/app/logs.js +1 -1
  201. package/dist/cli/commands/app/release.js +1 -1
  202. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  203. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  204. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  205. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  206. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  207. package/dist/cli/commands/app/versions/list.js +1 -1
  208. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  209. package/dist/cli/commands/auth/login.js +1 -1
  210. package/dist/cli/commands/auth/logout.js +1 -1
  211. package/dist/cli/commands/cache/clear.js +1 -1
  212. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  213. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  214. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  215. package/dist/cli/commands/debug/command-flags.js +1 -1
  216. package/dist/cli/commands/doc/fetch.js +1 -1
  217. package/dist/cli/commands/doc/search.js +1 -1
  218. package/dist/cli/commands/docs/generate.js +1 -1
  219. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  220. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  221. package/dist/cli/commands/help.js +1 -1
  222. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  223. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  224. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  225. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  226. package/dist/cli/commands/notifications/generate.js +1 -1
  227. package/dist/cli/commands/notifications/list.js +1 -1
  228. package/dist/cli/commands/organization/list.js +1 -1
  229. package/dist/cli/commands/search.js +1 -1
  230. package/dist/cli/commands/send-analytics.js +1 -1
  231. package/dist/cli/commands/theme/check.js +1 -1
  232. package/dist/cli/commands/theme/console.js +1 -1
  233. package/dist/cli/commands/theme/delete.js +1 -1
  234. package/dist/cli/commands/theme/dev.js +1 -1
  235. package/dist/cli/commands/theme/duplicate.js +1 -1
  236. package/dist/cli/commands/theme/info.js +1 -1
  237. package/dist/cli/commands/theme/init.js +1 -1
  238. package/dist/cli/commands/theme/language-server.js +1 -1
  239. package/dist/cli/commands/theme/list.js +1 -1
  240. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  241. package/dist/cli/commands/theme/open.js +1 -1
  242. package/dist/cli/commands/theme/package.js +1 -1
  243. package/dist/cli/commands/theme/preview.js +1 -1
  244. package/dist/cli/commands/theme/profile.js +1 -1
  245. package/dist/cli/commands/theme/publish.js +1 -1
  246. package/dist/cli/commands/theme/pull.js +1 -1
  247. package/dist/cli/commands/theme/push.js +1 -1
  248. package/dist/cli/commands/theme/rename.js +1 -1
  249. package/dist/cli/commands/theme/share.js +1 -1
  250. package/dist/cli/commands/upgrade.js +1 -1
  251. package/dist/cli/commands/version.js +1 -1
  252. package/dist/command-registry.js +1 -1
  253. package/dist/{conf-store-F4NCJPWK.js → conf-store-H3UAVGN5.js} +1 -1
  254. package/dist/configs/all.yml +8 -5
  255. package/dist/configs/recommended.yml +8 -5
  256. package/dist/data/objects.json +487 -75
  257. package/dist/data/shopify_system_translations.json +8 -7
  258. package/dist/data/tags.json +23 -0
  259. package/dist/{deprecations-PX5KIFDO.js → deprecations-TEUM7CML.js} +1 -1
  260. package/dist/dist-62I5X3FS.js +1 -0
  261. package/dist/dist-YHZ5BTYD.js +1 -0
  262. package/dist/{environments-TLO674UK.js → environments-LAFWOQWO.js} +1 -1
  263. package/dist/{error-YLDXWEC5.js → error-6ZCGAC5E.js} +1 -1
  264. package/dist/error-handler-JNCW56EC.js +1 -0
  265. package/dist/{fs-CDN2NZJC.js → fs-QEWOWUPQ.js} +1 -1
  266. package/dist/hooks/did-you-mean.js +1 -1
  267. package/dist/hooks/hydrogen-init.js +1 -1
  268. package/dist/hooks/postrun.js +1 -1
  269. package/dist/hooks/prerun.js +1 -1
  270. package/dist/hooks/public-metadata.js +1 -1
  271. package/dist/hooks/sensitive-metadata.js +1 -1
  272. package/dist/hooks/tunnel-provider.js +1 -1
  273. package/dist/hooks/tunnel-start.js +1 -1
  274. package/dist/index.js +1 -1
  275. package/dist/{is-global-KBYTYD3Y.js → is-global-UYMEAGDR.js} +1 -1
  276. package/dist/{local-IBYCFEVA.js → local-Z4ZEMWE4.js} +1 -1
  277. package/dist/{metadata-LOCKHSUF.js → metadata-ZCQMB5AB.js} +1 -1
  278. package/dist/{node-package-manager-ESOHDRPJ.js → node-package-manager-HMOTOBDS.js} +1 -1
  279. package/dist/notifications-system-RT3CY6LZ.js +1 -0
  280. package/dist/os-G6KDPJMC.js +1 -0
  281. package/dist/{output-OAORC6TH.js → output-BJCZYDNG.js} +1 -1
  282. package/dist/{system-VNXEM5E7.js → system-T4H2ISV6.js} +1 -1
  283. package/dist/tsconfig.tsbuildinfo +1 -1
  284. package/dist/{ui-CIZHMGKK.js → ui-4MQSY5IN.js} +1 -1
  285. package/dist/upgrade-4234MIYJ.js +1 -0
  286. package/dist/version-FRSRSCRX.js +1 -0
  287. package/dist/{version-JJYR4NOL.js → version-RF7QQXRX.js} +1 -1
  288. package/dist/{workerd-JWZNKSHU.js → workerd-7E4H2DM3.js} +1 -1
  289. package/oclif.manifest.json +1 -1
  290. package/package.json +7 -7
  291. package/dist/analytics-AL5WLCEC.js +0 -1
  292. package/dist/chunk-3CFHLIBD.js +0 -7
  293. package/dist/chunk-4EHFK2OI.js +0 -1
  294. package/dist/chunk-BJ3JF35I.js +0 -6
  295. package/dist/chunk-ENEPD4BS.js +0 -1
  296. package/dist/chunk-EWKIFVW3.js +0 -273
  297. package/dist/chunk-NNCLTG6A.js +0 -1
  298. package/dist/chunk-PJH3JJEQ.js +0 -1
  299. package/dist/chunk-RV4UQZ2W.js +0 -1
  300. package/dist/dist-WO24PYXH.js +0 -1
  301. package/dist/dist-X7YIFLSP.js +0 -1
  302. package/dist/error-handler-SY45FR6A.js +0 -1
  303. package/dist/notifications-system-EMCOAF3T.js +0 -1
  304. package/dist/os-XLJNYIZF.js +0 -1
  305. package/dist/upgrade-AIZVY3E5.js +0 -1
  306. package/dist/version-CNIDTUMV.js +0 -1
@@ -1 +1 @@
1
- import{b as r,c as u,e as I}from"./chunk-DPNZWBT5.js";import{a as o}from"./chunk-JD5P5RAJ.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();c();function i(t){return!(t===void 0||t.trim()==="")}function s(t,e){switch(t){case"bitbucket":return{branch:e.BITBUCKET_BRANCH,build:e.BITBUCKET_BUILD_NUMBER,commitSha:e.BITBUCKET_COMMIT,run:e.BITBUCKET_BUILD_NUMBER,url:`https://bitbucket.org/${e.BITBUCKET_WORKSPACE}/${e.BITBUCKET_REPO_SLUG}/pipelines/results/${e.BITBUCKET_BUILD_NUMBER}`};case"circleci":return{actor:e.CIRCLE_USERNAME,branch:e.CIRCLE_BRANCH,build:e.CIRCLE_BUILD_NUM,commitSha:e.CIRCLE_SHA1,run:e.CIRCLE_WORKFLOW_ID,url:e.CIRCLE_BUILD_URL};case"github":return{actor:e.GITHUB_ACTOR,attempt:e.GITHUB_RUN_ATTEMPT,branch:e.GITHUB_REF_NAME,build:e.GITHUB_RUN_ID,commitSha:e.GITHUB_SHA,run:e.GITHUB_RUN_ID,runNumber:e.GITHUB_RUN_NUMBER,url:`${e.GITHUB_SERVER_URL}/${e.GITHUB_REPOSITORY}/actions/runs/${e.GITHUB_RUN_ID}`};case"gitlab":return{actor:e.GITLAB_USER_LOGIN,branch:e.CI_COMMIT_REF_NAME,build:e.CI_PIPELINE_ID,commitSha:e.CI_COMMIT_SHA,commitMessage:e.CI_COMMIT_MESSAGE,run:e.CI_RUNNER_ID,url:e.CI_PIPELINE_URL};case"buildkite":return{branch:e.BUILDKITE_BRANCH,build:e.BUILDKITE_BUILD_NUMBER,commitSha:e.BUILDKITE_COMMIT,commitMessage:e.BUILDKITE_MESSAGE,run:e.BUILDKITE_BUILD_NUMBER,url:e.BUILDKITE_BUILD_URL};default:return{}}}import{randomUUID as p}from"crypto";import{homedir as l,networkInterfaces as m}from"os";async function f(t){let{fileExists:e}=await import("./fs-CDN2NZJC.js");return e(t)}async function U(t,e){let{exec:a}=await import("./system-VNXEM5E7.js");await a(t,e)}function M(){return!!(process.stdout.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}function x(){return l()}var _,T;function B(t=process.env){return t[r.env]==="development"}function N(t=process.env){return t===process.env?_??=o(t[r.verbose])||process.argv.includes("--verbose"):o(t[r.verbose])||process.argv.includes("--verbose")}async function A(t=process.env){return Object.prototype.hasOwnProperty.call(t,r.runAsUser)?!o(t[r.runAsUser]):await f(I.executables.dev)}function y(t=process.env){return t===process.env?T??=o(t[r.unitTest]):o(t[r.unitTest])}function g(t=process.env){return o(t[r.noAnalytics])||o(t[r.optOutInstrumentation])||B(t)}function S(t=process.env){return o(t[r.alwaysLogAnalytics])}function K(t=process.env){return o(t[r.alwaysLogMetrics])}function G(t=process.env){return o(t[r.doctor])}function O(t=process.env){return t[r.gitpod]}function H(t=process.env){return t[r.codespaceName]}function w(t=process.env){return t[r.codespacePortForwardingDomain]}function P(t=process.env){return d(t).platform!=="localhost"}function k(t=process.env){return t[r.themeToken]}function d(t=process.env){return i(t[r.codespaces])?{platform:"codespaces",editor:!0}:i(t[r.gitpod])?{platform:"gitpod",editor:!0}:i(t[r.cloudShell])?{platform:"cloudShell",editor:!0}:{platform:"localhost",editor:!1}}async function F(){try{return await U("git",["--version"]),!0}catch{return!1}}function z(t=process.env){if(o(t.CI)){let e="unknown";return i(t.BITBUCKET_BUILD_NUMBER)?e="bitbucket":o(t.CIRCLECI)?e="circleci":i(t.GITHUB_ACTION)?e="github":o(t.GITLAB_CI)?e="gitlab":i(t.BUILDKITE)&&(e="buildkite"),{isCI:!0,name:e,metadata:s(e,t)}}else if(o(t.TF_BUILD))return{isCI:!0,name:"azure",metadata:s("azure",t)};return{isCI:!1}}async function $(){let t="00:00:00:00:00:00",e=Object.values(m()).flat().filter(n=>!!(n&&n.mac!==t));return(e.find(n=>!n.internal)??e[0])?.mac??p()}function V(t=process.env){let e=t[r.themeKitAccessDomain];return i(e)?e:u}function W(t=process.env){let e=t[r.otelURL];return i(e)?e:"https://otlp-http-production-cli.shopifysvc.com"}export{M as a,x as b,B as c,N as d,A as e,y as f,g,S as h,K as i,G as j,O as k,H as l,w as m,P as n,k as o,d as p,F as q,z as r,$ as s,V as t,W as u};
1
+ import{b as r,c as u,e as I}from"./chunk-DPNZWBT5.js";import{a as o}from"./chunk-JD5P5RAJ.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();c();function i(t){return!(t===void 0||t.trim()==="")}function s(t,e){switch(t){case"bitbucket":return{branch:e.BITBUCKET_BRANCH,build:e.BITBUCKET_BUILD_NUMBER,commitSha:e.BITBUCKET_COMMIT,run:e.BITBUCKET_BUILD_NUMBER,url:`https://bitbucket.org/${e.BITBUCKET_WORKSPACE}/${e.BITBUCKET_REPO_SLUG}/pipelines/results/${e.BITBUCKET_BUILD_NUMBER}`};case"circleci":return{actor:e.CIRCLE_USERNAME,branch:e.CIRCLE_BRANCH,build:e.CIRCLE_BUILD_NUM,commitSha:e.CIRCLE_SHA1,run:e.CIRCLE_WORKFLOW_ID,url:e.CIRCLE_BUILD_URL};case"github":return{actor:e.GITHUB_ACTOR,attempt:e.GITHUB_RUN_ATTEMPT,branch:e.GITHUB_REF_NAME,build:e.GITHUB_RUN_ID,commitSha:e.GITHUB_SHA,run:e.GITHUB_RUN_ID,runNumber:e.GITHUB_RUN_NUMBER,url:`${e.GITHUB_SERVER_URL}/${e.GITHUB_REPOSITORY}/actions/runs/${e.GITHUB_RUN_ID}`};case"gitlab":return{actor:e.GITLAB_USER_LOGIN,branch:e.CI_COMMIT_REF_NAME,build:e.CI_PIPELINE_ID,commitSha:e.CI_COMMIT_SHA,commitMessage:e.CI_COMMIT_MESSAGE,run:e.CI_RUNNER_ID,url:e.CI_PIPELINE_URL};case"buildkite":return{branch:e.BUILDKITE_BRANCH,build:e.BUILDKITE_BUILD_NUMBER,commitSha:e.BUILDKITE_COMMIT,commitMessage:e.BUILDKITE_MESSAGE,run:e.BUILDKITE_BUILD_NUMBER,url:e.BUILDKITE_BUILD_URL};default:return{}}}import{randomUUID as p}from"crypto";import{homedir as l,networkInterfaces as m}from"os";async function f(t){let{fileExists:e}=await import("./fs-QEWOWUPQ.js");return e(t)}async function U(t,e){let{exec:a}=await import("./system-T4H2ISV6.js");await a(t,e)}function M(){return!!(process.stdout.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}function x(){return l()}var _,T;function B(t=process.env){return t[r.env]==="development"}function N(t=process.env){return t===process.env?_??=o(t[r.verbose])||process.argv.includes("--verbose"):o(t[r.verbose])||process.argv.includes("--verbose")}async function A(t=process.env){return Object.prototype.hasOwnProperty.call(t,r.runAsUser)?!o(t[r.runAsUser]):await f(I.executables.dev)}function y(t=process.env){return t===process.env?T??=o(t[r.unitTest]):o(t[r.unitTest])}function g(t=process.env){return o(t[r.noAnalytics])||o(t[r.optOutInstrumentation])||B(t)}function S(t=process.env){return o(t[r.alwaysLogAnalytics])}function K(t=process.env){return o(t[r.alwaysLogMetrics])}function G(t=process.env){return o(t[r.doctor])}function O(t=process.env){return t[r.gitpod]}function H(t=process.env){return t[r.codespaceName]}function w(t=process.env){return t[r.codespacePortForwardingDomain]}function P(t=process.env){return d(t).platform!=="localhost"}function k(t=process.env){return t[r.themeToken]}function d(t=process.env){return i(t[r.codespaces])?{platform:"codespaces",editor:!0}:i(t[r.gitpod])?{platform:"gitpod",editor:!0}:i(t[r.cloudShell])?{platform:"cloudShell",editor:!0}:{platform:"localhost",editor:!1}}async function F(){try{return await U("git",["--version"]),!0}catch{return!1}}function z(t=process.env){if(o(t.CI)){let e="unknown";return i(t.BITBUCKET_BUILD_NUMBER)?e="bitbucket":o(t.CIRCLECI)?e="circleci":i(t.GITHUB_ACTION)?e="github":o(t.GITLAB_CI)?e="gitlab":i(t.BUILDKITE)&&(e="buildkite"),{isCI:!0,name:e,metadata:s(e,t)}}else if(o(t.TF_BUILD))return{isCI:!0,name:"azure",metadata:s("azure",t)};return{isCI:!1}}async function $(){let t="00:00:00:00:00:00",e=Object.values(m()).flat().filter(n=>!!(n&&n.mac!==t));return(e.find(n=>!n.internal)??e[0])?.mac??p()}function V(t=process.env){let e=t[r.themeKitAccessDomain];return i(e)?e:u}function W(t=process.env){let e=t[r.otelURL];return i(e)?e:"https://otlp-http-production-cli.shopifysvc.com"}export{M as a,x as b,B as c,N as d,A as e,y as f,g,S as h,K as i,G as j,O as k,H as l,w as m,P as n,k as o,d as p,F as q,z as r,$ as s,V as t,W as u};
@@ -1 +1 @@
1
- import{a as I,b as w}from"./chunk-YY6TFARF.js";import{a as E}from"./chunk-AHJT2Z7G.js";import{a as _}from"./chunk-5VBEPL4S.js";import{f as a,g as l,p as S,v as b}from"./chunk-CNDB4VEM.js";import{b as T,c as g}from"./chunk-BR5CFKIN.js";import{Aa as p,xa as s}from"./chunk-IAURXPUJ.js";import{y as f}from"./chunk-T3IMDY72.js";import{d as m}from"./chunk-O4ZMMPEP.js";import{h as v}from"./chunk-4EHFK2OI.js";import{a as x}from"./chunk-CTNBSUVU.js";import{wb as c}from"./chunk-TNYPQ2UL.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();function A(t,e){return{theme:{id:t.id,name:t.name,role:t.role,shop:e.storeFqdn,preview_url:I(t,e),editor_url:w(t,e)}}}function D(t){let{platform:e,arch:n}=m(),o=a(),r=null;return o&&(r=Number(l())||null),{store:o??"Not configured",development_theme_id:r,cli_version:t.cliVersion,os:`${e}-${n}`,shell:process.env.SHELL??"unknown",node_version:process.version}}async function O(t,e){let n;if(e.development)n=await new E(t).findOrCreate();else{let o={filter:{theme:e.theme}};n=await _(t,o)}return n?A(n,t):void 0}async function y(t){return[M(),await j(t)]}function M(){let t=a()??"Not configured",e=l();return p(`theme-command:info:dev-theme-loaded:${e}`),N("Theme Configuration",[["Store",t],["Development Theme ID",e?`#${e}`:{subdued:"Not set"}]])}async function j(t){let{platform:e,arch:n}=m();return N("Tooling and System",[["Shopify CLI",t.cliVersion],["OS",`${e}-${n}`],["Shell",process.env.SHELL??"unknown"],["Node version",process.version]])}function N(t,e){return{title:t,body:{tabularData:e,firstColumnSubdued:!0}}}async function F(t,e){let n=Object.entries(t.theme).map(([o,r])=>{if(o==="editor_url"||o==="preview_url"){let C=String(r),$=o==="editor_url"?"Open in Theme Editor":"Preview Theme";return[u(o),{link:{url:C,label:$}}]}else return o==="id"?[u(o),`#${r}`]:[u(o),`${r}`]});return{customSections:[...e.environment?[{title:"Theme information",body:[{subdued:`Environment name: ${e.environment}`}]}]:[],{title:"Theme Details",body:{tabularData:n,firstColumnSubdued:!0}}]}}function u(t){return t.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}var d=L(x(),1);var h=class extends b{static description="Displays information about your theme environment, including your current store. Can also retrieve information about a specific theme.";static flags={...T,...g,...S,development:d.Flags.boolean({char:"d",description:"Retrieve info from your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),theme:d.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"})};static multiEnvironmentsFlags=["store","password"];async command(e,n){if(s("theme-command:info"),e.theme||e.development){let o=await O(n,e);if(!o)throw new v("Theme not found!");if(e.json)return c(JSON.stringify(o,null,2));let r=await F(o,e);f(r)}else{if(e.json)return c(JSON.stringify(D({cliVersion:this.config.version}),null,2));let o=await y({cliVersion:this.config.version});f({customSections:o})}s("theme-command:info")}};export{h as a};
1
+ import{a as I,b as w}from"./chunk-YY6TFARF.js";import{a as E}from"./chunk-XHXKPRF5.js";import{a as _}from"./chunk-W4SGAPPR.js";import{f as a,g as l,p as S,v as b}from"./chunk-DO4SRE4M.js";import{b as T,c as g}from"./chunk-K2DP5Z76.js";import{Aa as p,xa as s}from"./chunk-CNK3ZO2B.js";import{y as f}from"./chunk-6C5AVMKR.js";import{d as m}from"./chunk-QZEDYQVT.js";import{h as v}from"./chunk-OAG72Q2O.js";import{a as x}from"./chunk-CTNBSUVU.js";import{wb as c}from"./chunk-43FRAUV6.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();function A(t,e){return{theme:{id:t.id,name:t.name,role:t.role,shop:e.storeFqdn,preview_url:I(t,e),editor_url:w(t,e)}}}function D(t){let{platform:e,arch:n}=m(),o=a(),r=null;return o&&(r=Number(l())||null),{store:o??"Not configured",development_theme_id:r,cli_version:t.cliVersion,os:`${e}-${n}`,shell:process.env.SHELL??"unknown",node_version:process.version}}async function O(t,e){let n;if(e.development)n=await new E(t).findOrCreate();else{let o={filter:{theme:e.theme}};n=await _(t,o)}return n?A(n,t):void 0}async function y(t){return[M(),await j(t)]}function M(){let t=a()??"Not configured",e=l();return p(`theme-command:info:dev-theme-loaded:${e}`),N("Theme Configuration",[["Store",t],["Development Theme ID",e?`#${e}`:{subdued:"Not set"}]])}async function j(t){let{platform:e,arch:n}=m();return N("Tooling and System",[["Shopify CLI",t.cliVersion],["OS",`${e}-${n}`],["Shell",process.env.SHELL??"unknown"],["Node version",process.version]])}function N(t,e){return{title:t,body:{tabularData:e,firstColumnSubdued:!0}}}async function F(t,e){let n=Object.entries(t.theme).map(([o,r])=>{if(o==="editor_url"||o==="preview_url"){let C=String(r),$=o==="editor_url"?"Open in Theme Editor":"Preview Theme";return[u(o),{link:{url:C,label:$}}]}else return o==="id"?[u(o),`#${r}`]:[u(o),`${r}`]});return{customSections:[...e.environment?[{title:"Theme information",body:[{subdued:`Environment name: ${e.environment}`}]}]:[],{title:"Theme Details",body:{tabularData:n,firstColumnSubdued:!0}}]}}function u(t){return t.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}var d=L(x(),1);var h=class extends b{static description="Displays information about your theme environment, including your current store. Can also retrieve information about a specific theme.";static flags={...T,...g,...S,development:d.Flags.boolean({char:"d",description:"Retrieve info from your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),theme:d.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"})};static multiEnvironmentsFlags=["store","password"];async command(e,n){if(s("theme-command:info"),e.theme||e.development){let o=await O(n,e);if(!o)throw new v("Theme not found!");if(e.json)return c(JSON.stringify(o,null,2));let r=await F(o,e);f(r)}else{if(e.json)return c(JSON.stringify(D({cliVersion:this.config.version}),null,2));let o=await y({cliVersion:this.config.version});f({customSections:o})}s("theme-command:info")}};export{h as a};
@@ -1,2 +1,2 @@
1
- import{b as x,c as D,f as M}from"./chunk-WKC5HDMY.js";import{d as w}from"./chunk-IAURXPUJ.js";import{D as s,G as h,J as e,z as y}from"./chunk-T3IMDY72.js";import{a as o}from"./chunk-RV4UQZ2W.js";import{ua as u,xb as _}from"./chunk-TNYPQ2UL.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();async function $(){let a=new Date,n=`${a.getFullYear()}-${(a.getMonth()+1).toString().padStart(2,"0")}-${a.getDate().toString().padStart(2,"0")}`,i=w(),t=await s({message:"Type of message?",choices:[{label:"Info",value:"info"},{label:"Warning",value:"warning"},{label:"Error",value:"error"}]}),b=await e({message:"Title"}),E=await e({message:"Message"}),S=await s({message:"Frequency",choices:[{label:"Only once",value:"once"},{label:"Once a week",value:"once_a_week"},{label:"Once a day",value:"once_a_day"},{label:"Always",value:"always"}]}),r=await e({message:"Minimum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),l=await e({message:"Maximum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),m=await e({message:"Minimum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),c=await e({message:"Maximum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),f=await e({message:"Surface. E.g.: app, theme, hydrogen, theme_app_extension... (optional)",allowEmpty:!0}),g=await e({message:"Comma separated list of commands. E.g.: app:generate:extension (optional)",allowEmpty:!0}),T=await e({message:"Slack channel of the team who will own this notification"}),d=await x(),v={id:i,type:t,title:b,frequency:S,message:E,minVersion:r.length===0?void 0:r,maxVersion:l.length===0?void 0:l,minDate:m.length===0?void 0:m,maxDate:c.length===0?void 0:c,surface:f.length===0?void 0:f,commands:g.length===0?void 0:g.split(",").map(N=>N.trim()),ownerChannel:T};d.notifications.push(v),await u("./notifications.json",JSON.stringify(d)),y({headline:"notifications.json file updated successfully."})}async function j(){let a=await D(),n={type:{header:"Type",color:"dim"},title:{header:"Title",color:"dim"},message:{header:"Message",color:"dim"},filters:{header:"Filters",color:"dim"}},i=a.notifications.map(t=>({type:t.type,title:t.title??"",message:t.message,filters:M(t)}));h({rows:i,columns:n}),_(`
1
+ import{b as x,c as D,f as M}from"./chunk-WGFGWDWP.js";import{d as w}from"./chunk-CNK3ZO2B.js";import{D as s,G as h,J as e,z as y}from"./chunk-6C5AVMKR.js";import{a as o}from"./chunk-XOYICV6P.js";import{ua as u,xb as _}from"./chunk-43FRAUV6.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();async function $(){let a=new Date,n=`${a.getFullYear()}-${(a.getMonth()+1).toString().padStart(2,"0")}-${a.getDate().toString().padStart(2,"0")}`,i=w(),t=await s({message:"Type of message?",choices:[{label:"Info",value:"info"},{label:"Warning",value:"warning"},{label:"Error",value:"error"}]}),b=await e({message:"Title"}),E=await e({message:"Message"}),S=await s({message:"Frequency",choices:[{label:"Only once",value:"once"},{label:"Once a week",value:"once_a_week"},{label:"Once a day",value:"once_a_day"},{label:"Always",value:"always"}]}),r=await e({message:"Minimum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),l=await e({message:"Maximum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),m=await e({message:"Minimum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),c=await e({message:"Maximum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),f=await e({message:"Surface. E.g.: app, theme, hydrogen, theme_app_extension... (optional)",allowEmpty:!0}),g=await e({message:"Comma separated list of commands. E.g.: app:generate:extension (optional)",allowEmpty:!0}),T=await e({message:"Slack channel of the team who will own this notification"}),d=await x(),v={id:i,type:t,title:b,frequency:S,message:E,minVersion:r.length===0?void 0:r,maxVersion:l.length===0?void 0:l,minDate:m.length===0?void 0:m,maxDate:c.length===0?void 0:c,surface:f.length===0?void 0:f,commands:g.length===0?void 0:g.split(",").map(N=>N.trim()),ownerChannel:T};d.notifications.push(v),await u("./notifications.json",JSON.stringify(d)),y({headline:"notifications.json file updated successfully."})}async function j(){let a=await D(),n={type:{header:"Type",color:"dim"},title:{header:"Title",color:"dim"},message:{header:"Message",color:"dim"},filters:{header:"Filters",color:"dim"}},i=a.notifications.map(t=>({type:t.type,title:t.title??"",message:t.message,filters:M(t)}));h({rows:i,columns:n}),_(`
2
2
  `)}export{$ as a,j as b};
@@ -1,2 +1,2 @@
1
- import{ga as y,ha as S,v as e}from"./chunk-IAURXPUJ.js";import{h as l,k as x}from"./chunk-4EHFK2OI.js";import{T as h,Wa as b,fa as _}from"./chunk-TNYPQ2UL.js";import{d as g,j as u}from"./chunk-773TIA5M.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();function v(t,{httpsOnly:n=!1,message:o="Invalid URL"}={}){return t.refine(a=>A(a,n),{message:o}).refine(a=>!a.includes(`
1
+ import{ga as y,ha as S,v as e}from"./chunk-CNK3ZO2B.js";import{h as l,k as x}from"./chunk-OAG72Q2O.js";import{T as h,Wa as b,fa as _}from"./chunk-43FRAUV6.js";import{d as g,j as u}from"./chunk-773TIA5M.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();function v(t,{httpsOnly:n=!1,message:o="Invalid URL"}={}){return t.refine(a=>A(a,n),{message:o}).refine(a=>!a.includes(`
2
2
  `),{message:o})}function _e(t,{message:n="URL must be HTTPS URL or start with /"}={}){return t.refine(o=>o.startsWith("/")||A(o,!0),{message:n})}function A(t,n){try{let o=new URL(t);return n?o.protocol==="https:":["http:","https:"].includes(o.protocol)}catch{return!1}}function be(t){return typeof t=="string"&&!t.startsWith("/")?`/${t}`:t}var H=30;function ye(t){return t.length<=H}r();var ve={skipEsbuildReactDedeuplication:"SHOPIFY_CLI_SKIP_ESBUILD_REACT_DEDUPLICATION",disableGraphiQLExplorer:"SHOPIFY_CLI_DISABLE_GRAPHIQL",useDynamicConfigSpecifications:"SHOPIFY_CLI_DYNAMIC_CONFIG",enableAppLogPolling:"SHOPIFY_CLI_ENABLE_APP_LOG_POLLING",templatesJsonPath:"SHOPIFY_CLI_APP_TEMPLATES_JSON_PATH",mkcertBinaryPath:"SHOPIFY_CLI_MKCERT_BINARY",disableMinificationOnDev:"SHOPIFY_CLI_DISABLE_MINIFICATION_ON_DEV"},O={app:"shopify.app.toml",web:"shopify.web.toml",appEnvironments:"shopify.environments.toml",lockFile:".shopify.lock",hiddenConfig:"project.json",hiddenFolder:".shopify"},Ae={production:".env"},Le={reactTypes:"17.0.30"},L={extensions:{directoryName:"extensions",defaultRegistrationLimit:1},web:{directoryName:"web",configurationName:O.web}},Ce={graphiql:3457,localhost:3458},Ie=/^([a-zA-Z_$])([a-zA-Z0-9_$])*$/;r();var C=50,I=250,V=e.object({namespace:e.string(),key:e.string()}),$=e.object({sms_marketing:e.boolean().optional(),customer_privacy:e.boolean().optional()}),z=e.object({sources:e.array(e.string()).optional()}),B=e.object({network_access:e.boolean().optional(),block_progress:e.boolean().optional(),api_access:e.boolean().optional(),collect_buyer_consent:$.optional(),iframe:z.optional(),bundle_size_exception:e.boolean().optional()}),q=e.object({runs_offline:e.boolean().optional()}),Ue=e.object({type:e.string().optional(),extensions:e.array(e.any()).optional()}),Y=e.object({event:e.string(),blocking:e.boolean().default(!1),applies_to:e.array(e.string()).optional()}),G=e.object({allow_direct_linking:e.boolean().optional(),intercepts:e.array(Y).optional()}),Z=e.object({module:e.string()}),X=e.object({target:e.string(),module:e.string(),should_render:Z.optional(),tools:e.string().optional(),instructions:e.string().optional(),intents:e.array(e.object({type:e.string(),action:e.string(),schema:e.string(),name:e.string().optional(),description:e.string().optional()})).optional(),metafields:e.array(V).optional(),default_placement:e.string().optional(),urls:e.object({edit:e.string().optional()}).optional(),capabilities:G.optional(),preloads:e.object({chat:e.string().optional()}).optional(),assets:e.string().optional()}),Te=e.array(X),R=e.string(),J=e.object({key:e.string().optional(),name:e.string().optional(),description:e.string().optional(),required:e.boolean().optional(),default_value:e.any().optional(),type:e.string(),validations:e.array(e.any()).optional(),marketingActivityCreateUrl:e.string().optional(),marketingActivityDeleteUrl:e.string().optional()}),j=e.object({fields:e.array(J).optional()}),w=e.string().trim().nonempty("Handle can't be empty").max(C,`Handle can't exceed ${C} characters`).regex(/^[a-zA-Z0-9-]*$/,"Handle can only contain alphanumeric characters and hyphens").refine(t=>!t.startsWith("-")&&!t.endsWith("-"),"Handle can't start or end with a hyphen"),K=e.string().trim().nonempty("UID can't be empty").max(I,`UID can't exceed ${I} characters`).regex(/^[a-zA-Z0-9-${}.()_`]*$/,"UID can only contain alphanumeric characters and hyphens").refine(t=>!t.startsWith("-")&&!t.endsWith("-"),"UID can't start or end with a hyphen"),d=e.object({name:e.string().optional(),type:e.string().optional(),handle:w.optional(),uid:K.optional(),description:e.string().optional(),api_version:R.optional(),extension_points:e.any().optional(),capabilities:B.optional(),supported_features:q.optional(),settings:j.optional()}),Ee=d.extend({handle:w}),U=d.omit({handle:!0}),Pe=e.object({api_version:R.optional(),description:e.string().optional(),extensions:e.array(e.any()),settings:j.optional()});r();r();import{isUtf8 as Q}from"node:buffer";import T from"fs";async function E(t,n){let o=await b(g(t,"locales/*.json"));if(!o||o.length===0)return{};let a=ee(o);if(a.length===0)throw new l(`Missing default language in ${n} configuration`,"Make sure to have a {locale}.default.json file in your locales directory");if(a.length>1)throw new l(`Error loading ${n}`,'There must be one (and only one) locale identified as the default locale: e.g. "en.default.json"');for(let i of o)if(T.statSync(i).size===0)throw new l(`Error loading ${n}`,`Locale file ${i} can't be empty`);return{default_locale:a[0],translations:te(o,n)}}function ee(t){return t.filter(o=>u(o).endsWith(".default.json")).map(o=>u(o).split(".")[0])}function te(t,n){let o={};for(let a of t){let i=oe(u(a).split(".")[0],"Locale code is unset"),s=T.readFileSync(a);if(!Q(s))throw new l(`Error loading ${n}`,`Locale file ${a} contains invalid UTF-8 byte sequences. Re-save the file using UTF-8 encoding.`);o[i]=s.toString("base64")}return o}function oe(t,n){if(t===void 0)throw new x(n);return t}function ne(t){return t.experience==="configuration"}var P;(function(t){t.ShouldRender="should_render",t.Main="main",t.Tools="tools",t.Instructions="instructions",t.Intents="intents"})(P||(P={}));function D(t){let o={...{externalIdentifier:`${t.identifier}_external`,additionalIdentifiers:[],externalName:h(t.identifier.replace(/_/g," ")),surface:"test-surface",partnersWebIdentifier:t.identifier,schema:d,registrationLimit:L.extensions.defaultRegistrationLimit,transform:t.transformLocalToRemote,reverseTransform:t.transformRemoteToLocal,experience:t.experience??"extension",uidStrategy:t.uidStrategy??(t.experience==="configuration"?"single":"uuid"),getDevSessionUpdateMessages:t.getDevSessionUpdateMessages,clientSteps:t.clientSteps},...t};return{...o,contributeToAppConfigurationSchema:a=>{let i=ne(o),s=o.schema._def.shape!==void 0,c=o.uidStrategy==="single";return i&&s&&c?a.merge(o.schema):a},parseConfigurationObject:a=>{let i=o.schema.safeParse(a);return i.success?{state:"ok",data:i.data,errors:void 0}:{state:"error",data:void 0,errors:i.error.errors}}}}function N(t){let n=t.appModuleFeatures??(()=>[]);return D({identifier:t.identifier,schema:t.schema,appModuleFeatures:n,transformLocalToRemote:ae(t.transformConfig),transformRemoteToLocal:ie(t.schema,t.transformConfig),experience:"configuration",uidStrategy:t.uidStrategy??"single",clientSteps:t.clientSteps,getDevSessionUpdateMessages:t.getDevSessionUpdateMessages,patchWithAppDevURLs:t.patchWithAppDevURLs})}function Ze(t){return D({identifier:t.identifier,schema:e.any({}),appModuleFeatures:t.appModuleFeatures,experience:t.experience,clientSteps:t.clientSteps,uidStrategy:t.uidStrategy,transformRemoteToLocal:t.transformRemoteToLocal,devSessionWatchConfig:t.devSessionWatchConfig,deployConfig:async(n,o)=>{let a=re(n);if(t.appModuleFeatures().includes("localization")){let i=await E(o,t.identifier);a={...a,localization:i}}return a}})}function ae(t){return Object.keys(t).includes("forward")?t.forward:n=>F(n,t)}function ie(t,n){return n?Object.keys(n).includes("reverse")?n.reverse:o=>F(o,n,!0):o=>k(t,o)}function F(t,n,o=!1){let a={};for(let[i,s]of Object.entries(n)){let c=o?i:s,f=o?s:i,m=y(t,c);m!==void 0&&S(a,f,m)}return a}function k(t,n){return Object.keys(t._def.shape()).reduce((o,a)=>{let i=t._def.shape()[a];return i instanceof e.ZodOptional&&(i=i._def.innerType),i instanceof e.ZodObject?o[a]=k(i,n):(n[a]!==void 0&&(o[a]=n[a]),delete n[a]),o},{})}function re(t){let{type:n,handle:o,uid:a,path:i,extensions:s,...c}=t;return c}r();var se=/^(https:\/\/)/,ce=/^pubsub:\/\/(?<gcp_project_id>[^:]+):(?<gcp_topic>.+)$/,le=/^arn:aws:events:(?<aws_region>[a-z]{2}-[a-z]+-[0-9]+)::event-source\/aws\.partner\/shopify\.com(\.test)?\/(?<api_client_id>\d+)\/(?<event_source_name>.+)$/,pe=/^kafka:\/\/(?<kafka_topic>[a-zA-Z0-9_.-]+)$/;function M(t){return typeof t=="string"&&t.endsWith("/")?t.replace(/\/+$/,""):t}var W=e.string({invalid_type_error:"Value must be string"}).refine(t=>t.startsWith("/")?!0:se.test(t)||ce.test(t)||le.test(t)||pe.test(t),{message:"URI format isn't correct. Valid formats include: relative path starting with a slash, HTTPS URL, pubsub://{project-id}:{topic-id}, kafka://{topic-id} or Eventbridge ARN"});r();var p;(function(t){t.CustomersRedact="customers/redact",t.CustomersDataRequest="customers/data_request",t.ShopRedact="shop/redact"})(p||(p={}));var nt=e.object({topics:e.array(e.string({invalid_type_error:"Values within array must be a string"}),{invalid_type_error:"Value must be string[]"}).optional(),actions:e.array(e.string({invalid_type_error:"Value must be a string"})).optional(),uri:e.preprocess(t=>M(t),W,{required_error:"Missing value at"}),include_fields:e.array(e.string({invalid_type_error:"Value must be a string"})).optional(),filter:e.string({invalid_type_error:"Value must be a string"}).optional(),payload_query:e.string({invalid_type_error:"Value must be a string"}).trim().min(1).optional(),name:e.string({invalid_type_error:"Value must be a string"}).trim().min(1).max(50).optional(),compliance_topics:e.array(e.enum([p.CustomersRedact,p.CustomersDataRequest,p.ShopRedact]),{invalid_type_error:"Value must be an array containing values: customers/redact, customers/data_request or shop/redact"}).optional()});r();var ue=e.object({scopes:e.string().transform(t=>_(t)??"").optional(),required_scopes:e.array(e.string()).optional(),optional_scopes:e.array(e.string()).optional(),use_legacy_install_flow:e.boolean().optional()}),de=e.object({redirect_urls:e.array(v(e.string()))}),fe=U.extend({access:e.object({admin:e.object({direct_api_mode:e.union([e.literal("online"),e.literal("offline")]).optional(),embedded_app_direct_api_access:e.boolean().optional()}).optional()}).optional(),access_scopes:ue.optional(),auth:de}),me="app_access",ge={access:"access",scopes:"access_scopes.scopes",required_scopes:"access_scopes.required_scopes",optional_scopes:"access_scopes.optional_scopes",use_legacy_install_flow:"access_scopes.use_legacy_install_flow",redirect_url_allowlist:"auth.redirect_urls"},he=N({identifier:me,schema:fe,transformConfig:ge,getDevSessionUpdateMessages:async t=>{let n=t.access_scopes!==void 0,o=t.access_scopes?.use_legacy_install_flow===!0,a=t.access_scopes?.scopes==null&&t.access_scopes?.required_scopes==null;if(o||n&&a)return["Using legacy install flow - access scopes are not auto-granted"];let i=t.access_scopes?.scopes?t.access_scopes.scopes.split(",").map(s=>s.trim()).join(", "):t.access_scopes?.required_scopes?.join(", ");return i?[`Access scopes auto-granted: ${i}`]:["App has been installed"]},patchWithAppDevURLs:(t,n)=>{n.redirectUrlWhitelist&&(t.auth={redirect_urls:n.redirectUrlWhitelist})}}),ut=he;export{ve as a,O as b,Ae as c,Le as d,L as e,Ce as f,Ie as g,v as h,_e as i,be as j,H as k,ye as l,C as m,I as n,V as o,Ue as p,Te as q,J as r,d as s,Ee as t,U as u,Pe as v,E as w,ne as x,P as y,D as z,N as A,Ze as B,M as C,W as D,p as E,nt as F,ue as G,de as H,me as I,ut as J};
@@ -1,4 +1,4 @@
1
- import{a as f,b as R,c as _,d as N,e as O,f as F,g as j,h as x,i as E,j as L}from"./chunk-RAJX2CQP.js";import{a as $}from"./chunk-RVEAQUUF.js";import{b as C,c as I}from"./chunk-BR5CFKIN.js";import{b as A}from"./chunk-PUGAY4JP.js";import{A as v,B as P,D as b,V as D,z as w}from"./chunk-T3IMDY72.js";import{h as k}from"./chunk-4EHFK2OI.js";import{a as z}from"./chunk-CTNBSUVU.js";import{wb as S}from"./chunk-TNYPQ2UL.js";import{d as a,f as c,g as y}from"./chunk-773TIA5M.js";import{e as q,g as i}from"./chunk-VKWPEFWQ.js";i();i();i();import{randomBytes as U}from"node:crypto";import{lstat as p,mkdir as Q,realpath as T,rename as X,unlink as Z,writeFile as tt}from"node:fs/promises";function et(t){let e=a(t,".shopify","app-doctor");return{artifactDirectory:e,reviewPath:a(e,"review.json"),tracePath:a(e,"trace.json")}}async function B(t){let e=et(t.appRoot);return await nt(t.appRoot,e.artifactDirectory),await W(e.tracePath,`${JSON.stringify(t.trace,null,2)}
1
+ import{a as f,b as R,c as _,d as N,e as O,f as F,g as j,h as x,i as E,j as L}from"./chunk-MBRFIXCU.js";import{a as $}from"./chunk-GINXNPAR.js";import{b as C,c as I}from"./chunk-K2DP5Z76.js";import{b as A}from"./chunk-4DLRS7MT.js";import{A as v,B as P,D as b,V as D,z as w}from"./chunk-6C5AVMKR.js";import{h as k}from"./chunk-OAG72Q2O.js";import{a as z}from"./chunk-CTNBSUVU.js";import{wb as S}from"./chunk-43FRAUV6.js";import{d as a,f as c,g as y}from"./chunk-773TIA5M.js";import{e as q,g as i}from"./chunk-VKWPEFWQ.js";i();i();i();import{randomBytes as U}from"node:crypto";import{lstat as p,mkdir as Q,realpath as T,rename as X,unlink as Z,writeFile as tt}from"node:fs/promises";function et(t){let e=a(t,".shopify","app-doctor");return{artifactDirectory:e,reviewPath:a(e,"review.json"),tracePath:a(e,"trace.json")}}async function B(t){let e=et(t.appRoot);return await nt(t.appRoot,e.artifactDirectory),await W(e.tracePath,`${JSON.stringify(t.trace,null,2)}
2
2
  `),t.operation!=="scan"?{artifactDirectory:e.artifactDirectory,tracePath:e.tracePath}:(await W(e.reviewPath,`${JSON.stringify(t.reviewPack,null,2)}
3
3
  `),e)}async function nt(t,e){let n=c(t),o=c(e);J(n,o);let r=await p(n);(r.isSymbolicLink()||!r.isDirectory())&&d(o);let s=n;for(let K of[".shopify","app-doctor"])s=a(s,K),await ot(s);let u=await T(n),V=await T(o);J(u,V)}async function ot(t){try{let n=await p(t);(n.isSymbolicLink()||!n.isDirectory())&&d(t);return}catch(n){if(n.code!=="ENOENT")throw n}await Q(t,{mode:448});let e=await p(t);(e.isSymbolicLink()||!e.isDirectory())&&d(t)}function J(t,e){let n=y(t,e);(!n||n.startsWith("..")||n.startsWith("/"))&&d(e)}function d(t){throw new k(`Refusing to write App Doctor artifacts through a symbolic link or outside the app: ${t}`,"Remove or replace the unsafe App Doctor artifact path, then run the command again.")}async function W(t,e){await h(t);let n=`${t}.${U(8).toString("hex")}.tmp`;await h(n);try{await tt(n,e,{encoding:"utf8",mode:384}),await h(t),await X(n,t)}catch(o){throw await Z(n).catch(()=>{}),o}}async function h(t){try{(await p(t)).isSymbolicLink()&&d(t)}catch(e){if(e.code==="ENOENT")return;throw e}}i();function H(t){return t.operation==="scan"?{operation:"scan",engine:t.engine,scan:t.scan,trace:t.trace,reviewPack:t.reviewPack}:{operation:"compile",engine:t.engine,scan:t.scan,trace:t.trace,findings:t.findings}}function Y(t){return`${JSON.stringify(t,null,2)}
4
4
  `}i();var rt={high:"High",medium:"Medium",low:"Low"};function it(t){return{type:st(t),options:{headline:at(t),body:ct(t),...t.findings?{}:{nextSteps:ft(t.commands)},reference:[{subdued:`Engine: ${t.engine.name} ${t.engine.version}`},{subdued:`Ruleset: ${t.engine.ruleset}`}],customSections:dt(t)}}}function G(t){let{type:e,options:n}=it(t);if(e==="success"){w(n);return}if(e==="warning"){v(n);return}P(n)}function M(t){return t.scan.score===null||!t.scan.scan.coverage_complete||t.scan.scan.coverage_gaps.length>0}function st(t){return t.findings&&t.findings.rejected.length>0||t.scan.issues.some(e=>e.severity==="high")?"error":t.scan.issues.length>0||M(t)?"warning":"success"}function at(t){if(t.findings&&t.findings.rejected.length>0)return"App Doctor could not compile some agent findings.";let e=t.scan.issues.length;return e>0?`${e} security ${e===1?"issue":"issues"} found.`:M(t)?"Scan completed with coverage gaps.":"No security issues found."}function ct(t){let e=t.scan,n=[{userInput:f(e.app.name)},{char:"."},`${e.scan.files_scanned} files scanned in ${ht(t.elapsedMilliseconds)}.`],o=e.scan.checks_executed.filter(r=>r.status==="not_applicable").length;return o>0&&n.push({info:`
@@ -1,4 +1,4 @@
1
- import{a as J}from"./chunk-E767ITG2.js";import{a as v}from"./chunk-YY6TFARF.js";import{a as E,b as C}from"./chunk-5VBEPL4S.js";import{a as p}from"./chunk-VEXW766J.js";import{r as S}from"./chunk-BR3GYG2H.js";import{p as h,r as D,v as N}from"./chunk-CNDB4VEM.js";import{b as q,c as F,f as O}from"./chunk-BR5CFKIN.js";import{T as b}from"./chunk-IAURXPUJ.js";import{B as m,E as T,W as d,z as w}from"./chunk-T3IMDY72.js";import{a as P}from"./chunk-CTNBSUVU.js";import{wb as n}from"./chunk-TNYPQ2UL.js";import{e as M,g as c}from"./chunk-VKWPEFWQ.js";c();c();async function x(t,o,e){let{name:r,verbose:u,noColor:l,json:a,force:A}=e,y=d()||A;if(J({verbose:u,noColor:l}),y&&!o){let i="A theme ID is required to duplicate a theme, specify one with the --theme flag";a?n(JSON.stringify({message:i,errors:[]})):m({body:[i]});return}let s=o?await C(t,o):await E(t,{header:"Select a theme to duplicate",filter:{theme:o}});if(!s){let i=`No theme with ID ${o} could be found. Use shopify theme list to find a theme ID.`;a?n(JSON.stringify({message:i,errors:[]})):m({body:[i]});return}if(s?.role==="development"){let i="Development themes can't be duplicated. Use shopify theme push to upload it to the store first.";a?n(JSON.stringify({message:i,errors:[]})):m({body:[i]});return}if(!y&&!await T({message:`Do you want to duplicate '${s.name}' on ${t.storeFqdn}?`,confirmationMessage:`Yes, duplicate '${s.name}'`,cancellationMessage:"No, cancel duplicate"}))return;let I=await S(s.id,r,t);a?j(s,t,I):Y(s,t,I)}function Y(t,o,e){if(e.userErrors&&e.userErrors.length>0){let r=e.userErrors.map(u=>u.message).join(", ");m({body:["The theme",...p(t),"could not be duplicated due to errors: ",{subdued:r},{char:"."},...e.requestId?[`
1
+ import{a as J}from"./chunk-BG7QQU23.js";import{a as v}from"./chunk-YY6TFARF.js";import{a as E,b as C}from"./chunk-W4SGAPPR.js";import{a as p}from"./chunk-MYLMGH7Y.js";import{r as S}from"./chunk-GTAYTMCP.js";import{p as h,r as D,v as N}from"./chunk-DO4SRE4M.js";import{b as q,c as F,f as O}from"./chunk-K2DP5Z76.js";import{T as b}from"./chunk-CNK3ZO2B.js";import{B as m,E as T,W as d,z as w}from"./chunk-6C5AVMKR.js";import{a as P}from"./chunk-CTNBSUVU.js";import{wb as n}from"./chunk-43FRAUV6.js";import{e as M,g as c}from"./chunk-VKWPEFWQ.js";c();c();async function x(t,o,e){let{name:r,verbose:u,noColor:l,json:a,force:A}=e,y=d()||A;if(J({verbose:u,noColor:l}),y&&!o){let i="A theme ID is required to duplicate a theme, specify one with the --theme flag";a?n(JSON.stringify({message:i,errors:[]})):m({body:[i]});return}let s=o?await C(t,o):await E(t,{header:"Select a theme to duplicate",filter:{theme:o}});if(!s){let i=`No theme with ID ${o} could be found. Use shopify theme list to find a theme ID.`;a?n(JSON.stringify({message:i,errors:[]})):m({body:[i]});return}if(s?.role==="development"){let i="Development themes can't be duplicated. Use shopify theme push to upload it to the store first.";a?n(JSON.stringify({message:i,errors:[]})):m({body:[i]});return}if(!y&&!await T({message:`Do you want to duplicate '${s.name}' on ${t.storeFqdn}?`,confirmationMessage:`Yes, duplicate '${s.name}'`,cancellationMessage:"No, cancel duplicate"}))return;let I=await S(s.id,r,t);a?j(s,t,I):Y(s,t,I)}function Y(t,o,e){if(e.userErrors&&e.userErrors.length>0){let r=e.userErrors.map(u=>u.message).join(", ");m({body:["The theme",...p(t),"could not be duplicated due to errors: ",{subdued:r},{char:"."},...e.requestId?[`
2
2
  Request ID: `,{subdued:e.requestId}]:[]]})}else e.theme?w({body:["The theme",...p(t),"has been duplicated",{char:"."}],nextSteps:[[{link:{label:"View the duplicated theme",url:v(e.theme,o)}}]]}):m({body:["The theme",...p(t),"unexpectedly could not be duplicated",{char:"."},...e.requestId?[`
3
3
  Request ID: `,{subdued:e.requestId}]:[]]})}function j(t,o,e){if(e.userErrors&&e.userErrors.length>0)n(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:u,role:l}=e.theme,a={theme:{id:r,name:u,role:l,shop:o.storeFqdn}};n(JSON.stringify(a))}else n(JSON.stringify({message:`The theme '${t.name}' unexpectedly could not be duplicated `,errors:[],requestId:e.requestId}))}var f=M(P(),1);var g=class t extends N{static summary="Duplicates a theme from your theme library.";static usage=["theme duplicate","theme duplicate --theme 10 --name 'New Theme'"];static descriptionWithMarkdown=`If you want to duplicate your local theme, you need to run \`shopify theme push\` first.
4
4
 
@@ -1 +1 @@
1
- import{b as n}from"./chunk-PUGAY4JP.js";import{y as t}from"./chunk-T3IMDY72.js";import{j as r}from"./chunk-QCMGYBFD.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class extends n{static description="Run CLI doctor-release tests";static hidden=!0;async run(){r()&&t({headline:"Shopify CLI Doctor Release.",body:["Available doctor-release commands:",""," shopify doctor-release theme -e <environment> Run all theme command tests","","The -e/--environment flag is required to specify the store configuration.","Use --help with any command for more options."]})}};export{e as a};
1
+ import{b as n}from"./chunk-4DLRS7MT.js";import{y as t}from"./chunk-6C5AVMKR.js";import{j as r}from"./chunk-XYUTD6IU.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class extends n{static description="Run CLI doctor-release tests";static hidden=!0;async run(){r()&&t({headline:"Shopify CLI Doctor Release.",body:["Available doctor-release commands:",""," shopify doctor-release theme -e <environment> Run all theme command tests","","The -e/--environment flag is required to specify the store configuration.","Use --help with any command for more options."]})}};export{e as a};
@@ -1,2 +1,2 @@
1
- import{Ab as d}from"./chunk-TNYPQ2UL.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();import{spawn as m}from"child_process";function b(n=process.pid,s="SIGTERM",e=!0,i){$(n,s,e,i??(t=>{t&&d(`Failed to kill process ${n}: ${t}`)}))}function $(n,s,e,i){let o=typeof n=="number"?n.toString():n;if(!/^\d+$/.test(o)){i(new Error("pid must be a number"));return}let t={};t[o]=[];let r=new Set;switch(r.add(o),process.platform){case"win32":{m("taskkill",["/pid",o,"/T","/F"]).on("close",f=>{f===0?i():i(new Error(`taskkill exited with code ${f}`))});break}case"darwin":h(o,t,r,function(c){return m("pgrep",["-lfP",c])},function(){k(t,s,o,e,i)});break;default:h(o,t,r,function(c){return m("ps",["-o","pid command","--no-headers","--ppid",c])},function(){k(t,s,o,e,i)});break}}function k(n,s,e,i,o){let t=new Set;try{Object.keys(n).forEach(function(r){n[r].forEach(function(c){t.has(c)||(w(c,s),t.add(c))}),r===e&&i&&!t.has(r)&&(w(r,s),t.add(r))})}catch(r){o(r);return}o()}function w(n,s){try{process.kill(parseInt(n,10),s)}catch(e){if(e.code!=="ESRCH")throw e}}function h(n,s,e,i,o){let t=i(n),r="";t.stdout?.on("data",function(f){let a=f.toString("ascii");r+=a});let c=f=>{if(e.delete(n),f!==0){if(e.size===0){o();return}return}r.trim().split(`
1
+ import{Ab as d}from"./chunk-43FRAUV6.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();import{spawn as m}from"child_process";function b(n=process.pid,s="SIGTERM",e=!0,i){$(n,s,e,i??(t=>{t&&d(`Failed to kill process ${n}: ${t}`)}))}function $(n,s,e,i){let o=typeof n=="number"?n.toString():n;if(!/^\d+$/.test(o)){i(new Error("pid must be a number"));return}let t={};t[o]=[];let r=new Set;switch(r.add(o),process.platform){case"win32":{m("taskkill",["/pid",o,"/T","/F"]).on("close",f=>{f===0?i():i(new Error(`taskkill exited with code ${f}`))});break}case"darwin":h(o,t,r,function(c){return m("pgrep",["-lfP",c])},function(){k(t,s,o,e,i)});break;default:h(o,t,r,function(c){return m("ps",["-o","pid command","--no-headers","--ppid",c])},function(){k(t,s,o,e,i)});break}}function k(n,s,e,i,o){let t=new Set;try{Object.keys(n).forEach(function(r){n[r].forEach(function(c){t.has(c)||(w(c,s),t.add(c))}),r===e&&i&&!t.has(r)&&(w(r,s),t.add(r))})}catch(r){o(r);return}o()}function w(n,s){try{process.kill(parseInt(n,10),s)}catch(e){if(e.code!=="ESRCH")throw e}}function h(n,s,e,i,o){let t=i(n),r="";t.stdout?.on("data",function(f){let a=f.toString("ascii");r+=a});let c=f=>{if(e.delete(n),f!==0){if(e.size===0){o();return}return}r.trim().split(`
2
2
  `).forEach(function(a){let l=a.match(/^(\d+)\s(.*)$/);if(l){let u=l[1],E=l[2];s[n].push(u),s[u]=[],d(`Killing process ${u}: ${E}`),e.add(u),h(u,s,e,i,o)}})};t.on("close",c)}export{b as a};