shopify 4.8.5 → 4.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (489) hide show
  1. package/dist/analytics-EPKJADE2.js +1 -0
  2. package/dist/analytics-TVCGKQGZ.js +1 -0
  3. package/dist/assets/hydrogen/starter/package.json +1 -1
  4. package/dist/bootstrap.js +1 -3
  5. package/dist/chunk-23ITMFUO.js +3 -0
  6. package/dist/{chunk-WKTIQUQP.js → chunk-254XYKPN.js} +1 -1
  7. package/dist/{chunk-T3B6KIPU.js → chunk-2AAHKMPP.js} +1 -1
  8. package/dist/chunk-2AZXDU2R.js +3 -0
  9. package/dist/chunk-2FHVYY3B.js +1 -0
  10. package/dist/chunk-2KBTFKSM.js +1 -0
  11. package/dist/chunk-2NBNVDDA.js +1 -0
  12. package/dist/{chunk-6LNTC6EK.js → chunk-2QV5FHXJ.js} +1 -1
  13. package/dist/chunk-2RVMF4QP.js +1 -0
  14. package/dist/chunk-2TOIR7YQ.js +11 -0
  15. package/dist/chunk-32B4LIKH.js +1 -0
  16. package/dist/{chunk-6QWLOSUQ.js → chunk-33D7HGAI.js} +1 -1
  17. package/dist/{chunk-HGFCNPSN.js → chunk-3GVSG4S6.js} +1 -1
  18. package/dist/chunk-3MEL3WLG.js +1 -0
  19. package/dist/{chunk-HS3VTFW3.js → chunk-3UZYLXCB.js} +1 -1
  20. package/dist/chunk-3VOMVINB.js +6 -0
  21. package/dist/{chunk-H5MENHJ2.js → chunk-3VXXYY6S.js} +1 -1
  22. package/dist/{chunk-773TIA5M.js → chunk-3VYOLEQE.js} +2 -2
  23. package/dist/chunk-3WMFKHIM.js +9 -0
  24. package/dist/{chunk-WHXY372K.js → chunk-46IUD46F.js} +1 -1
  25. package/dist/{chunk-VIMFXQ3Q.js → chunk-4AXLWDKW.js} +1 -1
  26. package/dist/chunk-55JDA75S.js +5 -0
  27. package/dist/{chunk-PQDB3FUL.js → chunk-5CANB25O.js} +1 -1
  28. package/dist/{chunk-MVJSQT7V.js → chunk-5I5HKOQU.js} +1 -1
  29. package/dist/chunk-5KILOX2V.js +2 -0
  30. package/dist/{chunk-77KSMVIO.js → chunk-5MJX7RKQ.js} +6 -6
  31. package/dist/{chunk-FXBQKJTS.js → chunk-5UDBNXNH.js} +1 -1
  32. package/dist/chunk-5XO6PAMV.js +1 -0
  33. package/dist/chunk-5ZSN73EA.js +3 -0
  34. package/dist/chunk-63GEZEYP.js +1 -0
  35. package/dist/{chunk-Z4E2EXZV.js → chunk-6WGHVCYY.js} +1 -1
  36. package/dist/chunk-77QKJLBG.js +6 -0
  37. package/dist/chunk-77QYKF34.js +6 -0
  38. package/dist/{chunk-PL7AJVTV.js → chunk-7AD5YCLL.js} +1 -1
  39. package/dist/{chunk-WAZL37JY.js → chunk-7H4IM6PX.js} +1 -1
  40. package/dist/{chunk-NPATN7YS.js → chunk-7IS6Q756.js} +1 -1
  41. package/dist/chunk-7UV53AU2.js +1 -0
  42. package/dist/{chunk-OJSF3H2G.js → chunk-7UZO72KN.js} +2 -2
  43. package/dist/{chunk-DKAWQBTI.js → chunk-7WWPAHVE.js} +3 -3
  44. package/dist/{chunk-GW7IEG4G.js → chunk-7ZONBOEZ.js} +1 -1
  45. package/dist/chunk-A6OSIGQI.js +1 -0
  46. package/dist/chunk-ADIHYUQC.js +7 -0
  47. package/dist/chunk-AJOTU26E.js +3 -0
  48. package/dist/chunk-AKSOCKVF.js +317 -0
  49. package/dist/{chunk-2JM3XHTQ.js → chunk-AZCPTV4A.js} +9 -9
  50. package/dist/chunk-B4YDR22W.js +4 -0
  51. package/dist/{chunk-7O2KMA4J.js → chunk-B7Y2LMPU.js} +1 -1
  52. package/dist/{chunk-RX63KGTK.js → chunk-BATQEAGE.js} +1 -1
  53. package/dist/chunk-C4QR7Z4N.js +1 -0
  54. package/dist/chunk-C7YSU4R5.js +20 -0
  55. package/dist/{chunk-DV7FOLG4.js → chunk-CKLS5LTU.js} +1 -1
  56. package/dist/chunk-COFGQT76.js +18 -0
  57. package/dist/{chunk-ZMD5TNU5.js → chunk-CPKLTBLZ.js} +1 -1
  58. package/dist/chunk-CUZQRXTV.js +20 -0
  59. package/dist/chunk-DCSSFNW7.js +12 -0
  60. package/dist/chunk-DEY5P63E.js +4 -0
  61. package/dist/{chunk-I6DVGPJ7.js → chunk-DP7SBNLN.js} +1 -1
  62. package/dist/{chunk-PJ7L6NSD.js → chunk-DREP3FRJ.js} +1 -1
  63. package/dist/{chunk-D34ZSTCK.js → chunk-DUWS6Q7C.js} +1 -1
  64. package/dist/chunk-DUWU7CL7.js +3 -0
  65. package/dist/chunk-DYHRCMH6.js +4 -0
  66. package/dist/chunk-DZS4GBQX.js +1 -0
  67. package/dist/{chunk-4DIR65KL.js → chunk-EDLID4PK.js} +24 -24
  68. package/dist/{chunk-HSETBDXR.js → chunk-EVQPVO4P.js} +1 -1
  69. package/dist/{chunk-WQOV3LQA.js → chunk-EYB45DUG.js} +1 -1
  70. package/dist/chunk-F34MAI7X.js +8 -0
  71. package/dist/{chunk-NZE4C4OI.js → chunk-FJCNEHTH.js} +1 -1
  72. package/dist/chunk-FNITLQDL.js +1 -0
  73. package/dist/chunk-FROK2K3X.js +5 -0
  74. package/dist/{chunk-KHRZFJHM.js → chunk-GF75CMTJ.js} +1 -1
  75. package/dist/{chunk-RU6J6QQF.js → chunk-GHO2S3W3.js} +1 -1
  76. package/dist/chunk-GILHUPUG.js +7 -0
  77. package/dist/chunk-GPRUQBQX.js +1 -0
  78. package/dist/chunk-GRKZRK4G.js +1 -0
  79. package/dist/{chunk-PU6KWWVK.js → chunk-H3QLPW7Q.js} +1 -1
  80. package/dist/chunk-HB3MJYBK.js +1 -0
  81. package/dist/{chunk-AEUCDGTB.js → chunk-HDQXFGYG.js} +1 -1
  82. package/dist/{chunk-NZ3HLDJG.js → chunk-HJ3DOUAL.js} +1 -1
  83. package/dist/{chunk-MFP63IUM.js → chunk-HKNFZUAM.js} +1 -1
  84. package/dist/chunk-HQK6QRXN.js +1 -0
  85. package/dist/chunk-HSTNTHWM.js +1 -0
  86. package/dist/chunk-HT2JVMLK.js +16 -0
  87. package/dist/chunk-HVOYSAB3.js +1 -0
  88. package/dist/{chunk-BPJRQOHO.js → chunk-I4FS7HYY.js} +1 -1
  89. package/dist/{chunk-C4UCOQUP.js → chunk-ICFM55ZS.js} +2 -2
  90. package/dist/{chunk-H6TWXT6Q.js → chunk-IPWU2ALH.js} +1 -1
  91. package/dist/{chunk-MNYKIPG7.js → chunk-IQ4VOPT7.js} +1 -1
  92. package/dist/chunk-ISIPFEFB.js +1 -0
  93. package/dist/chunk-IUUKRTKF.js +5 -0
  94. package/dist/{chunk-F33TYJM5.js → chunk-J4SJHG3M.js} +1 -1
  95. package/dist/{chunk-CTNBSUVU.js → chunk-JA2QZ635.js} +2 -2
  96. package/dist/{chunk-RSGIMVPN.js → chunk-JCOQDVEB.js} +2 -2
  97. package/dist/{chunk-ZMTTZXC4.js → chunk-JCVQB6MX.js} +3 -3
  98. package/dist/{chunk-6IOVTFAH.js → chunk-JF47WERF.js} +1 -1
  99. package/dist/{chunk-NAQ7KT6L.js → chunk-JJ4MYCVU.js} +1 -1
  100. package/dist/chunk-JOEWOCHY.js +5 -0
  101. package/dist/chunk-JSGOBMF6.js +1 -0
  102. package/dist/chunk-JWQBRHVY.js +1 -0
  103. package/dist/{chunk-4SXHXMK6.js → chunk-K5KUOPEF.js} +1 -1
  104. package/dist/chunk-KCHERKZO.js +383 -0
  105. package/dist/chunk-KVZXRZ7U.js +1 -0
  106. package/dist/chunk-KXSUEB4Y.js +1 -0
  107. package/dist/{chunk-KDMJ2BLO.js → chunk-LAHZ6FO5.js} +1 -1
  108. package/dist/chunk-LBBYCPZP.js +18 -0
  109. package/dist/{chunk-AEPBX4GI.js → chunk-LEFAUWKH.js} +1 -1
  110. package/dist/{chunk-MMHTYLTG.js → chunk-LIB64ZJW.js} +1 -1
  111. package/dist/{chunk-4QBJ5JBX.js → chunk-LOKVWZD2.js} +16 -15
  112. package/dist/{chunk-WKRX4FBZ.js → chunk-LRKJSNM3.js} +1 -1
  113. package/dist/chunk-MDMKTILJ.js +1 -0
  114. package/dist/chunk-MEFJND2V.js +4 -0
  115. package/dist/{chunk-BU6LJZG7.js → chunk-MFXBSQDH.js} +1 -1
  116. package/dist/chunk-MIMOKFDI.js +1 -0
  117. package/dist/chunk-MINDMVTH.js +1 -0
  118. package/dist/{chunk-OAEGTH4Q.js → chunk-MZJKZLCC.js} +1 -1
  119. package/dist/{chunk-W6ST525S.js → chunk-N56BJ3F7.js} +1 -1
  120. package/dist/{chunk-SOJHJ4QK.js → chunk-NE32WJR5.js} +1 -1
  121. package/dist/chunk-NGQDG4CJ.js +1 -0
  122. package/dist/{chunk-6QDOCBD4.js → chunk-NHEUJKAO.js} +4 -3
  123. package/dist/{chunk-TUWRPDTE.js → chunk-NSHKVJST.js} +1 -1
  124. package/dist/{chunk-5GUXN2RU.js → chunk-NTFIW3VK.js} +1 -1
  125. package/dist/chunk-NWBAD3AV.js +8 -0
  126. package/dist/chunk-NYNSMHKY.js +15 -0
  127. package/dist/chunk-NZRQKFUB.js +1 -0
  128. package/dist/{chunk-4XE6E4DC.js → chunk-OJ7KRWUH.js} +1 -1
  129. package/dist/{chunk-3CKUOG4B.js → chunk-OKX6PKAW.js} +1 -1
  130. package/dist/chunk-ON3YXHON.js +1 -0
  131. package/dist/chunk-OSA6BKSU.js +1 -0
  132. package/dist/chunk-OUSRNKZG.js +1 -0
  133. package/dist/{chunk-IYFHBTJ2.js → chunk-OVOOQFRY.js} +1 -1
  134. package/dist/chunk-P676C7UT.js +1 -0
  135. package/dist/{chunk-XRWQ7AXY.js → chunk-P6ID3ULA.js} +1 -1
  136. package/dist/chunk-PCKWLJW2.js +1 -0
  137. package/dist/{chunk-PIQI72DV.js → chunk-PTS7J2JO.js} +1 -1
  138. package/dist/chunk-QEEA2KEN.js +2 -0
  139. package/dist/{chunk-J774336K.js → chunk-QEF43PR2.js} +1 -1
  140. package/dist/{chunk-DPMOLROM.js → chunk-QF6EH4HX.js} +5 -5
  141. package/dist/{chunk-LZZAD3FW.js → chunk-QH5R32AA.js} +1 -1
  142. package/dist/chunk-QNR3U4IO.js +1 -0
  143. package/dist/{chunk-GUPUXFIP.js → chunk-QPCDSJ4J.js} +1 -1
  144. package/dist/{chunk-UJSCQJLW.js → chunk-QZDFPNYT.js} +1 -1
  145. package/dist/{chunk-WM3GKSPE.js → chunk-RDCHRPKV.js} +1 -1
  146. package/dist/chunk-RFB7RXTA.js +8 -0
  147. package/dist/{chunk-4JU7N2OF.js → chunk-RFDOSK57.js} +1 -1
  148. package/dist/{chunk-4UD2LW4O.js → chunk-RNXWL6DS.js} +1 -1
  149. package/dist/chunk-RRBI2IRE.js +15 -0
  150. package/dist/chunk-RX27ER4R.js +7 -0
  151. package/dist/chunk-S3IDGHAZ.js +28 -0
  152. package/dist/{chunk-EBBS7VG6.js → chunk-S3J3BYQ3.js} +3 -3
  153. package/dist/chunk-S6YUSGTF.js +3 -0
  154. package/dist/{chunk-6ICRPFG4.js → chunk-SHDGD2WJ.js} +1 -1
  155. package/dist/{chunk-GCJAY2XJ.js → chunk-SKK7CPUY.js} +3 -3
  156. package/dist/{chunk-TTV2GWNE.js → chunk-SMZ74TME.js} +1 -1
  157. package/dist/chunk-STLYSBD5.js +1 -0
  158. package/dist/chunk-T7BUP75N.js +7 -0
  159. package/dist/chunk-TGUAZMI2.js +4 -0
  160. package/dist/{chunk-K5OTE6CX.js → chunk-TH4D7IGZ.js} +1 -1
  161. package/dist/{chunk-AOPEKBDL.js → chunk-U2WUTGPI.js} +1 -1
  162. package/dist/chunk-UJD7OQ3I.js +6 -0
  163. package/dist/{chunk-G7C4LBG2.js → chunk-UVSXPMUN.js} +1 -1
  164. package/dist/chunk-UZTL2UET.js +2368 -0
  165. package/dist/chunk-VEIZLSMG.js +3 -0
  166. package/dist/chunk-VEQDI5AB.js +1 -0
  167. package/dist/chunk-VL3XMULV.js +6 -0
  168. package/dist/{chunk-A2BZY6TE.js → chunk-VPH2AAHJ.js} +1 -1
  169. package/dist/chunk-VWYZCCRE.js +836 -0
  170. package/dist/chunk-VX2CDHRQ.js +1 -0
  171. package/dist/chunk-VXHLE5UQ.js +1 -0
  172. package/dist/{chunk-SYBKHTVU.js → chunk-VY7UGJZK.js} +3 -3
  173. package/dist/{chunk-R4TOHQH3.js → chunk-W6TPRWEE.js} +2 -2
  174. package/dist/chunk-WBTR5JZ6.js +16 -0
  175. package/dist/{chunk-VPOAOUT4.js → chunk-WGBUSO27.js} +1 -1
  176. package/dist/{chunk-DPNZWBT5.js → chunk-WNO2V53C.js} +1 -1
  177. package/dist/{chunk-M2M3I63K.js → chunk-WR2MMFJO.js} +1 -1
  178. package/dist/chunk-WR6KP7RT.js +1 -0
  179. package/dist/chunk-WRVB4JCZ.js +7 -0
  180. package/dist/chunk-X3WFHNF5.js +2 -0
  181. package/dist/chunk-X6Y3HDXN.js +16 -0
  182. package/dist/{chunk-POOKYUTJ.js → chunk-XCXQPV5W.js} +1 -1
  183. package/dist/chunk-XUJURYN5.js +1 -0
  184. package/dist/chunk-XW33ZO7F.js +2 -0
  185. package/dist/{chunk-6QU2BHVL.js → chunk-XY2SSJQD.js} +4 -4
  186. package/dist/{chunk-4UAJ6ULU.js → chunk-YACDI6IK.js} +1 -1
  187. package/dist/{chunk-EJJPVVQ2.js → chunk-YFR53MWF.js} +1 -1
  188. package/dist/{chunk-VVPIXC3W.js → chunk-YQZPL4K3.js} +1 -1
  189. package/dist/chunk-YRHFPXC3.js +1 -0
  190. package/dist/chunk-YS5RZ6D5.js +1 -0
  191. package/dist/chunk-YTJ3EPD3.js +1 -0
  192. package/dist/chunk-Z6VWYOKN.js +4 -0
  193. package/dist/{chunk-ZFA5DIJ3.js → chunk-ZDRQUKLN.js} +1 -1
  194. package/dist/chunk-ZGASBRSQ.js +5 -0
  195. package/dist/chunk-ZQKZC2KN.js +1 -0
  196. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  197. package/dist/cli/commands/app/build.js +1 -1
  198. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  199. package/dist/cli/commands/app/bulk/execute.js +1 -1
  200. package/dist/cli/commands/app/bulk/status.js +1 -1
  201. package/dist/cli/commands/app/config/link.js +1 -1
  202. package/dist/cli/commands/app/config/pull.js +1 -1
  203. package/dist/cli/commands/app/config/use.js +1 -1
  204. package/dist/cli/commands/app/config/validate.js +1 -1
  205. package/dist/cli/commands/app/demo/watcher.js +1 -1
  206. package/dist/cli/commands/app/deploy.js +1 -1
  207. package/dist/cli/commands/app/dev/clean.js +1 -1
  208. package/dist/cli/commands/app/dev.js +1 -1
  209. package/dist/cli/commands/app/env/pull.js +1 -1
  210. package/dist/cli/commands/app/env/show.js +1 -1
  211. package/dist/cli/commands/app/execute.js +1 -1
  212. package/dist/cli/commands/app/function/build.js +1 -1
  213. package/dist/cli/commands/app/function/info.js +1 -1
  214. package/dist/cli/commands/app/function/replay.js +1 -1
  215. package/dist/cli/commands/app/function/run.js +1 -1
  216. package/dist/cli/commands/app/function/schema.js +1 -1
  217. package/dist/cli/commands/app/function/typegen.js +1 -1
  218. package/dist/cli/commands/app/generate/extension.js +1 -1
  219. package/dist/cli/commands/app/graphiql.js +1 -1
  220. package/dist/cli/commands/app/import/channel-config.js +1 -0
  221. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -0
  222. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -0
  223. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  224. package/dist/cli/commands/app/import-extensions.js +1 -1
  225. package/dist/cli/commands/app/info.js +1 -1
  226. package/dist/cli/commands/app/init.js +1 -1
  227. package/dist/cli/commands/app/logs.js +1 -1
  228. package/dist/cli/commands/app/release.js +1 -1
  229. package/dist/cli/commands/app/security/check.js +1 -0
  230. package/dist/cli/commands/app/security/clean.js +1 -0
  231. package/dist/cli/commands/app/security/instructions.js +1 -0
  232. package/dist/cli/commands/app/security/record.js +1 -0
  233. package/dist/cli/commands/app/security/review.js +1 -0
  234. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  235. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  236. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  237. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  238. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  239. package/dist/cli/commands/app/versions/list.js +1 -1
  240. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  241. package/dist/cli/commands/auth/login.d.ts +16 -1
  242. package/dist/cli/commands/auth/login.js +1 -1
  243. package/dist/cli/commands/auth/logout.d.ts +16 -1
  244. package/dist/cli/commands/auth/logout.js +1 -1
  245. package/dist/cli/commands/cache/clear.js +1 -1
  246. package/dist/cli/commands/config/autoupgrade/off.d.ts +13 -0
  247. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  248. package/dist/cli/commands/config/autoupgrade/on.d.ts +13 -0
  249. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  250. package/dist/cli/commands/config/autoupgrade/status.d.ts +13 -0
  251. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  252. package/dist/cli/commands/debug/command-flags.js +1 -1
  253. package/dist/cli/commands/doc/fetch.d.ts +2 -0
  254. package/dist/cli/commands/doc/fetch.js +1 -1
  255. package/dist/cli/commands/doc/search.d.ts +1 -0
  256. package/dist/cli/commands/doc/search.js +1 -1
  257. package/dist/cli/commands/docs/generate.js +1 -1
  258. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  259. package/dist/cli/commands/doctor-release/theme/index.d.ts +1 -0
  260. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  261. package/dist/cli/commands/help.d.ts +431 -1
  262. package/dist/cli/commands/help.js +1 -1
  263. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  264. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  265. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  266. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  267. package/dist/cli/commands/notifications/generate.js +1 -1
  268. package/dist/cli/commands/notifications/list.js +1 -1
  269. package/dist/cli/commands/organization/list.js +1 -1
  270. package/dist/cli/commands/search.d.ts +11 -1
  271. package/dist/cli/commands/search.js +1 -1
  272. package/dist/cli/commands/send-analytics.js +1 -1
  273. package/dist/cli/commands/theme/check.js +1 -1
  274. package/dist/cli/commands/theme/console.js +1 -1
  275. package/dist/cli/commands/theme/delete.js +1 -1
  276. package/dist/cli/commands/theme/dev.js +1 -1
  277. package/dist/cli/commands/theme/duplicate.js +1 -1
  278. package/dist/cli/commands/theme/info.js +1 -1
  279. package/dist/cli/commands/theme/init.js +1 -1
  280. package/dist/cli/commands/theme/language-server.js +1 -1
  281. package/dist/cli/commands/theme/list.js +1 -1
  282. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  283. package/dist/cli/commands/theme/open.js +1 -1
  284. package/dist/cli/commands/theme/package.js +1 -1
  285. package/dist/cli/commands/theme/preview.js +1 -1
  286. package/dist/cli/commands/theme/profile.js +1 -1
  287. package/dist/cli/commands/theme/publish.js +1 -1
  288. package/dist/cli/commands/theme/pull.js +1 -1
  289. package/dist/cli/commands/theme/push.js +1 -1
  290. package/dist/cli/commands/theme/rename.js +1 -1
  291. package/dist/cli/commands/theme/share.js +1 -1
  292. package/dist/cli/commands/upgrade.js +1 -1
  293. package/dist/cli/commands/version.d.ts +15 -1
  294. package/dist/cli/commands/version.js +1 -1
  295. package/dist/cli/help.d.ts +5 -2
  296. package/dist/cli/help.js +6 -2
  297. package/dist/cli/services/commands/auth/login/types.d.ts +11 -0
  298. package/dist/cli/services/commands/auth/login/types.js +7 -0
  299. package/dist/cli/services/commands/config/autoupgrade/index.d.ts +3 -0
  300. package/dist/cli/services/commands/config/autoupgrade/index.js +9 -0
  301. package/dist/cli/services/commands/config/autoupgrade/result.d.ts +2 -0
  302. package/dist/cli/services/commands/config/autoupgrade/result.js +15 -0
  303. package/dist/cli/services/commands/config/autoupgrade/types.d.ts +10 -0
  304. package/dist/cli/services/commands/config/autoupgrade/types.js +7 -0
  305. package/dist/cli/services/commands/doc/fetch.d.ts +1 -1
  306. package/dist/cli/services/commands/doc/fetch.js +11 -2
  307. package/dist/cli/services/commands/help/index.d.ts +3 -0
  308. package/dist/cli/services/commands/help/index.js +51 -0
  309. package/dist/cli/services/commands/help/result.d.ts +2 -0
  310. package/dist/cli/services/commands/help/result.js +6 -0
  311. package/dist/cli/services/commands/help/types.d.ts +431 -0
  312. package/dist/cli/services/commands/help/types.js +71 -0
  313. package/dist/cli/services/commands/search/index.d.ts +2 -0
  314. package/dist/cli/services/commands/search/index.js +8 -0
  315. package/dist/cli/services/commands/search/result.d.ts +2 -0
  316. package/dist/cli/services/commands/search/result.js +12 -0
  317. package/dist/cli/services/commands/search/types.d.ts +10 -0
  318. package/dist/cli/services/commands/search/types.js +7 -0
  319. package/dist/cli/services/commands/version/index.d.ts +2 -0
  320. package/dist/cli/services/commands/version/index.js +5 -0
  321. package/dist/cli/services/commands/version/result.d.ts +2 -0
  322. package/dist/cli/services/commands/version/result.js +6 -0
  323. package/dist/cli/services/commands/version/types.d.ts +10 -0
  324. package/dist/cli/services/commands/version/types.js +7 -0
  325. package/dist/command-json-schema-SU56F3T4.js +1 -0
  326. package/dist/command-registry.js +1 -1
  327. package/dist/{conf-store-5UUKEHZV.js → conf-store-WDYDHG6V.js} +1 -1
  328. package/dist/custom-oclif-loader-CP4XJAPS.js +1 -0
  329. package/dist/deprecations-CBSMNYL3.js +1 -0
  330. package/dist/dist-HI6AAP5V.js +1 -0
  331. package/dist/dist-W25ND3PJ.js +1 -0
  332. package/dist/environment-ZUTBXY7U.js +1 -0
  333. package/dist/environments-PUH6A5BU.js +1 -0
  334. package/dist/error-LNWX6IWE.js +1 -0
  335. package/dist/error-handler-24QGAUUD.js +1 -0
  336. package/dist/fs-Y33QBYY5.js +1 -0
  337. package/dist/hooks/did-you-mean.js +1 -1
  338. package/dist/hooks/hydrogen-init.js +1 -1
  339. package/dist/hooks/plugin-plugins.js +1 -1
  340. package/dist/hooks/postrun.js +1 -1
  341. package/dist/hooks/prerun.js +1 -1
  342. package/dist/hooks/public-metadata.js +1 -1
  343. package/dist/hooks/sensitive-metadata.js +1 -1
  344. package/dist/hooks/tunnel-provider.js +1 -1
  345. package/dist/hooks/tunnel-start.js +1 -1
  346. package/dist/http-proxy-node16-D3JUYA5D.js +38 -0
  347. package/dist/index.js +13 -14
  348. package/dist/is-global-KY3QE3OZ.js +1 -0
  349. package/dist/json-error-UR2OILQ6.js +1 -0
  350. package/dist/lib-AD2G3QH3.js +1 -0
  351. package/dist/lib-VEVNMHDE.js +1 -0
  352. package/dist/lib-ZQW4E7QU.js +1 -0
  353. package/dist/local-77XQ4CX3.js +1 -0
  354. package/dist/metadata-BC3BGHRY.js +1 -0
  355. package/dist/{morph-BMYYMQNX.js → morph-42EXMN3K.js} +3 -3
  356. package/dist/node-package-manager-6UZUTDCP.js +1 -0
  357. package/dist/notifications-system-4UDT72DQ.js +1 -0
  358. package/dist/os-U3LELTCV.js +1 -0
  359. package/dist/output-GGY66WEM.js +1 -0
  360. package/dist/{path-MBXP7ZIC.js → path-6YMSTSWG.js} +1 -1
  361. package/dist/system-MCWAHFXK.js +1 -0
  362. package/dist/tsconfig.tsbuildinfo +1 -1
  363. package/dist/ui-SYB4LLWY.js +1 -0
  364. package/dist/uncaught-error-handler.d.ts +6 -0
  365. package/dist/uncaught-error-handler.js +33 -0
  366. package/dist/upgrade-V4GCQJBN.js +1 -0
  367. package/dist/version-HQPFW4QN.js +1 -0
  368. package/dist/version-VOSHQCYM.js +1 -0
  369. package/dist/workerd-MEAM3XYI.js +18 -0
  370. package/oclif.manifest.json +2646 -226
  371. package/package.json +17 -8
  372. package/dist/analytics-4D5FCVMV.js +0 -1
  373. package/dist/analytics-XRYJEPWC.js +0 -1
  374. package/dist/chunk-2IZROVCY.js +0 -1
  375. package/dist/chunk-2KD4LHRT.js +0 -5
  376. package/dist/chunk-2SOA4M4G.js +0 -1
  377. package/dist/chunk-2WNF5BX4.js +0 -18
  378. package/dist/chunk-2Z52XJQG.js +0 -1
  379. package/dist/chunk-34PQ6LJC.js +0 -1
  380. package/dist/chunk-3NW372KT.js +0 -1
  381. package/dist/chunk-4JLOCGTK.js +0 -3
  382. package/dist/chunk-4NZ465W4.js +0 -1
  383. package/dist/chunk-5EME57E6.js +0 -7
  384. package/dist/chunk-5N33O2RV.js +0 -1
  385. package/dist/chunk-5PAPCPUM.js +0 -1
  386. package/dist/chunk-5U24BORP.js +0 -6
  387. package/dist/chunk-6ARAJULJ.js +0 -1
  388. package/dist/chunk-7VJPQ52S.js +0 -15
  389. package/dist/chunk-7ZEVVGCH.js +0 -1
  390. package/dist/chunk-A5FV7HOY.js +0 -16
  391. package/dist/chunk-ADS7BFDG.js +0 -15
  392. package/dist/chunk-ADUMJRRY.js +0 -1
  393. package/dist/chunk-AI4SPBPV.js +0 -2
  394. package/dist/chunk-AKETXXYD.js +0 -1
  395. package/dist/chunk-ANOCIVJ3.js +0 -8
  396. package/dist/chunk-BMPCDXJR.js +0 -4
  397. package/dist/chunk-CAKGQWX4.js +0 -7
  398. package/dist/chunk-CBGDD3ZG.js +0 -317
  399. package/dist/chunk-CRALWNNO.js +0 -1
  400. package/dist/chunk-CUGLV7UX.js +0 -1
  401. package/dist/chunk-CWSQIPY5.js +0 -5
  402. package/dist/chunk-D6LV5CJL.js +0 -2
  403. package/dist/chunk-DGMHUJV3.js +0 -4
  404. package/dist/chunk-ENUN2VSC.js +0 -2
  405. package/dist/chunk-EX7Y3BEH.js +0 -1
  406. package/dist/chunk-FDK3NDYQ.js +0 -5
  407. package/dist/chunk-FLV6UQRA.js +0 -1
  408. package/dist/chunk-FTC3BXSD.js +0 -3
  409. package/dist/chunk-FXWNYGIW.js +0 -1
  410. package/dist/chunk-G5272L77.js +0 -7
  411. package/dist/chunk-G5QSVBYP.js +0 -19
  412. package/dist/chunk-G6SURO6V.js +0 -8
  413. package/dist/chunk-GBYDMHZ3.js +0 -3
  414. package/dist/chunk-GCN4O7HM.js +0 -1
  415. package/dist/chunk-GR6NR5QK.js +0 -1
  416. package/dist/chunk-HKHGJYRC.js +0 -1
  417. package/dist/chunk-IKNCFVVX.js +0 -1
  418. package/dist/chunk-IMIPD73V.js +0 -6
  419. package/dist/chunk-IPN5OHBY.js +0 -6
  420. package/dist/chunk-J2HBEHCX.js +0 -9
  421. package/dist/chunk-K3OI5VDE.js +0 -1
  422. package/dist/chunk-KB43BSFM.js +0 -3
  423. package/dist/chunk-KGRDHI2A.js +0 -2
  424. package/dist/chunk-KNCYAIJ2.js +0 -7
  425. package/dist/chunk-KYNXMDFU.js +0 -836
  426. package/dist/chunk-L7CQQML6.js +0 -6
  427. package/dist/chunk-LCVDLQEZ.js +0 -1
  428. package/dist/chunk-NDAUL4H4.js +0 -1
  429. package/dist/chunk-NDFKLPHJ.js +0 -1705
  430. package/dist/chunk-NUKSSKYR.js +0 -1
  431. package/dist/chunk-NVNDQQN6.js +0 -8
  432. package/dist/chunk-O452KNRL.js +0 -1
  433. package/dist/chunk-P5R6JZMT.js +0 -6
  434. package/dist/chunk-PDWJ2YH2.js +0 -1
  435. package/dist/chunk-PSSOCUUD.js +0 -375
  436. package/dist/chunk-PWXGGZQB.js +0 -1
  437. package/dist/chunk-QKUTVLRJ.js +0 -4
  438. package/dist/chunk-QOOVB6RW.js +0 -6
  439. package/dist/chunk-RGJVJ22M.js +0 -3
  440. package/dist/chunk-TIG7SSKB.js +0 -3
  441. package/dist/chunk-TU47HMTL.js +0 -1
  442. package/dist/chunk-UBTHWHPB.js +0 -12
  443. package/dist/chunk-UDWSRNKO.js +0 -1
  444. package/dist/chunk-VE6BYYBP.js +0 -5
  445. package/dist/chunk-W3BNL2Q5.js +0 -1
  446. package/dist/chunk-WDY5CK2T.js +0 -11
  447. package/dist/chunk-WHZKFG2B.js +0 -1
  448. package/dist/chunk-WLU7UG44.js +0 -3
  449. package/dist/chunk-WNBRPWSB.js +0 -1
  450. package/dist/chunk-WWRLFLGM.js +0 -2
  451. package/dist/chunk-XOEBZR5C.js +0 -3
  452. package/dist/chunk-YGSXN3YD.js +0 -28
  453. package/dist/chunk-YN5SVIOI.js +0 -11
  454. package/dist/chunk-YVB7ZPHR.js +0 -20
  455. package/dist/chunk-ZIAXZ5VG.js +0 -1
  456. package/dist/chunk-ZZNGFCJ3.js +0 -4
  457. package/dist/cli/commands/app/doctor/instructions.js +0 -1
  458. package/dist/cli/commands/app/doctor.js +0 -1
  459. package/dist/cli/commands/config/autoupgrade/constants.d.ts +0 -4
  460. package/dist/cli/commands/config/autoupgrade/constants.js +0 -1
  461. package/dist/cli/services/commands/search.d.ts +0 -1
  462. package/dist/cli/services/commands/search.js +0 -7
  463. package/dist/cli/services/commands/version.d.ts +0 -1
  464. package/dist/cli/services/commands/version.js +0 -6
  465. package/dist/custom-oclif-loader-BWAMUFQ4.js +0 -1
  466. package/dist/deprecations-DVGWC3RL.js +0 -1
  467. package/dist/dist-CN7N5IOM.js +0 -1
  468. package/dist/dist-Q5U4WGYG.js +0 -1
  469. package/dist/environments-M4CFP4XF.js +0 -1
  470. package/dist/error-ZES2RSN7.js +0 -1
  471. package/dist/error-handler-CRTU67VJ.js +0 -1
  472. package/dist/fs-GELMKEWX.js +0 -1
  473. package/dist/http-proxy-node16-A6AKKRQH.js +0 -38
  474. package/dist/is-global-X2QNCXXB.js +0 -1
  475. package/dist/lib-2BR2WN7L.js +0 -1
  476. package/dist/lib-M72BVWQ3.js +0 -1
  477. package/dist/lib-P3APEIHY.js +0 -1
  478. package/dist/local-HMFFXIE3.js +0 -1
  479. package/dist/metadata-SXJZZMCI.js +0 -1
  480. package/dist/node-package-manager-2D2CIFTG.js +0 -1
  481. package/dist/notifications-system-WH6MAXEN.js +0 -1
  482. package/dist/os-PY42WAOB.js +0 -1
  483. package/dist/output-MSTNB7GI.js +0 -1
  484. package/dist/system-7XRI63YJ.js +0 -1
  485. package/dist/ui-77QYNWJB.js +0 -1
  486. package/dist/upgrade-UVPNOKKK.js +0 -1
  487. package/dist/version-DXGPL73I.js +0 -1
  488. package/dist/version-XMVQO6PD.js +0 -1
  489. package/dist/workerd-SOWC66FA.js +0 -18
