@shopify/cli 4.5.1 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-6S5JVSRO.js +1 -0
- package/dist/analytics-E252SR3P.js +1 -0
- package/dist/assets/hydrogen/starter/package.json +1 -1
- package/dist/bootstrap.js +1 -1
- package/dist/{chokidar-VDIVGBZH.js → chokidar-5RWEYTNQ.js} +1 -1
- package/dist/{chunk-XU6CCL4P.js → chunk-2I62GKIH.js} +80 -80
- package/dist/{chunk-PGN5EZTI.js → chunk-2JFZ6GZC.js} +2 -2
- package/dist/{chunk-UQWFDL3F.js → chunk-2KD4LHRT.js} +1 -1
- package/dist/chunk-2MCH43SL.js +11 -0
- package/dist/{chunk-BEXQB4RT.js → chunk-2SNT7U7B.js} +1 -1
- package/dist/{chunk-U2LQBJJL.js → chunk-2VIUGNYO.js} +1 -1
- package/dist/chunk-2Y6CYLKF.js +1 -0
- package/dist/{chunk-KHXDP3SF.js → chunk-3EHRA4LA.js} +1 -1
- package/dist/{chunk-GQG6WELZ.js → chunk-3EPQ6UOK.js} +6 -6
- package/dist/{chunk-ZHPXJRHR.js → chunk-3NO6PWNL.js} +1 -1
- package/dist/chunk-3TFUSDHY.js +370 -0
- package/dist/{chunk-SFMXFH33.js → chunk-46NA23I7.js} +1 -1
- package/dist/{chunk-C5U4NLNU.js → chunk-47URTBZF.js} +1 -1
- package/dist/chunk-4FEBSLSU.js +1 -0
- package/dist/{chunk-DCUAVLTM.js → chunk-4HB4VZJQ.js} +1 -1
- package/dist/{chunk-DU5LZYQX.js → chunk-4JARSKED.js} +1 -1
- package/dist/{chunk-IHUCBI6L.js → chunk-4KZRP2JP.js} +141 -141
- package/dist/{chunk-2GDACKZF.js → chunk-4P7PWLUN.js} +1 -1
- package/dist/{chunk-MYQQOOGA.js → chunk-4YCMEC5R.js} +1 -1
- package/dist/{chunk-Q2X7IXPQ.js → chunk-53ZA2HD3.js} +1 -1
- package/dist/{chunk-DE3WCNP6.js → chunk-57YF2UNT.js} +1 -1
- package/dist/{chunk-MOCD7GFI.js → chunk-5EFQILLF.js} +1 -1
- package/dist/chunk-5JPV3HPJ.js +1 -0
- package/dist/{chunk-OCYPWE2O.js → chunk-5LJ5H4TD.js} +1 -1
- package/dist/{chunk-JVMYTC3J.js → chunk-5Y2VD4I3.js} +1 -1
- package/dist/{chunk-YBFCDINU.js → chunk-6BX62FFE.js} +1 -1
- package/dist/{chunk-6ZMNEURG.js → chunk-6FJBCRVK.js} +1 -1
- package/dist/{chunk-2WDKXDFM.js → chunk-6Q5VRSRN.js} +1 -1
- package/dist/{chunk-GDHD3TGC.js → chunk-6QDOCBD4.js} +1 -1
- package/dist/{chunk-BVFIJSD7.js → chunk-6SXB44CE.js} +1 -1
- package/dist/chunk-6UTUJKKC.js +16 -0
- package/dist/{chunk-E24W34C4.js → chunk-6YCGMS7X.js} +15 -15
- package/dist/chunk-72GN655L.js +1 -0
- package/dist/chunk-7CPECP5P.js +1 -0
- package/dist/{chunk-XH5FCMS5.js → chunk-7HAFBCL3.js} +1 -1
- package/dist/chunk-7XPFLQEM.js +1 -0
- package/dist/{chunk-DDVT2K7E.js → chunk-A3JE5LX3.js} +1 -1
- package/dist/{chunk-ASOT7VNB.js → chunk-AJ6VOBXU.js} +1 -1
- package/dist/{chunk-XWQ72WTQ.js → chunk-B2WK53GH.js} +1 -1
- package/dist/chunk-B34VYVGV.js +1 -0
- package/dist/chunk-B6SY4BIK.js +2 -0
- package/dist/{chunk-H7DDRARV.js → chunk-BBEHNPKK.js} +1 -1
- package/dist/{chunk-GKQ6CSJZ.js → chunk-BCTMBKAU.js} +1 -1
- package/dist/chunk-BGUHH7AW.js +10 -0
- package/dist/chunk-BOAGJ6P5.js +1 -0
- package/dist/chunk-C256W7D2.js +26 -0
- package/dist/chunk-CTNBSUVU.js +83 -0
- package/dist/{chunk-MQXSMZQZ.js → chunk-CXWLHQKA.js} +1 -1
- package/dist/chunk-DHU767C3.js +1 -0
- package/dist/{chunk-NGPJXONG.js → chunk-DKHMLETG.js} +1 -1
- package/dist/{chunk-QPJQ67GU.js → chunk-DODCPRXT.js} +144 -144
- package/dist/{chunk-QDYDB7DY.js → chunk-E3RDAVJT.js} +3 -3
- package/dist/chunk-E3RQCWSC.js +6 -0
- package/dist/{chunk-EDSKA6UB.js → chunk-EBZ6MDEM.js} +1 -1
- package/dist/chunk-ELJ7SKMH.js +1 -0
- package/dist/{chunk-FOPGI6GO.js → chunk-EQTULRM7.js} +1 -1
- package/dist/{chunk-SRAHMYWJ.js → chunk-ERCJPRN3.js} +1 -1
- package/dist/{chunk-M2AS5BWX.js → chunk-ESZS7L6O.js} +1 -1
- package/dist/{chunk-IBBFRL3Y.js → chunk-ET2O5DAS.js} +1 -1
- package/dist/chunk-EZ7EBYDT.js +684 -0
- package/dist/{chunk-AVMNXIXF.js → chunk-EZNJDFFK.js} +1 -1
- package/dist/chunk-F34LB7M4.js +20 -0
- package/dist/{chunk-QVYZZNAS.js → chunk-FE24P4UQ.js} +1 -1
- package/dist/chunk-FFSDGRAN.js +1 -0
- package/dist/{chunk-ALQKJAHP.js → chunk-FMTPUYSH.js} +1 -1
- package/dist/{chunk-IQYZAALJ.js → chunk-FPWLEGKZ.js} +1 -1
- package/dist/{chunk-APYASWBA.js → chunk-FT4HLDK7.js} +1 -1
- package/dist/{chunk-E7OLCSAL.js → chunk-G3YYMKWG.js} +1 -1
- package/dist/chunk-G7QW5OSQ.js +6 -0
- package/dist/{chunk-JO4ZHVOD.js → chunk-GCDEDRY7.js} +1 -1
- package/dist/{chunk-GAYQKMOM.js → chunk-GEE5MXHT.js} +1 -1
- package/dist/{chunk-IIHPONSQ.js → chunk-H4MYBJ6C.js} +1 -1
- package/dist/chunk-HDXBZLHH.js +8 -0
- package/dist/chunk-HSKB5OTM.js +1 -0
- package/dist/{chunk-5T3OVTF5.js → chunk-HT6MOPLW.js} +1 -1
- package/dist/chunk-HZXY7RWJ.js +19 -0
- package/dist/{chunk-WIXW233Y.js → chunk-IDAWPBJM.js} +1 -1
- package/dist/{chunk-UHJ65YFN.js → chunk-IDLDQ2JB.js} +1 -1
- package/dist/{chunk-KOB6T6NK.js → chunk-IKYZ5L3F.js} +1 -1
- package/dist/{chunk-O2PI2PYG.js → chunk-ILQXBASM.js} +1 -1
- package/dist/{chunk-O7MONSF7.js → chunk-IYU72M55.js} +1 -1
- package/dist/{chunk-JCNRQYRP.js → chunk-J3IHP46B.js} +2 -2
- package/dist/{chunk-UB5BVO76.js → chunk-J4KJQHNS.js} +1 -1
- package/dist/{chunk-3GMW7IEC.js → chunk-JHRZCUBE.js} +1 -1
- package/dist/chunk-JIBLEZ57.js +18 -0
- package/dist/{chunk-TXJEP4FB.js → chunk-JIKIYMCT.js} +1 -1
- package/dist/{chunk-MKCXLBQ4.js → chunk-JJTGHARS.js} +1 -1
- package/dist/chunk-JJZNUFPD.js +44 -0
- package/dist/{chunk-U7ZRDNZU.js → chunk-JQP3ZCAG.js} +1 -1
- package/dist/{chunk-5UXPTCSD.js → chunk-JS3X6BDT.js} +1 -1
- package/dist/{chunk-YZY4M6IH.js → chunk-K7IZMKBR.js} +1 -1
- package/dist/{chunk-5JCREGSD.js → chunk-KGZH4RFA.js} +1 -1
- package/dist/{chunk-JNEGEJH6.js → chunk-KO4FB4QU.js} +1 -1
- package/dist/chunk-KPRKIZ5M.js +3 -0
- package/dist/chunk-KUN74JD4.js +4 -0
- package/dist/chunk-KURWC4A5.js +16 -0
- package/dist/{chunk-XDEAZP2I.js → chunk-L3D2CASO.js} +1 -1
- package/dist/{chunk-P6S5YLOP.js → chunk-L7DZTIHJ.js} +1 -1
- package/dist/{chunk-QPY6WJTT.js → chunk-LBDAYBIF.js} +1 -1
- package/dist/{chunk-ZG7BVVT2.js → chunk-LD6ZCTZ3.js} +1 -1
- package/dist/{chunk-TDCY3BRI.js → chunk-LH3RIIOB.js} +1 -1
- package/dist/{chunk-BZAZMLII.js → chunk-LWRDNTAD.js} +1 -1
- package/dist/{chunk-MMKBIMMC.js → chunk-LWWBU7ET.js} +1 -1
- package/dist/chunk-M4BEPPA3.js +1 -0
- package/dist/chunk-M4YPMHIM.js +1 -0
- package/dist/{chunk-VSZS3FAJ.js → chunk-M5KKLAM6.js} +1 -1
- package/dist/{chunk-Q2UHGP2Z.js → chunk-MBLHXPGK.js} +1 -1
- package/dist/{chunk-3YCTWCHH.js → chunk-MDHJJVXA.js} +1 -1
- package/dist/{chunk-5U6MXSNY.js → chunk-MDXSLAIC.js} +1 -1
- package/dist/{chunk-NV5IDANV.js → chunk-NA2ERJIJ.js} +1 -1
- package/dist/chunk-NOKCVDYD.js +317 -0
- package/dist/chunk-O6XSWAP2.js +4 -0
- package/dist/{chunk-OVLTFTZW.js → chunk-OB62WVZ5.js} +1 -1
- package/dist/{chunk-UYNCJGMC.js → chunk-OT52JOML.js} +1 -1
- package/dist/chunk-OTT73YUA.js +5 -0
- package/dist/{chunk-ZVQBSXE4.js → chunk-OUUOML3D.js} +1 -1
- package/dist/{chunk-7ZLKT2TB.js → chunk-P7XC5HS2.js} +1 -1
- package/dist/{chunk-KC2TN7AR.js → chunk-PALG4SNB.js} +1 -1
- package/dist/{chunk-T5DF2GGD.js → chunk-PB37BTPE.js} +1 -1
- package/dist/{chunk-WO5YOBQ7.js → chunk-PWYRKTJ4.js} +1 -1
- package/dist/{chunk-H7PNMMDO.js → chunk-PXSX63RF.js} +1 -1
- package/dist/{chunk-QMSYJIAU.js → chunk-QDPDB5EP.js} +1 -1
- package/dist/{chunk-7XQDZF73.js → chunk-QG7TELFC.js} +1 -1
- package/dist/{chunk-OASPW2P2.js → chunk-QU5NL2QT.js} +1 -1
- package/dist/{chunk-DQE7XRCK.js → chunk-QV53BSQP.js} +1 -1
- package/dist/{chunk-CNOL26GA.js → chunk-QXXA2EQY.js} +1 -1
- package/dist/{chunk-T3AJL2M5.js → chunk-QZ5FMWZS.js} +1 -1
- package/dist/chunk-R26GJEH3.js +1 -0
- package/dist/{chunk-TDSR2X7X.js → chunk-RTW4RZWH.js} +2 -2
- package/dist/{chunk-FPCPFECH.js → chunk-SEV3S3WH.js} +1 -1
- package/dist/{chunk-YYHCPLBX.js → chunk-TAFOSPBW.js} +1 -1
- package/dist/{chunk-MCATVWHC.js → chunk-TAV2ENJY.js} +1 -1
- package/dist/{chunk-ZNWFTUFV.js → chunk-TQNALMQH.js} +1 -1
- package/dist/chunk-TR4OWSEX.js +77 -0
- package/dist/{chunk-RFDT525K.js → chunk-TUJNCWHZ.js} +1 -1
- package/dist/{chunk-2MNOWKMI.js → chunk-U564K7SX.js} +1 -1
- package/dist/chunk-UKQ7NE5V.js +1 -0
- package/dist/{chunk-ICFFBMFB.js → chunk-UM3OHLCX.js} +1 -1
- package/dist/{chunk-4TC4M4RC.js → chunk-V65P572N.js} +3 -3
- package/dist/chunk-VFIVXK53.js +2 -0
- package/dist/chunk-VVFPW4ZQ.js +2 -0
- package/dist/{chunk-TVU4YD2H.js → chunk-VYITPC34.js} +1 -1
- package/dist/{chunk-3QVXHF6I.js → chunk-VZKR2YFM.js} +1 -1
- package/dist/{chunk-WMDYHUPS.js → chunk-W2GMKXM7.js} +1 -1
- package/dist/{chunk-72K36DID.js → chunk-W4X3635B.js} +1 -1
- package/dist/chunk-W6ST525S.js +99 -0
- package/dist/{chunk-RIRSTGFU.js → chunk-WEEYQX3M.js} +1 -1
- package/dist/{chunk-KOUKBXOZ.js → chunk-WO7LKJCJ.js} +1 -1
- package/dist/{chunk-6XLVKD6Q.js → chunk-WPRAJ25Z.js} +1 -1
- package/dist/{chunk-LUG2BZJP.js → chunk-WR2ZQGUR.js} +1 -1
- package/dist/{chunk-5K4DONQJ.js → chunk-WWX265PC.js} +1 -1
- package/dist/chunk-XERJY4IG.js +103 -0
- package/dist/{chunk-GXUZ3V7S.js → chunk-XGCJWCC4.js} +1 -1
- package/dist/{chunk-PGKP7W5T.js → chunk-XGMPC7KK.js} +1 -1
- package/dist/chunk-XGRVAPLR.js +7 -0
- package/dist/{chunk-TC3JOEMA.js → chunk-Y2PC2BBJ.js} +60 -60
- package/dist/{chunk-ODH2U44N.js → chunk-Y4QC2YVE.js} +1 -1
- package/dist/chunk-YNJZ2VXV.js +5 -0
- package/dist/chunk-Z5DDPQ26.js +3 -0
- package/dist/{chunk-EXQXGSGY.js → chunk-ZK7VJZ6V.js} +1 -1
- package/dist/{chunk-COTYR5RC.js → chunk-ZLT4DPHN.js} +1 -1
- package/dist/{chunk-CGULQAB5.js → chunk-ZOBQKNGK.js} +1 -1
- package/dist/chunk-ZTE46E4Z.js +153 -0
- package/dist/cli/commands/app/app-logs/sources.js +1 -1
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-N5P2ZEAD.js +1 -0
- package/dist/configs/all.yml +3 -0
- package/dist/configs/recommended.yml +3 -0
- package/dist/custom-oclif-loader-4ZAXX5MR.js +1 -0
- package/dist/data/filters.json +1 -1
- package/dist/data/objects.json +30 -3
- package/dist/data/shopify_system_translations.json +48 -4
- package/dist/deprecations-4TY4DNME.js +1 -0
- package/dist/dist-6ZJS4I57.js +1 -0
- package/dist/dist-7W2KJOYN.js +1 -0
- package/dist/environments-TR5WW2MD.js +1 -0
- package/dist/error-VJQM4MFE.js +1 -0
- package/dist/error-handler-IYGE3Z72.js +1 -0
- package/dist/{fs-7LCRIUF3.js → fs-EOQL26C3.js} +1 -1
- package/dist/hooks/app-init.js +1 -1
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/{http-proxy-node16-X2WAMUT5.js → http-proxy-node16-A6AKKRQH.js} +1 -1
- package/dist/index.js +15 -15
- package/dist/is-global-RQCPBQA3.js +1 -0
- package/dist/{latest-version-32HXMWJ7.js → latest-version-LDWU5F7A.js} +7 -7
- package/dist/lib-2BR2WN7L.js +1 -0
- package/dist/lib-JKLF33A7.js +1 -0
- package/dist/{lib-NOROGV6N.js → lib-P3APEIHY.js} +1 -1
- package/dist/local-TW3HCZ2S.js +1 -0
- package/dist/local-storage-T6FKS53K.js +1 -0
- package/dist/{metadata-D5GLZOLV.js → metadata-TYZDEER5.js} +1 -1
- package/dist/{morph-QZGREMO2.js → morph-ABSWZEVT.js} +4 -4
- package/dist/node-package-manager-6SWUZILX.js +1 -0
- package/dist/notifications-system-SMHMV2UW.js +1 -0
- package/dist/out-53ABAVL7.js +1 -0
- package/dist/{output-FYS764MJ.js → output-JG5I2TEL.js} +1 -1
- package/dist/system-D4Z32GDS.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-6M3XZ6MR.js +1 -0
- package/dist/upgrade-EKAG4IV7.js +1 -0
- package/dist/version-6UBWZCNS.js +1 -0
- package/dist/version-XRU7TEAI.js +1 -0
- package/dist/{workerd-N25GY5MX.js → workerd-LXBSJULF.js} +1 -1
- package/oclif.manifest.json +612 -2
- package/package.json +11 -11
- package/dist/analytics-CIKTYXZ6.js +0 -1
- package/dist/analytics-DM7CBV2M.js +0 -1
- package/dist/assets/dev-console/extensions/dev-console/assets/apple-touch-icon-BXMqQaSW.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/favicon-16x16-B6uL8SrV.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/favicon-32x32-CGwlpz_y.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/favicon-ByUl89Ab.ico +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/index-Bm_GpKQW.js +0 -51
- package/dist/assets/dev-console/extensions/dev-console/assets/index-DISeE29z.css +0 -1
- package/dist/assets/dev-console/extensions/dev-console/assets/site-B9Ae890R.webmanifest +0 -19
- package/dist/assets/dev-console/index.html +0 -21
- package/dist/chunk-2FIDORHT.js +0 -5
- package/dist/chunk-2HZMOK4U.js +0 -836
- package/dist/chunk-2O22LZKV.js +0 -44
- package/dist/chunk-3SJHCEQR.js +0 -7
- package/dist/chunk-4E354M4H.js +0 -1
- package/dist/chunk-5C7HDTHJ.js +0 -1
- package/dist/chunk-5NY4HKJF.js +0 -103
- package/dist/chunk-5PLLJPEW.js +0 -3
- package/dist/chunk-6Y3QXASG.js +0 -22
- package/dist/chunk-6ZRHK4ON.js +0 -1
- package/dist/chunk-7USHLXEN.js +0 -2
- package/dist/chunk-AH2ZJ73H.js +0 -16
- package/dist/chunk-AI756VJI.js +0 -1
- package/dist/chunk-DA4LHFJQ.js +0 -26
- package/dist/chunk-DKKBJ4H5.js +0 -2
- package/dist/chunk-EAXEV45I.js +0 -2
- package/dist/chunk-ELIH6GCC.js +0 -1
- package/dist/chunk-EYDNSYYE.js +0 -370
- package/dist/chunk-FO6FNY6P.js +0 -5
- package/dist/chunk-G7QLHXVA.js +0 -19
- package/dist/chunk-H3QZN45D.js +0 -4
- package/dist/chunk-HHSUBF73.js +0 -1
- package/dist/chunk-HXYWEKMS.js +0 -2
- package/dist/chunk-IDKUJQIG.js +0 -11
- package/dist/chunk-IOU6EKTT.js +0 -1
- package/dist/chunk-IRH6IGFT.js +0 -567
- package/dist/chunk-IRTCLR3F.js +0 -10
- package/dist/chunk-J3KRY2SD.js +0 -1
- package/dist/chunk-JOYM7AEQ.js +0 -1
- package/dist/chunk-LKZ7ARYS.js +0 -18
- package/dist/chunk-N5HGT3TE.js +0 -4
- package/dist/chunk-NJOO5XJV.js +0 -1
- package/dist/chunk-NNOSZ447.js +0 -1
- package/dist/chunk-OHASEW7T.js +0 -1
- package/dist/chunk-PGODIZ64.js +0 -1
- package/dist/chunk-PTIJDS6I.js +0 -3
- package/dist/chunk-Q6LCSRIW.js +0 -1
- package/dist/chunk-SKM44SK5.js +0 -4
- package/dist/chunk-T6CC5WUU.js +0 -159
- package/dist/chunk-UZ7U322K.js +0 -283
- package/dist/chunk-VHAZBDFE.js +0 -21
- package/dist/chunk-VRRDIXFQ.js +0 -6
- package/dist/chunk-YB3SGPFF.js +0 -1
- package/dist/chunk-YJCJDCVP.js +0 -1
- package/dist/chunk-ZDQNCYRH.js +0 -5
- package/dist/conf-store-OC4XCP45.js +0 -1
- package/dist/custom-oclif-loader-3AICQCNU.js +0 -1
- package/dist/deprecations-M5JGGK47.js +0 -1
- package/dist/dist-3SP7TISC.js +0 -1
- package/dist/dist-Z4H2OM7V.js +0 -1
- package/dist/environments-ZLSO534C.js +0 -1
- package/dist/error-ZBG2MA5U.js +0 -1
- package/dist/error-handler-MCUV4RZV.js +0 -1
- package/dist/is-global-RURDJZDU.js +0 -1
- package/dist/lib-QJDPPAWN.js +0 -1
- package/dist/lib-UCG2DNMS.js +0 -1
- package/dist/local-5AKD7T5X.js +0 -1
- package/dist/local-storage-TJU77VRQ.js +0 -1
- package/dist/node-package-manager-FA3Y6DPG.js +0 -1
- package/dist/notifications-system-76GJJAJP.js +0 -1
- package/dist/out-CDCY25QC.js +0 -1
- package/dist/system-KDM2BB7R.js +0 -1
- package/dist/ui-QIHGXICT.js +0 -1
- package/dist/upgrade-DY4L43H4.js +0 -1
- package/dist/version-LULWCT5R.js +0 -1
- package/dist/version-WIERCO5R.js +0 -1
package/dist/chunk-IRTCLR3F.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{b as we}from"./chunk-6XLVKD6Q.js";import{a as he,c as ye}from"./chunk-VSZS3FAJ.js";import{b as ue}from"./chunk-3GMW7IEC.js";import{a as Fe}from"./chunk-6ZRHK4ON.js";import{Ca as Re,Fa as Le,G as ve,L as Pe,O as Ae,Q as ke,ca as Ce,ea as xe,h as ge}from"./chunk-UZ7U322K.js";import{$ as G,da as Ie,o as be}from"./chunk-IRH6IGFT.js";import{B as re,D as ie,E as ne,f as R,g as te,i as ae,p as oe}from"./chunk-VRRDIXFQ.js";import{a as U}from"./chunk-J3KRY2SD.js";import{b as de}from"./chunk-Q6LCSRIW.js";import{b as X}from"./chunk-4TC4M4RC.js";import{D as me,f as se,u as le,v as ce,z as S}from"./chunk-E24W34C4.js";import{d as pe}from"./chunk-3QVXHF6I.js";import{d as f}from"./chunk-ELIH6GCC.js";import{$ as O,$a as Q,Ab as ee,Ca as I,Fb as h,Gb as L,Hb as g,Ja as B,Oa as W,Ta as C,Ua as x,Va as q,Wa as Z,ka as V,ma as Y,sa as _,ua as $,wa as K,zb as J}from"./chunk-EYDNSYYE.js";import{e as fe}from"./chunk-JCNRQYRP.js";import{d as p,e as k,f as z,p as D,q as H}from"./chunk-773TIA5M.js";import{r as De}from"./chunk-T6CC5WUU.js";import{e as ze,g as c}from"./chunk-VKWPEFWQ.js";c();c();var b={reactRouter:{url:"https://github.com/Shopify/shopify-app-template-react-router",label:"Build a React Router app (recommended)",visible:!0,branches:{prompt:"For your React Router template, which language do you want?",options:{javascript:{branch:"javascript-cli",label:"JavaScript"},typescript:{branch:"main-cli",label:"TypeScript"}}}},remix:{url:"https://github.com/Shopify/shopify-app-template-remix",label:"Build a Remix app",visible:!1,branches:{prompt:"For your Remix template, which language do you want?",options:{javascript:{branch:"javascript",label:"JavaScript"},typescript:{branch:"main",label:"TypeScript"}}}},none:{url:"https://github.com/Shopify/shopify-app-template-extension-only",label:"Build an extension-only app",visible:!0},node:{url:"https://github.com/Shopify/shopify-app-template-node",visible:!1},ruby:{url:"https://github.com/Shopify/shopify-app-template-ruby",visible:!1}},E=Object.keys(b),F=E.filter(e=>b[e].visible),He=["reactRouter","none"],Oe=async e=>{let t=e.template,a=e.flavor,r={template:b.reactRouter.url};t??(t=await S({choices:He.map(i=>({label:b[i].label||i,value:i})),message:"Get started building your app:",defaultValue:E.find(i=>b[i].url===r.template)}));let o={...e,template:t,templateType:T(t)?t:"custom",globalCLIResult:{install:!1,alreadyInstalled:!1}},n,s;if(o.templateType!=="custom"){let i=b[o.templateType];n=i.url,i.branches&&(a?s=i.branches.options[a]?.branch:s=await S({message:i.branches.prompt||"Choose a flavor:",choices:Object.entries(i.branches.options).map(([d,m])=>({value:m.branch,label:m.label}))}))}return s&&(n=`${n}#${s}`),o.template=n||o.template||r.template,o.globalCLIResult=await ee(),o},Te=Oe;function T(e){return E.includes(e)}c();c();import{platform as Ve}from"os";async function _e({packageJSON:e,local:t,useGlobalCLI:a}){if(e.dependencies=e.dependencies??{},a?delete e.dependencies["@shopify/cli"]:e.dependencies["@shopify/cli"]=U,delete e.dependencies["@shopify/app"],t){let r=await Ye("cli");e.dependencies["@shopify/cli"]=r;let o={"@shopify/cli":r};e.overrides=e.overrides?{...e.overrides,...o}:o,e.resolutions=e.resolutions?{...e.resolutions,...o}:o}return e}async function Ye(e){return`file:${await Q(`packages/${e}`,{type:"directory",cwd:D(import.meta.url)})}`}async function $e({from:e,packageManager:t}){let a=Ve()==="win32"&&t==="yarn"?["--network-concurrency","1"]:[];return oe({directory:k(e),packageManager:t,args:a})}c();async function j(e,t){let r=(await Z([p(e,"**",".git"),p(e,"**",".github"),p(e,"**",".gitmodules"),p(e,"**",".cli-liquid-bypass"),p(e,"LICENSE*"),p(e,"**","frontend/LICENSE*"),p(e,"package.json.cli2")],{dot:!0,onlyFiles:!1,onlyDirectories:!1,ignore:["**/node_modules/**"]})).map(s=>I(s,{force:!0})),o=new Set(te[t]),n=R.filter(s=>!o.has(s)).map(s=>{let i=p(e,s);if(x(i))return B(i)});return Promise.all([...r,...n])}async function Ke(e){let t=e.packageManager,a=O(e.name),r=p(e.directory,a),o=we(e.template);await Se(r,a),await Be(r),le({body:["Initializing project with",{command:t},`
|
|
2
|
-
Use the`,{command:"--package-manager"},"flag to select a different package manager."]}),await V(async i=>{let d=p(i,"download"),m=o.filePath?p(d,o.filePath):d,u=p(i,"app"),A=o.branch?`${o.baseURL}#${o.branch}`:o.baseURL;await K(d);let w=[{title:`Downloading template from ${A}`,task:async()=>{await ye({repoUrl:A,destination:d,shallow:!0})}}];w.push({title:"Parsing liquid",task:async()=>{await ue(m,u,{dependency_manager:t,app_name:e.name})}},{title:"Updating package.json",task:async()=>{let l=(await re(u)).content;l.name=a,l.author=await se()??"",l.private=!0;let v=["extensions/*"].concat(We(u));switch(t){case"npm":case"yarn":case"bun":l.workspaces=v;break;case"pnpm":{await qe(u,v),await _(p(u,".npmrc"),`auto-install-peers=true
|
|
3
|
-
`);break}case"homebrew":case"unknown":throw new ae}await _e({packageJSON:l,local:e.local,directory:u,useGlobalCLI:e.useGlobalCLI}),await ie(u,l)}}),e.postCloneActions.removeLockfilesFromGitignore&&w.push({title:"Removing lockfiles from .gitignore",task:async()=>{let l=p(u,".gitignore");if(await C(l)){let v=await Y(l);R.forEach(Me=>{let Ue=new RegExp(`^${Me.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`,"gm");v=v.replace(Ue,"")}),await $(l,v.trim())}}}),await fe()&&w.push({title:"[Shopifolks-only] Configuring the project's NPM registry",task:async()=>{let l=p(u,".npmrc");await _(l,`@shopify:registry=https://registry.npmjs.org
|
|
4
|
-
`)}});let M=!1;w.push({title:"Preparing project directory",task:async()=>{await Se(r,a),M=!0,await W(u,r)}}),w.push({title:`Installing dependencies with ${t}`,task:async()=>{await $e({from:r,packageManager:t})}},{title:"Cleaning up",task:async()=>{await j(r,t)}},{title:"Initializing a Git repository...",task:async()=>{await he(r)}});try{await me(w)}catch(l){throw M&&await I(r).catch(()=>{}),l}});let n;if(e.selectedAppOrNameResult.result==="new"){let i=await ve(r,e.name),d=e.selectedAppOrNameResult.org;n=await e.developerPlatformClient.createApp(d,i)}else n=e.selectedAppOrNameResult.app;await Re({directory:r,apiKey:n.apiKey,appId:n.id,organizationId:n.organizationId,configName:"shopify.app.toml",developerPlatformClient:e.developerPlatformClient,isNewApp:!0},!1);let s=await Le({directory:r,clientId:void 0,forceRelink:!1,userProvidedConfigName:void 0});return ce({headline:[{userInput:a},"is ready for you to build!"],nextSteps:[["Run",{command:`cd ${a}`}],["For extensions, run",{command:L(t,"shopify app generate extension")}],["To see your app, run",{command:L(t,"shopify app dev")}]],reference:[{link:{label:"Shopify docs",url:"https://shopify.dev"}},[{link:{label:"Shopify Dev MCP,",url:"https://shopify.dev/docs/apps/build/devmcp"}},"connect your AI assistant to development resources"],["For an overview of commands, run",{command:L(t,"shopify app","--help")}]]}),{app:s.app}}async function Se(e,t){if(await C(e))throw new f(`
|
|
5
|
-
A directory with this name (${t}) already exists.
|
|
6
|
-
Choose a new name for your app.`)}async function Be(e){let t=new X({projectName:"shopify-cli-app"}),a=k(e);t.delete(a)}function We(e){return["web","web/frontend"].filter(t=>x(p(e,t)))}async function qe(e,t){let a=p(e,"pnpm-workspace.yaml");if(await C(a))return;let r=t.map(o=>` - '${o}'`).join(`
|
|
7
|
-
`);await $(a,`packages:
|
|
8
|
-
${r}`)}var Ge=Ke;c();c();function N(e){try{return new URL(e)}catch{return}}function Ze(e){if(!e)return;let t=e.toLowerCase();for(let r of[t,`https://${t}`]){let o=N(r)?.hostname;if(o)return o}let a=t.replace(/^https?:\/\//,"").split("/")[0];if(a)return a}function Et(e){let t=Ze(e);if(!t)return;let a=t.match(/^([^.]+)\.myshopify\.com$/);return a?a[1]:void 0}function Ee(e){if(!e)return;let t=N(e);if(t&&t.origin!=="https://github.com")throw new f("Only GitHub repository references are supported, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]");if(!t&&!T(e))throw new f(g`Only ${F.map(a=>g`${h.yellow(a)}`.value).join(", ")} template aliases are supported, please provide a valid URL`)}function je(e,t){if(!e){if(t)throw new f(g`The ${h.yellow("--flavor")} flag requires the ${h.yellow("--template")} flag to be set`);return}if(!t)return;if(!T(e))throw new f(g`The ${h.yellow("--flavor")} flag is not supported for custom templates`);let a=b[e];if(!a.branches)throw new f(g`The ${h.yellow(e)} template does not support flavors`);if(!a.branches.options[t])throw new f(g`Invalid option for ${h.yellow("--flavor")}\nThe ${h.yellow("--flavor")} flag for ${h.yellow(e)} accepts only ${Object.keys(a.branches.options).map(r=>g`${h.yellow(r)}`.value).join(", ")}`)}var y=ze(De(),1);var Ne,P=class extends Fe{async run(){let{flags:t}=await this.parse(Ne);if(Ee(t.template),je(t.template,t.flavor),t.name!==void 0&&t.name.trim()==="")throw new f("The --name flag can't be empty","Provide a valid app name, for example: --name my-app");let a=ne(t["package-manager"]),r=t.name??await Qe(t.path),o=G();await o.session();let n=await Te({template:t.template,flavor:t.flavor}),s,i;if(t["client-id"]){let m=await Ce({apiKey:t["client-id"]});i=m.title,o=m.developerPlatformClient??o,s={result:"existing",app:m}}else{let m;t["organization-id"]?m=await Ie(t["organization-id"],o):m=await xe(),o=G({organization:m});let{organization:u,apps:A,hasMorePages:w}=await o.orgAndApps(m.id);s=await Xe(t.name!==void 0,r,A,w,u,o),i=s.result==="new"?s.name:s.app.title}n.globalCLIResult.install&&await J(a),await pe(()=>({cmd_create_app_template:n.templateType,cmd_create_app_template_url:n.template}));let{app:d}=await Ge({name:i,selectedAppOrNameResult:s,packageManager:a,template:n.template,local:t.local,directory:t.path,useGlobalCLI:n.globalCLIResult.alreadyInstalled||n.globalCLIResult.install,developerPlatformClient:o,postCloneActions:{removeLockfilesFromGitignore:n.templateType!=="custom"}});return{app:d}}};Ne=P;P.summary="Create a new app project";P.flags={...de,name:y.Flags.string({char:"n",env:"SHOPIFY_FLAG_NAME",hidden:!1,description:"The name for the new app. When provided, skips the app selection prompt and creates a new app with this name."}),path:y.Flags.string({char:"p",env:"SHOPIFY_FLAG_PATH",parse:async e=>z(e),default:async()=>H(),hidden:!1}),template:y.Flags.string({description:`The app template. Accepts one of the following:
|
|
9
|
-
- <${F.join("|")}>
|
|
10
|
-
- Any GitHub repo with optional branch and subpath, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]`,env:"SHOPIFY_FLAG_TEMPLATE"}),flavor:y.Flags.string({description:"Which flavor of the given template to use.",env:"SHOPIFY_FLAG_TEMPLATE_FLAVOR"}),"package-manager":y.Flags.string({char:"d",env:"SHOPIFY_FLAG_PACKAGE_MANAGER",hidden:!1,options:["npm","yarn","pnpm","bun"]}),local:y.Flags.boolean({char:"l",env:"SHOPIFY_FLAG_LOCAL",default:!1,hidden:!0}),"client-id":y.Flags.string({hidden:!1,description:"The Client ID of your app. Use this to automatically link your new project to an existing app. Using this flag avoids the app selection prompt.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),"organization-id":y.Flags.string({hidden:!1,description:"The organization ID. Your organization ID can be found in your Dev Dashboard URL: https://dev.shopify.com/dashboard/<organization-id>",env:"SHOPIFY_FLAG_ORGANIZATION_ID",exclusive:["client-id"]})};var sa=P;async function Qe(e){for(let t=0;t<3;t++){let a=await q({suffix:"app",directory:e});if(be(a))return a}return""}async function Xe(e,t,a,r,o,n){let s=a.length===0||e;if(s||(s=await ke()),s)return{result:"new",name:e?t:await Ae(t),org:o};{let i=await Pe(ge(n,o.id),a,r);if(!i)throw new f("Unable to select an app: the selection prompt was interrupted.");let d=await n.appFromIdentifiers(i.apiKey);if(!d)throw new f(`App with id ${i.id} not found`);return{result:"existing",app:d}}}export{Ze as a,Et as b,sa as c};
|
package/dist/chunk-J3KRY2SD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as I}from"./chunk-VKWPEFWQ.js";I();var o="4.5.1";export{o as a};
|
package/dist/chunk-JOYM7AEQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as l,N as I,P}from"./chunk-UZ7U322K.js";import{Z as M,ea as N}from"./chunk-IRH6IGFT.js";import{a as w}from"./chunk-5JCREGSD.js";import{z as g}from"./chunk-2HZMOK4U.js";import{a as D}from"./chunk-5C7HDTHJ.js";import{D as _,P as h,u as b}from"./chunk-E24W34C4.js";import{b as m,d as p,g as y}from"./chunk-ELIH6GCC.js";import{Nb as F}from"./chunk-EYDNSYYE.js";import{j as E}from"./chunk-JCNRQYRP.js";import{g as d}from"./chunk-VKWPEFWQ.js";d();d();async function u(t,e,r){let i=r.clientName===M.AppManagement,s;r.supportsStoreSearch&&(s=async a=>r.devStoresForOrg(e.id,a));let o=await l({onSearchForStoresByName:s,...t,showDomainOnPrompt:i});if(!o){if(b({body:await r.getCreateDevStoreLink(e)}),await h(5),!await P(e))throw new m;let f=await k(e.id,r);o=await u({stores:f,hasMorePages:!1},e,r)}let n=await c(o,e.id,r,"prompt-first");for(;!n;){if(o=await l({stores:[o],hasMorePages:!1,showDomainOnPrompt:i}),!o)throw new m;n=await c(o,e.id,r,"prompt-first")}return o}async function k(t,e){let s=[];return await _([{title:"Fetching organization data",task:async()=>{for(let n=0;n<10;n++){let{stores:a}=await e.devStoresForOrg(t);if(a.length>0){s=a;return}await h(3)}}}]),s}async function c(t,e,r,i){if(t.transferDisabled||E())return!0;if(!t.transferDisabled&&!t.convertableToPartnerTest)throw new p(`The store you specified (${t.shopDomain}) is not a dev store`,"Run dev --reset and select an eligible dev store.");switch(i){case"prompt-first":return await I()?(await x(t,e,r),!0):!1;case"never":throw new p("The store you specified is not transfer-disabled","Try running 'dev --reset' and selecting a different store, or choosing to convert this one.")}}async function x(t,e,r){let i={input:{organizationID:parseInt(e,10),shopId:t.shopId}},s=await r.convertToTransferDisabledStore(i);if(!s.convertDevToTestStore.convertedToTestStore){let o=s.convertDevToTestStore.userErrors.map(n=>n.message).join(", ");throw new y(`Error converting store ${t.shopDomain} to a transfer-disabled store: ${o}`,"This store might not be compatible with draft apps, please try a different store")}F(`Converted ${t.shopDomain} to a transfer-disabled store`)}async function X({appContextResult:t,storeFqdn:e,forceReselectStore:r,storeTypes:i=["APP_DEVELOPMENT"]}){let{app:s,organization:o,developerPlatformClient:n}=t,a,f=s.configuration.build?.dev_store_url,S=s.hiddenConfig.dev_store_url,T=f??S,v=e??(r?void 0:T),O=i.length===1&&i[0]==="APP_DEVELOPMENT";if(v)a=await N(o,v,n,i),O&&await c(a,o.id,n,"never");else{let A=await n.devStoresForOrg(o.id);a=await u(A,o,n)}return a.shopDomain=g(a.shopDomain),await C(a,r),(a.shopDomain!==T||!S)&&await s.updateHiddenConfig({dev_store_url:a.shopDomain}),await n.ensureUserAccessToStore(o.id,a),a}async function C(t,e){await w.addPublicMetadata(()=>({cmd_app_reset_used:e,store_fqdn_hash:D(t.shopDomain),store_domain:t.shopDomain})),await w.addSensitiveMetadata(()=>({store_fqdn:t.shopDomain}))}export{X as a};
|
package/dist/chunk-LKZ7ARYS.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{a as we}from"./chunk-AAK376RT.js";import{a as js}from"./chunk-P2OI2P2M.js";import{a as wt}from"./chunk-636CTEW7.js";import{l as As,r as D}from"./chunk-T6CC5WUU.js";import{a as Ss,b as xs}from"./chunk-UQWFDL3F.js";import{a as Et,c as E,e as I,g as a}from"./chunk-VKWPEFWQ.js";var We=E((ml,yt)=>{a();function Ts(r){t.debug=t,t.default=t,t.coerce=c,t.disable=l,t.enable=n,t.enabled=o,t.humanize=Ss(),t.destroy=p,Object.keys(r).forEach(f=>{t[f]=r[f]}),t.names=[],t.skips=[],t.formatters={};function e(f){let u=0;for(let m=0;m<f.length;m++)u=(u<<5)-u+f.charCodeAt(m),u|=0;return t.colors[Math.abs(u)%t.colors.length]}t.selectColor=e;function t(f){let u,m=null,h,$;function C(...b){if(!C.enabled)return;let V=C,j=Number(new Date),J=j-(u||j);V.diff=J,V.prev=u,V.curr=j,u=j,b[0]=t.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let Ee=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(He,Os)=>{if(He==="%%")return"%";Ee++;let mt=t.formatters[Os];if(typeof mt=="function"){let Ps=b[Ee];He=mt.call(V,Ps),b.splice(Ee,1),Ee--}return He}),t.formatArgs.call(V,b),(V.log||t.log).apply(V,b)}return C.namespace=f,C.useColors=t.useColors(),C.color=t.selectColor(f),C.extend=s,C.destroy=t.destroy,Object.defineProperty(C,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(h!==t.namespaces&&(h=t.namespaces,$=t.enabled(f)),$),set:b=>{m=b}}),typeof t.init=="function"&&t.init(C),C}function s(f,u){let m=t(this.namespace+(typeof u>"u"?":":u)+f);return m.log=this.log,m}function n(f){t.save(f),t.namespaces=f,t.names=[],t.skips=[];let u=(typeof f=="string"?f:"").trim().replace(" ",",").split(",").filter(Boolean);for(let m of u)m[0]==="-"?t.skips.push(m.slice(1)):t.names.push(m)}function i(f,u){let m=0,h=0,$=-1,C=0;for(;m<f.length;)if(h<u.length&&(u[h]===f[m]||u[h]==="*"))u[h]==="*"?($=h,C=m,h++):(m++,h++);else if($!==-1)h=$+1,C++,m=C;else return!1;for(;h<u.length&&u[h]==="*";)h++;return h===u.length}function l(){let f=[...t.names,...t.skips.map(u=>"-"+u)].join(",");return t.enable(""),f}function o(f){for(let u of t.skips)if(i(f,u))return!1;for(let u of t.names)if(i(f,u))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}yt.exports=Ts});var vt=E((F,$e)=>{a();F.formatArgs=qs;F.save=ks;F.load=Ds;F.useColors=Fs;F.storage=Gs();F.destroy=(()=>{let r=!1;return()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();F.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Fs(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let r;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(r=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(r[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function qs(r){if(r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+$e.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;r.splice(1,0,e,"color: inherit");let t=0,s=0;r[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(t++,n==="%c"&&(s=t))}),r.splice(s,0,e)}F.log=console.debug||console.log||(()=>{});function ks(r){try{r?F.storage.setItem("debug",r):F.storage.removeItem("debug")}catch{}}function Ds(){let r;try{r=F.storage.getItem("debug")}catch{}return!r&&typeof process<"u"&&"env"in process&&(r=process.env.DEBUG),r}function Gs(){try{return localStorage}catch{}}$e.exports=We()(F);var{formatters:Us}=$e.exports;Us.j=function(r){try{return JSON.stringify(r)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Ct=E((R,ve)=>{a();var Vs=Et("tty"),ye=Et("util");R.init=Ms;R.log=Js;R.formatArgs=_s;R.save=Hs;R.load=Ws;R.useColors=Bs;R.destroy=ye.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");R.colors=[6,2,3,4,5,1];try{let r=xs();r&&(r.stderr||r).level>=2&&(R.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}R.inspectOpts=Object.keys(process.env).filter(r=>/^debug_/i.test(r)).reduce((r,e)=>{let t=e.substring(6).toLowerCase().replace(/_([a-z])/g,(n,i)=>i.toUpperCase()),s=process.env[e];return/^(yes|on|true|enabled)$/i.test(s)?s=!0:/^(no|off|false|disabled)$/i.test(s)?s=!1:s==="null"?s=null:s=Number(s),r[t]=s,r},{});function Bs(){return"colors"in R.inspectOpts?!!R.inspectOpts.colors:Vs.isatty(process.stderr.fd)}function _s(r){let{namespace:e,useColors:t}=this;if(t){let s=this.color,n="\x1B[3"+(s<8?s:"8;5;"+s),i=` ${n};1m${e} \x1B[0m`;r[0]=i+r[0].split(`
|
|
2
|
-
`).join(`
|
|
3
|
-
`+i),r.push(n+"m+"+ve.exports.humanize(this.diff)+"\x1B[0m")}else r[0]=Xs()+e+" "+r[0]}function Xs(){return R.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Js(...r){return process.stderr.write(ye.formatWithOptions(R.inspectOpts,...r)+`
|
|
4
|
-
`)}function Hs(r){r?process.env.DEBUG=r:delete process.env.DEBUG}function Ws(){return process.env.DEBUG}function Ms(r){r.inspectOpts={};let e=Object.keys(R.inspectOpts);for(let t=0;t<e.length;t++)r.inspectOpts[e[t]]=R.inspectOpts[e[t]]}ve.exports=We()(R);var{formatters:Lt}=ve.exports;Lt.o=function(r){return this.inspectOpts.colors=this.useColors,ye.inspect(r,this.inspectOpts).split(`
|
|
5
|
-
`).map(e=>e.trim()).join(" ")};Lt.O=function(r){return this.inspectOpts.colors=this.useColors,ye.inspect(r,this.inspectOpts)}});var ee=E((yl,Me)=>{a();typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Me.exports=vt():Me.exports=Ct()});var te=E((Ll,It)=>{"use strict";a();var Ys="2.0.0",zs=Number.MAX_SAFE_INTEGER||9007199254740991,Ks=16,Zs=250,Qs=["major","premajor","minor","preminor","patch","prepatch","prerelease"];It.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Ks,MAX_SAFE_BUILD_LENGTH:Zs,MAX_SAFE_INTEGER:zs,RELEASE_TYPES:Qs,SEMVER_SPEC_VERSION:Ys,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var re=E((Il,Rt)=>{"use strict";a();var en=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Rt.exports=en});var z=E((B,bt)=>{"use strict";a();var{MAX_SAFE_COMPONENT_LENGTH:Ye,MAX_SAFE_BUILD_LENGTH:tn,MAX_LENGTH:rn}=te(),sn=re();B=bt.exports={};var nn=B.re=[],on=B.safeRe=[],g=B.src=[],an=B.safeSrc=[],d=B.t={},ln=0,ze="[a-zA-Z0-9-]",cn=[["\\s",1],["\\d",rn],[ze,tn]],un=r=>{for(let[e,t]of cn)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},w=(r,e,t)=>{let s=un(e),n=ln++;sn(r,n,e),d[r]=n,g[n]=e,an[n]=s,nn[n]=new RegExp(e,t?"g":void 0),on[n]=new RegExp(s,t?"g":void 0)};w("NUMERICIDENTIFIER","0|[1-9]\\d*");w("NUMERICIDENTIFIERLOOSE","\\d+");w("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${ze}*`);w("MAINVERSION",`(${g[d.NUMERICIDENTIFIER]})\\.(${g[d.NUMERICIDENTIFIER]})\\.(${g[d.NUMERICIDENTIFIER]})`);w("MAINVERSIONLOOSE",`(${g[d.NUMERICIDENTIFIERLOOSE]})\\.(${g[d.NUMERICIDENTIFIERLOOSE]})\\.(${g[d.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASEIDENTIFIER",`(?:${g[d.NONNUMERICIDENTIFIER]}|${g[d.NUMERICIDENTIFIER]})`);w("PRERELEASEIDENTIFIERLOOSE",`(?:${g[d.NONNUMERICIDENTIFIER]}|${g[d.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASE",`(?:-(${g[d.PRERELEASEIDENTIFIER]}(?:\\.${g[d.PRERELEASEIDENTIFIER]})*))`);w("PRERELEASELOOSE",`(?:-?(${g[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${g[d.PRERELEASEIDENTIFIERLOOSE]})*))`);w("BUILDIDENTIFIER",`${ze}+`);w("BUILD",`(?:\\+(${g[d.BUILDIDENTIFIER]}(?:\\.${g[d.BUILDIDENTIFIER]})*))`);w("FULLPLAIN",`v?${g[d.MAINVERSION]}${g[d.PRERELEASE]}?${g[d.BUILD]}?`);w("FULL",`^${g[d.FULLPLAIN]}$`);w("LOOSEPLAIN",`[v=\\s]*${g[d.MAINVERSIONLOOSE]}${g[d.PRERELEASELOOSE]}?${g[d.BUILD]}?`);w("LOOSE",`^${g[d.LOOSEPLAIN]}$`);w("GTLT","((?:<|>)?=?)");w("XRANGEIDENTIFIERLOOSE",`${g[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);w("XRANGEIDENTIFIER",`${g[d.NUMERICIDENTIFIER]}|x|X|\\*`);w("XRANGEPLAIN",`[v=\\s]*(${g[d.XRANGEIDENTIFIER]})(?:\\.(${g[d.XRANGEIDENTIFIER]})(?:\\.(${g[d.XRANGEIDENTIFIER]})(?:${g[d.PRERELEASE]})?${g[d.BUILD]}?)?)?`);w("XRANGEPLAINLOOSE",`[v=\\s]*(${g[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${g[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${g[d.XRANGEIDENTIFIERLOOSE]})(?:${g[d.PRERELEASELOOSE]})?${g[d.BUILD]}?)?)?`);w("XRANGE",`^${g[d.GTLT]}\\s*${g[d.XRANGEPLAIN]}$`);w("XRANGELOOSE",`^${g[d.GTLT]}\\s*${g[d.XRANGEPLAINLOOSE]}$`);w("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Ye}})(?:\\.(\\d{1,${Ye}}))?(?:\\.(\\d{1,${Ye}}))?`);w("COERCE",`${g[d.COERCEPLAIN]}(?:$|[^\\d])`);w("COERCEFULL",g[d.COERCEPLAIN]+`(?:${g[d.PRERELEASE]})?(?:${g[d.BUILD]})?(?:$|[^\\d])`);w("COERCERTL",g[d.COERCE],!0);w("COERCERTLFULL",g[d.COERCEFULL],!0);w("LONETILDE","(?:~>?)");w("TILDETRIM",`(\\s*)${g[d.LONETILDE]}\\s+`,!0);B.tildeTrimReplace="$1~";w("TILDE",`^${g[d.LONETILDE]}${g[d.XRANGEPLAIN]}$`);w("TILDELOOSE",`^${g[d.LONETILDE]}${g[d.XRANGEPLAINLOOSE]}$`);w("LONECARET","(?:\\^)");w("CARETTRIM",`(\\s*)${g[d.LONECARET]}\\s+`,!0);B.caretTrimReplace="$1^";w("CARET",`^${g[d.LONECARET]}${g[d.XRANGEPLAIN]}$`);w("CARETLOOSE",`^${g[d.LONECARET]}${g[d.XRANGEPLAINLOOSE]}$`);w("COMPARATORLOOSE",`^${g[d.GTLT]}\\s*(${g[d.LOOSEPLAIN]})$|^$`);w("COMPARATOR",`^${g[d.GTLT]}\\s*(${g[d.FULLPLAIN]})$|^$`);w("COMPARATORTRIM",`(\\s*)${g[d.GTLT]}\\s*(${g[d.LOOSEPLAIN]}|${g[d.XRANGEPLAIN]})`,!0);B.comparatorTrimReplace="$1$2$3";w("HYPHENRANGE",`^\\s*(${g[d.XRANGEPLAIN]})\\s+-\\s+(${g[d.XRANGEPLAIN]})\\s*$`);w("HYPHENRANGELOOSE",`^\\s*(${g[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${g[d.XRANGEPLAINLOOSE]})\\s*$`);w("STAR","(<|>)?=?\\s*\\*");w("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");w("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Le=E((Nl,Nt)=>{"use strict";a();var fn=Object.freeze({loose:!0}),pn=Object.freeze({}),hn=r=>r?typeof r!="object"?fn:r:pn;Nt.exports=hn});var Ke=E((Pl,St)=>{"use strict";a();var Ot=/^[0-9]+$/,Pt=(r,e)=>{if(typeof r=="number"&&typeof e=="number")return r===e?0:r<e?-1:1;let t=Ot.test(r),s=Ot.test(e);return t&&s&&(r=+r,e=+e),r===e?0:t&&!s?-1:s&&!t?1:r<e?-1:1},gn=(r,e)=>Pt(e,r);St.exports={compareIdentifiers:Pt,rcompareIdentifiers:gn}});var N=E((xl,At)=>{"use strict";a();var Ce=re(),{MAX_LENGTH:xt,MAX_SAFE_INTEGER:Ie}=te(),{safeRe:Re,t:be}=z(),dn=Le(),{compareIdentifiers:Ze}=Ke(),Qe=class r{constructor(e,t){if(t=dn(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>xt)throw new TypeError(`version is longer than ${xt} characters`);Ce("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let s=e.trim().match(t.loose?Re[be.LOOSE]:Re[be.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>Ie||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ie||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ie||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let i=+n;if(i>=0&&i<Ie)return i}return n}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Ce("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof r||(e=new r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let s=this.prerelease[t],n=e.prerelease[t];if(Ce("prerelease compare",t,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return Ze(s,n)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let s=this.build[t],n=e.build[t];if(Ce("build compare",t,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return Ze(s,n)}while(++t)}inc(e,t,s){if(e.startsWith("pre")){if(!t&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(t){let n=`-${t}`.match(this.options.loose?Re[be.PRERELEASELOOSE]:Re[be.PRERELEASE]);if(!n||n[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,s),this.inc("pre",t,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,s),this.inc("pre",t,s);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let n=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[n];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(t===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(t){let i=[t,n];s===!1&&(i=[t]),Ze(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};At.exports=Qe});var W=E((jl,Tt)=>{"use strict";a();var jt=N(),mn=(r,e,t=!1)=>{if(r instanceof jt)return r;try{return new jt(r,e)}catch(s){if(!t)return null;throw s}};Tt.exports=mn});var qt=E((Fl,Ft)=>{"use strict";a();var En=W(),wn=(r,e)=>{let t=En(r,e);return t?t.version:null};Ft.exports=wn});var Dt=E((kl,kt)=>{"use strict";a();var $n=W(),yn=(r,e)=>{let t=$n(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};kt.exports=yn});var Vt=E((Gl,Ut)=>{"use strict";a();var Gt=N(),vn=(r,e,t,s,n)=>{typeof t=="string"&&(n=s,s=t,t=void 0);try{return new Gt(r instanceof Gt?r.version:r,t).inc(e,s,n).version}catch{return null}};Ut.exports=vn});var Xt=E((Vl,_t)=>{"use strict";a();var Bt=W(),Ln=(r,e)=>{let t=Bt(r,null,!0),s=Bt(e,null,!0),n=t.compare(s);if(n===0)return null;let i=n>0,l=i?t:s,o=i?s:t,c=!!l.prerelease.length;if(!!o.prerelease.length&&!c){if(!o.patch&&!o.minor)return"major";if(o.compareMain(l)===0)return o.minor&&!o.patch?"minor":"patch"}let f=c?"pre":"";return t.major!==s.major?f+"major":t.minor!==s.minor?f+"minor":t.patch!==s.patch?f+"patch":"prerelease"};_t.exports=Ln});var Ht=E((_l,Jt)=>{"use strict";a();var Cn=N(),In=(r,e)=>new Cn(r,e).major;Jt.exports=In});var Mt=E((Jl,Wt)=>{"use strict";a();var Rn=N(),bn=(r,e)=>new Rn(r,e).minor;Wt.exports=bn});var zt=E((Wl,Yt)=>{"use strict";a();var Nn=N(),On=(r,e)=>new Nn(r,e).patch;Yt.exports=On});var Zt=E((Yl,Kt)=>{"use strict";a();var Pn=W(),Sn=(r,e)=>{let t=Pn(r,e);return t&&t.prerelease.length?t.prerelease:null};Kt.exports=Sn});var q=E((Kl,er)=>{"use strict";a();var Qt=N(),xn=(r,e,t)=>new Qt(r,t).compare(new Qt(e,t));er.exports=xn});var rr=E((Ql,tr)=>{"use strict";a();var An=q(),jn=(r,e,t)=>An(e,r,t);tr.exports=jn});var nr=E((tc,sr)=>{"use strict";a();var Tn=q(),Fn=(r,e)=>Tn(r,e,!0);sr.exports=Fn});var Ne=E((sc,or)=>{"use strict";a();var ir=N(),qn=(r,e,t)=>{let s=new ir(r,t),n=new ir(e,t);return s.compare(n)||s.compareBuild(n)};or.exports=qn});var lr=E((ic,ar)=>{"use strict";a();var kn=Ne(),Dn=(r,e)=>r.sort((t,s)=>kn(t,s,e));ar.exports=Dn});var ur=E((ac,cr)=>{"use strict";a();var Gn=Ne(),Un=(r,e)=>r.sort((t,s)=>Gn(s,t,e));cr.exports=Un});var se=E((cc,fr)=>{"use strict";a();var Vn=q(),Bn=(r,e,t)=>Vn(r,e,t)>0;fr.exports=Bn});var Oe=E((fc,pr)=>{"use strict";a();var _n=q(),Xn=(r,e,t)=>_n(r,e,t)<0;pr.exports=Xn});var et=E((hc,hr)=>{"use strict";a();var Jn=q(),Hn=(r,e,t)=>Jn(r,e,t)===0;hr.exports=Hn});var tt=E((dc,gr)=>{"use strict";a();var Wn=q(),Mn=(r,e,t)=>Wn(r,e,t)!==0;gr.exports=Mn});var Pe=E((Ec,dr)=>{"use strict";a();var Yn=q(),zn=(r,e,t)=>Yn(r,e,t)>=0;dr.exports=zn});var Se=E(($c,mr)=>{"use strict";a();var Kn=q(),Zn=(r,e,t)=>Kn(r,e,t)<=0;mr.exports=Zn});var rt=E((vc,Er)=>{"use strict";a();var Qn=et(),ei=tt(),ti=se(),ri=Pe(),si=Oe(),ni=Se(),ii=(r,e,t,s)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Qn(r,t,s);case"!=":return ei(r,t,s);case">":return ti(r,t,s);case">=":return ri(r,t,s);case"<":return si(r,t,s);case"<=":return ni(r,t,s);default:throw new TypeError(`Invalid operator: ${e}`)}};Er.exports=ii});var $r=E((Cc,wr)=>{"use strict";a();var oi=N(),ai=W(),{safeRe:xe,t:Ae}=z(),li=(r,e)=>{if(r instanceof oi)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(e.includePrerelease?xe[Ae.COERCEFULL]:xe[Ae.COERCE]);else{let c=e.includePrerelease?xe[Ae.COERCERTLFULL]:xe[Ae.COERCERTL],p;for(;(p=c.exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||p.index+p[0].length!==t.index+t[0].length)&&(t=p),c.lastIndex=p.index+p[1].length+p[2].length;c.lastIndex=-1}if(t===null)return null;let s=t[2],n=t[3]||"0",i=t[4]||"0",l=e.includePrerelease&&t[5]?`-${t[5]}`:"",o=e.includePrerelease&&t[6]?`+${t[6]}`:"";return ai(`${s}.${n}.${i}${l}${o}`,e)};wr.exports=li});var vr=E((Rc,yr)=>{"use strict";a();var st=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let n=this.map.keys().next().value;this.delete(n)}this.map.set(e,t)}return this}};yr.exports=st});var k=E((Nc,Rr)=>{"use strict";a();var ci=/\s+/g,nt=class r{constructor(e,t){if(t=fi(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof it)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(ci," "),this.set=this.raw.split("||").map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter(n=>!Cr(n[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let n of this.set)if(n.length===1&&wi(n[0])){this.set=[n];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let s=0;s<t.length;s++)s>0&&(this.formatted+=" "),this.formatted+=t[s].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let s=((this.options.includePrerelease&&mi)|(this.options.loose&&Ei))+":"+e,n=Lr.get(s);if(n)return n;let i=this.options.loose,l=i?S[O.HYPHENRANGELOOSE]:S[O.HYPHENRANGE];e=e.replace(l,Oi(this.options.includePrerelease)),y("hyphen replace",e),e=e.replace(S[O.COMPARATORTRIM],hi),y("comparator trim",e),e=e.replace(S[O.TILDETRIM],gi),y("tilde trim",e),e=e.replace(S[O.CARETTRIM],di),y("caret trim",e);let o=e.split(" ").map(u=>$i(u,this.options)).join(" ").split(/\s+/).map(u=>Ni(u,this.options));i&&(o=o.filter(u=>(y("loose invalid filter",u,this.options),!!u.match(S[O.COMPARATORLOOSE])))),y("range list",o);let c=new Map,p=o.map(u=>new it(u,this.options));for(let u of p){if(Cr(u))return[u];c.set(u.value,u)}c.size>1&&c.has("")&&c.delete("");let f=[...c.values()];return Lr.set(s,f),f}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(s=>Ir(s,t)&&e.set.some(n=>Ir(n,t)&&s.every(i=>n.every(l=>i.intersects(l,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new pi(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Pi(this.set[t],e,this.options))return!0;return!1}};Rr.exports=nt;var ui=vr(),Lr=new ui,fi=Le(),it=ne(),y=re(),pi=N(),{safeRe:S,t:O,comparatorTrimReplace:hi,tildeTrimReplace:gi,caretTrimReplace:di}=z(),{FLAG_INCLUDE_PRERELEASE:mi,FLAG_LOOSE:Ei}=te(),Cr=r=>r.value==="<0.0.0-0",wi=r=>r.value==="",Ir=(r,e)=>{let t=!0,s=r.slice(),n=s.pop();for(;t&&s.length;)t=s.every(i=>n.intersects(i,e)),n=s.pop();return t},$i=(r,e)=>(r=r.replace(S[O.BUILD],""),y("comp",r,e),r=Li(r,e),y("caret",r),r=yi(r,e),y("tildes",r),r=Ii(r,e),y("xrange",r),r=bi(r,e),y("stars",r),r),x=r=>!r||r.toLowerCase()==="x"||r==="*",yi=(r,e)=>r.trim().split(/\s+/).map(t=>vi(t,e)).join(" "),vi=(r,e)=>{let t=e.loose?S[O.TILDELOOSE]:S[O.TILDE];return r.replace(t,(s,n,i,l,o)=>{y("tilde",r,s,n,i,l,o);let c;return x(n)?c="":x(i)?c=`>=${n}.0.0 <${+n+1}.0.0-0`:x(l)?c=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`:o?(y("replaceTilde pr",o),c=`>=${n}.${i}.${l}-${o} <${n}.${+i+1}.0-0`):c=`>=${n}.${i}.${l} <${n}.${+i+1}.0-0`,y("tilde return",c),c})},Li=(r,e)=>r.trim().split(/\s+/).map(t=>Ci(t,e)).join(" "),Ci=(r,e)=>{y("caret",r,e);let t=e.loose?S[O.CARETLOOSE]:S[O.CARET],s=e.includePrerelease?"-0":"";return r.replace(t,(n,i,l,o,c)=>{y("caret",r,n,i,l,o,c);let p;return x(i)?p="":x(l)?p=`>=${i}.0.0${s} <${+i+1}.0.0-0`:x(o)?i==="0"?p=`>=${i}.${l}.0${s} <${i}.${+l+1}.0-0`:p=`>=${i}.${l}.0${s} <${+i+1}.0.0-0`:c?(y("replaceCaret pr",c),i==="0"?l==="0"?p=`>=${i}.${l}.${o}-${c} <${i}.${l}.${+o+1}-0`:p=`>=${i}.${l}.${o}-${c} <${i}.${+l+1}.0-0`:p=`>=${i}.${l}.${o}-${c} <${+i+1}.0.0-0`):(y("no pr"),i==="0"?l==="0"?p=`>=${i}.${l}.${o}${s} <${i}.${l}.${+o+1}-0`:p=`>=${i}.${l}.${o}${s} <${i}.${+l+1}.0-0`:p=`>=${i}.${l}.${o} <${+i+1}.0.0-0`),y("caret return",p),p})},Ii=(r,e)=>(y("replaceXRanges",r,e),r.split(/\s+/).map(t=>Ri(t,e)).join(" ")),Ri=(r,e)=>{r=r.trim();let t=e.loose?S[O.XRANGELOOSE]:S[O.XRANGE];return r.replace(t,(s,n,i,l,o,c)=>{y("xRange",r,s,n,i,l,o,c);let p=x(i),f=p||x(l),u=f||x(o),m=u;return n==="="&&m&&(n=""),c=e.includePrerelease?"-0":"",p?n===">"||n==="<"?s="<0.0.0-0":s="*":n&&m?(f&&(l=0),o=0,n===">"?(n=">=",f?(i=+i+1,l=0,o=0):(l=+l+1,o=0)):n==="<="&&(n="<",f?i=+i+1:l=+l+1),n==="<"&&(c="-0"),s=`${n+i}.${l}.${o}${c}`):f?s=`>=${i}.0.0${c} <${+i+1}.0.0-0`:u&&(s=`>=${i}.${l}.0${c} <${i}.${+l+1}.0-0`),y("xRange return",s),s})},bi=(r,e)=>(y("replaceStars",r,e),r.trim().replace(S[O.STAR],"")),Ni=(r,e)=>(y("replaceGTE0",r,e),r.trim().replace(S[e.includePrerelease?O.GTE0PRE:O.GTE0],"")),Oi=r=>(e,t,s,n,i,l,o,c,p,f,u,m)=>(x(s)?t="":x(n)?t=`>=${s}.0.0${r?"-0":""}`:x(i)?t=`>=${s}.${n}.0${r?"-0":""}`:l?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,x(p)?c="":x(f)?c=`<${+p+1}.0.0-0`:x(u)?c=`<${p}.${+f+1}.0-0`:m?c=`<=${p}.${f}.${u}-${m}`:r?c=`<${p}.${f}.${+u+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),Pi=(r,e,t)=>{for(let s=0;s<r.length;s++)if(!r[s].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let s=0;s<r.length;s++)if(y(r[s].semver),r[s].semver!==it.ANY&&r[s].semver.prerelease.length>0){let n=r[s].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}});var ne=E((Pc,xr)=>{"use strict";a();var ie=Symbol("SemVer ANY"),lt=class r{static get ANY(){return ie}constructor(e,t){if(t=br(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),at("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,at("comp",this)}parse(e){let t=this.options.loose?Nr[Or.COMPARATORLOOSE]:Nr[Or.COMPARATOR],s=e.match(t);if(!s)throw new TypeError(`Invalid comparator: ${e}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new Pr(s[2],this.options.loose):this.semver=ie}toString(){return this.value}test(e){if(at("Comparator.test",e,this.options.loose),this.semver===ie||e===ie)return!0;if(typeof e=="string")try{e=new Pr(e,this.options)}catch{return!1}return ot(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Sr(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new Sr(this.value,t).test(e.semver):(t=br(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||ot(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||ot(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};xr.exports=lt;var br=Le(),{safeRe:Nr,t:Or}=z(),ot=rt(),at=re(),Pr=N(),Sr=k()});var oe=E((xc,Ar)=>{"use strict";a();var Si=k(),xi=(r,e,t)=>{try{e=new Si(e,t)}catch{return!1}return e.test(r)};Ar.exports=xi});var Tr=E((jc,jr)=>{"use strict";a();var Ai=k(),ji=(r,e)=>new Ai(r,e).set.map(t=>t.map(s=>s.value).join(" ").trim().split(" "));jr.exports=ji});var qr=E((Fc,Fr)=>{"use strict";a();var Ti=N(),Fi=k(),qi=(r,e,t)=>{let s=null,n=null,i=null;try{i=new Fi(e,t)}catch{return null}return r.forEach(l=>{i.test(l)&&(!s||n.compare(l)===-1)&&(s=l,n=new Ti(s,t))}),s};Fr.exports=qi});var Dr=E((kc,kr)=>{"use strict";a();var ki=N(),Di=k(),Gi=(r,e,t)=>{let s=null,n=null,i=null;try{i=new Di(e,t)}catch{return null}return r.forEach(l=>{i.test(l)&&(!s||n.compare(l)===1)&&(s=l,n=new ki(s,t))}),s};kr.exports=Gi});var Vr=E((Gc,Ur)=>{"use strict";a();var ct=N(),Ui=k(),Gr=se(),Vi=(r,e)=>{r=new Ui(r,e);let t=new ct("0.0.0");if(r.test(t)||(t=new ct("0.0.0-0"),r.test(t)))return t;t=null;for(let s=0;s<r.set.length;++s){let n=r.set[s],i=null;n.forEach(l=>{let o=new ct(l.semver.version);switch(l.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!i||Gr(o,i))&&(i=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${l.operator}`)}}),i&&(!t||Gr(t,i))&&(t=i)}return t&&r.test(t)?t:null};Ur.exports=Vi});var _r=E((Vc,Br)=>{"use strict";a();var Bi=k(),_i=(r,e)=>{try{return new Bi(r,e).range||"*"}catch{return null}};Br.exports=_i});var je=E((_c,Wr)=>{"use strict";a();var Xi=N(),Hr=ne(),{ANY:Ji}=Hr,Hi=k(),Wi=oe(),Xr=se(),Jr=Oe(),Mi=Se(),Yi=Pe(),zi=(r,e,t,s)=>{r=new Xi(r,s),e=new Hi(e,s);let n,i,l,o,c;switch(t){case">":n=Xr,i=Mi,l=Jr,o=">",c=">=";break;case"<":n=Jr,i=Yi,l=Xr,o="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Wi(r,e,s))return!1;for(let p=0;p<e.set.length;++p){let f=e.set[p],u=null,m=null;if(f.forEach(h=>{h.semver===Ji&&(h=new Hr(">=0.0.0")),u=u||h,m=m||h,n(h.semver,u.semver,s)?u=h:l(h.semver,m.semver,s)&&(m=h)}),u.operator===o||u.operator===c||(!m.operator||m.operator===o)&&i(r,m.semver))return!1;if(m.operator===c&&l(r,m.semver))return!1}return!0};Wr.exports=zi});var Yr=E((Jc,Mr)=>{"use strict";a();var Ki=je(),Zi=(r,e,t)=>Ki(r,e,">",t);Mr.exports=Zi});var Kr=E((Wc,zr)=>{"use strict";a();var Qi=je(),eo=(r,e,t)=>Qi(r,e,"<",t);zr.exports=eo});var es=E((Yc,Qr)=>{"use strict";a();var Zr=k(),to=(r,e,t)=>(r=new Zr(r,t),e=new Zr(e,t),r.intersects(e,t));Qr.exports=to});var rs=E((Kc,ts)=>{"use strict";a();var ro=oe(),so=q();ts.exports=(r,e,t)=>{let s=[],n=null,i=null,l=r.sort((f,u)=>so(f,u,t));for(let f of l)ro(f,e,t)?(i=f,n||(n=f)):(i&&s.push([n,i]),i=null,n=null);n&&s.push([n,null]);let o=[];for(let[f,u]of s)f===u?o.push(f):!u&&f===l[0]?o.push("*"):u?f===l[0]?o.push(`<=${u}`):o.push(`${f} - ${u}`):o.push(`>=${f}`);let c=o.join(" || "),p=typeof e.raw=="string"?e.raw:String(e);return c.length<p.length?c:e}});var ls=E((Qc,as)=>{"use strict";a();var ss=k(),ft=ne(),{ANY:ut}=ft,ae=oe(),pt=q(),no=(r,e,t={})=>{if(r===e)return!0;r=new ss(r,t),e=new ss(e,t);let s=!1;e:for(let n of r.set){for(let i of e.set){let l=oo(n,i,t);if(s=s||l!==null,l)continue e}if(s)return!1}return!0},io=[new ft(">=0.0.0-0")],ns=[new ft(">=0.0.0")],oo=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===ut){if(e.length===1&&e[0].semver===ut)return!0;t.includePrerelease?r=io:r=ns}if(e.length===1&&e[0].semver===ut){if(t.includePrerelease)return!0;e=ns}let s=new Set,n,i;for(let h of r)h.operator===">"||h.operator===">="?n=is(n,h,t):h.operator==="<"||h.operator==="<="?i=os(i,h,t):s.add(h.semver);if(s.size>1)return null;let l;if(n&&i){if(l=pt(n.semver,i.semver,t),l>0)return null;if(l===0&&(n.operator!==">="||i.operator!=="<="))return null}for(let h of s){if(n&&!ae(h,String(n),t)||i&&!ae(h,String(i),t))return null;for(let $ of e)if(!ae(h,String($),t))return!1;return!0}let o,c,p,f,u=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,m=n&&!t.includePrerelease&&n.semver.prerelease.length?n.semver:!1;u&&u.prerelease.length===1&&i.operator==="<"&&u.prerelease[0]===0&&(u=!1);for(let h of e){if(f=f||h.operator===">"||h.operator===">=",p=p||h.operator==="<"||h.operator==="<=",n){if(m&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===m.major&&h.semver.minor===m.minor&&h.semver.patch===m.patch&&(m=!1),h.operator===">"||h.operator===">="){if(o=is(n,h,t),o===h&&o!==n)return!1}else if(n.operator===">="&&!ae(n.semver,String(h),t))return!1}if(i){if(u&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===u.major&&h.semver.minor===u.minor&&h.semver.patch===u.patch&&(u=!1),h.operator==="<"||h.operator==="<="){if(c=os(i,h,t),c===h&&c!==i)return!1}else if(i.operator==="<="&&!ae(i.semver,String(h),t))return!1}if(!h.operator&&(i||n)&&l!==0)return!1}return!(n&&p&&!i&&l!==0||i&&f&&!n&&l!==0||m||u)},is=(r,e,t)=>{if(!r)return e;let s=pt(r.semver,e.semver,t);return s>0?r:s<0||e.operator===">"&&r.operator===">="?e:r},os=(r,e,t)=>{if(!r)return e;let s=pt(r.semver,e.semver,t);return s<0?r:s>0||e.operator==="<"&&r.operator==="<="?e:r};as.exports=no});var ps=E((tu,fs)=>{"use strict";a();var ht=z(),cs=te(),ao=N(),us=Ke(),lo=W(),co=qt(),uo=Dt(),fo=Vt(),po=Xt(),ho=Ht(),go=Mt(),mo=zt(),Eo=Zt(),wo=q(),$o=rr(),yo=nr(),vo=Ne(),Lo=lr(),Co=ur(),Io=se(),Ro=Oe(),bo=et(),No=tt(),Oo=Pe(),Po=Se(),So=rt(),xo=$r(),Ao=ne(),jo=k(),To=oe(),Fo=Tr(),qo=qr(),ko=Dr(),Do=Vr(),Go=_r(),Uo=je(),Vo=Yr(),Bo=Kr(),_o=es(),Xo=rs(),Jo=ls();fs.exports={parse:lo,valid:co,clean:uo,inc:fo,diff:po,major:ho,minor:go,patch:mo,prerelease:Eo,compare:wo,rcompare:$o,compareLoose:yo,compareBuild:vo,sort:Lo,rsort:Co,gt:Io,lt:Ro,eq:bo,neq:No,gte:Oo,lte:Po,cmp:So,coerce:xo,Comparator:Ao,Range:jo,satisfies:To,toComparators:Fo,maxSatisfying:qo,minSatisfying:ko,minVersion:Do,validRange:Go,outside:Uo,gtr:Vo,ltr:Bo,intersects:_o,simplifyRange:Xo,subset:Jo,SemVer:ao,re:ht.re,src:ht.src,tokens:ht.t,SEMVER_SPEC_VERSION:cs.SEMVER_SPEC_VERSION,RELEASE_TYPES:cs.RELEASE_TYPES,compareIdentifiers:us.compareIdentifiers,rcompareIdentifiers:us.rcompareIdentifiers}});a();a();var _e=I(D(),1);a();var $t=I(As(),1);var{Ansis:ma,ansi256:Ea,fg:wa,bgAnsi256:$a,bg:ya,rgb:va,bgRgb:La,hex:Ca,bgHex:Ia,reset:Ra,inverse:ba,hidden:Na,visible:Oa,bold:X,dim:T,italic:Pa,underline:Sa,strikethrough:xa,strike:Aa,black:ja,red:Ta,green:Fa,yellow:qa,blue:ka,magenta:Da,cyan:Q,white:Ga,grey:Ua,gray:Va,blackBright:Ba,redBright:_a,greenBright:Xa,yellowBright:Ja,blueBright:Ha,magentaBright:Wa,cyanBright:Ma,whiteBright:Ya,bgBlack:za,bgRed:Ka,bgGreen:Za,bgYellow:Qa,bgBlue:el,bgMagenta:tl,bgCyan:rl,bgWhite:sl,bgGrey:nl,bgGray:il,bgBlackBright:ol,bgRedBright:al,bgGreenBright:ll,bgYellowBright:cl,bgBlueBright:ul,bgMagentaBright:fl,bgCyanBright:pl,bgWhiteBright:hl}=$t.default;a();var P=I(D(),1);var vs=I(ee(),1),M=I(ps(),1);import{spawn as ea}from"node:child_process";import{access as ta,mkdir as ra,readFile as sa,rename as na,rm as Es,writeFile as ia}from"node:fs/promises";import{basename as oa,dirname as ws,join as A,parse as $s,resolve as dt}from"node:path";import{fileURLToPath as aa}from"node:url";a();var De=I(D(),1),gs=I(ee(),1);import{readFile as Wo}from"node:fs/promises";import{createRequire as Mo}from"node:module";import{join as Yo,sep as zo}from"node:path";a();var le=I(D(),1),hs=I(ee(),1);import{spawn as Ho}from"node:child_process";var Te=(0,hs.default)("@oclif/plugin-plugins:spawn");async function Fe(r,e=[],{cwd:t,logLevel:s}){return new Promise((n,i)=>{process.platform==="win32"&&r.endsWith(".js")&&(e.unshift(`"${r}"`),r="node"),Te("modulePath",r),Te("args",e);let l=Ho(r,e,{cwd:t,env:{...wt(),HUSKY:"0"},stdio:"pipe",windowsVerbatimArguments:!0,...process.platform==="win32"&&r.toLowerCase().endsWith(".cmd")&&{shell:!0}}),o=["up to date","added"],c=[],p=[],f=[],u=[],m=h=>{let $=f.length===0&&u.length===0,C=o.some(b=>h.startsWith(b));return $&&C&&s==="notice"?!1:s!=="silent"};l.stderr?.setEncoding("utf8"),l.stderr?.on("data",h=>{let $=h.toString().trim();c.push($),m($)?(f.push($),le.ux.stdout($)):Te($)}),l.stdout?.setEncoding("utf8"),l.stdout?.on("data",h=>{let $=h.toString().trim();p.push($),m($)?(u.push($),le.ux.stdout($)):Te($)}),l.on("error",i),l.on("exit",h=>{h===0?n({stderr:c,stdout:p}):i(new le.Errors.CLIError(`${r} ${e.join(" ")} exited with code ${h}`,{suggestions:["Run with DEBUG=@oclif/plugin-plugins* to see debug output."]}))})})}var qe=(0,gs.default)("@oclif/plugin-plugins:npm"),ke=class{bin;config;logLevel;constructor({config:e,logLevel:t}){this.config=e,this.logLevel=t}async exec(e=[],t){let s=await this.findNpm();qe("npm binary path",s),e.push(`--loglevel=${this.logLevel}`,"--no-fund"),this.config.npmRegistry&&e.push(`--registry=${this.config.npmRegistry}`),t.logLevel!=="notice"&&t.logLevel!=="silent"&&De.ux.stderr(`${t.cwd}: ${s} ${e.join(" ")}`),qe(`${t.cwd}: ${s} ${e.join(" ")}`);try{let n=await Fe(s,e,t);return qe("npm done"),n}catch(n){throw qe("npm error",n),n}}async install(e,t){let s=t.prod?["--omit","dev"]:[];return this.exec(["install",...e,...s,"--no-audit"],t)}async uninstall(e,t){return this.exec(["uninstall",...e],t)}async update(e,t){return this.exec(["update",...e],t)}async view(e,t){return this.exec(["view",...e],{...t,logLevel:"silent"})}async findNpm(){if(this.bin)return this.bin;try{let e=Mo(import.meta.url).resolve("npm/package.json"),t=JSON.parse(await Wo(e,{encoding:"utf8"})),s=e.slice(0,Math.max(0,e.lastIndexOf(zo)));this.bin=Yo(s,t.bin.npm)}catch{let{default:e}=await import("./lib-O5EZ4NVT.js");this.bin=await e("npm")}if(!this.bin)throw new De.Errors.CLIError("npm not found");return this.bin}};a();function gt(r,e){let t=r===void 0?0:r,s=e===void 0?0:e;if(Array.isArray(t)&&Array.isArray(s)){if(t.length===0&&s.length===0)return 0;let n=gt(t[0],s[0]);return n!==0?n:gt(t.slice(1),s.slice(1))}return t<s?-1:t>s?1:0}function K(r,e){return r.sort((t,s)=>gt(e(t),e(s)))}function ds(r,e){return r.filter((t,s)=>!r.some((n,i)=>i>s&&e(t,n)))}a();var Ve=I(D(),1),ms=I(ee(),1);import{createRequire as Ko}from"node:module";import{fileURLToPath as Zo}from"node:url";var Qo=Ko(import.meta.url),Ge=(0,ms.default)("@oclif/plugin-plugins:yarn"),Ue=class{bin;config;logLevel;constructor({config:e,logLevel:t}){this.config=e,this.logLevel=t}async exec(e=[],t){let s=await this.findYarn();Ge("yarn binary path",s),t.logLevel==="verbose"&&e.push("--verbose"),this.config.npmRegistry&&e.push(`--registry=${this.config.npmRegistry}`),t.logLevel!=="notice"&&t.logLevel!=="silent"&&Ve.ux.stderr(`${t.cwd}: ${s} ${e.join(" ")}`),Ge(`${t.cwd}: ${s} ${e.join(" ")}`);try{let n=await Fe(s,e,t);return Ge("yarn done"),n}catch(n){throw Ge("yarn error",n),n}}async install(e,t){return this.exec(["install",...e],t)}async findYarn(){if(this.bin)return this.bin;try{this.bin=Qo.resolve("yarn/bin/yarn.js",{paths:[this.config.root,Zo(import.meta.url)]})}catch{let{default:e}=await import("./lib-O5EZ4NVT.js");this.bin=await e("yarn")}if(!this.bin)throw new Ve.Errors.CLIError("yarn not found");return this.bin}};var Be={dependencies:{},oclif:{plugins:[],schema:1},private:!0};async function Z(r){try{return await ta(r),!0}catch{return!1}}function Ls(r){return ds(r,(e,t)=>e.name===t.name||e.type==="link"&&t.type==="link"&&e.root===t.root)}function la(r,e){if(r)return typeof r=="string"?r:r.url;if(e)return typeof e=="string"?e:e.url.replace("git+","").replace(".git","")}function ys(r,e){[...e.stdout,...e.stderr].some(s=>s.includes("npm WARN"))&&(P.ux.stderr(X.yellow(`
|
|
6
|
-
These warnings can only be addressed by the owner(s) of ${r.name}.`)),(r.pjson.bugs||r.pjson.repository)&&P.ux.stderr(`We suggest that you create an issue at ${la(r.pjson.bugs,r.pjson.repository)} and ask the plugin owners to address them.
|
|
7
|
-
`))}var v=class{config;npm;debug;logLevel;constructor(e){this.config=e.config,this.debug=(0,vs.default)("@oclif/plugin-plugins"),this.logLevel=e.logLevel??"notice",this.npm=new ke({config:this.config,logLevel:this.logLevel})}get pjsonPath(){return A(this.config.dataDir,"package.json")}async add(...e){let t=await this.pjson(),s=[...t.oclif.plugins||[],...e];await this.savePJSON({...t,oclif:{...t.oclif,plugins:Ls(s)}})}friendlyName(e){let{pluginPrefix:t,scope:s}=this.config.pjson.oclif;return s?e.match(`@${s}/${t??"plugin"}-(.+)`)?.[1]??e:e}async hasPlugin(e){let t=await this.list(),s=this.friendlyName(e),n=this.unfriendlyName(e)??e;return t.find(i=>this.friendlyName(i.name)===s)??t.find(i=>this.unfriendlyName(i.name)===n)??t.find(i=>i.type==="link"&&dt(i.root)===dt(e))??!1}async install(e,{force:t=!1,tag:s="latest"}={}){await this.maybeCleanUp();try{this.debug(`installing plugin ${e}`);let n={cwd:this.config.dataDir,logLevel:this.logLevel,prod:!0};await this.ensurePJSON();let i,l=t?["--force"]:[];if(e.includes(":")){let o=e,c=await this.npm.install([...l,o],n),{dependencies:p}=await this.pjson(),{default:f}=await import("./npa-A4YSCQ5Q.js"),u=f(o),h=Object.entries(p??{}).find(([,j])=>{let J=f(j);return J.type==="file"&&J.raw?$s(o).base===$s(J.raw).base:J.hosted?.type===u.hosted?.type&&J.hosted?.user===u.hosted?.user&&J.hosted?.project===u.hosted?.project})?.[0];if(!h)throw new P.Errors.CLIError(`Could not find plugin name for ${o}`);let $=A(this.config.dataDir,"node_modules",h);i=await P.Config.load({devPlugins:!1,name:h,root:$,userPlugins:!1}),ys(i,c),this.isValidPlugin(i),await this.add({name:h,type:"user",url:o});let C=new Set(["npm-shrinkwrap.json","oclif.lock","oclif.manifest.json"]),b=(i.pjson.files??[]).map(j=>A($,j)).filter(j=>!C.has(oa(j)));this.debug(`checking for existence of files: ${b.join(", ")}`);let V=Object.fromEntries(await Promise.all(b?.map(async j=>[j,await Z(j)])??[]));this.debug(V),Object.values(V).every(Boolean)||P.ux.warn("This plugin may not work as expected because the prepare script did not produce all the expected files.")}else{let o=(0,M.validRange)(s),c=this.unfriendlyName(e);c&&await this.npmHasPackage(c)&&(e=c),await this.npmHasPackage(e,!0);let p=await this.npm.install([...l,`${e}@${s}`],n);this.debug(`loading plugin ${e}...`),i=await P.Config.load({devPlugins:!1,name:e,root:A(this.config.dataDir,"node_modules",e),userPlugins:!1}),this.debug(`finished loading plugin ${e} at root ${i.root}`),ys(i,p),this.isValidPlugin(i),await this.add({name:e,tag:o??s,type:"user"})}return await Es(A(this.config.dataDir,"yarn.lock"),{force:!0}),i}catch(n){throw this.debug("error installing plugin:",n),await this.uninstall(e).catch(i=>this.debug(i)),String(n).includes("EACCES")?new P.Errors.CLIError(n,{suggestions:[`Plugin failed to install because of a permissions error.
|
|
8
|
-
Does your current user own the directory ${this.config.dataDir}?`]}):n}}async link(e,{install:t}){let s=await P.Config.load(dt(e));return this.isValidPlugin(s),t&&(await Z(A(s.root,"yarn.lock"))?(this.debug("installing dependencies with yarn"),await new Ue({config:this.config,logLevel:this.logLevel}).install([],{cwd:s.root,logLevel:this.logLevel})):await Z(A(s.root,"package-lock.json"))?(this.debug("installing dependencies with npm"),await this.npm.install([],{cwd:s.root,logLevel:this.logLevel,prod:!1})):await Z(A(s.root,"pnpm-lock.yaml"))?P.ux.warn(`pnpm is not supported for installing after a link. The link succeeded, but you may need to run 'pnpm install' in ${s.root}.`):P.ux.warn(`No lockfile found in ${s.root}. The link succeeded, but you may need to install the dependencies in your project.`)),await this.add({name:s.name,root:s.root,type:"link"}),s}async list(){return(await this.pjson()).oclif.plugins}async maybeUnfriendlyName(e){await this.ensurePJSON();let t=this.unfriendlyName(e);return this.debug(`checking registry for expanded package name ${t}`),t&&await this.npmHasPackage(t)?t:(this.debug(`expanded package name ${t} not found, using given package name ${e}`),e)}async pjson(){let e=await this.readPJSON(),t=e?ca(e.oclif.plugins):[];return{...Be,...e,oclif:{...Be.oclif,...e?.oclif,plugins:t}}}async remove(e){let t=await this.pjson();t.dependencies&&delete t.dependencies[e],await this.savePJSON({...t,oclif:{...t.oclif,plugins:t.oclif.plugins.filter(s=>s.name!==e)}})}unfriendlyName(e){if(e.includes("@"))return;let{pluginPrefix:t,scope:s}=this.config.pjson.oclif;if(s)return`@${s}/${t??"plugin"}-${e}`}async uninstall(e){try{((await this.pjson()).oclif.plugins??[]).some(s=>typeof s=="object"&&s.type==="user"&&s.name===e)&&await this.npm.uninstall([e],{cwd:this.config.dataDir,logLevel:this.logLevel})}catch(t){P.ux.warn(t)}finally{await this.remove(e)}}async update(){let e=(await this.list()).filter(o=>o.type==="user");if(e.length===0)return;await this.maybeCleanUp();let t=this.config.pjson.oclif.aliases||{};for(let[o,c]of Object.entries(t))e.find(f=>f.name===o)&&(c&&await this.install(c),await this.uninstall(o),e=e.filter(f=>f.name!==o));let s=e.filter(o=>!!o.url);s.length>0&&await this.npm.update(s.map(o=>o.name),{cwd:this.config.dataDir,logLevel:this.logLevel});let n=e.filter(o=>!o.url),i=this.config.pjson.oclif.jitPlugins??{},l=[];n.length>0&&await this.npm.install(n.map(o=>{if(!(0,M.valid)(o.tag))return`${o.name}@${o.tag}`;if(o.tag&&(0,M.valid)(o.tag)&&i[o.name]&&(0,M.gt)(o.tag,i[o.name]))return`${o.name}@${o.tag}`;let c=i[o.name]??o.tag;return l.push({...o,tag:c}),`${o.name}@${c}`}),{cwd:this.config.dataDir,logLevel:this.logLevel,prod:!0}),await this.add(...l)}async ensurePJSON(){await Z(this.pjsonPath)||(this.debug(`creating ${this.pjsonPath} with pjson: ${JSON.stringify(Be,null,2)}`),await this.savePJSON(Be))}isValidPlugin(e){if(e.valid||this.config.plugins.get("@oclif/plugin-legacy")||e._base.includes("@oclif/plugin-legacy"))return!0;throw new P.Errors.CLIError("plugin is invalid",{suggestions:[`Plugin failed to install because it does not appear to be a valid CLI plugin.
|
|
9
|
-
If you are sure it is, contact the CLI developer noting this error.`]})}async maybeCleanUp(){if(await Z(A(this.config.dataDir,"yarn.lock")))try{this.debug("Found yarn.lock! Removing yarn.lock and node_modules..."),await Promise.all([na(A(this.config.dataDir,"node_modules"),A(this.config.dataDir,"node_modules.old")),Es(A(this.config.dataDir,"yarn.lock"),{force:!0})]);let e=A(ws(aa(import.meta.url)),"rm.js");this.debug(`spawning ${e} to remove node_modules.old`),ea(process.argv[0],[e,A(this.config.dataDir,"node_modules.old")],{detached:!0,stdio:"ignore",...this.config.windows?{shell:!0}:{}}).unref()}catch(e){this.debug("Error cleaning up yarn.lock and node_modules:",e)}}async npmHasPackage(e,t=!1){try{return await this.npm.view([e],{cwd:this.config.dataDir,logLevel:this.logLevel}),this.debug(`Found ${e} in the registry.`),!0}catch(s){if(this.debug(s),t)throw new P.Errors.CLIError(`${e} does not exist in the registry.`);return!1}}async readPJSON(){try{return JSON.parse(await sa(this.pjsonPath,"utf8"))}catch(e){this.debug(e);let t=e;t.code!=="ENOENT"&&process.emitWarning(t)}}async savePJSON(e){await ra(ws(this.pjsonPath),{recursive:!0}),await ia(this.pjsonPath,JSON.stringify({name:this.config.name,...e},null,2))}},ca=r=>{let e=(r??[]).map(t=>typeof t=="string"?{name:t,tag:"latest",type:"user"}:t);return Ls(e)};var ce=class r extends _e.Command{static description="List installed plugins.";static enableJsonFlag=!0;static examples=["<%= config.bin %> <%= command.id %>"];static flags={core:_e.Flags.boolean({description:"Show core plugins."})};plugins;async run(){let{flags:e}=await this.parse(r);this.plugins=new v({config:this.config});let t=this.config.getPluginsList();K(t,o=>this.plugins.friendlyName(o.name)),e.core||(t=t.filter(o=>o.type!=="core"&&o.type!=="dev")),t.length===0&&this.log("No plugins installed.");let s=this.config.getPluginsList(),n=new Set(s.filter(o=>o.type==="user"||o.type==="link").map(o=>o.name)),i=this.config.pjson.oclif.jitPlugins??{},l=Object.entries(i).map(([o,c])=>({name:o,type:"jit",version:c})).filter(o=>!n.has(o.name));return K(l,o=>o.name),this.jsonEnabled()||(this.display(t),this.displayJitPlugins(l)),[...s.filter(o=>!o.parent).map(o=>{let{config:c,...p}=o;return p}),...l]}createTree(e){let t={};for(let s of e.children??[])t[this.formatPlugin(s)]=this.createTree(s);return t}display(e){let t=e.find(s=>s.root===this.config.root);for(let s of e.filter(n=>!n.parent))if(s.name!==t?.name&&(this.log(this.formatPlugin(s)),s.children&&s.children.length>0)){let n=this.createTree(s);this.log(we(n))}}displayJitPlugins(e){if(e.length!==0){this.log(T(`
|
|
10
|
-
Uninstalled JIT Plugins:`));for(let{name:t,version:s}of e)this.log(`${this.plugins.friendlyName(t)} ${T(s)}`)}}formatPlugin(e){let t=`${this.plugins.friendlyName(e.name)} ${T(e.version)}`;return e.type!=="user"&&(t+=T(` (${e.type})`)),e.type==="link"?t+=` ${e.root}`:e.tag&&e.tag!=="latest"&&(t+=T(` (${String(e.tag)})`)),t}};a();var Y=I(D(),1);import{readFile as Cs}from"node:fs/promises";import{dirname as fa,join as Xe,sep as Is}from"node:path";a();var ua=["silent","error","warn","notice","http","info","verbose","silly"];function _(r,e,t){if(e.verbose)return"verbose";if(e.silent)return"silent";let s=r.scopedEnvVar("NPM_LOG_LEVEL");return ua.includes(s)?s:t}function pa(r,e){let t=r.split(Is),s=t.reduce((i,l,o)=>l===e?[...i,o]:i,[]),n=Math.max(...s);return n===-1?r:t.slice(0,n+1).join(Is)}var ue=class r extends Y.Command{static args={plugin:Y.Args.string({default:".",description:"Plugin to inspect.",required:!0})};static description="Displays installation properties of a plugin.";static enableJsonFlag=!0;static examples=['<%= config.bin %> <%= command.id %> <%- config.pjson.oclif.examplePlugin || "myplugin" %> '];static flags={help:Y.Flags.help({char:"h"}),verbose:Y.Flags.boolean({char:"v"})};static strict=!1;static usage="plugins:inspect PLUGIN...";plugins;async findDep(e,t){let s=Xe(...t.split("/")),n=Xe(e.root,"node_modules"),i=[n];for(;(n.match(/node_modules/g)??[]).length>1;)n=pa(fa(n),"node_modules"),i.push(n);for(let l of i)try{let o=Xe(l,s),c=Xe(o,"package.json"),p=JSON.parse(await Cs(c,"utf8"));return{pkgPath:o,version:p.version}}catch{}return{pkgPath:null,version:null}}findPlugin(e){let t=this.config.getPluginsList().find(s=>s.name===e);if(t)return t;throw this.config.pjson.oclif.jitPlugins?.[e]&&this.warn(`Plugin ${e} is a JIT plugin. It will be installed the first time you run one of it's commands.`),new Error(`${e} not installed`)}async inspect(e,t=!1){let s=this.findPlugin(e),n={},i={};for(let o of K(Object.keys({...s.pjson.dependencies}),c=>c)){let{pkgPath:c,version:p}=await this.findDep(s,o);if(!p)continue;let f=s.pjson.dependencies?.[o],u=T(f?`${f} => ${p}`:p),m=t?`${o} ${u} ${c}`:`${o} ${u}`;n[m]=null,i[o]={from:f,version:p}}let l={[X.cyan(s.name)]:{[`version ${s.version}`]:null,...s.tag?{[`tag ${s.tag}`]:null}:{},...s.pjson.homepage?{[`homepage ${s.pjson.homepage}`]:null}:{},[`location ${s.root}`]:null,commands:Object.fromEntries(K(s.commandIDs,o=>o).map(o=>[o,null])),dependencies:n}};return this.log(we(l)),{...s,deps:i}}async run(){let{argv:e,flags:t}=await this.parse(r);this.plugins=new v({config:this.config,logLevel:_(this.config,t,"silent")});let s=this.config.pjson.oclif.aliases??{},n=[];for(let i of e){i==="."&&(i=JSON.parse(await Cs("package.json","utf8")).name),s[i]===null&&this.error(`${i} is blocked`),i=s[i]??i;let l=await this.plugins.maybeUnfriendlyName(i)??i;try{n.push(await this.inspect(l,t.verbose))}catch(o){throw this.log(X.red("failed")),o}}return n}};a();var L=I(D(),1);var Rs=I(js(),1);var fe=class r extends L.Command{static aliases=["plugins:add"];static args={plugin:L.Args.string({description:"Plugin to install.",required:!0})};static description=`Uses npm to install plugins.
|
|
11
|
-
|
|
12
|
-
Installation of a user-installed plugin will override a core plugin.
|
|
13
|
-
|
|
14
|
-
Use the <%= config.scopedEnvVarKey('NPM_LOG_LEVEL') %> environment variable to set the npm loglevel.
|
|
15
|
-
Use the <%= config.scopedEnvVarKey('NPM_REGISTRY') %> environment variable to set the npm registry.`;static enableJsonFlag=!0;static examples=[{command:'<%= config.bin %> <%= command.id %> <%- config.pjson.oclif.examplePlugin || "myplugin" %> ',description:"Install a plugin from npm registry."},{command:"<%= config.bin %> <%= command.id %> https://github.com/someuser/someplugin",description:"Install a plugin from a github url."},{command:"<%= config.bin %> <%= command.id %> someuser/someplugin",description:"Install a plugin from a github slug."}];static flags={force:L.Flags.boolean({char:"f",description:"Force npm to fetch remote resources even if a local copy exists on disk."}),help:L.Flags.help({char:"h"}),jit:L.Flags.boolean({hidden:!0,async parse(e,t){if(e===!1||e===void 0)return e;let s=t.argv.filter(c=>!c.startsWith("-"));if(s.length===0)return e;let n=t.config.pjson.oclif.jitPlugins??{};if(Object.keys(n).length===0)return e;let i=new v({config:t.config}),o=(await Promise.all(s.map(async c=>{let p=await i.maybeUnfriendlyName(c);return{jit:!!n[p],name:p}}))).filter(c=>!c.jit).map(c=>c.name);if(o.length>0)throw new L.Errors.CLIError(`The following plugins are not JIT plugins: ${o.join(", ")}`);return e}}),silent:L.Flags.boolean({char:"s",description:"Silences npm output.",exclusive:["verbose"]}),verbose:L.Flags.boolean({char:"v",description:"Show verbose npm output.",exclusive:["silent"]})};static strict=!1;static summary="Installs a plugin into <%= config.bin %>.";flags;async parsePlugin(e,t){if(t.startsWith("git+ssh://")||t.endsWith(".git"))return{type:"repo",url:t};let s=async l=>{let o=/(?<!^)@/,[c,p="latest"]=l.split(o),f=c.startsWith("@")?c:await e.maybeUnfriendlyName(c);if(ha(f),this.flags.jit){let u=this.config.pjson.oclif?.jitPlugins?.[f];return u?(o.test(l)&&this.warn(`--jit flag is present along side a tag. Ignoring tag ${p} and using the version specified in package.json (${u}).`),{name:f,tag:u}):(this.warn(`--jit flag is present but ${f} is not a JIT plugin. Installing ${p} instead.`),{name:f,tag:p})}return{name:f,tag:p}};if(t.startsWith("@")&&t.includes("/")){let{name:l,tag:o}=await s(t);return{name:l,tag:o,type:"npm"}}if(t.includes("/"))return t.includes(":")?{type:"repo",url:t}:{type:"repo",url:`https://github.com/${t}`};let{name:n,tag:i}=await s(t);return{name:n,tag:i,type:"npm"}}async run(){let{argv:e,flags:t}=await this.parse(r);this.flags=t;let s=new v({config:this.config,logLevel:_(this.config,this.flags,"notice")}),n=this.config.pjson.oclif.aliases||{},i=e.length;for(let l of e){if(n[l]===null&&this.error(`${l} is blocked`),l=n[l]||l,l===this.config.name){let f=this.config.binPath&&this.config.plugins.get("@oclif/plugin-update")?` Use "${this.config.bin} update" to update ${this.config.name}.`:"",u=`Ignoring top-level CLI plugin ${this.config.name}.${f}`;i===1?this.error(u):this.warn(u);continue}let o=await this.parsePlugin(s,l),c;await this.config.runHook("plugins:preinstall",{plugin:o});try{o.type==="npm"?(L.ux.action.start(`${this.config.name}: Installing plugin ${Q(s.friendlyName(o.name)+"@"+o.tag)}`),c=await s.install(o.name,{force:t.force,tag:o.tag})):(L.ux.action.start(`${this.config.name}: Installing plugin ${Q(o.url)}`),c=await s.install(o.url,{force:t.force}))}catch(f){throw L.ux.action.stop(X.red("failed")),f}let p=new L.Plugin(c);await p.load(),this.config.plugins.set(p.name,p),await this.config.runHook("plugins:postinstall",{}),L.ux.action.stop(`installed v${c.version}`)}}};function ha(r){if(!(0,Rs.default)(r).validForNewPackages)throw new L.Errors.CLIError("Invalid npm package name.")}a();var G=I(D(),1);var pe=class r extends G.Command{static args={path:G.Args.string({default:".",description:"path to plugin",name:"path",required:!0})};static description=`Installation of a linked plugin will override a user-installed or core plugin.
|
|
16
|
-
|
|
17
|
-
e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello' command will override the user-installed or core plugin implementation. This is useful for development work.
|
|
18
|
-
`;static examples=['<%= config.bin %> <%= command.id %> <%- config.pjson.oclif.examplePlugin || "myplugin" %> '];static flags={help:G.Flags.help({char:"h"}),install:G.Flags.boolean({allowNo:!0,default:!0,description:"Install dependencies after linking the plugin."}),verbose:G.Flags.boolean({char:"v"})};static summary="Links a plugin into the CLI for development.";async run(){let{args:e,flags:t}=await this.parse(r),s=new v({config:this.config,logLevel:_(this.config,t,"silent")});G.ux.action.start(`${this.config.name}: Linking plugin ${Q(e.path)}`),await s.link(e.path,{install:t.install}),G.ux.action.stop()}};a();var he=I(D(),1);import{rm as ga}from"node:fs/promises";import{join as Je}from"node:path";var ge=class r extends he.Command{static flags={hard:he.Flags.boolean({summary:"Delete node_modules and package manager related files in addition to uninstalling plugins."}),reinstall:he.Flags.boolean({summary:"Reinstall all plugins after uninstalling."})};static summary="Remove all user-installed and linked plugins.";async run(){let{flags:e}=await this.parse(r),t=new v({config:this.config}),s=await t.list();this.log(`Found ${s.length} plugin${s.length===0?"":"s"}:`);for(let n of s)this.log(`- ${n.name} ${T(this.config.plugins.get(n.name)?.version??"")} ${T(`(${n.type})`)}`);if(e.hard){let n=[Je(this.config.dataDir,"node_modules"),Je(this.config.dataDir,"package.json"),Je(this.config.dataDir,"yarn.lock"),Je(this.config.dataDir,"package-lock.json")];this.log("\u2705 Removed the following files:");for(let i of n)this.log(`- ${i}`);await Promise.all(n.map(i=>ga(i,{force:!0,recursive:!0})));for(let i of s)this.log(`\u2705 ${i.type==="link"?"Unlinked":"Uninstalled"} ${i.name}`)}else for(let n of s)try{await t.uninstall(n.name),this.log(`\u2705 ${n.type==="link"?"Unlinked":"Uninstalled"} ${n.name}`)}catch{this.warn(`Failed to uninstall ${n.name}`)}if(e.reinstall){this.log("Reinstall flag passed:");for(let n of s){if(n.type==="link")try{let i=await t.link(n.root,{install:!1}),l=T(`-> ${i.version}`);this.log(`\u2705 Relinked ${n.name} ${l}`)}catch{this.warn(`Failed to relink ${n.name}`)}if(n.type==="user")try{let i=n.url?await t.install(n.url):await t.install(n.name,{tag:n.tag}),l=T(`-> ${i.version}`),o=n.tag?`@${n.tag}`:n.url?` (${n.url})`:"";this.log(`\u2705 Reinstalled ${n.name}${o} ${l}`)}catch{this.warn(`Failed to reinstall ${n.name}`)}}}}};a();var U=I(D(),1);function bs(r){if(r.includes("@")){let e=r.split("@");return!e.at(-1)?.includes("/")&&e.length>1&&e.pop(),e.join("@")}return r}var de=class r extends U.Command{static aliases=["plugins:unlink","plugins:remove"];static args={plugin:U.Args.string({description:"plugin to uninstall"})};static description="Removes a plugin from the CLI.";static examples=['<%= config.bin %> <%= command.id %> <%- config.pjson.oclif.examplePlugin || "myplugin" %>'];static flags={help:U.Flags.help({char:"h"}),verbose:U.Flags.boolean({char:"v"})};static strict=!1;async run(){let{argv:e,flags:t}=await this.parse(r),s=new v({config:this.config,logLevel:_(this.config,t,"silent")}),n=[];e.length===0&&e.push(".");for(let i of e){let l=bs(s.friendlyName(i)),o=await s.hasPlugin(bs(i));if(!o){let c=this.config.getPluginsList().find(p=>p.name===i);return c?.parent?this.error(`${l} is installed via plugin ${c.parent.name}, uninstall ${c.parent.name} instead`):this.error(`${l} is not installed`)}try{let{name:c}=o,p=l==="."?c:l??c;U.ux.action.start(`${this.config.name}: Uninstalling ${p}`),await s.uninstall(c),n.push(c)}catch(c){throw U.ux.action.stop(X.red("failed")),c}U.ux.action.stop()}for(let i of n)this.config.plugins.delete(i);await this.config.runHook("plugins:postuninstall",{})}};a();var H=I(D(),1);var me=class r extends H.Command{static description="Update installed plugins.";static flags={help:H.Flags.help({char:"h"}),verbose:H.Flags.boolean({char:"v"})};async run(){let{flags:e}=await this.parse(r),t=new v({config:this.config,logLevel:_(this.config,e,"silent")});H.ux.action.start(`${this.config.name}: Updating plugins`),await t.update(),H.ux.action.stop()}};a();var Ns=async function(){let r=new v({config:this.config});try{await r.update()}catch(e){e instanceof Error&&this.error(e.message)}};var Sf={plugins:ce,"plugins:inspect":ue,"plugins:install":fe,"plugins:link":pe,"plugins:reset":ge,"plugins:uninstall":de,"plugins:update":me},xf={update:Ns};export{Sf as a,xf as b};
|
package/dist/chunk-N5HGT3TE.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{a as C}from"./chunk-6ZRHK4ON.js";import{a as E}from"./chunk-7XQDZF73.js";import{Fa as y,W as F,X as _,Y as x}from"./chunk-UZ7U322K.js";import{b as I}from"./chunk-Q6LCSRIW.js";import{D as A,v,x as h}from"./chunk-E24W34C4.js";import{d as w}from"./chunk-3QVXHF6I.js";import{f as k}from"./chunk-ELIH6GCC.js";import{r as b}from"./chunk-T6CC5WUU.js";import{e as T,g as d}from"./chunk-VKWPEFWQ.js";d();d();async function P(n){let{developerPlatformClient:e,app:m,remoteApp:o}=n,{extensionIdentifiersBreakdown:a,versionDetails:r}=await F(e,o,n.version),l=await _({developerPlatformClient:e,apiKey:o.apiKey,localApp:m,remoteApp:o,versionAppModules:r.appModuleVersions.map(t=>({...t})),release:!0});if(!await x({configExtensionIdentifiersBreakdown:l,extensionIdentifiersBreakdown:a,appTitle:o.title,release:!0,force:n.force,allowUpdates:n.allowUpdates,allowDeletes:n.allowDeletes}))throw new k;let f=[{title:"Releasing version",task:async t=>{t.appRelease=await e.release({app:o,version:{versionId:r.uuid,appVersionId:r.id}})}}],{appRelease:{appRelease:i}}=await A(f),u=[{link:{label:r.versionTag??void 0,url:r.location}},r.message?`
|
|
2
|
-
${r.message}`:""];if(i.userErrors&&i.userErrors.length>0){let t=i.userErrors?.map(R=>R.message).join(", ");h({headline:"Version couldn't be released.",body:[...u,`${u.length>0?`
|
|
3
|
-
|
|
4
|
-
`:""}${t}`]})}else v({headline:"Version released to users.",body:u})}var p=T(b(),1);var g,s=class extends C{async run(){let{flags:e}=await this.parse(g),m=e["client-id"];await w(()=>({cmd_app_reset_used:e.reset}));let o=e["allow-updates"],a=e["allow-deletes"],r=!!(o&&a),l=[];!o&&!a&&l.push("allow-updates"),this.failMissingNonTTYFlags(e,l);let{app:c,remoteApp:f,developerPlatformClient:i}=await y({directory:e.path,clientId:m,forceRelink:e.reset,userProvidedConfigName:e.config});return await P({app:c,remoteApp:f,developerPlatformClient:i,force:r,allowUpdates:o,allowDeletes:a,version:e.version}),{app:c}}};g=s;s.summary="Release an app version.";s.usage="app release --version <version>";s.descriptionWithMarkdown="Releases an existing app version. Pass the name of the version that you want to release using the `--version` flag.";s.description=g.descriptionWithoutMarkdown();s.flags={...I,...E,"allow-updates":p.Flags.boolean({hidden:!1,description:"Allows adding and updating extensions and configuration without requiring user confirmation. Recommended option for CI/CD environments.",env:"SHOPIFY_FLAG_ALLOW_UPDATES"}),"allow-deletes":p.Flags.boolean({hidden:!1,description:"Allows removing extensions and configuration without requiring user confirmation. For CI/CD environments, the recommended flag is --allow-updates.",env:"SHOPIFY_FLAG_ALLOW_DELETES"}),version:p.Flags.string({hidden:!1,description:"The name of the app version to release.",env:"SHOPIFY_FLAG_VERSION",required:!0})};var G=s;export{G as a};
|
package/dist/chunk-NJOO5XJV.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as E,g as y}from"./chunk-VKWPEFWQ.js";var B=E((N,w)=>{"use strict";y();w.exports=$;function $(r,e,a){r instanceof RegExp&&(r=I(r,a)),e instanceof RegExp&&(e=I(e,a));var n=R(r,e,a);return n&&{start:n[0],end:n[1],pre:a.slice(0,n[0]),body:a.slice(n[0]+r.length,n[1]),post:a.slice(n[1]+e.length)}}function I(r,e){var a=e.match(r);return a?a[0]:null}$.range=R;function R(r,e,a){var n,t,l,i,o,f=a.indexOf(r),u=a.indexOf(e,f+1),v=f;if(f>=0&&u>0){if(r===e)return[f,u];for(n=[],l=a.length;v>=0&&!o;)v==f?(n.push(v),f=a.indexOf(r,v+1)):n.length==1?o=[n.pop(),u]:(t=n.pop(),t<l&&(l=t,i=u),u=a.indexOf(e,v+1)),v=f<u&&f>=0?f:u;n.length&&(o=[l,i])}return o}});var q=E((er,T)=>{y();var L=B();T.exports=W;var S="\0SLASH"+Math.random()+"\0",Z="\0OPEN"+Math.random()+"\0",x="\0CLOSE"+Math.random()+"\0",z="\0COMMA"+Math.random()+"\0",D="\0PERIOD"+Math.random()+"\0";function b(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function U(r){return r.split("\\\\").join(S).split("\\{").join(Z).split("\\}").join(x).split("\\,").join(z).split("\\.").join(D)}function V(r){return r.split(S).join("\\").split(Z).join("{").split(x).join("}").split(z).join(",").split(D).join(".")}function H(r){if(!r)return[""];var e=[],a=L("{","}",r);if(!a)return r.split(",");var n=a.pre,t=a.body,l=a.post,i=n.split(",");i[i.length-1]+="{"+t+"}";var o=H(l);return l.length&&(i[i.length-1]+=o.shift(),i.push.apply(i,o)),e.push.apply(e,i),e}function W(r,e){if(!r)return[];e=e||{};var a=e.max==null?1/0:e.max;return r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),c(U(r),a,!0).map(V)}function X(r){return"{"+r+"}"}function Y(r){return/^-?0\d/.test(r)}function _(r,e){return r<=e}function k(r,e){return r>=e}function c(r,e,a){var n=[],t=L("{","}",r);if(!t)return[r];var l=t.pre,i=t.post.length?c(t.post,e,!1):[""];if(/\$$/.test(t.pre))for(var o=0;o<i.length&&o<e;o++){var f=l+"{"+t.body+"}"+i[o];n.push(f)}else{var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(t.body),v=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(t.body),m=u||v,F=t.body.indexOf(",")>=0;if(!m&&!F)return t.post.match(/,(?!,).*\}/)?(r=t.pre+"{"+t.body+x+t.post,c(r,e,!0)):[r];var p;if(m)p=t.body.split(/\.\./);else if(p=H(t.body),p.length===1&&(p=c(p[0],e,!1).map(X),p.length===1))return i.map(function(Q){return t.pre+p[0]+Q});var h;if(m){var M=b(p[0]),j=b(p[1]),G=Math.max(p[0].length,p[1].length),O=p.length==3?Math.max(Math.abs(b(p[2])),1):1,C=_,J=j<M;J&&(O*=-1,C=k);var K=p.some(Y);h=[];for(var g=M;C(g,j);g+=O){var s;if(v)s=String.fromCharCode(g),s==="\\"&&(s="");else if(s=String(g),K){var P=G-s.length;if(P>0){var A=new Array(P+1).join("0");g<0?s="-"+A+s.slice(1):s=A+s}}h.push(s)}}else{h=[];for(var d=0;d<p.length;d++)h.push.apply(h,c(p[d],e,!1))}for(var d=0;d<h.length;d++)for(var o=0;o<i.length&&n.length<e;o++){var f=l+h[d]+i[o];(!a||m||f)&&n.push(f)}}return n}});export{B as a,q as b};
|
package/dist/chunk-NNOSZ447.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as s}from"./chunk-773TIA5M.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();function L(o){return o?["1","true","TRUE","yes","YES"].includes(o):!1}i();i();import e from"node:path";import O from"node:os";import c from"node:process";var n=O.homedir(),I=O.tmpdir(),{env:r}=c,p=o=>{let t=e.join(n,"Library");return{data:e.join(t,"Application Support",o),config:e.join(t,"Preferences",o),cache:e.join(t,"Caches",o),log:e.join(t,"Logs",o),temp:e.join(I,o)}},A=o=>{let t=r.APPDATA||e.join(n,"AppData","Roaming"),_=r.LOCALAPPDATA||e.join(n,"AppData","Local");return{data:e.join(_,o,"Data"),config:e.join(t,o,"Config"),cache:e.join(_,o,"Cache"),log:e.join(_,o,"Log"),temp:e.join(I,o)}},S=o=>{let t=e.basename(n);return{data:e.join(r.XDG_DATA_HOME||e.join(n,".local","share"),o),config:e.join(r.XDG_CONFIG_HOME||e.join(n,".config"),o),cache:e.join(r.XDG_CACHE_HOME||e.join(n,".cache"),o),log:e.join(r.XDG_STATE_HOME||e.join(n,".local","state"),o),temp:e.join(I,t,o)}};function a(o,{suffix:t="nodejs"}={}){if(typeof o!="string")throw new TypeError(`Expected a string, got ${typeof o}`);return t&&(o+=`-${t}`),c.platform==="darwin"?p(o):c.platform==="win32"?A(o):S(o)}var P="shopify-cli",E=()=>process.env.XDG_CACHE_HOME?process.env.XDG_CACHE_HOME:a(P).cache;var T={alwaysLogAnalytics:"SHOPIFY_CLI_ALWAYS_LOG_ANALYTICS",alwaysLogMetrics:"SHOPIFY_CLI_ALWAYS_LOG_METRICS",deviceAuth:"SHOPIFY_CLI_DEVICE_AUTH",doctor:"SHOPIFY_CLI_DOCTOR",enableCliRedirect:"SHOPIFY_CLI_ENABLE_CLI_REDIRECT",env:"SHOPIFY_CLI_ENV",firstPartyDev:"SHOPIFY_CLI_1P_DEV",noAnalytics:"SHOPIFY_CLI_NO_ANALYTICS",optOutInstrumentation:"OPT_OUT_INSTRUMENTATION",appAutomationToken:"SHOPIFY_APP_AUTOMATION_TOKEN",partnersToken:"SHOPIFY_CLI_PARTNERS_TOKEN",runAsUser:"SHOPIFY_RUN_AS_USER",serviceEnv:"SHOPIFY_SERVICE_ENV",skipCliRedirect:"SHOPIFY_CLI_SKIP_CLI_REDIRECT",spinInstance:"SPIN_INSTANCE",themeToken:"SHOPIFY_CLI_THEME_TOKEN",unitTest:"SHOPIFY_UNIT_TEST",verbose:"SHOPIFY_FLAG_VERBOSE",codespaces:"CODESPACES",codespaceName:"CODESPACE_NAME",codespacePortForwardingDomain:"GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN",gitpod:"GITPOD_WORKSPACE_URL",cloudShell:"CLOUD_SHELL",spinAppPort:"SERVER_PORT",spinAppHost:"SPIN_APP_HOST",organization:"SHOPIFY_CLI_ORGANIZATION",identityToken:"SHOPIFY_CLI_IDENTITY_TOKEN",refreshToken:"SHOPIFY_CLI_REFRESH_TOKEN",otelURL:"SHOPIFY_CLI_OTEL_EXPORTER_OTLP_ENDPOINT",themeKitAccessDomain:"SHOPIFY_CLI_THEME_KIT_ACCESS_DOMAIN",json:"SHOPIFY_FLAG_JSON",neverUsePartnersApi:"SHOPIFY_CLI_NEVER_USE_PARTNERS_API",skipNetworkLevelRetry:"SHOPIFY_CLI_SKIP_NETWORK_LEVEL_RETRY",maxRequestTimeForNetworkCalls:"SHOPIFY_CLI_MAX_REQUEST_TIME_FOR_NETWORK_CALLS",disableImportScanning:"SHOPIFY_CLI_DISABLE_IMPORT_SCANNING"},C="theme-kit-access.shopifyapps.com",h={backendPort:"BACKEND_PORT"},f={executables:{dev:"/opt/dev/bin/dev"},directories:{cache:{path:()=>E(),vendor:{path:()=>s(E(),"vendor"),binaries:()=>s(E(),"vendor","binaries")}}}},m={expirationTimeMarginInMinutes:4},g="9e1e6889176fd0c795d5c659225e0fae",j={limit:300,timeout:{days:1}},v=process.env[T.themeKitAccessDomain]??C;export{L as a,a as b,T as c,C as d,h as e,f,m as g,g as h,j as i,v as j};
|
package/dist/chunk-OHASEW7T.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Y as u,aa as l,ba as p}from"./chunk-IRH6IGFT.js";import{b as d,c as f}from"./chunk-Q6LCSRIW.js";import{b as c}from"./chunk-IDKUJQIG.js";import{C as m}from"./chunk-E24W34C4.js";import{Lb as s}from"./chunk-EYDNSYYE.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();async function g(t){let i;try{i=await p()}catch(a){if(t.json&&a instanceof l){s(JSON.stringify({organizations:[]},null,2));return}throw a}if(t.json){let a={organizations:i.map(r=>({id:r.id,gid:u(r.id),name:r.businessName}))};s(JSON.stringify(a,null,2));return}h(i)}function h(t){let i=t.map(a=>({id:a.id,name:a.businessName}));m({rows:i,columns:{id:{header:"ID"},name:{header:"NAME"}}})}var e,o=class extends c{async run(){let{flags:i}=await this.parse(e);await g({json:i.json})}};e=o;o.summary="List Shopify organizations you have access to.";o.descriptionWithMarkdown="Lists the Shopify organizations that you have access to, along with their organization IDs.";o.description=e.descriptionWithoutMarkdown();o.flags={...d,...f};var x=o;export{x as a};
|
package/dist/chunk-PGODIZ64.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as o}from"./chunk-IRH6IGFT.js";import{b as r}from"./chunk-IDKUJQIG.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();var e=class extends r{environmentsFilename(){return o.appEnvironments}};export{e as a};
|
package/dist/chunk-PTIJDS6I.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{a as ce}from"./chunk-O2PI2PYG.js";import{G as L,O as $,va as te,xa as N,ya as re,z as y}from"./chunk-2HZMOK4U.js";import{b as x}from"./chunk-4TC4M4RC.js";import{a as me,b as ue}from"./chunk-IDKUJQIG.js";import{a as ee}from"./chunk-5C7HDTHJ.js";import{A as ie,a as Z,t as se,w as U,x as I}from"./chunk-E24W34C4.js";import{d as oe,e as ne}from"./chunk-3QVXHF6I.js";import{d as F,g as ae}from"./chunk-ELIH6GCC.js";import{Fa as X,Fb as R,Hb as h,Pb as A,Ua as _}from"./chunk-EYDNSYYE.js";import{d as Q,f as k,i as V,q as P}from"./chunk-773TIA5M.js";import{r as xe}from"./chunk-T6CC5WUU.js";import{e as ve,g as f}from"./chunk-VKWPEFWQ.js";f();var T=ve(xe(),1);var q={path:T.Flags.string({description:"The path where you want to run the command. Defaults to the current working directory.",env:"SHOPIFY_FLAG_PATH",parse:async t=>{let e=k(t);return _(e)?X(e)?e:(I({headline:"The path must be a directory, not a file.",body:[`The provided path is not a directory: ${e}`,`Did you mean: ${V(e)}`]}),process.exit(1)):(I({headline:"A path was explicitly provided but doesn't exist.",body:[`Please check the path and try again: ${e}`]}),process.exit(1))},default:async()=>P(),noCacheDefault:!0}),password:T.Flags.string({description:"Password generated from the Theme Access app or an Admin API token.",env:"SHOPIFY_CLI_THEME_TOKEN"}),store:T.Flags.string({char:"s",description:"Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).",env:"SHOPIFY_FLAG_STORE",parse:async t=>y(t)}),environment:T.Flags.string({char:"e",description:"The environment to apply to the current command.",env:"SHOPIFY_FLAG_ENVIRONMENT",multiple:!0})},de="Wrap the value in double quotes if you're using wildcards.",Ne=t=>({only:T.Flags.string({char:"o",multiple:!0,description:`${t.charAt(0).toUpperCase()+t.slice(1)} only the specified files (Multiple flags allowed). ${de}`,env:"SHOPIFY_FLAG_ONLY"}),ignore:T.Flags.string({char:"x",multiple:!0,description:`Skip ${t}ing the specified files (Multiple flags allowed). ${de}`,env:"SHOPIFY_FLAG_IGNORE"})});f();f();import{AsyncLocalStorage as Te}from"node:async_hooks";var pe=new Te,O,j,D,M;function l(){return O??(O=new x({projectName:"shopify-cli-theme-conf"})),O}function B(){return j??(j=new x({projectName:"shopify-cli-development-theme-config"})),j}function G(){return D??(D=new x({projectName:"shopify-cli-repl-theme-config"})),D}function H(){return M??(M=new x({projectName:"shopify-cli-theme-store-password"})),M}function z(t=l()){return pe.getStore()?.store??t.get("themeStore")}function fe(t,e=l()){e.set("themeStore",t)}function Me(t=l()){return A(h`Getting development theme...`),B().get(v(t))}function Be(t,e=l()){A(h`Setting development theme...`),B().set(v(e),t)}function Ge(t=l()){A(h`Removing development theme...`),B().delete(v(t))}function He(t=l()){return A(h`Getting REPL theme...`),G().get(v(t))}function ze(t,e=l()){A(h`Setting REPL theme to ${t}...`),G().set(v(e),t)}function Ye(t=l()){A(h`Removing REPL theme...`),G().delete(v(t))}function Je(t=l()){let e=v(t);return A(h`Getting storefront password for shop ${e}...`),H().get(e)}function We(t,e=l()){let o=v(e);A(h`Setting storefront password for shop ${o}...`),H().set(o,t)}function Ke(t=l()){let e=v(t);A(h`Removing storefront password for ${e}...`),H().delete(e)}function v(t=l()){let e=z(t);if(!e)throw new ae("Theme store is not set. This indicates an unexpected issue with the CLI. Please report this to the Shopify CLI team.",["It may be possible to recover by running",{command:"shopify theme list --store <store>"},"(setting the store flag to the store you wish to use) and then running the command again."]);return e}async function he(t,e){return pe.run({store:t},e)}function le(t){let e=t.store??z();if(!e)throw te(new F("A store is required",`Specify the store passing ${h`${R.genericShellCommand(`--${q.store.name}=example.myshopify.com`)}`.value} or set the ${h`${R.genericShellCommand(q.store.env)}`.value} environment variable.`));return fe(e),e}f();f();var Se="shopify.theme.toml",st=new Intl.DateTimeFormat(void 0,{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),it=["**/.git","**/.vscode","**/.hg","**/.bzr","**/.svn","**/_darcs","**/CVS","**/*.sublime-(project|workspace)","**/.DS_Store","**/.sass-cache","**/Thumbs.db","**/desktop.ini","**/config.yml","**/node_modules/",".prettierrc.json","**/{blocks,layout,snippets}/**/*.liquid.tmp.*","**/{config,locales}/**/*.json.tmp.*","**/{sections,templates}/**/*.{liquid,json}.tmp.*"],at=50;f();f();var Y="7e9cb568cfd431c538f36d1ad3f2b4f6";var Ie="shopify-cli-store",St=240*1e3,J;function C(){return J??(J=new x({projectName:Ie})),J}function E(t){return`${Y}::${_e(t)}`}function _e(t){return t.replace(/\\/g,"\\\\").replace(/\./g,"\\.")}function d(t){return typeof t=="string"}function Fe(t){if(!t||typeof t!="object")return;let e=t;if(typeof e.id=="number")return{id:e.id,...d(e.email)?{email:e.email}:{},...d(e.firstName)?{firstName:e.firstName}:{},...d(e.lastName)?{lastName:e.lastName}:{},...typeof e.accountOwner=="boolean"?{accountOwner:e.accountOwner}:{}}}function Ee(t){if(!t||typeof t!="object")return;let e=t;if(!(!d(e.shopId)||!d(e.name)||!d(e.createdAt)))return{shopId:e.shopId,name:e.name,createdAt:e.createdAt,...d(e.placeholderAccountUuid)?{placeholderAccountUuid:e.placeholderAccountUuid}:{},...d(e.country)?{country:e.country}:{},...d(e.accessUrl)?{accessUrl:e.accessUrl}:{}}}function be(t){if(!t||typeof t!="object")return;let e=t;if(!d(e.store)||!d(e.clientId)||!d(e.userId)||!d(e.accessToken)||!Array.isArray(e.scopes)||!e.scopes.every(d)||!d(e.acquiredAt))return;let o=Fe(e.associatedUser),r=e.kind==="preview"?"preview":"standard",n=r==="preview"?Ee(e.preview):void 0;if(!(r==="preview"&&!n))return{store:e.store,clientId:e.clientId,userId:e.userId,accessToken:e.accessToken,scopes:e.scopes,acquiredAt:e.acquiredAt,...d(e.refreshToken)?{refreshToken:e.refreshToken}:{},...d(e.expiresAt)?{expiresAt:e.expiresAt}:{},...d(e.refreshTokenExpiresAt)?{refreshTokenExpiresAt:e.refreshTokenExpiresAt}:{},...o?{associatedUser:o}:{},...r==="preview"?{kind:r}:{},...n?{preview:n}:{}}}function ge(t,e,o){if(!e||typeof e!="object")return;let{sessionsByUserId:r,currentUserId:n}=e;if(!(r!==void 0||n!==void 0))return;let i=E(t);if(!r||typeof r!="object"||Array.isArray(r)||typeof n!="string"){o.delete(i);return}let a=Object.fromEntries(Object.entries(r).flatMap(([m,c])=>{let p=be(c);return p?[[m,p]]:[]}));if(Object.keys(a).length!==Object.keys(r).length)if(a[n])o.set(i,{currentUserId:n,sessionsByUserId:a});else{o.delete(i);return}return{currentUserId:n,sessionsByUserId:a}}function W(t,e){return ge(t,e.get(E(t)),e)}function ke(t){return t.config?.store??{}}function ye(t=C()){let e=[],o=`${Y}::`;for(let[r,n]of Object.entries(ke(t))){if(!r.startsWith(o))continue;let s=ge(r.slice(o.length),n,t),i=s?.sessionsByUserId[s.currentUserId];i&&e.push(i)}return e}function we(t,e=C()){let o=y(t),r=W(o,e);if(!r)return;let n=r.sessionsByUserId[r.currentUserId];if(!n){e.delete(E(o));return}return n}function gt(t,e=C()){let o=E(t.store),r=W(t.store,e),n={currentUserId:t.userId,sessionsByUserId:{...r?.sessionsByUserId??{},[t.userId]:t}};e.set(o,n)}function yt(t,e,o){let r=y(t),n=typeof e=="string"?e:void 0,s=(typeof e=="string"?o:e)??C(),i=E(r);if(!n){s.delete(i);return}let a=W(r,s);if(!a)return;let{[n]:m,...c}=a.sessionsByUserId,p=Object.keys(c);if(p.length===0){s.delete(i);return}s.set(i,{currentUserId:a.currentUserId===n?p[0]:a.currentUserId,sessionsByUserId:c})}var K=class extends ue{environmentsFilename(){return Se}async command(e,o,r=!1,n,s){}async run(e){let o=this.constructor,r=o.multiEnvironmentsFlags,{args:n,flags:s}=await this.parse(o),i="password"in o.flags,a=(Array.isArray(s.environment)?s.environment:[s.environment]).filter(Boolean),m=r!==null&&r.some(u=>Array.isArray(u)?u.includes("store"):u==="store");if(a.length<=1){if(a[0]&&!s.store&&m)throw new F("Please provide a valid environment.");let u=i?await this.createSession(s):void 0,w=this.constructor.name.toLowerCase();if(N(`theme-command:${w}:single-env:authenticated`),s.path&&!_(s.path))throw new F(`Path does not exist: ${s.path}`);try{await this.command(s,u,!1,n)}finally{await this.logAnalyticsData(u)}return}if(r===null){U({body:"This command does not support multiple environments."});return}let{flags:c}=await this.parse(me(o),this.argv);if("path"in c){this.errorOnGlobalPath();return}let p=await this.loadEnvironments(a,s,c),S=await this.validateEnvironments(p,r,i);"force"in o.flags&&!s.force&&!await this.showConfirmation(this.constructor.name,r,S)||await this.runConcurrent(S.valid)}storeAuthScopes(){return[]}async loadEnvironments(e,o,r){let n=new Map;for(let s of e){let i=await ce(s,"shopify.theme.toml",{from:o.path,silent:!0});i?.store&&typeof i.store=="string"&&(i.store=y(i.store)),i?.path&&typeof i.path=="string"&&(i.path=k(i.path)),n.set(s,{flags:{...o,...i,...r,environment:[s]},validationFlags:{...i,...r}})}return n}async validateEnvironments(e,o,r){let n=[],s=[],i=r?this.storeAuthSessionsForTheme(Array.from(e.values()).map(({validationFlags:m})=>m)):new Map,a=Array.from(e.entries()).map(([m,{flags:c,validationFlags:p}])=>({environmentName:m,flags:c,validationFlags:p,storeAuthSession:this.storeAuthSessionFromCache(p,i)}));for(let{environmentName:m,flags:c,validationFlags:p,storeAuthSession:S}of a){let g=this.validConfig(p,o,m,S);if(g!==!0){let u=g.join(", ");s.push({environment:m,reason:`Missing flags: ${u}`});continue}n.push({environment:m,flags:c,requiresAuth:r,storeAuthSession:S})}return{valid:n,invalid:s}}async showConfirmation(e,o,r){let i={message:[`Run ${e.toLowerCase()} in the following environments?`],confirmationMessage:"Yes, proceed",cancellationMessage:"Cancel"},a=[...r.valid.map(({environment:m,flags:c})=>{let p=o.map(S=>{let g=Array.isArray(S)?S.find(u=>c[u]):S;if(g==="password")return"password";if(g==="path"&&typeof c.path=="string"){let u=c.path.split(/[/\\]/);if(u.length===1)return`path: ${c.path}`;let w=u[0]===""?`/${u[1]}`:u[0],b=u.at(-1);return`path: ${w}/.../${b}`}return g&&`${g}: ${c[g]}`}).join(", ");return[m,{subdued:p||"No flags required"}]}),...r.invalid.map(({environment:m,reason:c})=>[m,{error:`Skipping | ${c}`}])];return i.infoTable={Environment:a},r.invalid.length>0&&(i.confirmationMessage="Proceed anyway (will skip invalid environments)"),ie(i)}async runConcurrent(e){let o=new Z,r=e.map(i=>i.flags.store),n=new Set(r),s=r.length===n.size?[e]:this.createSequentialGroups(e);for(let i of s)await se({processes:i.map(({environment:a,flags:m,requiresAuth:c,storeAuthSession:p})=>({prefix:a,action:async(S,g,u)=>{try{let w=m.store;await he(w,async()=>{let b=c?await this.createSession(m,p):void 0,Ae=this.constructor.name.toLowerCase();N(`theme-command:${Ae}:multi-env:authenticated`);try{await this.command(m,b,!0,{},{stdout:S,stderr:g})}finally{await this.logAnalyticsData(b)}})}catch(w){w instanceof Error&&(w.message=`Environment ${a} failed:
|
|
2
|
-
|
|
3
|
-
${w.message}`,I({body:[w.message]}))}}})),abortSignal:o.signal,showTimestamps:!0,renderOptions:{stdout:process.stderr}})}createSequentialGroups(e){let o=[];return e.forEach(r=>{let n=o.find(s=>!s.some(i=>i.flags.store===r.flags.store));n?n.push(r):o.push([r])}),o}async createSession(e,o){let r=le({store:e.store}),n=e.password;return n?await $(r,n):o??await this.storeAuthSessionForTheme({store:r})??await $(r,n)}async storeAuthSessionForTheme(e){let o=typeof e.store=="string"?e.store:void 0,r=e.password;if(!o||r)return;let n=y(o),s=we(n);if(s)return this.adminSessionFromStoreAuthSession(s,n)}storeAuthSessionsForTheme(e){let o=new Set(e.filter(({store:r,password:n})=>typeof r=="string"&&!n).map(({store:r})=>y(r)));return o.size===0?new Map:new Map(ye().map(r=>{let n=y(r.store);if(!o.has(n))return;let s=this.adminSessionFromStoreAuthSession(r,n);return s?[n,s]:void 0}).filter(r=>r!==void 0))}storeAuthSessionFromCache(e,o){let r=typeof e.store=="string"?e.store:void 0,n=e.password;if(!(!r||n))return o.get(y(r))}adminSessionFromStoreAuthSession(e,o){if(this.hasRequiredStoreAuthScopes(e.scopes))return L(e.userId),{token:e.accessToken,storeFqdn:o}}expandImpliedStoreAuthScopes(e){let o=new Set(e);for(let r of e){let n=r.match(/^(unauthenticated_)?write_(.*)$/);n&&o.add(`${n[1]??""}read_${n[2]}`)}return o}hasRequiredStoreAuthScopes(e){if(e.length===0)return!0;let o=this.expandImpliedStoreAuthScopes(e);return this.storeAuthScopes().every(r=>o.has(r))}validConfig(e,o,r,n){let s=o.filter(i=>Array.isArray(i)?!i.some(a=>this.hasRequiredFlag(e,a,n)):!this.hasRequiredFlag(e,i,n)).map(i=>Array.isArray(i)?i.join(" or "):i);return s.length>0?(U({body:[`Missing required flags in environment configuration${r?` for ${r}`:""}:`,{list:{items:s}}]}),s):!0}hasRequiredFlag(e,o,r){return o==="password"&&r?!0:!!e[o]}errorOnGlobalPath(){let e=Q(P(),"shopify.theme.toml"),o=_(e);I({body:["Can't use `--path` flag with multiple environments.",...o?["Configure each environment's theme path in your shopify.theme.toml file instead."]:["Run this command from the directory containing shopify.theme.toml.","No shopify.theme.toml found in current directory."]]})}async logAnalyticsData(e){if(!e)return;let o=re();await oe(()=>({store_fqdn_hash:ee(e.storeFqdn),store_domain:e.storeFqdn,cmd_theme_timings:JSON.stringify(o.timings),cmd_theme_errors:JSON.stringify(o.errors),cmd_theme_retries:JSON.stringify(o.retries),cmd_theme_events:JSON.stringify(o.events)})),await ne(()=>({store_fqdn:e.storeFqdn}))}};export{Y as a,ye as b,we as c,gt as d,yt as e,z as f,Me as g,Be as h,Ge as i,He as j,ze as k,Ye as l,Je as m,We as n,Ke as o,q as p,Ne as q,le as r,st as s,it as t,at as u,K as v};
|
package/dist/chunk-Q6LCSRIW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c,c as u}from"./chunk-NNOSZ447.js";import{r as C}from"./chunk-T6CC5WUU.js";import{e as h,g as i}from"./chunk-VKWPEFWQ.js";i();i();import{fileURLToPath as L}from"node:url";async function f(e){let{isDevelopment:o}=await import("./local-5AKD7T5X.js"),{ShopifyConfig:n}=await import("./custom-oclif-loader-3AICQCNU.js"),t=await import("./lib-QJDPPAWN.js"),{run:a,flush:p,Errors:d,settings:m}=t.default??t;o()&&(m.debug=!0);try{let r=new n({root:L(e.moduleURL)});await r.load(),e.lazyCommandLoader&&r.setLazyCommandLoader(e.lazyCommandLoader),await a(e.argv,r),await p()}catch(r){let{errorHandler:l}=await import("./error-handler-MCUV4RZV.js");return await l(r),d.handle(r)}}var s=h(C());async function y(e=process.versions){let o=e.node,n=Number(o.split(".")[0]);if(n<18){let{renderError:a}=await import("./ui-QIHGXICT.js");a({headline:"Upgrade to a supported Node version now.",body:[`Node ${n} has reached end-of-life and poses security risks. When you upgrade to a`,{link:{url:"https://nodejs.dev/en/about/previous-releases",label:"supported version"}},{char:","},"you'll be able to use Shopify CLI without interruption."]}),process.exit(1)}}function I(e,o=process.argv,n=process.env){o.includes("--verbose")&&(n.DEBUG=n.DEBUG??"*"),e.development&&(n.SHOPIFY_CLI_ENV=n.SHOPIFY_CLI_ENV??"development")}function b(e=process.argv,o=process.env){(e.includes("--no-color")||e.includes("--json")||e.includes("-j")||c(o.NO_COLOR)||c(o.SHOPIFY_FLAG_NO_COLOR)||c(o[u.json])||o.TERM==="dumb")&&(o.FORCE_COLOR="0")}async function _(e,o=f,n=process.argv,t=process.env,a=process.versions){return I(e,n,t),e.runInCreateMode&&await O(e,n),b(n,t),await y(a),o({moduleURL:e.moduleURL,lazyCommandLoader:e.lazyCommandLoader})}async function O(e,o=process.argv){let{findUpAndReadPackageJson:n}=await import("./node-package-manager-FA3Y6DPG.js"),{moduleDirectory:t}=await import("./path-MBXP7ZIC.js"),d=(await n(t(e.moduleURL))).content.name.replace("@shopify/create-","");if(o.findIndex(r=>r.includes("init"))===-1){let r=o.findIndex(l=>l.match(new RegExp(`bin(\\/|\\\\)+(create-${d}|dev|run)`)))+1;o.splice(r,0,"init")}}var F={"no-color":s.Flags.boolean({hidden:!1,description:"Disable color output.",env:"SHOPIFY_FLAG_NO_COLOR"}),verbose:s.Flags.boolean({hidden:!1,description:"Increase the verbosity of the output.",env:"SHOPIFY_FLAG_VERBOSE"})},E={json:s.Flags.boolean({char:"j",description:"Output the result as JSON. Automatically disables color output.",hidden:!1,default:!1,env:u.json})},S=(e={})=>{let o=[e.description,"Must be between 1 and 65535."].filter(Boolean).join(" ");return s.Flags.integer({min:1,max:65535,...e,description:o})};async function j(){let{cacheClear:e}=await import("./conf-store-OC4XCP45.js");e()}export{_ as a,F as b,E as c,S as d,j as e};
|
package/dist/chunk-SKM44SK5.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{f as m,i as f}from"./chunk-IRH6IGFT.js";import{d as s}from"./chunk-ELIH6GCC.js";import{$ as c,Ta as r,qa as h,wa as l}from"./chunk-EYDNSYYE.js";import{d as o}from"./chunk-773TIA5M.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function b(t,i){let n=t?.path??"",e=o(i,n);if(!await r(e))throw new s(`
|
|
2
|
-
The extension is not available for ${t?.value}`);return e}async function k({name:t,app:i}){let n=c(t),e=o(i.directory,f.extensions.directoryName,n);if(await r(e))throw new s(`
|
|
3
|
-
A directory with this name (${n}) already exists.
|
|
4
|
-
Choose a new name for your extension.`);return await l(e),await h(o(e,m.lockFile)),e}async function v({localApp:t,developerPlatformClient:i,apiKey:n,organizationId:e}){let{dashboardManagedExtensionRegistrations:x}=(await i.appExtensionRegistrations({id:n,apiKey:n,organizationId:e})).app;return x.length>0||t.allExtensions.filter(u=>u.isThemeExtension).length>0||t.allExtensions.length>0}export{b as a,k as b,v as c};
|