@@ -1,4 +1,4 @@
1
- import{a as Gi,c as Ki,d as ln,g as ao,k as un,l as qe,m as lo,n as uo,o as fo,p as po,q as ho,r as mo,s as go,t as _o,u as yo}from"./chunk-TR4OWSEX.js";import{a as ro,b as oo}from"./chunk-2KD4LHRT.js";import{b as so}from"./chunk-I5A6BPCP.js";import{a as io}from"./chunk-CX5CC6P5.js";import{a as co}from"./chunk-ET2CGROE.js";import{a as v,c as y,g as f}from"./chunk-VKWPEFWQ.js";var $=y(F=>{"use strict";f();Object.defineProperty(F,"__esModule",{value:!0});F.pickBy=bo;F.compact=vo;F.uniqBy=wo;F.last=Oo;F.sortBy=jo;F.castArray=Po;F.isProd=Co;F.maxBy=Eo;F.sumBy=$o;F.capitalize=qo;F.isTruthy=Do;F.isNotFalsy=xo;F.uniq=Fo;F.mapValues=Ao;F.mergeNestedObjects=Mo;function bo(t,e){return Object.entries(t).reduce((n,[i,s])=>(e(s)&&(n[i]=s),n),{})}function vo(t){return t.filter(e=>!!e)}function wo(t,e){return t.filter((n,i)=>{let s=e(n);return!t.some((r,o)=>o>i&&e(r)===s)})}function Oo(t){if(t)return t.at(-1)}function dn(t,e){if(t=t===void 0?0:t,e=e===void 0?0:e,Array.isArray(t)&&Array.isArray(e)){if(t.length===0&&e.length===0)return 0;let n=dn(t[0],e[0]);return n!==0?n:dn(t.slice(1),e.slice(1))}return t<e?-1:t>e?1:0}function jo(t,e){return t.sort((n,i)=>dn(e(n),e(i)))}function Po(t){return t===void 0?[]:Array.isArray(t)?t:[t]}function Co(){return!["development","test"].includes(process.env.NODE_ENV??"")}function Eo(t,e){if(t.length!==0)return t.reduce((n,i)=>{let s=e(i),r=e(n);return s>r?i:n})}function $o(t,e){return t.reduce((n,i)=>n+e(i),0)}function qo(t){return t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():""}function Do(t){return["1","true","y","yes"].includes(t.toLowerCase())}function xo(t){return!["0","false","n","no"].includes(t.toLowerCase())}function Fo(t){return[...new Set(t)].sort()}function Ao(t,e){return Object.entries(t).reduce((n,[i,s])=>(n[i]=e(s,i),n),{})}function So(t,e){return e.split(".").reduce((n,i)=>n?.[i],t)}function Mo(t,e){return Object.fromEntries(t.flatMap(n=>Object.entries(So(n,e)??{})).reverse())}});var X=y(ie=>{"use strict";f();Object.defineProperty(ie,"__esModule",{value:!0});ie.fileExists=ie.dirExists=void 0;ie.readJson=Ji;ie.safeReadJson=Ro;ie.existsSync=No;var Io=v("node:fs"),hn=v("node:fs/promises"),ko=$(),To=async t=>{let e;try{e=await(0,hn.stat)(t)}catch{throw new Error(`No directory found at ${t}`)}if(!e.isDirectory())throw new Error(`${t} exists but is not a directory`);return t};ie.dirExists=To;var Lo=async t=>{let e;try{e=await(0,hn.stat)(t)}catch{throw new Error(`No file found at ${t}`)}if(!e.isFile())throw new Error(`${t} exists but is not a file`);return t};ie.fileExists=Lo;var pn=class extends Map{set(e,n){return((0,ko.isProd)()??!1)&&super.set(e,n),this}},fn=new pn;async function Ji(t,e=!0){if(e&&fn.has(t))return JSON.parse(fn.get(t));let n=await(0,hn.readFile)(t,"utf8");return fn.set(t,n),JSON.parse(n)}async function Ro(t,e=!0){try{return await Ji(t,e)}catch{}}function No(t){return(0,Io.existsSync)(t)}});var Xi=y(M=>{"use strict";f();Object.defineProperty(M,"__esModule",{value:!0});M.string=M.url=M.file=M.directory=M.integer=M.boolean=void 0;M.custom=me;var Ho=v("node:url"),Yi=X(),Bo=$();function me(t){return(e={})=>({parse:async(n,i,s)=>n,...t,...e,input:[],type:"option"})}M.boolean=me({parse:async t=>!!t&&(0,Bo.isNotFalsy)(t)});M.integer=me({async parse(t,e,n){if(!/^-?\d+$/.test(t))throw new Error(`Expected an integer but received: ${t}`);let i=Number.parseInt(t,10);if(n.min!==void 0&&i<n.min)throw new Error(`Expected an integer greater than or equal to ${n.min} but received: ${t}`);if(n.max!==void 0&&i>n.max)throw new Error(`Expected an integer less than or equal to ${n.max} but received: ${t}`);return i}});M.directory=me({async parse(t,e,n){return n.exists?(0,Yi.dirExists)(t):t}});M.file=me({async parse(t,e,n){return n.exists?(0,Yi.fileExists)(t):t}});M.url=me({async parse(t){try{return new Ho.URL(t)}catch{throw new Error(`Expected a valid url but received: ${t}`)}}});var Wo=me({});M.string=Wo});var Zi=y((Rf,zo)=>{zo.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"4.8.3",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"ansi-escapes":"^4.3.2",ansis:"^3.17.0","clean-stack":"^3.0.1","cli-spinners":"^2.9.2",debug:"^4.4.3",ejs:"^3.1.10","get-package-type":"^0.1.0","indent-string":"^4.0.0","is-wsl":"^2.2.0",lilconfig:"^3.1.3",minimatch:"^10.2.4",semver:"^7.7.3","string-width":"^4.2.3","supports-color":"^8",tinyglobby:"^0.2.14","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^19","@eslint/compat":"^1.4.1","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^5","@oclif/prettier-config":"^0.2.1","@oclif/test":"^4","@types/benchmark":"^2.1.5","@types/chai":"^4.3.16","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/mocha":"^10.0.10","@types/node":"^18","@types/pnpapi":"^0.0.5","@types/sinon":"^17.0.3","@types/supports-color":"^8.1.3","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.5.0","chai-as-promised":"^7.1.2",commitlint:"^19","cross-env":"^7.0.3",eslint:"^9","eslint-config-oclif":"^6","eslint-config-prettier":"^10",husky:"^9.1.7","lint-staged":"^15",madge:"^6.1.0",mocha:"^11.7.5",nyc:"^15.1.0",prettier:"^3.8.1",shx:"^0.4.0",sinon:"^18","ts-node":"^10.9.2",tsd:"^0.33.0",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",exports:{".":"./lib/index.js","./args":"./lib/args.js","./command":"./lib/command.js","./config":"./lib/config/index.js","./errors":"./lib/errors/index.js","./execute":"./lib/execute.js","./flags":"./lib/flags.js","./flush":"./lib/flush.js","./handle":"./lib/errors/handle.js","./help":"./lib/help/index.js","./hooks":"./lib/interfaces/hooks.js","./interfaces":"./lib/interfaces/index.js","./logger":"./lib/logger.js","./package.json":"./package.json","./parser":"./lib/parser/index.js","./performance":"./lib/performance.js","./run":"./lib/main.js","./settings":"./lib/settings.js","./util/ids":"./lib/util/ids.js","./ux":"./lib/ux/index.js"},repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky","test:circular-deps":"yarn build && madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts" --parallel'},types:"lib/index.d.ts"}});var G=y(gn=>{"use strict";f();Object.defineProperty(gn,"__esModule",{value:!0});var Uo=v("node:fs"),Vo=v("node:path"),mn=class t extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return t.instance||(t.instance=new t),t.instance}get(e){return super.get(e)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:Zi().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,Uo.readFileSync)((0,Vo.join)(__dirname,"..","package.json"),"utf8")).version}}catch{return{name:"@oclif/core",version:"unknown"}}}}};gn.default=mn});var k=y(le=>{"use strict";f();var Go=le&&le.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(le,"__esModule",{value:!0});le.getLogger=Qi;le.makeDebug=Yo;le.setLogger=Xo;le.clearLoggers=Zo;var Ko=Go(oo()),yn="oclif";function Ct(t=yn){let e=(0,Ko.default)(t);return{child:(n,i)=>Ct(`${t}${i??":"}${n}`),debug:e,error:(n,...i)=>Ct(`${t}:error`).debug(n,...i),info:e,namespace:t,trace:e,warn:e}}var se=new Map;function Qi(t){let e=se.get("root");if(e||_n(Ct(yn)),e=se.get("root"),t){let n=se.get(t);if(n)return n;let i=e.child(t);return se.set(t,i),i}return e}function Jo(t){return typeof t.child=="function"&&typeof t.debug=="function"&&typeof t.error=="function"&&typeof t.info=="function"&&typeof t.trace=="function"&&typeof t.warn=="function"&&typeof t.namespace=="string"}function _n(t){se.has(t.namespace)||se.has("root")||(Jo(t)?(se.set(t.namespace,t),se.set("root",t)):process.emitWarning("Logger does not match the Logger interface. Using default logger."))}function Yo(t){return(e,...n)=>Qi(t).debug(e,...n)}function Xo(t){t&&typeof t!="string"&&"logger"in t&&t.logger?_n(t.logger):_n(Ct(yn))}function Zo(){se.clear()}});var tt=y(xe=>{"use strict";f();Object.defineProperty(xe,"__esModule",{value:!0});xe.stderr=xe.stdout=void 0;var De=v("node:util"),Qo=(t,...e)=>{!t&&e?console.log((0,De.format)(...e)):t?console.log(typeof t=="string"?(0,De.format)(t,...e):(0,De.format)(...t,...e)):console.log()};xe.stdout=Qo;var ea=(t,...e)=>{!t&&e?console.error((0,De.format)(...e)):t?console.error(typeof t=="string"?(0,De.format)(t,...e):(0,De.format)(...t,...e)):console.error()};xe.stderr=ea});var re=y(Et=>{"use strict";f();Object.defineProperty(Et,"__esModule",{value:!0});Et.settings=void 0;globalThis.oclif||(globalThis.oclif={});Et.settings=globalThis.oclif});var Ae=y(Fe=>{"use strict";f();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.errtermwidth=Fe.stdtermwidth=void 0;var ta=re();function es(t){if(!t.isTTY)return 80;let e=t.getWindowSize()[0];return e<1?80:e<40?40:e}var ts=Number.parseInt(process.env.OCLIF_COLUMNS,10)||ta.settings.columns;Fe.stdtermwidth=ts||es(process.stdout);Fe.errtermwidth=ts||es(process.stderr)});var ns=y($t=>{"use strict";f();Object.defineProperty($t,"__esModule",{value:!0});$t.STANDARD_ANSI=void 0;$t.STANDARD_ANSI=["white","black","blue","yellow","green","red","magenta","cyan","gray","blackBright","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","bgGray","bgBlackBright","bgRedBright","bgGreenBright","bgYellowBright","bgBlueBright","bgMagentaBright","bgCyanBright","bgWhiteBright","bold","underline","dim","italic","strikethrough"]});var ss=y(bn=>{"use strict";f();Object.defineProperty(bn,"__esModule",{value:!0});bn.supportsColor=na;var is=ro();function na(){return!!is.stdout&&!!is.stderr}});var W=y(Se=>{"use strict";f();var ia=Se&&Se.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Se,"__esModule",{value:!0});Se.colorize=oa;Se.parseTheme=os;var vn=ia(qe()),sa=ns(),ra=ss();function rs(t){return sa.STANDARD_ANSI.includes(t)}function oa(t,e){if(!t||!(0,ra.supportsColor)())return e;if(rs(t))return vn.default[t](e);if(t.startsWith("#"))return vn.default.hex(t)(e);if(t.startsWith("rgb")){let[n,i,s]=t.slice(4,-1).split(",").map(r=>Number.parseInt(r.trim(),10));return vn.default.rgb(n,i,s)(e)}return e}function os(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,typeof n=="string"?aa(n):os(n)]).filter(([e,n])=>n))}function aa(t){return t.startsWith("#")||t.startsWith("rgb")||rs(t)?t:void 0}});var ge=y(ue=>{"use strict";f();var qt=ue&&ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ue,"__esModule",{value:!0});ue.CLIError=void 0;ue.addOclifExitCode=cs;var ca=qt(Ki()),wn=qt(ln()),la=qt(un()),ua=qt(G()),da=Ae(),fa=re(),as=W();function cs(t,e){return"oclif"in t||(t.oclif={}),t.oclif.exit=e?.exit===void 0?ua.default.getInstance().get("exitCodes")?.default??2:e.exit,t}var nt=class extends Error{code;oclif={};skipOclifErrorHandling;suggestions;constructor(e,n={}){super(e instanceof Error?e.message:e),cs(this,n),this.code=n.code,this.suggestions=n.suggestions}get bang(){try{return(0,as.colorize)("red",process.platform==="win32"?"\xBB":"\u203A")}catch{}}get stack(){return(0,ca.default)(super.stack,{pretty:!0})}render(){if(fa.settings.debug)return this.stack;let e=`${this.name}: ${this.message}`;return e=(0,la.default)(e,da.errtermwidth-6,{hard:!0,trim:!1}),e=(0,wn.default)(e,3),e=(0,wn.default)(e,1,{includeEmptyLines:!0,indent:this.bang}),e=(0,wn.default)(e,1),e}};ue.CLIError=nt;(function(t){class e extends t{constructor(i){super(i instanceof Error?i.message:i),this.name="Warning"}get bang(){try{return(0,as.colorize)("yellow",process.platform==="win32"?"\xBB":"\u203A")}catch{}}}t.Warn=e})(nt||(ue.CLIError=nt={}))});var xt=y(Me=>{"use strict";f();var ls=Me&&Me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Me,"__esModule",{value:!0});Me.applyPrettyPrintOptions=ga;Me.default=ya;var Dt=ls(ln()),pa=ls(un()),ha=Ae(),ma=re();function ga(t,e){let n=["message","code","ref","suggestions"];for(let i of n)!(i in t)&&e[i]&&(t[i]=e[i]);return t}var _a=t=>{let e="Try this:";if(!t||t.length===0)return;if(t.length===1)return`${e} ${t[0]}`;let n=t.map(i=>`* ${i}`).join(`
1
+ import{a as Gi,c as Ki,d as ln,g as ao,k as un,l as qe,m as lo,n as uo,o as fo,p as po,q as ho,r as mo,s as go,t as _o,u as yo}from"./chunk-TR4OWSEX.js";import{b as ro,c as oo}from"./chunk-ZGASBRSQ.js";import{b as so}from"./chunk-I5A6BPCP.js";import{a as io}from"./chunk-CX5CC6P5.js";import{a as co}from"./chunk-ET2CGROE.js";import{a as v,c as y,g as f}from"./chunk-VKWPEFWQ.js";var $=y(F=>{"use strict";f();Object.defineProperty(F,"__esModule",{value:!0});F.pickBy=bo;F.compact=vo;F.uniqBy=wo;F.last=Oo;F.sortBy=jo;F.castArray=Po;F.isProd=Co;F.maxBy=Eo;F.sumBy=$o;F.capitalize=qo;F.isTruthy=Do;F.isNotFalsy=xo;F.uniq=Fo;F.mapValues=Ao;F.mergeNestedObjects=Mo;function bo(t,e){return Object.entries(t).reduce((n,[i,s])=>(e(s)&&(n[i]=s),n),{})}function vo(t){return t.filter(e=>!!e)}function wo(t,e){return t.filter((n,i)=>{let s=e(n);return!t.some((r,o)=>o>i&&e(r)===s)})}function Oo(t){if(t)return t.at(-1)}function dn(t,e){if(t=t===void 0?0:t,e=e===void 0?0:e,Array.isArray(t)&&Array.isArray(e)){if(t.length===0&&e.length===0)return 0;let n=dn(t[0],e[0]);return n!==0?n:dn(t.slice(1),e.slice(1))}return t<e?-1:t>e?1:0}function jo(t,e){return t.sort((n,i)=>dn(e(n),e(i)))}function Po(t){return t===void 0?[]:Array.isArray(t)?t:[t]}function Co(){return!["development","test"].includes(process.env.NODE_ENV??"")}function Eo(t,e){if(t.length!==0)return t.reduce((n,i)=>{let s=e(i),r=e(n);return s>r?i:n})}function $o(t,e){return t.reduce((n,i)=>n+e(i),0)}function qo(t){return t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():""}function Do(t){return["1","true","y","yes"].includes(t.toLowerCase())}function xo(t){return!["0","false","n","no"].includes(t.toLowerCase())}function Fo(t){return[...new Set(t)].sort()}function Ao(t,e){return Object.entries(t).reduce((n,[i,s])=>(n[i]=e(s,i),n),{})}function So(t,e){return e.split(".").reduce((n,i)=>n?.[i],t)}function Mo(t,e){return Object.fromEntries(t.flatMap(n=>Object.entries(So(n,e)??{})).reverse())}});var X=y(ie=>{"use strict";f();Object.defineProperty(ie,"__esModule",{value:!0});ie.fileExists=ie.dirExists=void 0;ie.readJson=Ji;ie.safeReadJson=Ro;ie.existsSync=No;var Io=v("node:fs"),hn=v("node:fs/promises"),ko=$(),To=async t=>{let e;try{e=await(0,hn.stat)(t)}catch{throw new Error(`No directory found at ${t}`)}if(!e.isDirectory())throw new Error(`${t} exists but is not a directory`);return t};ie.dirExists=To;var Lo=async t=>{let e;try{e=await(0,hn.stat)(t)}catch{throw new Error(`No file found at ${t}`)}if(!e.isFile())throw new Error(`${t} exists but is not a file`);return t};ie.fileExists=Lo;var pn=class extends Map{set(e,n){return((0,ko.isProd)()??!1)&&super.set(e,n),this}},fn=new pn;async function Ji(t,e=!0){if(e&&fn.has(t))return JSON.parse(fn.get(t));let n=await(0,hn.readFile)(t,"utf8");return fn.set(t,n),JSON.parse(n)}async function Ro(t,e=!0){try{return await Ji(t,e)}catch{}}function No(t){return(0,Io.existsSync)(t)}});var Xi=y(M=>{"use strict";f();Object.defineProperty(M,"__esModule",{value:!0});M.string=M.url=M.file=M.directory=M.integer=M.boolean=void 0;M.custom=me;var Ho=v("node:url"),Yi=X(),Bo=$();function me(t){return(e={})=>({parse:async(n,i,s)=>n,...t,...e,input:[],type:"option"})}M.boolean=me({parse:async t=>!!t&&(0,Bo.isNotFalsy)(t)});M.integer=me({async parse(t,e,n){if(!/^-?\d+$/.test(t))throw new Error(`Expected an integer but received: ${t}`);let i=Number.parseInt(t,10);if(n.min!==void 0&&i<n.min)throw new Error(`Expected an integer greater than or equal to ${n.min} but received: ${t}`);if(n.max!==void 0&&i>n.max)throw new Error(`Expected an integer less than or equal to ${n.max} but received: ${t}`);return i}});M.directory=me({async parse(t,e,n){return n.exists?(0,Yi.dirExists)(t):t}});M.file=me({async parse(t,e,n){return n.exists?(0,Yi.fileExists)(t):t}});M.url=me({async parse(t){try{return new Ho.URL(t)}catch{throw new Error(`Expected a valid url but received: ${t}`)}}});var Wo=me({});M.string=Wo});var Zi=y((Rf,zo)=>{zo.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"4.8.3",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"ansi-escapes":"^4.3.2",ansis:"^3.17.0","clean-stack":"^3.0.1","cli-spinners":"^2.9.2",debug:"^4.4.3",ejs:"^3.1.10","get-package-type":"^0.1.0","indent-string":"^4.0.0","is-wsl":"^2.2.0",lilconfig:"^3.1.3",minimatch:"^10.2.4",semver:"^7.7.3","string-width":"^4.2.3","supports-color":"^8",tinyglobby:"^0.2.14","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^19","@eslint/compat":"^1.4.1","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^5","@oclif/prettier-config":"^0.2.1","@oclif/test":"^4","@types/benchmark":"^2.1.5","@types/chai":"^4.3.16","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/mocha":"^10.0.10","@types/node":"^18","@types/pnpapi":"^0.0.5","@types/sinon":"^17.0.3","@types/supports-color":"^8.1.3","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.5.0","chai-as-promised":"^7.1.2",commitlint:"^19","cross-env":"^7.0.3",eslint:"^9","eslint-config-oclif":"^6","eslint-config-prettier":"^10",husky:"^9.1.7","lint-staged":"^15",madge:"^6.1.0",mocha:"^11.7.5",nyc:"^15.1.0",prettier:"^3.8.1",shx:"^0.4.0",sinon:"^18","ts-node":"^10.9.2",tsd:"^0.33.0",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",exports:{".":"./lib/index.js","./args":"./lib/args.js","./command":"./lib/command.js","./config":"./lib/config/index.js","./errors":"./lib/errors/index.js","./execute":"./lib/execute.js","./flags":"./lib/flags.js","./flush":"./lib/flush.js","./handle":"./lib/errors/handle.js","./help":"./lib/help/index.js","./hooks":"./lib/interfaces/hooks.js","./interfaces":"./lib/interfaces/index.js","./logger":"./lib/logger.js","./package.json":"./package.json","./parser":"./lib/parser/index.js","./performance":"./lib/performance.js","./run":"./lib/main.js","./settings":"./lib/settings.js","./util/ids":"./lib/util/ids.js","./ux":"./lib/ux/index.js"},repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky","test:circular-deps":"yarn build && madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts" --parallel'},types:"lib/index.d.ts"}});var G=y(gn=>{"use strict";f();Object.defineProperty(gn,"__esModule",{value:!0});var Uo=v("node:fs"),Vo=v("node:path"),mn=class t extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return t.instance||(t.instance=new t),t.instance}get(e){return super.get(e)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:Zi().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,Uo.readFileSync)((0,Vo.join)(__dirname,"..","package.json"),"utf8")).version}}catch{return{name:"@oclif/core",version:"unknown"}}}}};gn.default=mn});var k=y(le=>{"use strict";f();var Go=le&&le.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(le,"__esModule",{value:!0});le.getLogger=Qi;le.makeDebug=Yo;le.setLogger=Xo;le.clearLoggers=Zo;var Ko=Go(oo()),yn="oclif";function Ct(t=yn){let e=(0,Ko.default)(t);return{child:(n,i)=>Ct(`${t}${i??":"}${n}`),debug:e,error:(n,...i)=>Ct(`${t}:error`).debug(n,...i),info:e,namespace:t,trace:e,warn:e}}var se=new Map;function Qi(t){let e=se.get("root");if(e||_n(Ct(yn)),e=se.get("root"),t){let n=se.get(t);if(n)return n;let i=e.child(t);return se.set(t,i),i}return e}function Jo(t){return typeof t.child=="function"&&typeof t.debug=="function"&&typeof t.error=="function"&&typeof t.info=="function"&&typeof t.trace=="function"&&typeof t.warn=="function"&&typeof t.namespace=="string"}function _n(t){se.has(t.namespace)||se.has("root")||(Jo(t)?(se.set(t.namespace,t),se.set("root",t)):process.emitWarning("Logger does not match the Logger interface. Using default logger."))}function Yo(t){return(e,...n)=>Qi(t).debug(e,...n)}function Xo(t){t&&typeof t!="string"&&"logger"in t&&t.logger?_n(t.logger):_n(Ct(yn))}function Zo(){se.clear()}});var tt=y(xe=>{"use strict";f();Object.defineProperty(xe,"__esModule",{value:!0});xe.stderr=xe.stdout=void 0;var De=v("node:util"),Qo=(t,...e)=>{!t&&e?console.log((0,De.format)(...e)):t?console.log(typeof t=="string"?(0,De.format)(t,...e):(0,De.format)(...t,...e)):console.log()};xe.stdout=Qo;var ea=(t,...e)=>{!t&&e?console.error((0,De.format)(...e)):t?console.error(typeof t=="string"?(0,De.format)(t,...e):(0,De.format)(...t,...e)):console.error()};xe.stderr=ea});var re=y(Et=>{"use strict";f();Object.defineProperty(Et,"__esModule",{value:!0});Et.settings=void 0;globalThis.oclif||(globalThis.oclif={});Et.settings=globalThis.oclif});var Ae=y(Fe=>{"use strict";f();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.errtermwidth=Fe.stdtermwidth=void 0;var ta=re();function es(t){if(!t.isTTY)return 80;let e=t.getWindowSize()[0];return e<1?80:e<40?40:e}var ts=Number.parseInt(process.env.OCLIF_COLUMNS,10)||ta.settings.columns;Fe.stdtermwidth=ts||es(process.stdout);Fe.errtermwidth=ts||es(process.stderr)});var ns=y($t=>{"use strict";f();Object.defineProperty($t,"__esModule",{value:!0});$t.STANDARD_ANSI=void 0;$t.STANDARD_ANSI=["white","black","blue","yellow","green","red","magenta","cyan","gray","blackBright","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","bgGray","bgBlackBright","bgRedBright","bgGreenBright","bgYellowBright","bgBlueBright","bgMagentaBright","bgCyanBright","bgWhiteBright","bold","underline","dim","italic","strikethrough"]});var ss=y(bn=>{"use strict";f();Object.defineProperty(bn,"__esModule",{value:!0});bn.supportsColor=na;var is=ro();function na(){return!!is.stdout&&!!is.stderr}});var W=y(Se=>{"use strict";f();var ia=Se&&Se.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Se,"__esModule",{value:!0});Se.colorize=oa;Se.parseTheme=os;var vn=ia(qe()),sa=ns(),ra=ss();function rs(t){return sa.STANDARD_ANSI.includes(t)}function oa(t,e){if(!t||!(0,ra.supportsColor)())return e;if(rs(t))return vn.default[t](e);if(t.startsWith("#"))return vn.default.hex(t)(e);if(t.startsWith("rgb")){let[n,i,s]=t.slice(4,-1).split(",").map(r=>Number.parseInt(r.trim(),10));return vn.default.rgb(n,i,s)(e)}return e}function os(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,typeof n=="string"?aa(n):os(n)]).filter(([e,n])=>n))}function aa(t){return t.startsWith("#")||t.startsWith("rgb")||rs(t)?t:void 0}});var ge=y(ue=>{"use strict";f();var qt=ue&&ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ue,"__esModule",{value:!0});ue.CLIError=void 0;ue.addOclifExitCode=cs;var ca=qt(Ki()),wn=qt(ln()),la=qt(un()),ua=qt(G()),da=Ae(),fa=re(),as=W();function cs(t,e){return"oclif"in t||(t.oclif={}),t.oclif.exit=e?.exit===void 0?ua.default.getInstance().get("exitCodes")?.default??2:e.exit,t}var nt=class extends Error{code;oclif={};skipOclifErrorHandling;suggestions;constructor(e,n={}){super(e instanceof Error?e.message:e),cs(this,n),this.code=n.code,this.suggestions=n.suggestions}get bang(){try{return(0,as.colorize)("red",process.platform==="win32"?"\xBB":"\u203A")}catch{}}get stack(){return(0,ca.default)(super.stack,{pretty:!0})}render(){if(fa.settings.debug)return this.stack;let e=`${this.name}: ${this.message}`;return e=(0,la.default)(e,da.errtermwidth-6,{hard:!0,trim:!1}),e=(0,wn.default)(e,3),e=(0,wn.default)(e,1,{includeEmptyLines:!0,indent:this.bang}),e=(0,wn.default)(e,1),e}};ue.CLIError=nt;(function(t){class e extends t{constructor(i){super(i instanceof Error?i.message:i),this.name="Warning"}get bang(){try{return(0,as.colorize)("yellow",process.platform==="win32"?"\xBB":"\u203A")}catch{}}}t.Warn=e})(nt||(ue.CLIError=nt={}))});var xt=y(Me=>{"use strict";f();var ls=Me&&Me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Me,"__esModule",{value:!0});Me.applyPrettyPrintOptions=ga;Me.default=ya;var Dt=ls(ln()),pa=ls(un()),ha=Ae(),ma=re();function ga(t,e){let n=["message","code","ref","suggestions"];for(let i of n)!(i in t)&&e[i]&&(t[i]=e[i]);return t}var _a=t=>{let e="Try this:";if(!t||t.length===0)return;if(t.length===1)return`${e} ${t[0]}`;let n=t.map(i=>`* ${i}`).join(`
2
2
  `);return`${e}
3
3
  ${(0,Dt.default)(n,2)}`};function ya(t){if(ma.settings.debug)return t.stack;let{bang:e,code:n,message:i,name:s,ref:r,suggestions:o}=t,c=i?`${s||"Error"}: ${i}`:void 0,l=n?`Code: ${n}`:void 0,u=_a(o),p=r?`Reference: ${r}`:void 0,a=[c,l,u,p].filter(Boolean).join(`
4
4
  `),d=(0,pa.default)(a,ha.errtermwidth-6,{hard:!0,trim:!1});return d=(0,Dt.default)(d,3),d=(0,Dt.default)(d,1,{includeEmptyLines:!0,indent:e||""}),d=(0,Dt.default)(d,1),d}});var Ie=y(Z=>{"use strict";f();var ba=Z&&Z.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(e,n);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,s)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),va=Z&&Z.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),wa=Z&&Z.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&ba(n,e,i[s]);return va(n,e),n}})();Object.defineProperty(Z,"__esModule",{value:!0});Z.error=fs;var Oa=k(),ja=tt(),us=ge(),ds=wa(xt());function fs(t,e={}){let n;if(typeof t=="string")n=new us.CLIError(t,e);else if(t instanceof Error)n=(0,us.addOclifExitCode)(t,e);else throw new TypeError("first argument must be a string or instance of Error");if(n=(0,ds.applyPrettyPrintOptions)(n,e),e.exit===!1){let i=(0,ds.default)(n);i&&(0,ja.stderr)(i),n?.stack&&(0,Oa.getLogger)().error(n.stack)}else throw n}Z.default=fs});var At=y(Ft=>{"use strict";f();Object.defineProperty(Ft,"__esModule",{value:!0});Ft.ExitError=void 0;var Pa=ge(),On=class extends Pa.CLIError{code="EEXIT";constructor(e=1){super(`EEXIT: ${e}`,{exit:e})}render(){return""}};Ft.ExitError=On});var Pn=y(St=>{"use strict";f();Object.defineProperty(St,"__esModule",{value:!0});St.ModuleLoadError=void 0;var Ca=ge(),jn=class extends Ca.CLIError{code="MODULE_NOT_FOUND";constructor(e){super(`[MODULE_NOT_FOUND] ${e}`,{exit:1}),this.name="ModuleLoadError"}};St.ModuleLoadError=jn});var Mt=y(Cn=>{"use strict";f();Object.defineProperty(Cn,"__esModule",{value:!0});Cn.exit=$a;var Ea=At();function $a(t=0){throw new Ea.ExitError(t)}});var ke=y(_e=>{"use strict";f();var qa=_e&&_e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_e,"__esModule",{value:!0});_e.warn=En;_e.memoizedWarn=Aa;var Da=k(),xa=tt(),ps=ge(),Fa=qa(xt());function En(t){let e;if(typeof t=="string")e=new ps.CLIError.Warn(t);else if(t instanceof Error)e=(0,ps.addOclifExitCode)(t);else throw new TypeError("first argument must be a string or instance of Error");let n=(0,Fa.default)(e);n&&(0,xa.stderr)(n),e?.stack&&(0,Da.getLogger)().error(e.stack)}var hs=new Set;function Aa(t){hs.has(t)||En(t),hs.add(t)}_e.default=En});var vs=y($n=>{"use strict";f();Object.defineProperty($n,"__esModule",{value:!0});$n.readTSConfig=ka;var ms=v("node:fs/promises"),ys=v("node:path"),Sa=ke(),Ma=k(),gs=$(),Ia=(0,Ma.makeDebug)("read-tsconfig");function _s(t,e){try{return v.resolve(e,{paths:[t]})}catch{}}async function bs(t,e){let n;try{n=await e(t)}catch{n=!1}if(n)return t;let i=(0,ys.dirname)(t);if(i!==t)return bs(i,e)}async function ka(t,e="tsconfig.json"){let n=[],i;try{i=co()}catch{try{i=v(t+"/node_modules/typescript")}catch{}}if(!i){(0,Sa.memoizedWarn)("Could not find typescript. Please ensure that typescript is a devDependency. Falling back to compiled source.");return}let s=async r=>{let o=await bs(r,async c=>(await(0,ms.readdir)(c)).includes("package.json"));if(o)try{let c=await(0,ms.readFile)(r,"utf8"),l=i?.parseConfigFileTextToJson(r,c).config;if(n.push(l),l.extends){if(l.extends.startsWith(".")){let p=_s(o,l.extends);return p?s(p):void 0}let u=_s(o,l.extends);if(u)return s(u)}return l}catch(c){Ia(c)}};return await s((0,ys.join)(t,e)),{compilerOptions:(0,gs.mergeNestedObjects)(n,"compilerOptions"),"ts-node":(0,gs.mergeNestedObjects)(n,"ts-node")}}});var Te=y(ye=>{"use strict";f();Object.defineProperty(ye,"__esModule",{value:!0});ye.collectUsableIds=void 0;ye.makeDebug=La;ye.getPermutations=qn;ye.getCommandIdPermutations=Ra;var Ta=k();function La(...t){return(e,...n)=>(0,Ta.getLogger)(["config",...t].join(":")).debug(e,...n)}function qn(t){if(t.length===0)return[];if(t.length===1)return[t];let e=[],n=qn(t.slice(1)),i=t[0];for(let s=0,r=n.length;s<r;s++){let o=n[s];for(let c=0,l=o.length;c<=l;c++){let u=o.slice(0,c),p=o.slice(c),a=[...u,i,...p];e.push(a)}}return e}function Ra(t){return qn(t.split(":")).flatMap(e=>e.join(":"))}var Na=t=>new Set(t.flatMap(e=>e.split(":").map((n,i,s)=>s.slice(0,i+1).join(":"))));ye.collectUsableIds=Na});var Le=y(K=>{"use strict";f();var Ha=K&&K.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(K,"__esModule",{value:!0});K.TS_CONFIGS=void 0;K.tsPath=tc;var ws=v("node:fs/promises"),T=v("node:path"),Ba=v("node:url"),Wa=Ha(G()),it=ke(),Os=re(),za=X(),Ua=vs(),Dn=$(),Va=Te(),P=(0,Va.makeDebug)("ts-path");K.TS_CONFIGS={};var It=new Set;function Ga(){return process.execPath.split(T.sep).includes("bun")?"bun":process.execArgv.length===0?"node":process.execArgv[0]==="--require"&&process.execArgv[1].split(T.sep).includes("ts-node")||process.execArgv[0].split(T.sep).includes("ts-node")?"ts-node":process.execArgv[0]==="--require"&&process.execArgv[1].split(T.sep).includes("tsx")?"tsx":"node"}var xn=Ga();function Ka(t){return"code"in t&&t.code==="ENOENT"}async function Ja(t){try{if(K.TS_CONFIGS[t])return K.TS_CONFIGS[t];let e=await(0,Ua.readTSConfig)(t);return e?(P("tsconfig: %O",e),K.TS_CONFIGS[t]=e,K.TS_CONFIGS[t]):void 0}catch(e){if(Ka(e))return;P(`Could not parse tsconfig.json. Skipping typescript path lookup for ${t}.`),(0,it.memoizedWarn)(`Could not parse tsconfig.json for ${t}. Falling back to compiled source.`)}}async function Ya(t,e){if(!It.has(t))try{let n=e==="module"?"tsx/esm/api":"tsx/cjs/api",i=v.resolve(n,{paths:[t]});if(!i)return;P("registering tsx at",t),P("tsx path:",i);let{href:s}=(0,Ba.pathToFileURL)(i);P("tsx href:",s);let{register:r}=await import(s);P("Successfully imported tsx"),r(),It.add(t)}catch(n){P(`Could not find tsx. Skipping tsx registration for ${t}.`),P(n)}}async function Xa(t,e){if(It.has(t))return;P("registering ts-node at",t);let n=v.resolve("ts-node",{paths:[t,__dirname]});P("ts-node path:",n);let i;try{i=v(n),P("Successfully required ts-node")}catch(p){P(`Could not find ts-node at ${n}. Skipping ts-node registration for ${t}.`),P(p),(0,it.memoizedWarn)(`Could not find ts-node at ${n}. Please ensure that ts-node is a devDependency. Falling back to compiled source.`);return}let s=[(0,T.join)(t,"node_modules","@types")],r=[];if(e.compilerOptions.rootDirs)for(let p of e.compilerOptions.rootDirs)r.push((0,T.join)(t,p));else e.compilerOptions.rootDir?r.push((0,T.join)(t,e.compilerOptions.rootDir)):e.compilerOptions.baseUrl?r.push((0,T.join)(t,e.compilerOptions.baseUrl)):r.push((0,T.join)(t,"src"));let{baseUrl:o,rootDir:c,...l}=e.compilerOptions,u={compilerOptions:{...l,rootDirs:r,typeRoots:s},...e["ts-node"],cwd:t,esm:e["ts-node"]?.esm??!0,experimentalSpecifierResolution:e["ts-node"]?.experimentalSpecifierResolution??"explicit",scope:!0,scopeDir:t,skipProject:!0,transpileOnly:!0};P("ts-node options: %O",u),i.register(u),It.add(t)}function Za(t,e,n){return(n||t?.moduleType==="commonjs")&&e?.moduleType==="module"&&!e?.pjson.devDependencies?.tsx}function Qa(t,e,n){if(e?.moduleType!=="module"||n)return!1;let i=Number.parseInt(process.version.replace("v","").split(".")[0],10);return xn==="ts-node"&&i>=20}async function ec(t,e,n){let i=await Ja(t);if(!i)return e;P(`Determining path for ${e}`),xn==="bun"?P(`Skipping ts-node registration for ${t} because the runtime is: ${xn}`):(await Ya(t,n?.moduleType),await Xa(t,i));let{baseUrl:s,outDir:r,rootDir:o,rootDirs:c}=i.compilerOptions,l=o??(c??[])[0]??s;if(!l)return P(`no rootDir, rootDirs, or baseUrl specified in tsconfig.json. Returning default path ${e}`),e;if(!r)return P(`no outDir specified in tsconfig.json. Returning default path ${e}`),e;let u=(0,T.join)(t,r),p=(0,T.join)(t,l),a=(0,T.relative)(u,e),d=(0,T.join)(p,a).replace(/\.js$/,"");return P(`lib dir: ${u}`),P(`src dir: ${p}`),P(`src directory to find: ${d}`),(0,za.existsSync)(d)?(P(`Found source directory for ${e} at ${d}`),d):(await Promise.all([(0,ws.access)(`${d}.ts`).then(()=>`${d}.ts`).catch(()=>!1),(0,ws.access)(`${d}.tsx`).then(()=>`${d}.tsx`).catch(()=>!1)])).some(Boolean)?(P(`Found source file for ${e} at ${d}`),d):(P(`No source file found. Returning default path ${e}`),(0,Dn.isProd)()||(0,it.memoizedWarn)(`Could not find source for ${e} based on tsconfig. Defaulting to compiled source.`),e)}async function tc(t,e,n){let i=n?.options.isRoot?n:Wa.default.getInstance().get("rootPlugin");if(!e)return e;e=e.startsWith(t)?e:(0,T.join)(t,e);let s=Os.settings.enableAutoTranspile??Os.settings.tsnodeEnabled;if(s===!1)return P(`Skipping typescript path lookup for ${t} because enableAutoTranspile is explicitly set to false`),e;let r=(0,Dn.isProd)();if(s===void 0&&r&&n?.type!=="link")return P(`Skipping typescript path lookup for ${t} because NODE_ENV is NOT "test" or "development"`),e;if(Za(i,n,r)){P(`Skipping typescript path lookup for ${t} because it's an ESM module (NODE_ENV: ${process.env.NODE_ENV}, root plugin module type: ${i?.moduleType})`);let o=process.env.OCLIF_DISABLE_LINKED_ESM_WARNING&&(0,Dn.isTruthy)(process.env.OCLIF_DISABLE_LINKED_ESM_WARNING);return n?.type==="link"&&!o&&(0,it.memoizedWarn)(`${n?.name} is a linked ESM module and cannot be auto-transpiled. Existing compiled source will be used instead.`),e}if(Qa(t,n,r))return P(`Skipping typescript path lookup for ${t} because ts-node is run in node version ${process.version}"`),(0,it.memoizedWarn)("ts-node executable cannot transpile ESM in Node 20. Existing compiled source will be used instead. See https://github.com/oclif/core/issues/817."),e;try{return await ec(t,e,n)}catch(o){return P(o),e}}});var st=y(Re=>{"use strict";f();Object.defineProperty(Re,"__esModule",{value:!0});Re.load=oc;Re.loadWithData=ac;Re.loadWithDataFromManifest=cc;Re.isPathModule=An;var nc=lo(),ic=v("node:fs"),kt=v("node:path"),Sn=v("node:url"),js=Le(),Fn=Pn(),Cs=X(),sc=[".ts",".js",".mjs",".cjs",".mts",".cts",".tsx",".jsx"],rc=t=>t.type!==void 0;function Mn(t,e,n){throw t.code==="MODULE_NOT_FOUND"||t.code==="ERR_MODULE_NOT_FOUND"?new Fn.ModuleLoadError(`${e?"import()":"require"} failed to load ${n}: ${t.message}`):t}async function oc(t,e){let n,i;try{return{filePath:n,isESM:i}=await Es(t,e),i?await import((0,Sn.pathToFileURL)(n).href):v(n)}catch(s){Mn(s,i,n??e)}}async function ac(t,e){let n,i;try{({filePath:n,isESM:i}=await Es(t,e));let s=i?await import((0,Sn.pathToFileURL)(n).href):v(n);return{filePath:n,isESM:i,module:s}}catch(s){Mn(s,i,n??e)}}async function cc(t,e){let{id:n,isESM:i,relativePath:s}=t;if(!s)throw new Fn.ModuleLoadError(`Cached command ${n} does not have a relative path`);if(i===void 0)throw new Fn.ModuleLoadError(`Cached command ${n} does not have the isESM property set`);let r=(0,kt.join)(e,s.join(kt.sep));try{let o=i?await import((0,Sn.pathToFileURL)(r).href):v(r);return{filePath:r,isESM:i,module:o}}catch(o){Mn(o,i,r??e)}}function An(t){switch((0,kt.extname)(t).toLowerCase()){case".js":case".jsx":case".ts":case".tsx":return nc.sync(t)==="module";case".mjs":case".mts":return!0;default:return!1}}async function Es(t,e){let n,i;try{i=v.resolve(e),n=An(i)}catch{i=(rc(t)?await(0,js.tsPath)(t.root,e,t):await(0,js.tsPath)(t.root,e))??e;let s=!1,r=!1;if((0,Cs.existsSync)(i)){s=!0;try{(0,ic.lstatSync)(i)?.isDirectory?.()&&(s=!1,r=!0)}catch{}}if(!s){let o=Ps(i);!o&&r&&(o=Ps((0,kt.join)(i,"index"))),o&&(i=o)}n=An(i)}return{filePath:i,isESM:n}}function Ps(t){for(let e of sc){let n=`${t}${e}`;if((0,Cs.existsSync)(n))return n}return null}});var Lt=y(Tt=>{"use strict";f();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.SINGLE_COMMAND_CLI_SYMBOL=void 0;Tt.SINGLE_COMMAND_CLI_SYMBOL=Symbol("SINGLE_COMMAND_CLI").toString()});var In=y(Rt=>{"use strict";f();Object.defineProperty(Rt,"__esModule",{value:!0});Rt.cacheDefaultValue=void 0;var lc=async(t,e)=>{if(!(e&&t.noCacheDefault)){if(typeof t.defaultHelp=="function")try{return await t.defaultHelp({flags:{},options:t})}catch{return}if(typeof t.default=="function")try{return await t.default({flags:{},options:t})}catch{}else return t.default}};Rt.cacheDefaultValue=lc});var be=y(Nt=>{"use strict";f();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.toStandardizedId=uc;Nt.toConfiguredId=dc;function uc(t,e){return t.replaceAll(new RegExp(e.topicSeparator,"g"),":")}function dc(t,e){return t.replaceAll(new RegExp(":","g"),e.topicSeparator||":")}});var Tn=y(Ht=>{"use strict";f();Object.defineProperty(Ht,"__esModule",{value:!0});Ht.ActionBase=void 0;var $s=v("node:util"),qs=$(),kn=class{std="stderr";stdmocks;type;stdmockOrigs={stderr:process.stderr.write,stdout:process.stdout.write};get globals(){globalThis.ux=globalThis.ux||{};let e=globalThis.ux;return e.action=e.action||{},e}get output(){return this.globals.output}set output(e){this.globals.output=e}get running(){return!!this.task}get status(){return this.task?this.task.status:void 0}set status(e){let{task:n}=this;n&&n.status!==e&&(this._updateStatus(e,n.status),n.status=e)}get task(){return this.globals.action.task}set task(e){this.globals.action.task=e}_flushStdout(){try{let e="",n;for(;this.stdmocks&&this.stdmocks.length>0;){let i=this.stdmocks.shift();n=i[0],this._write(n,i[1]),e+=i[1][0].toString("utf8")}e&&n&&e.at(-1)!==`
@@ -80,4 +80,4 @@ Alternatively, you can use "--" to signify the end of the flags and the beginnin
80
80
  `))}`;super({exit:Ot.default.getInstance().get("exitCodes")?.failedFlagValidation??e,message:c,parse:i})}};E.FailedFlagValidationError=Fi});var Nr=y(ne=>{"use strict";f();var Fd=ne&&ne.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ne,"__esModule",{value:!0});ne.Parser=ne.readStdin=void 0;var Ad=v("node:os"),Sd=v("node:readline"),Rr=Fd(G()),Md=k(),he=$(),Ce=Ai(),J;try{J=process.env.CLI_FLAGS_DEBUG==="1"?(0,Md.makeDebug)("parser"):()=>{}}catch{J=()=>{}}var Id=async()=>{let{stdin:t,stdout:e}=process;return t.isTTY?null:globalThis.oclif?.stdinCache?(J("resolved stdin from global cache",globalThis.oclif.stdinCache),globalThis.oclif.stdinCache):new Promise(n=>{let i=[],s=new AbortController,{signal:r}=s,o=setTimeout(()=>s.abort(),10),c=(0,Sd.createInterface)({input:t,output:e,terminal:!1});c.on("line",l=>{i.push(l)}),c.once("close",()=>{let l=i.join(Ad.EOL);clearTimeout(o),J("resolved from stdin",l),globalThis.oclif={...globalThis.oclif,stdinCache:l},n(l)}),r.addEventListener("abort",()=>{J("stdin aborted"),clearTimeout(o),c.close(),n(null)},{once:!0})})};ne.readStdin=Id;function kd(t){return/^-\d/g.test(t)}var rn=(t,e)=>{if(t.options&&!t.options.includes(e))throw new Ce.FlagInvalidOptionError(t,e);return e},on="--no-",Si=class{input;argv;booleanFlags;context;currentFlag;flagAliases;raw=[];constructor(e){this.input=e,this.context=e.context??{},this.argv=[...e.argv],this._setNames(),this.booleanFlags=(0,he.pickBy)(e.flags,n=>n.type==="boolean"),this.flagAliases=Object.fromEntries(Object.values(e.flags).flatMap(n=>[...n.aliases??[],...n.charAliases??[]].map(i=>[i,n])))}get _argTokens(){return this.raw.filter(e=>e.type==="arg")}async parse(){this._debugInput();let e=async a=>{let{isLong:d,name:m}=this.findFlag(a);if(!m){let g=a.indexOf("=");if(g!==-1){let b=a.slice(g+1);this.argv.unshift(b);let _=await e(a.slice(0,g));return _||this.argv.shift(),_}return!1}let h=this.input.flags[m];if(h.type==="option"){if(!h.multiple&&this.raw.some(b=>b.type==="flag"&&b.flag===m))throw new Ce.CLIError(`Flag --${m} can only be specified once`);this.currentFlag=h;let g=d||a.length<3?this.argv.shift():a.slice(a[2]==="="?3:2);if(h.allowStdin==="only"&&g!=="-"&&g!==void 0&&!this.findFlag(g).name)throw new Ce.CLIError(`Flag --${m} can only be read from stdin. The value must be "-" or not provided at all.`);if(h.allowStdin&&g==="-"||h.allowStdin==="only"){let b=await(0,ne.readStdin)();b&&(g=b.trim())}if(typeof g!="string"||this.findFlag(g).name)throw h.options?new Ce.CLIError(`Flag --${m} expects one of these values: ${h.options.join(", ")}`):new Ce.CLIError(`Flag --${m} expects a value`);this.raw.push({flag:h.name,input:g,type:"flag"})}else this.raw.push({flag:h.name,input:a,type:"flag"}),!d&&a.length>2&&this.argv.unshift(`-${a.slice(2)}`);return!0},n=!0,i=[],s=!1,r=[...this.argv];for(;this.argv.length>0;){let a=this.argv.shift();if(n&&a.startsWith("-")&&a!=="-"){if(this.input["--"]!==!1&&a==="--"){n=!1;continue}if(await e(a))continue;if(a==="--"){s=!0;continue}if(this.input["--"]!==!1&&!kd(a)){i.push(a);continue}}if(n&&this.currentFlag&&this.currentFlag.multiple&&!this.currentFlag.multipleNonGreedy){this.raw.push({flag:this.currentFlag.name,input:a,type:"flag"});continue}let d=Object.keys(this.input.args)[this._argTokens.length];this.raw.push({arg:d,input:a,type:"arg"})}let[{args:o,argv:c},{flags:l,metadata:u}]=await Promise.all([this._args(),this._flags()]);this._debugOutput(c,o,l);let p=s?[...c,...i,"--"]:[...c,...i];return{args:o,argv:p.sort((a,d)=>r.indexOf(a)-r.indexOf(d)),flags:l,metadata:u,nonExistentFlags:i,raw:this.raw}}async _args(){let e=[],n={},i=this._argTokens,s=!1,r=this.context;for(let[o,c]of Object.entries(this.input.args)){let l=i.find(u=>u.arg===o);if(r.token=l,l){if(c.options&&!c.options.includes(l.input))throw new Ce.ArgInvalidOptionError(c,l.input);let u=await c.parse(l.input,r,c);e.push(u),n[l.arg]=u}else if(!c.ignoreStdin&&!s){let u=await(0,ne.readStdin)();if(u){u=u.trim();let p=await c.parse(u,r,c);e.push(p),n[o]=p}s=!0}if(!n[o]&&(c.default||c.default===!1))if(typeof c.default=="function"){let u=await c.default();e.push(u),n[o]=u}else e.push(c.default),n[o]=c.default}for(let o of i)n[o.arg]===void 0&&e.push(o.input);return{args:n,argv:e}}_debugInput(){J("input: %s",this.argv.join(" "));let e=Object.keys(this.input.args);e.length>0&&J("available args: %s",e.join(" ")),Object.keys(this.input.flags).length!==0&&J("available flags: %s",Object.keys(this.input.flags).map(n=>`--${n}`).join(" "))}_debugOutput(e,n,i){i.length>0&&J("argv: %o",i),Object.keys(e).length>0&&J("args: %o",e),Object.keys(n).length>0&&J("flags: %o",n)}async _flags(){let e=async(a,d,m,h)=>{if(!d.parse)return a;let g={...m,error:m?.error,exit:m?.exit,jsonEnabled:m?.jsonEnabled,log:m?.log,logToStderr:m?.logToStderr,token:h,warn:m?.warn};try{return d.type==="boolean"?await d.parse(a,g,d):await d.parse(a,g,d)}catch(b){throw b.message=`Parsing --${d.name}
81
81
  ${b.message}
82
82
  See more help with --help`,Rr.default.getInstance().get("exitCodes")?.failedFlagParsing&&(b.oclif={exit:Rr.default.getInstance().get("exitCodes")?.failedFlagParsing}),b}},n=a=>{if(a.tokens?.length){if(a.inputFlag.flag.type==="boolean"&&(0,he.last)(a.tokens)?.input){let m=h=>{let g=[h.inputFlag.name,...h.inputFlag.flag.aliases??[]].map(_=>`${on}${_}`),b=(0,he.last)(h.tokens)?.input;return b?!g.includes(b):!0};return{...a,valueFunction:async h=>e(m(h),h.inputFlag.flag,this.context,(0,he.last)(h.tokens))}}if(a.inputFlag.flag.type==="option"&&a.inputFlag.flag.delimiter&&a.inputFlag.flag.multiple){let m=h=>new RegExp(`(?<!\\\\)${h}`);return{...a,valueFunction:async h=>(await Promise.all((h.tokens??[]).flatMap(g=>g.input.split(m(h.inputFlag.flag.delimiter??","))).map(g=>g.trim().replaceAll(new RegExp(`\\\\${h.inputFlag.flag.delimiter}`,"g"),h.inputFlag.flag.delimiter??",").replace(/^"(.*)"$/,"$1").replace(/^'(.*)'$/,"$1")).map(async g=>e(g,h.inputFlag.flag,this.context,{...(0,he.last)(h.tokens),input:g})))).map(g=>rn(h.inputFlag.flag,g))}}if(a.inputFlag.flag.type==="option"&&a.inputFlag.flag.multiple)return{...a,valueFunction:async m=>Promise.all((a.tokens??[]).map(h=>e(rn(m.inputFlag.flag,h.input),m.inputFlag.flag,this.context,h)))};if(a.inputFlag.flag.type==="option")return{...a,valueFunction:async m=>e(rn(m.inputFlag.flag,(0,he.last)(a.tokens)?.input),m.inputFlag.flag,this.context,(0,he.last)(a.tokens))}}if(a.inputFlag.flag.env&&process.env[a.inputFlag.flag.env]){let m=process.env[a.inputFlag.flag.env];if(a.inputFlag.flag.type==="option"&&m)return{...a,valueFunction:async h=>e(rn(h.inputFlag.flag,m),h.inputFlag.flag,this.context)};if(a.inputFlag.flag.type==="boolean")return{...a,valueFunction:async h=>(0,he.isTruthy)(process.env[h.inputFlag.flag.env]??"false")}}return typeof a.inputFlag.flag.default!==void 0?{...a,metadata:{setFromDefault:!0},valueFunction:typeof a.inputFlag.flag.default=="function"?(m,h={})=>a.inputFlag.flag.default({flags:h,options:m.inputFlag.flag}):async()=>a.inputFlag.flag.default}:a},i=a=>a.inputFlag.flag.type==="option"&&a.inputFlag.flag.defaultHelp?{...a,helpFunction:typeof a.inputFlag.flag.defaultHelp=="function"?(d,m,...h)=>d.inputFlag.flag.defaultHelp({flags:m,options:d.inputFlag},...h):d=>d.inputFlag.flag.defaultHelp}:a,s=async a=>{let d=r(u.filter(m=>!m.metadata?.setFromDefault));return Promise.all(a.map(async m=>{try{if(m.helpFunction)return{...m,metadata:{...m.metadata,defaultHelp:await m.helpFunction?.(m,d,this.context)}}}catch{}return m}))},r=a=>Object.fromEntries(a.filter(d=>d.value!==void 0).map(d=>[d.inputFlag.name,d.value])),o=this.mapAndValidateFlags(),c=await Promise.all(Object.entries(this.input.flags).filter(([a,d])=>d.type==="boolean"||d.env||d.default!==void 0||"defaultHelp"in d||o.has(a)).map(([a,d])=>({inputFlag:{flag:d,name:a},tokens:o.get(a)})).map(a=>n(a)).filter(a=>a.valueFunction!==void 0).map(a=>i(a)).map(async a=>a.metadata?.setFromDefault?a:{...a,value:await a.valueFunction?.(a)})),l=r(c.filter(a=>!a.metadata?.setFromDefault)),u=await Promise.all(c.map(async a=>a.metadata?.setFromDefault?{...a,value:await a.valueFunction?.(a,l)}:a)),p=u.some(a=>typeof a.helpFunction=="function")?await s(u):u;return{flags:r(p),metadata:{flags:Object.fromEntries(p.filter(a=>a.metadata).map(a=>[a.inputFlag.name,a.metadata]))}}}_setNames(){for(let e of Object.keys(this.input.flags))this.input.flags[e].name=e;for(let e of Object.keys(this.input.args))this.input.args[e].name=e}findFlag(e){let n=e.startsWith("--"),i=n?!1:e.startsWith("-"),s=n?this.findLongFlag(e):i?this.findShortFlag(e):void 0;return{isLong:n,name:s}}findLongFlag(e){let n=e.slice(2);if(this.input.flags[n])return n;if(this.flagAliases[n])return this.flagAliases[n].name;if(e.startsWith(on)){let i=this.booleanFlags[e.slice(on.length)];if(i&&i.allowNo)return i.name;let s=this.flagAliases[e.slice(on.length)];if(s&&s.type==="boolean"&&s.allowNo)return s.name}}findShortFlag([e,n]){return this.flagAliases[n]?this.flagAliases[n].name:Object.keys(this.input.flags).find(i=>this.input.flags[i].char===n&&n!==void 0&&this.input.flags[i].char!==void 0)}mapAndValidateFlags(){let e=new Map;for(let n of this.raw.filter(i=>i.type==="flag")){if(!(n.flag in this.input.flags))throw new Ce.CLIError(`Unexpected flag ${n.flag}`);let i=e.get(n.flag)??[];e.set(n.flag,[...i,n])}return e}};ne.Parser=Si});var Ii=y(Mi=>{"use strict";f();Object.defineProperty(Mi,"__esModule",{value:!0});Mi.validate=Td;var Hr=$(),jt=Ai();async function Td(t){let e;function n(){if(t.output.nonExistentFlags?.length>0)throw new jt.NonExistentFlagsError({flags:t.output.nonExistentFlags,parse:t});let h=Object.keys(t.input.args).length;if(t.input.strict&&t.output.argv.length>h){let _=t.output.argv.slice(h);throw new jt.UnexpectedArgsError({args:_,parse:t})}let g=[],b=!1;for(let[_,O]of Object.entries(t.input.args)){if(!O.required)b=!0;else if(b)throw new jt.InvalidArgsSpecError({args:t.input.args,parse:t});O.required&&t.output.args[_]===void 0&&g.push(O)}if(g.length>0){let _=Object.entries(t.input.flags).filter(([O,j])=>j.type==="option"&&!!j.multiple).map(([O])=>O);throw new jt.RequiredArgsError({args:g,flagsWithMultiple:_,parse:t})}}async function i(){let h=Object.entries(t.input.flags).flatMap(([_,O])=>t.output.flags[_]!==void 0?[...O.relationships?m(_,O):[],...O.dependsOn?[a(_,O.dependsOn)]:[],...O.exclusive?[l(_,O.exclusive)]:[],...O.combinable?[u(_,O.combinable)]:[],...O.exactlyOne?[p(_,O.exactlyOne)]:[]]:O.required?[{name:_,reason:`Missing required flag ${_}`,status:"failed",validationFn:"required"}]:O.exactlyOne&&O.exactlyOne.length>0?[o(O)]:O.atLeastOne&&O.atLeastOne.length>0?[c(O)]:[]),b=(await Promise.all(h)).filter(_=>_.status==="failed");if(b.length>0)throw new jt.FailedFlagValidationError({failed:b,parse:t})}async function s(h){if(e)return e;let g=h.map(async _=>typeof _=="string"?[_,t.output.flags[_]]:await _.when(t.output.flags)?[_.name,t.output.flags[_.name]]:null),b=await Promise.all(g);return e=Object.fromEntries(b.filter(_=>_!==null)),e}let r=h=>Object.keys(h).filter(g=>g!==void 0);function o(h){let g={name:h.name,validationFn:"validateExactlyOneAcrossFlags"};if(Object.entries(t.input.flags).map(_=>_[0]).filter(_=>t.output.flags[_]!==void 0).filter(_=>h.exactlyOne&&h.exactlyOne.includes(_)).length===0){let O=`Exactly one of the following must be provided: ${(0,Hr.uniq)(h.exactlyOne?.map(j=>`--${j}`)??[]).join(", ")}`;return{...g,reason:O,status:"failed"}}return{...g,status:"success"}}function c(h){let g={name:h.name,validationFn:"validateAtLeastOneAcrossFlags"};if(Object.entries(t.input.flags).map(_=>_[0]).filter(_=>t.output.flags[_]!==void 0).filter(_=>h.atLeastOne&&h.atLeastOne.includes(_)).length===0){let O=`At least one of the following must be provided: ${(0,Hr.uniq)(h.atLeastOne?.map(j=>`--${j}`)??[]).join(", ")}`;return{...g,reason:O,status:"failed"}}return{...g,status:"success"}}async function l(h,g){let b={name:h,validationFn:"validateExclusive"},_=await s(g),O=r(_);for(let j of O)if(!(t.output.metadata.flags&&t.output.metadata.flags[j]?.setFromDefault)&&!(t.output.metadata.flags&&t.output.metadata.flags[h]?.setFromDefault)&&t.output.flags[j]!==void 0){let H=t.output.metadata.flags?.[j]?.defaultHelp??t.output.flags[j];return{...b,reason:`--${j}=${H} cannot also be provided when using --${h}`,status:"failed"}}return{...b,status:"success"}}async function u(h,g){let b={name:h,validationFn:"validateCombinable"},_=new Set(g.map(j=>typeof j=="string"?j:j.name)),O=await s(g);for(let j of Object.keys(t.output.flags))if(!(t.output.metadata.flags&&t.output.metadata.flags[j]?.setFromDefault)&&!(t.output.metadata.flags&&t.output.metadata.flags[h]?.setFromDefault)&&j!==h&&t.output.flags[j]!==void 0&&!_.has(j)){let H=Object.keys(O).map(V=>`--${V}`).join(", ");return{...b,reason:`Only the following can be provided when using --${h}: ${H}`,status:"failed"}}return{...b,status:"success"}}async function p(h,g){let b={name:h,validationFn:"validateExactlyOne"},_=await s(g),O=r(_);for(let j of O)if(j!==h&&t.output.flags[j]!==void 0)return{...b,reason:`--${j} cannot also be provided when using --${h}`,status:"failed"};return{...b,status:"success"}}async function a(h,g){let b={name:h,validationFn:"validateDependsOn"},_=await s(g);if(!Object.values(_).every(j=>j!==void 0)){let j=Object.keys(_).map(H=>`--${H}`).join(", ");return{...b,reason:`All of the following must be provided when using --${h}: ${j}`,status:"failed"}}return{...b,status:"success"}}async function d(h,g){let b={name:h,validationFn:"validateSome"},_=await s(g);if(!Object.values(_).some(Boolean)){let j=Object.keys(_).map(H=>`--${H}`).join(", ");return{...b,reason:`One of the following must be provided when using --${h}: ${j}`,status:"failed"}}return{...b,status:"success"}}function m(h,g){return(g.relationships??[]).map(b=>{switch(b.type){case"all":return a(h,b.flags);case"none":return l(h,b.flags);case"only":return u(h,b.flags);case"some":return d(h,b.flags);default:throw new Error(`Unknown relationship type: ${b.type}`)}})}return n(),i()}});var Wr=y(an=>{"use strict";f();Object.defineProperty(an,"__esModule",{value:!0});an.flagUsage=Br;an.flagUsages=Nd;var Ld=$(),Rd=ve();function Br(t,e={}){let n=[];t.helpLabel?n.push(t.helpLabel):(t.char&&n.push(`-${t.char}`),t.name&&n.push(` --${t.name}`));let i=t.type==="option"?` ${t.name.toUpperCase()}`:"",s=t.summary||t.description||"";return e.displayRequired&&t.required&&(s=`(required) ${s}`),s=s?(0,Rd.colorize)("dim",s):void 0,[` ${n.join(",").trim()}${i}`,s]}function Nd(t,e={}){return t.length===0?[]:(0,Ld.sortBy)(t,n=>[n.char?-1:1,n.char,n.name]).map(n=>Br(n,e))}});var ki=y(Ee=>{"use strict";f();Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validate=Ee.flagUsages=void 0;Ee.parse=Ud;var Hd=Nr(),Bd=Ii(),Wd=Wr();Object.defineProperty(Ee,"flagUsages",{enumerable:!0,get:function(){return Wd.flagUsages}});var zd=Ii();Object.defineProperty(Ee,"validate",{enumerable:!0,get:function(){return zd.validate}});async function Ud(t,e){let n={"--":e["--"],args:e.args??{},argv:t,context:e.context,flags:e.flags??{},strict:e.strict!==!1},s=await new Hd.Parser(n).parse();return await(0,Bd.validate)({input:n,output:s}),s}});var Jr=y(U=>{"use strict";f();var Vd=U&&U.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(e,n);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,s)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Gd=U&&U.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kr=U&&U.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&Vd(n,e,i[s]);return Gd(n,e),n}})(),Kd=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(U,"__esModule",{value:!0});U.Command=void 0;var Jd=v("node:url"),zr=v("node:util"),Ri=Kd(G()),Yd=sn(),Ti=Kr(oe()),Pt=Ne(),Xd=k(),Zd=Kr(ki()),Ur=ai(),Li=be(),Vr=$(),$e=ve(),Gr=Ri.default.getInstance().get("@oclif/core");process.stdout.on("error",t=>{if(!(t&&t.code==="EPIPE"))throw t});var Ni=class{argv;config;static _base=`${Gr.name}@${Gr.version}`;static aliases=[];static args={};static baseFlags;static deprecateAliases;static deprecationOptions;static description;static enableJsonFlag=!1;static examples;static flags;static hasDynamicHelp=!1;static help;static hidden;static hiddenAliases=[];static id;static plugin;static pluginAlias;static pluginName;static pluginType;static state;static strict=!0;static summary;static usage;debug;id;parsed=!1;constructor(e,n){this.argv=e,this.config=n,this.id=this.ctor.id;try{this.debug=(0,Xd.makeDebug)(this.id?`${this.config.bin}:${this.id}`:this.config.bin)}catch{this.debug=()=>{}}}static async run(e,n){e||(e=process.argv.slice(2)),typeof n=="string"&&n.startsWith("file://")&&(n=(0,Jd.fileURLToPath)(n));let i=await Yd.Config.load(n||v.main?.filename||__dirname),s=Ri.default.getInstance();s.has("config")||s.set("config",i);let r=new this(e,i);if(!r.id){let o=r.constructor.name.toLowerCase();r.id=o,r.ctor.id=o}return r._run()}get ctor(){return this.constructor}async _run(){let e,n;try{this.removeEnvVar("REDIRECTED"),await this.init(),n=await this.run()}catch(i){e=i,await this.catch(i)}finally{await this.finally(e)}return n&&this.jsonEnabled()&&this.logJson(this.toSuccessJson(n)),!this.parsed&&!(0,Vr.isProd)()&&process.emitWarning(`Command ${this.id} did not parse its arguments. Did you forget to call 'this.parse'?`,{code:"UnparsedCommand"}),n}async catch(e){if(process.exitCode=process.exitCode??e.exitCode??1,this.jsonEnabled())this.logJson(this.toErrorJson(e));else{if(!e.message)throw e;try{$e.ux.action.stop($e.ux.colorize("bold",$e.ux.colorize("red","!")))}catch{}throw e}}error(e,n={}){return Ti.error(e,n)}exit(e=0){Ti.exit(e)}async finally(e){}async init(){this.debug("init version: %s argv: %o",this.ctor._base,this.argv);let e=globalThis;e["http-call"]=e["http-call"]||{},e["http-call"].userAgent=this.config.userAgent,this.warnIfCommandDeprecated()}jsonEnabled(){if(!this.ctor?.enableJsonFlag)return!1;if(this.config.scopedEnvVar?.("CONTENT_TYPE")?.toLowerCase()==="json")return!0;let e=this.argv.indexOf("--"),n=this.argv.indexOf("--json");return e===-1?n!==-1:n!==-1&&n<e}log(e="",...n){this.jsonEnabled()||(e=typeof e=="string"?e:(0,zr.inspect)(e),$e.ux.stdout(e,...n))}logJson(e){$e.ux.stdout($e.ux.colorizeJson(e,{pretty:!0,theme:this.config.theme?.json}))}logToStderr(e="",...n){this.jsonEnabled()||(e=typeof e=="string"?e:(0,zr.inspect)(e),$e.ux.stderr(e,...n))}async parse(e,n=this.argv){e||(e=this.ctor);let i={context:this,...e,flags:(0,Ur.aggregateFlags)(e.flags,e.baseFlags,e.enableJsonFlag)},s=await this.config.runHook("preparse",{argv:[...n],options:i}),r=s.successes?.length?s.successes.find(c=>c.plugin.root===Ri.default.getInstance().get("rootPlugin")?.root)?.result??n:n;this.argv=[...r];let o=await Zd.parse(r,i);return this.warnIfFlagDeprecated(o.flags??{}),this.parsed=!0,o}toErrorJson(e){return{error:e}}toSuccessJson(e){return e}warn(e){return this.jsonEnabled()||Ti.warn(e),e}warnIfCommandDeprecated(){let[e]=(0,Pt.normalizeArgv)(this.config);if(this.ctor.deprecateAliases&&this.ctor.aliases.includes(e)){let n=(0,Li.toConfiguredId)(this.ctor.id,this.config),i=(0,Li.toConfiguredId)(e,this.config);this.warn((0,Pt.formatCommandDeprecationWarning)(i,{to:n}))}if(this.ctor.state==="deprecated"){let n=(0,Li.toConfiguredId)(this.ctor.id,this.config);this.warn((0,Pt.formatCommandDeprecationWarning)(n,this.ctor.deprecationOptions))}}warnIfFlagDeprecated(e){let n=(0,Ur.aggregateFlags)(this.ctor.flags,this.ctor.baseFlags,this.ctor.enableJsonFlag);for(let i of Object.keys(e)){let s=n[i],r=s?.deprecated;if(r&&this.warn((0,Pt.formatFlagDeprecationWarning)(i,r)),s?.deprecateAliases){let c=(0,Vr.uniq)([...s?.aliases??[],...s?.charAliases??[]]).map(u=>u.length===1?`-${u}`:`--${u}`);if(c.length===0)return;let l=c.filter(u=>this.argv.includes(u));for(let u of l){let p=`--${s?.name}`;s?.char&&(p+=` | -${s?.char}`),this.warn((0,Pt.formatFlagDeprecationWarning)(u,{to:p}))}}}}removeEnvVar(e){let n=[];try{n.push(...this.config.scopedEnvVarKeys(e))}catch{n.push(this.config.scopedEnvVarKey(e))}n.map(i=>delete process.env[i])}};U.Command=Ni});var Bi=y(Hi=>{"use strict";f();Object.defineProperty(Hi,"__esModule",{value:!0});Hi.flush=nf;var Qd=Ie();function ef(t,e){function n(i,s=!1){return new Promise(r=>{let o=setTimeout(()=>r(null),i);s&&o.unref()})}return Promise.race([t,n(e,!0).then(()=>(0,Qd.error)("timed out"))])}async function tf(){let t=new Promise(n=>{process.stdout.once("drain",()=>n(null))});if(!process.stdout.write(""))return t}async function nf(t=1e4){await ef(tf(),t)}});var zi=y(Y=>{"use strict";f();var sf=Y&&Y.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Y,"__esModule",{value:!0});Y.versionAddition=Y.helpAddition=void 0;Y.run=df;var Yr=v("node:url"),rf=sf(G()),of=sn(),Wi=pt(),Xr=k(),Qe=Ue(),af=Lt(),cf=ve(),lf=(t,e)=>{if(t.length===0&&!e.isSingleCommandCLI)return!0;let n=(0,Wi.getHelpFlagAdditions)(e);for(let i of t){if(n.includes(i))return!0;if(i==="--")return!1}return!1};Y.helpAddition=lf;var uf=(t,e)=>{let n=e?.pjson.oclif.additionalVersionFlags??[];return!![...new Set(["--version",...n]).values()].includes(t[0])};Y.versionAddition=uf;async function df(t,e){let n=Qe.Performance.mark(Qe.OCLIF_MARKER_OWNER,"main.run"),i=Qe.Performance.mark(Qe.OCLIF_MARKER_OWNER,"main.run#init"),s=async d=>{let m=await(0,Wi.loadHelpClass)(o);await new m(o,o.pjson.oclif.helpOptions??o.pjson.helpOptions).showHelp(d)};(0,Xr.setLogger)(e);let{debug:r}=(0,Xr.getLogger)("main");r(`process.execPath: ${process.execPath}`),r(`process.execArgv: ${process.execArgv}`),r("process.argv: %O",process.argv),t=t??process.argv.slice(2),e&&(typeof e=="string"&&e.startsWith("file://")||e instanceof Yr.URL)&&(e=(0,Yr.fileURLToPath)(e));let o=await of.Config.load(e??v.main?.filename??__dirname);rf.default.getInstance().set("config",o),o.isSingleCommandCLI&&(t=[af.SINGLE_COMMAND_CLI_SYMBOL,...t]);let[c,...l]=(0,Wi.normalizeArgv)(o,t),u=async(d,m)=>{n?.stop(),i?.stopped||i?.stop(),await Qe.Performance.collect(),Qe.Performance.debug(),await o.runHook("finally",{argv:l,Command:d,error:m,id:c})};if(await o.runHook("init",{argv:l,id:c}),(0,Y.versionAddition)(t,o)){cf.ux.stdout(o.userAgent),await u();return}if((0,Y.helpAddition)(t,o)){await s(t),await u();return}let p=o.findCommand(c);if(!p&&(o.flexibleTaxonomy?null:o.findTopic(c))){await s([c]),await u();return}i?.stop();let a;try{return await o.runCommand(c,l,p)}catch(d){throw a=d,d}finally{await u(p,a)}}});var Zr=y(Ui=>{"use strict";f();Object.defineProperty(Ui,"__esModule",{value:!0});Ui.execute=_f;var ff=oe(),pf=Kt(),hf=Bi(),mf=zi(),gf=re();async function _f(t){if(!t.dir&&!t.loadOptions)throw new ff.CLIError("dir or loadOptions is required.");return t.development&&(process.env.NODE_ENV="development",gf.settings.debug=!0),(0,mf.run)(t.args??process.argv.slice(2),t.loadOptions??t.dir).then(async e=>((0,hf.flush)(),e)).catch(async e=>(0,pf.handle)(e))}});var eo=y(Qr=>{"use strict";f();Object.defineProperty(Qr,"__esModule",{value:!0})});var Af=y(w=>{f();var yf=w&&w.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(e,n);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,s)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),bf=w&&w.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),et=w&&w.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&yf(n,e,i[s]);return bf(n,e),n}})();Object.defineProperty(w,"__esModule",{value:!0});w.ux=w.toStandardizedId=w.toConfiguredId=w.settings=w.Performance=w.Parser=w.ModuleLoader=w.getLogger=w.Interfaces=w.loadHelpClass=w.HelpBase=w.Help=w.CommandHelp=w.flush=w.Flags=w.execute=w.handle=w.Errors=w.Plugin=w.Config=w.Command=w.Args=void 0;var vf=$();function wf(){try{process.cwd()}catch(t){t.code==="ENOENT"&&process.stderr.write(`WARNING: current directory does not exist
83
- `)}}function Of(){if(!(process.env.OCLIF_DISABLE_ENGINE_WARNING&&(0,vf.isTruthy)(process.env.OCLIF_DISABLE_ENGINE_WARNING)))try{let t=v("node:path"),e=io(),n=t.join(__dirname,".."),i=v(t.join(n,"package.json"));e.satisfies(process.versions.node,i.engines.node)||process.emitWarning(`Node version must be ${i.engines.node} to use this CLI. Current node version: ${process.versions.node}`)}catch{}}wf();Of();w.Args=et(Xi());var jf=Jr();Object.defineProperty(w,"Command",{enumerable:!0,get:function(){return jf.Command}});var to=sn();Object.defineProperty(w,"Config",{enumerable:!0,get:function(){return to.Config}});Object.defineProperty(w,"Plugin",{enumerable:!0,get:function(){return to.Plugin}});w.Errors=et(oe());var Pf=Kt();Object.defineProperty(w,"handle",{enumerable:!0,get:function(){return Pf.handle}});var Cf=Zr();Object.defineProperty(w,"execute",{enumerable:!0,get:function(){return Cf.execute}});w.Flags=et(ri());var Ef=Bi();Object.defineProperty(w,"flush",{enumerable:!0,get:function(){return Ef.flush}});var cn=pt();Object.defineProperty(w,"CommandHelp",{enumerable:!0,get:function(){return cn.CommandHelp}});Object.defineProperty(w,"Help",{enumerable:!0,get:function(){return cn.Help}});Object.defineProperty(w,"HelpBase",{enumerable:!0,get:function(){return cn.HelpBase}});Object.defineProperty(w,"loadHelpClass",{enumerable:!0,get:function(){return cn.loadHelpClass}});w.Interfaces=et(eo());var $f=k();Object.defineProperty(w,"getLogger",{enumerable:!0,get:function(){return $f.getLogger}});var qf=zi();Object.defineProperty(w,"run",{enumerable:!0,get:function(){return qf.run}});w.ModuleLoader=et(st());w.Parser=et(ki());var Df=Ue();Object.defineProperty(w,"Performance",{enumerable:!0,get:function(){return Df.Performance}});var xf=re();Object.defineProperty(w,"settings",{enumerable:!0,get:function(){return xf.settings}});var no=be();Object.defineProperty(w,"toConfiguredId",{enumerable:!0,get:function(){return no.toConfiguredId}});Object.defineProperty(w,"toStandardizedId",{enumerable:!0,get:function(){return no.toStandardizedId}});var Ff=ve();Object.defineProperty(w,"ux",{enumerable:!0,get:function(){return Ff.ux}})});export{Af as a};
83
+ `)}}function Of(){if(!(process.env.OCLIF_DISABLE_ENGINE_WARNING&&(0,vf.isTruthy)(process.env.OCLIF_DISABLE_ENGINE_WARNING)))try{let t=v("node:path"),e=io(),n=t.join(__dirname,".."),i=v(t.join(n,"package.json"));e.satisfies(process.versions.node,i.engines.node)||process.emitWarning(`Node version must be ${i.engines.node} to use this CLI. Current node version: ${process.versions.node}`)}catch{}}wf();Of();w.Args=et(Xi());var jf=Jr();Object.defineProperty(w,"Command",{enumerable:!0,get:function(){return jf.Command}});var to=sn();Object.defineProperty(w,"Config",{enumerable:!0,get:function(){return to.Config}});Object.defineProperty(w,"Plugin",{enumerable:!0,get:function(){return to.Plugin}});w.Errors=et(oe());var Pf=Kt();Object.defineProperty(w,"handle",{enumerable:!0,get:function(){return Pf.handle}});var Cf=Zr();Object.defineProperty(w,"execute",{enumerable:!0,get:function(){return Cf.execute}});w.Flags=et(ri());var Ef=Bi();Object.defineProperty(w,"flush",{enumerable:!0,get:function(){return Ef.flush}});var cn=pt();Object.defineProperty(w,"CommandHelp",{enumerable:!0,get:function(){return cn.CommandHelp}});Object.defineProperty(w,"Help",{enumerable:!0,get:function(){return cn.Help}});Object.defineProperty(w,"HelpBase",{enumerable:!0,get:function(){return cn.HelpBase}});Object.defineProperty(w,"loadHelpClass",{enumerable:!0,get:function(){return cn.loadHelpClass}});w.Interfaces=et(eo());var $f=k();Object.defineProperty(w,"getLogger",{enumerable:!0,get:function(){return $f.getLogger}});var qf=zi();Object.defineProperty(w,"run",{enumerable:!0,get:function(){return qf.run}});w.ModuleLoader=et(st());w.Parser=et(ki());var Df=Ue();Object.defineProperty(w,"Performance",{enumerable:!0,get:function(){return Df.Performance}});var xf=re();Object.defineProperty(w,"settings",{enumerable:!0,get:function(){return xf.settings}});var no=be();Object.defineProperty(w,"toConfiguredId",{enumerable:!0,get:function(){return no.toConfiguredId}});Object.defineProperty(w,"toStandardizedId",{enumerable:!0,get:function(){return no.toStandardizedId}});var Ff=ve();Object.defineProperty(w,"ux",{enumerable:!0,get:function(){return Ff.ux}})});export{pt as a,Af as b};
@@ -1,3 +1,3 @@
1
- import{a as j}from"./chunk-FXBQKJTS.js";import{c as O,i as k,o as x}from"./chunk-HS3VTFW3.js";import{a as E}from"./chunk-XRWQ7AXY.js";import{e as R}from"./chunk-K3OI5VDE.js";import{p as v,v as A}from"./chunk-GBYDMHZ3.js";import{b as F,c as L}from"./chunk-2IZROVCY.js";import{N as y}from"./chunk-PSSOCUUD.js";import{h as T}from"./chunk-W3BNL2Q5.js";import{a as D}from"./chunk-CTNBSUVU.js";import{$a as $,Ab as n,la as w,ua as P,wb as S}from"./chunk-G5QSVBYP.js";import{d as l,i as u}from"./chunk-773TIA5M.js";import{e as q,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();import{fileURLToPath as U}from"node:url";async function _(...r){let e=await $("package.json",{cwd:U(import.meta.url),type:"file"});if(!e)throw new Error("Failed to find CLI root path");return e.endsWith("/packages/theme/package.json")?l(u(e),"assets",...r):l(u(e),"dist","assets",...r)}async function b(r,e,i,t,a,m){let c=await O(r)?await j(m,r.storeFqdn):void 0;if(a)throw new T("Unable to use Admin API or Theme Access tokens with the profile command","You must authenticate manually by not passing the --password flag.");let f=await x(e,r,a,c),o=await k(f,{method:"GET",path:i,query:[],themeId:e,headers:{Accept:"application/vnd.speedscope+json"}});if(o.status!==200){let h=await o.text();throw new Error(`Bad response: ${o.status}: ${h}`)}let s=await o.text();t?S(s):await I(s)}async function I(r){let e=process.env.WSL_DISTRO_NAME,i=e?`//wsl$/${e}`:"",t=await _("speedscope","index.html");n(`[Theme Profile] Resolved URL to open: ${t}`);let a="liquid-profile",m=Buffer.from(r).toString("base64"),c=`speedscope.loadFileFromBase64(${JSON.stringify(a)}, ${JSON.stringify(m)})`,f=`speedscope-${Number(new Date)}-${process.pid}`,o=l(w(),`${f}.js`);n(`[Theme Profile] writing JS file to: ${o}`),await P(o,c),n(`[Theme Profile] JS file created successfully: ${o}`),t=`${i}${t}`,o=`${i}${o}`,t+=`#localProfilePath=${o}`;let s=l(w(),`${f}.html`);n(`[Theme Profile] writing HTML file to: ${s}`),await P(s,`<script>window.location=${JSON.stringify(t)}</script>`),n(`[Theme Profile] HTML file created successfully: ${s}`),s=`${i}${s}`,t=`file://${s}`,n(`[Theme Profile] Opening URL: ${t}`);let h=await y(t);n(`[Theme Profile] URL opened successfully: ${h}`)}var d=q(D(),1);var g=class extends A{static summary="Profile the Liquid rendering of a theme page.";static usage=["theme profile","theme profile --url /products/classic-leather-jacket"];static descriptionWithMarkdown=`Profile the Shopify Liquid on a given page.
1
+ import{a as j}from"./chunk-5UDBNXNH.js";import{c as O,i as x,o as R}from"./chunk-3UZYLXCB.js";import{e as k}from"./chunk-NZRQKFUB.js";import{a as E}from"./chunk-P6ID3ULA.js";import{p as v,v as A}from"./chunk-2AZXDU2R.js";import{b as F,c as L}from"./chunk-2KBTFKSM.js";import{N as y}from"./chunk-KCHERKZO.js";import{i as T}from"./chunk-XUJURYN5.js";import{Ib as S,Nb as n,db as $,pa as w,ya as P}from"./chunk-COFGQT76.js";import{b as D}from"./chunk-JA2QZ635.js";import{d as l,i as u}from"./chunk-3VYOLEQE.js";import{e as q,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();import{fileURLToPath as U}from"node:url";async function _(...r){let e=await $("package.json",{cwd:U(import.meta.url),type:"file"});if(!e)throw new Error("Failed to find CLI root path");return e.endsWith("/packages/theme/package.json")?l(u(e),"assets",...r):l(u(e),"dist","assets",...r)}async function b(r,e,i,t,a,m){let c=await O(r)?await j(m,r.storeFqdn):void 0;if(a)throw new T("Unable to use Admin API or Theme Access tokens with the profile command","You must authenticate manually by not passing the --password flag.");let f=await R(e,r,a,c),o=await x(f,{method:"GET",path:i,query:[],themeId:e,headers:{Accept:"application/vnd.speedscope+json"}});if(o.status!==200){let h=await o.text();throw new Error(`Bad response: ${o.status}: ${h}`)}let s=await o.text();t?S(s):await H(s)}async function H(r){let e=process.env.WSL_DISTRO_NAME,i=e?`//wsl$/${e}`:"",t=await _("speedscope","index.html");n(`[Theme Profile] Resolved URL to open: ${t}`);let a="liquid-profile",m=Buffer.from(r).toString("base64"),c=`speedscope.loadFileFromBase64(${JSON.stringify(a)}, ${JSON.stringify(m)})`,f=`speedscope-${Number(new Date)}-${process.pid}`,o=l(w(),`${f}.js`);n(`[Theme Profile] writing JS file to: ${o}`),await P(o,c),n(`[Theme Profile] JS file created successfully: ${o}`),t=`${i}${t}`,o=`${i}${o}`,t+=`#localProfilePath=${o}`;let s=l(w(),`${f}.html`);n(`[Theme Profile] writing HTML file to: ${s}`),await P(s,`<script>window.location=${JSON.stringify(t)}</script>`),n(`[Theme Profile] HTML file created successfully: ${s}`),s=`${i}${s}`,t=`file://${s}`,n(`[Theme Profile] Opening URL: ${t}`);let h=await y(t);n(`[Theme Profile] URL opened successfully: ${h}`)}var d=q(D(),1);var g=class extends A{static summary="Profile the Liquid rendering of a theme page.";static usage=["theme profile","theme profile --url /products/classic-leather-jacket"];static descriptionWithMarkdown=`Profile the Shopify Liquid on a given page.
2
2
 
3
- This command will open a web page with the Speedscope profiler detailing the time spent executing Liquid on the given page.`;static description=this.descriptionWithoutMarkdown();static flags={...F,...v,theme:d.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"}),url:d.Flags.string({description:"The url to be used as context",env:"SHOPIFY_FLAG_URL",default:"/"}),"store-password":d.Flags.string({description:"The password for storefronts with password protection.",env:"SHOPIFY_FLAG_STORE_PASSWORD"}),...L};static multiEnvironmentsFlags=null;async command(e,i){let{password:t}=e,a;e.theme?a={filter:{theme:e.theme}}:a={filter:{live:!0}};let m=await E(i,a),c=[{title:`Generating Liquid profile for ${i.storeFqdn} ${e.url}`,task:async()=>{await b(i,m.id.toString(),e.url,e.json,t,e["store-password"])}}];await R(c)}};export{g as a};
3
+ This command will open a web page with the Speedscope profiler detailing the time spent executing Liquid on the given page.`;static description=this.descriptionForHelp();static flags={...F,...v,theme:d.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"}),url:d.Flags.string({description:"The url to be used as context",env:"SHOPIFY_FLAG_URL",default:"/"}),"store-password":d.Flags.string({description:"The password for storefronts with password protection.",env:"SHOPIFY_FLAG_STORE_PASSWORD"}),...L};static multiEnvironmentsFlags=null;async command(e,i){let{password:t}=e,a;e.theme?a={filter:{theme:e.theme}}:a={filter:{live:!0}};let m=await E(i,a),c=[{title:`Generating Liquid profile for ${i.storeFqdn} ${e.url}`,task:async()=>{await b(i,m.id.toString(),e.url,e.json,t,e["store-password"])}}];await k(c)}};export{g as a};
@@ -1,6 +1,6 @@
1
- import{a as J}from"./chunk-NAQ7KT6L.js";import{a as v}from"./chunk-YY6TFARF.js";import{a as E,b as C}from"./chunk-XRWQ7AXY.js";import{a as p}from"./chunk-K3OI5VDE.js";import{r as S}from"./chunk-TUWRPDTE.js";import{p as h,r as D,v as N}from"./chunk-GBYDMHZ3.js";import{b as q,c as F,f as O}from"./chunk-2IZROVCY.js";import{T as b}from"./chunk-KYNXMDFU.js";import{B as m,E as T,W as d,z as w}from"./chunk-PSSOCUUD.js";import{a as P}from"./chunk-CTNBSUVU.js";import{wb as n}from"./chunk-G5QSVBYP.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-JJ4MYCVU.js";import{a as p}from"./chunk-NZRQKFUB.js";import{a as v}from"./chunk-YY6TFARF.js";import{a as E,b as C}from"./chunk-P6ID3ULA.js";import{r as S}from"./chunk-NSHKVJST.js";import{p as h,r as D,v as N}from"./chunk-2AZXDU2R.js";import{b as q,c as F,f as O}from"./chunk-2KBTFKSM.js";import{K as b}from"./chunk-VWYZCCRE.js";import{B as m,E as T,W as d,z as w}from"./chunk-KCHERKZO.js";import{Ib as n}from"./chunk-COFGQT76.js";import{b as Y}from"./chunk-JA2QZ635.js";import{e as P,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?M(s,t,I):j(s,t,I)}function j(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
- 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.
3
+ Request ID: `,{subdued:e.requestId}]:[]]})}function M(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=P(Y(),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
 
5
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
6
 
@@ -29,4 +29,4 @@ Sample JSON output:
29
29
  "errors": ["Maximum number of themes reached"],
30
30
  "requestId": "12345-abcde-67890"
31
31
  }
32
- \`\`\``;static description=this.descriptionWithoutMarkdown();static flags={...q,...F,password:h.password,theme:O(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:h.store,environment:h.environment,force:f.Flags.boolean({char:"f",description:"Force the duplicate operation to run without prompts or confirmations. Required if non interactive outside CI.",env:"SHOPIFY_FLAG_FORCE"})};static nonTTYFlagRequirements(){return[{flags:["force"],when:()=>!d()}]}async run(){let{flags:o}=await this.parse(t),e=D(o),r=await b(e,o.password);await x(r,o.theme,o)}};export{g as a};
32
+ \`\`\``;static description=this.descriptionForHelp();static flags={...q,...F,password:h.password,theme:O(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:h.store,environment:h.environment,force:f.Flags.boolean({char:"f",description:"Force the duplicate operation to run without prompts or confirmations. Required if non interactive outside CI.",env:"SHOPIFY_FLAG_FORCE"})};static nonTTYFlagRequirements(){return[{flags:["force"],when:()=>!d()}]}async run(){let{flags:o}=await this.parse(t),e=D(o),r=await b(e,o.password);await x(r,o.theme,o)}};export{g as a};
@@ -1,2 +1,2 @@
1
- import{a as B,b as E}from"./chunk-WAZL37JY.js";import{b as y,c as A,l as C,n as F,o as S,t as x}from"./chunk-DKAWQBTI.js";import{a as D}from"./chunk-34PQ6LJC.js";import{a as w}from"./chunk-4JU7N2OF.js";import{b as O}from"./chunk-2IZROVCY.js";import{D as f}from"./chunk-KYNXMDFU.js";import{A as b,B as g,y as c,z as k}from"./chunk-PSSOCUUD.js";import{a as v}from"./chunk-CTNBSUVU.js";import{qb as h,sb as I}from"./chunk-G5QSVBYP.js";import{e as z,g as a}from"./chunk-VKWPEFWQ.js";a();a();async function T(i){let{organization:e,storeFqdn:o,operationId:t,remoteApp:u}=i;c({headline:"Canceling bulk operation.",body:[{list:{items:[`ID: ${t}`,...E({organization:e,remoteApp:u,storeFqdn:o})]}}]});let q=await B(u,o),s=await C({adminSession:q,operationId:t});if(s?.userErrors?.length){F(s.userErrors,"Failed to cancel bulk operation.");return}let n=s?.bulkOperation;if(n){let r=S(n),d=n.status==="CANCELING"?[`This may take a few moments. Check the status with:
1
+ import{a as B,b as E}from"./chunk-7H4IM6PX.js";import{b as y,c as A,l as C,n as F,o as S,t as x}from"./chunk-7WWPAHVE.js";import{a as D}from"./chunk-MINDMVTH.js";import{a as w}from"./chunk-RFDOSK57.js";import{b as O}from"./chunk-2KBTFKSM.js";import{u as f}from"./chunk-VWYZCCRE.js";import{A as b,B as g,y as c,z as k}from"./chunk-KCHERKZO.js";import{Cb as h,Eb as I}from"./chunk-COFGQT76.js";import{b as v}from"./chunk-JA2QZ635.js";import{e as z,g as a}from"./chunk-VKWPEFWQ.js";a();a();async function T(i){let{organization:e,storeFqdn:o,operationId:t,remoteApp:u}=i;c({headline:"Canceling bulk operation.",body:[{list:{items:[`ID: ${t}`,...E({organization:e,remoteApp:u,storeFqdn:o})]}}]});let q=await B(u,o),s=await C({adminSession:q,operationId:t});if(s?.userErrors?.length){F(s.userErrors,"Failed to cancel bulk operation.");return}let n=s?.bulkOperation;if(n){let r=S(n),d=n.status==="CANCELING"?[`This may take a few moments. Check the status with:
2
2
  `,{command:`shopify app bulk status --id=${A(n.id)}`}]:r.body,p={headline:r.headline,...d&&{body:d},...r.customSections&&{customSections:r.customSections}};switch(r.renderType){case"success":k(p);break;case"warning":b(p);break;case"info":c(p);break}}else g({headline:"Bulk operation not found or could not be canceled.",body:I`ID: ${h.yellow(t)}`.value})}var l=z(v(),1);var m=class i extends D{static summary="Cancel a bulk operation.";static description="Cancels a running bulk operation by ID.";static flags={...O,...w,id:l.Flags.string({description:"The bulk operation ID to cancel (numeric ID or full GID).",env:"SHOPIFY_FLAG_ID",required:!0}),store:l.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>f(e)})};async run(){let{flags:e}=await this.parse(i),{appContextResult:o,store:t}=await x(e);return await T({organization:o.organization,storeFqdn:t.shopDomain,operationId:y(e.id),remoteApp:o.remoteApp}),{app:o.app}}};export{m as a};
@@ -1 +1 @@
1
- import{b as n}from"./chunk-2IZROVCY.js";import{i as r}from"./chunk-B4OMIONW.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();function v(o){o.verbose&&(process.env[n.verbose.env]="true"),o.noColor&&(r.level=0,process.env.FORCE_COLOR="0")}export{v as a};
1
+ import{b as n}from"./chunk-2KBTFKSM.js";import{i as r}from"./chunk-B4OMIONW.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();function v(o){o.verbose&&(process.env[n.verbose.env]="true"),o.noColor&&(r.level=0,process.env.FORCE_COLOR="0")}export{v as a};
@@ -0,0 +1,5 @@
1
+ import{a as f}from"./chunk-MINDMVTH.js";import{a as m}from"./chunk-RFDOSK57.js";import{Ha as l,i as s,ja as d}from"./chunk-AKSOCKVF.js";import{b as u}from"./chunk-2KBTFKSM.js";import{Cb as n,Eb as a,Ib as c}from"./chunk-COFGQT76.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();i();async function g(e,t,o){return S(e,t,o,"text")}async function S(e,t,o,r){return await d(t,o.source),r==="json"?a`${n.json({SHOPIFY_API_KEY:t.apiKey,SHOPIFY_API_SECRET:t.apiSecretKeys[0]?.secret,SCOPES:s(e.configuration)})}`:a`
2
+ ${n.green("SHOPIFY_API_KEY")}=${t.apiKey}
3
+ ${n.green("SHOPIFY_API_SECRET")}=${t.apiSecretKeys[0]?.secret??""}
4
+ ${n.green("SCOPES")}=${s(e.configuration)}
5
+ `}var p=class e extends f{static summary="Display app and extensions environment variables.";static descriptionWithMarkdown="Displays environment variables that can be used to deploy apps and app extensions.";static description=this.descriptionForHelp();static flags={...u,...m};async run(){let{flags:t}=await this.parse(e),{app:o,remoteApp:r,organization:y}=await l({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});return c(await g(o,r,y)),{app:o}}};export{p as a};
@@ -0,0 +1 @@
1
+ import{a as v}from"./chunk-H3QLPW7Q.js";import{b as y,c as P,d as b}from"./chunk-IQ4VOPT7.js";import{a as F}from"./chunk-A6OSIGQI.js";import{a as m}from"./chunk-RFDOSK57.js";import{Ia as x}from"./chunk-AKSOCKVF.js";import{b as d,c as h}from"./chunk-2KBTFKSM.js";import{F as g,M as l}from"./chunk-KCHERKZO.js";import{Nb as n}from"./chunk-COFGQT76.js";import{b as _}from"./chunk-JA2QZ635.js";import{e as U,g as u}from"./chunk-VKWPEFWQ.js";u();var i=U(_(),1);var a="_start",s=class w extends F{static summary="Run a function locally for testing.";static descriptionWithMarkdown="Runs the function from your current directory for [testing purposes](https://shopify.dev/docs/apps/functions/testing-and-debugging). To learn how you can monitor and debug functions when errors occur, refer to [Shopify Functions error handling](https://shopify.dev/docs/api/functions/errors).";static description=this.descriptionForHelp();static flags={...d,...m,...y,...h,input:i.Flags.string({char:"i",description:"The input JSON to pass to the function. If omitted, standard input is used.",env:"SHOPIFY_FLAG_INPUT"}),export:i.Flags.string({char:"e",hidden:!1,description:"Name of the WebAssembly export to invoke.",env:"SHOPIFY_FLAG_EXPORT"}),profile:i.Flags.boolean({description:"Generate a WebAssembly performance profile for the function run. The profile can be viewed in Speedscope.",env:"SHOPIFY_FLAG_PROFILE"})};async run(){let{flags:t}=await this.parse(w),o=a,{app:p}=await x({directory:t.path,userProvidedConfigName:t.config}),e=await P(p,t.path);if(t.export!==void 0)n(`Using export ${t.export} from the --export flag.`),o=t.export;else if(e.configuration.targeting!==void 0&&e.configuration.targeting.length>0){let r=e.configuration.targeting;if(r.length>1&&l({})){let O=r.map(f=>({label:f.target,value:f.export||a}));o=await g({message:"Which target would you like to execute?",choices:O})}else o=r?.[0]?.export||a,n(`Using export '${o}'. Use the --export flag or an interactive terminal to select a different export.`)}else n(`No targeting information found. Using the default export '${o}'. Use the --export flag or an interactive terminal to select a different export.`);let c=e?.configuration.targeting?.[0]?.input_query,T=c&&`${e?.directory}/${c}`,A=await b(e,t.path,t["client-id"],t.reset,t.config);return await v({functionExtension:e,json:t.json,inputPath:t.input,export:o,stdin:"inherit",schemaPath:A,queryPath:T,profile:t.profile}),{app:p}}};export{s as a};
@@ -0,0 +1 @@
1
+ import{b as O,c as b,f as F}from"./chunk-2KBTFKSM.js";import{b as L}from"./chunk-CUZQRXTV.js";import{F as g,t as f,w as p,x as d,y as h,z as S}from"./chunk-VWYZCCRE.js";import{j as r}from"./chunk-QF6EH4HX.js";import{D as w,J as y}from"./chunk-KCHERKZO.js";import{a as m}from"./chunk-IUUKRTKF.js";import{Ib as A,Mb as I,b as n}from"./chunk-COFGQT76.js";import{b as j}from"./chunk-JA2QZ635.js";import{e as C,g as i}from"./chunk-VKWPEFWQ.js";i();i();var a=m({name:"AuthLoginResult",schema:n.object({status:n.literal("success"),alias:n.string()}).strict()});i();var c="NEW_LOGIN";function _(s,e){let t=[],o=s[e];if(o)for(let[l,x]of Object.entries(o))t.push({label:x.identity.alias??l,value:l});return t}async function q(){let s=await g({},{forceNewSession:!0}),e=await d(s.userId);if(!e){let t=await y({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await h(s.userId,t),t}return e}async function E(){let s=await p(),e=await f(),t=[];return s&&t.push(..._(s,e)),t.length>0&&t.push({label:"Log in with a different account",value:c}),t}async function N(s){if(s){let o=await S(s);if(o)return r(o),s}let e=await E(),t=c;return e.length>0&&(t=await w({message:"Which account would you like to use?",choices:e})),t===c?q():(r(t),e.find(o=>o.value===t)?.label??t)}var v=C(j(),1);var u=class s extends L{static descriptionWithMarkdown="Logs you in to your Shopify account.";static description=this.descriptionForHelp();static flags={...O,...b,alias:F(v.Flags.string({description:"Alias of an existing session you want to use.",env:"SHOPIFY_FLAG_AUTH_ALIAS"}))};static get jsonOutputSchema(){return a}async run(){let{flags:e}=await this.parse(s),t=await N(e.alias);e.json?A(a.encode({status:"success",alias:t})):I(`Current account: ${t}.`)}};export{u as a};
@@ -1,4 +1,4 @@
1
- import{b as l}from"./chunk-2IZROVCY.js";import{b as u}from"./chunk-UBTHWHPB.js";import{s as f}from"./chunk-KYNXMDFU.js";import{h as n}from"./chunk-W3BNL2Q5.js";import{a as g}from"./chunk-CTNBSUVU.js";import{wb as m}from"./chunk-G5QSVBYP.js";import{e as v,g as o}from"./chunk-VKWPEFWQ.js";o();o();var S="https://shopify.dev/assistant/search",w="X-Shopify-Surface",A="cli";async function y(s,e,p){let i=new URLSearchParams({query:s});e&&i.append("api_name",e),p&&i.append("api_version",p);let r;try{r=await f(`${S}?${i.toString()}`,{headers:{Accept:"application/json",[w]:A}})}catch{throw new n("Could not reach shopify.dev to run the search.","Check your network connection and try again.")}let h=await r.text();if(!r.ok){let d=`${r.status} ${r.statusText}`;try{let t=JSON.parse(h);t?.error&&(d=t.error)}catch(t){if(!(t instanceof SyntaxError))throw t}throw new n(`Search failed: ${d}`)}m(h)}var a=v(g(),1),c=class s extends u{static description="Query the shopify.dev vector store and print the most relevant documentation chunks as JSON. Best for programmatic discovery \u2014 surfacing the relevant pieces of documentation for a topic, rather than retrieving a whole document. To download a full document verbatim, use `doc fetch`.";static examples=[`# search shopify.dev for a topic
1
+ import{b as l}from"./chunk-2KBTFKSM.js";import{b as u}from"./chunk-CUZQRXTV.js";import{k as f}from"./chunk-VWYZCCRE.js";import{i as n}from"./chunk-XUJURYN5.js";import{Ib as m}from"./chunk-COFGQT76.js";import{b as g}from"./chunk-JA2QZ635.js";import{e as v,g as o}from"./chunk-VKWPEFWQ.js";o();o();var S="https://shopify.dev/assistant/search",w="X-Shopify-Surface",A="cli";async function y(s,e,p){let i=new URLSearchParams({query:s});e&&i.append("api_name",e),p&&i.append("api_version",p);let r;try{r=await f(`${S}?${i.toString()}`,{headers:{Accept:"application/json",[w]:A}})}catch{throw new n("Could not reach shopify.dev to run the search.","Check your network connection and try again.")}let h=await r.text();if(!r.ok){let d=`${r.status} ${r.statusText}`;try{let t=JSON.parse(h);t?.error&&(d=t.error)}catch(t){if(!(t instanceof SyntaxError))throw t}throw new n(`Search failed: ${d}`)}m(h)}var a=v(g(),1),c=class s extends u{static description="Query the shopify.dev vector store and print the most relevant documentation chunks as JSON. Best for programmatic discovery \u2014 surfacing the relevant pieces of documentation for a topic, rather than retrieving a whole document. To download a full document verbatim, use `doc fetch`.";static examples=[`# search shopify.dev for a topic
2
2
  shopify doc search --query "subscribe to webhooks"
3
3
 
4
4
  # narrow the search to a specific API and version