@shopify/cli 4.5.2 → 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-AATUQ2AY.js → chunk-2I62GKIH.js} +80 -80
- package/dist/{chunk-MC466GSO.js → chunk-2JFZ6GZC.js} +1 -1
- package/dist/{chunk-UQWFDL3F.js → chunk-2KD4LHRT.js} +1 -1
- package/dist/chunk-2MCH43SL.js +11 -0
- package/dist/{chunk-K4APB7O3.js → chunk-2SNT7U7B.js} +1 -1
- package/dist/{chunk-V6QZF5YS.js → chunk-2VIUGNYO.js} +1 -1
- package/dist/chunk-2Y6CYLKF.js +1 -0
- package/dist/{chunk-XHTICMA7.js → chunk-3EHRA4LA.js} +1 -1
- package/dist/{chunk-FSVSM57K.js → chunk-3EPQ6UOK.js} +6 -6
- package/dist/{chunk-7KWBVZPI.js → chunk-3NO6PWNL.js} +1 -1
- package/dist/chunk-3TFUSDHY.js +370 -0
- package/dist/{chunk-TH6CLNGO.js → chunk-46NA23I7.js} +1 -1
- package/dist/{chunk-YXNKDX56.js → chunk-47URTBZF.js} +1 -1
- package/dist/chunk-4FEBSLSU.js +1 -0
- package/dist/{chunk-OMXKQY2L.js → chunk-4HB4VZJQ.js} +1 -1
- package/dist/{chunk-ZUWEGJA7.js → chunk-4JARSKED.js} +1 -1
- package/dist/{chunk-NSADN5S2.js → chunk-4KZRP2JP.js} +141 -141
- package/dist/{chunk-TPGREOWO.js → chunk-4P7PWLUN.js} +1 -1
- package/dist/{chunk-UHMRDG6J.js → chunk-4YCMEC5R.js} +1 -1
- package/dist/{chunk-KIAMA3L2.js → chunk-53ZA2HD3.js} +1 -1
- package/dist/{chunk-2ACN7JIZ.js → chunk-57YF2UNT.js} +1 -1
- package/dist/{chunk-AAK3WGD7.js → chunk-5EFQILLF.js} +1 -1
- package/dist/chunk-5JPV3HPJ.js +1 -0
- package/dist/{chunk-2TJ6LOCC.js → chunk-5LJ5H4TD.js} +1 -1
- package/dist/{chunk-Z6VNPAY7.js → chunk-5Y2VD4I3.js} +1 -1
- package/dist/{chunk-N6IFIMC6.js → chunk-6BX62FFE.js} +1 -1
- package/dist/{chunk-RFOALCVH.js → chunk-6FJBCRVK.js} +1 -1
- package/dist/{chunk-KQTVJMV6.js → chunk-6Q5VRSRN.js} +1 -1
- package/dist/{chunk-GDHD3TGC.js → chunk-6QDOCBD4.js} +1 -1
- package/dist/{chunk-BUVP2UUA.js → chunk-6SXB44CE.js} +1 -1
- package/dist/chunk-6UTUJKKC.js +16 -0
- package/dist/{chunk-EEEKSYWV.js → chunk-6YCGMS7X.js} +15 -15
- package/dist/chunk-72GN655L.js +1 -0
- package/dist/chunk-7CPECP5P.js +1 -0
- package/dist/{chunk-SG5TRPJ7.js → chunk-7HAFBCL3.js} +1 -1
- package/dist/chunk-7XPFLQEM.js +1 -0
- package/dist/{chunk-HOAVZLEG.js → chunk-A3JE5LX3.js} +1 -1
- package/dist/{chunk-5VRU3BT5.js → chunk-AJ6VOBXU.js} +1 -1
- package/dist/{chunk-42RVM4EZ.js → chunk-B2WK53GH.js} +1 -1
- package/dist/chunk-B34VYVGV.js +1 -0
- package/dist/chunk-B6SY4BIK.js +2 -0
- package/dist/{chunk-7AYYQUJG.js → chunk-BBEHNPKK.js} +1 -1
- package/dist/{chunk-JADXT2DY.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-34SINZ7L.js → chunk-CXWLHQKA.js} +1 -1
- package/dist/chunk-DHU767C3.js +1 -0
- package/dist/{chunk-CEBDKIVH.js → chunk-DKHMLETG.js} +1 -1
- package/dist/{chunk-L42FYXFW.js → chunk-DODCPRXT.js} +4 -4
- package/dist/{chunk-6VR22Z5R.js → chunk-E3RDAVJT.js} +3 -3
- package/dist/chunk-E3RQCWSC.js +6 -0
- package/dist/{chunk-HQE5B2CF.js → chunk-EBZ6MDEM.js} +1 -1
- package/dist/chunk-ELJ7SKMH.js +1 -0
- package/dist/{chunk-YNX4DT2O.js → chunk-EQTULRM7.js} +1 -1
- package/dist/{chunk-KFUOVO3X.js → chunk-ERCJPRN3.js} +1 -1
- package/dist/{chunk-5CV7GFWZ.js → chunk-ESZS7L6O.js} +1 -1
- package/dist/{chunk-R6A754UW.js → chunk-ET2O5DAS.js} +1 -1
- package/dist/chunk-EZ7EBYDT.js +684 -0
- package/dist/{chunk-WDSBR7KX.js → chunk-EZNJDFFK.js} +1 -1
- package/dist/chunk-F34LB7M4.js +20 -0
- package/dist/{chunk-VGSH33QU.js → chunk-FE24P4UQ.js} +1 -1
- package/dist/chunk-FFSDGRAN.js +1 -0
- package/dist/{chunk-35FS2NTM.js → chunk-FMTPUYSH.js} +1 -1
- package/dist/{chunk-ZAN7AZTX.js → chunk-FPWLEGKZ.js} +1 -1
- package/dist/{chunk-P6LVSNTT.js → chunk-FT4HLDK7.js} +1 -1
- package/dist/{chunk-BQARKSGG.js → chunk-G3YYMKWG.js} +1 -1
- package/dist/chunk-G7QW5OSQ.js +6 -0
- package/dist/{chunk-DIPTSBQM.js → chunk-GCDEDRY7.js} +1 -1
- package/dist/{chunk-3EJGRQTH.js → chunk-GEE5MXHT.js} +1 -1
- package/dist/{chunk-ANH2V6DJ.js → chunk-H4MYBJ6C.js} +1 -1
- package/dist/chunk-HDXBZLHH.js +8 -0
- package/dist/chunk-HSKB5OTM.js +1 -0
- package/dist/{chunk-I5X3IP6T.js → chunk-HT6MOPLW.js} +1 -1
- package/dist/chunk-HZXY7RWJ.js +19 -0
- package/dist/{chunk-XS7WK4YK.js → chunk-IDAWPBJM.js} +1 -1
- package/dist/{chunk-CX44CQFL.js → chunk-IDLDQ2JB.js} +1 -1
- package/dist/{chunk-HSVZU7MP.js → chunk-IKYZ5L3F.js} +1 -1
- package/dist/{chunk-LXOBFJZO.js → chunk-ILQXBASM.js} +1 -1
- package/dist/{chunk-P2SBE77Z.js → chunk-IYU72M55.js} +1 -1
- package/dist/{chunk-SZM6ANMN.js → chunk-J3IHP46B.js} +2 -2
- package/dist/{chunk-DELISRUH.js → chunk-J4KJQHNS.js} +1 -1
- package/dist/{chunk-PEYYIWP6.js → chunk-JHRZCUBE.js} +2 -2
- package/dist/chunk-JIBLEZ57.js +18 -0
- package/dist/{chunk-ML6SILEL.js → chunk-JIKIYMCT.js} +1 -1
- package/dist/{chunk-5GVE4ILZ.js → chunk-JJTGHARS.js} +1 -1
- package/dist/chunk-JJZNUFPD.js +44 -0
- package/dist/{chunk-5N7H4PJJ.js → chunk-JQP3ZCAG.js} +1 -1
- package/dist/{chunk-523SJVNT.js → chunk-JS3X6BDT.js} +1 -1
- package/dist/{chunk-XCGV3IJ5.js → chunk-K7IZMKBR.js} +1 -1
- package/dist/{chunk-7PVNAILK.js → chunk-KGZH4RFA.js} +1 -1
- package/dist/{chunk-OC5PD4ID.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-XDV4PRFT.js → chunk-L3D2CASO.js} +1 -1
- package/dist/{chunk-4UJNCOE6.js → chunk-L7DZTIHJ.js} +1 -1
- package/dist/{chunk-UW6YEKST.js → chunk-LBDAYBIF.js} +1 -1
- package/dist/{chunk-ZG7BVVT2.js → chunk-LD6ZCTZ3.js} +1 -1
- package/dist/{chunk-UMB4BWCK.js → chunk-LH3RIIOB.js} +1 -1
- package/dist/{chunk-LSCDB36D.js → chunk-LWRDNTAD.js} +1 -1
- package/dist/{chunk-NYG2VQFQ.js → chunk-LWWBU7ET.js} +1 -1
- package/dist/chunk-M4BEPPA3.js +1 -0
- package/dist/chunk-M4YPMHIM.js +1 -0
- package/dist/{chunk-75DBVSVI.js → chunk-M5KKLAM6.js} +1 -1
- package/dist/{chunk-T35C6NC7.js → chunk-MBLHXPGK.js} +1 -1
- package/dist/{chunk-ODSMT2ZC.js → chunk-MDHJJVXA.js} +1 -1
- package/dist/{chunk-ICRQZAXP.js → chunk-MDXSLAIC.js} +1 -1
- package/dist/{chunk-SH6Q5CLM.js → chunk-NA2ERJIJ.js} +1 -1
- package/dist/chunk-NOKCVDYD.js +317 -0
- package/dist/chunk-O6XSWAP2.js +4 -0
- package/dist/{chunk-6AWRW3GS.js → chunk-OB62WVZ5.js} +1 -1
- package/dist/{chunk-RTINXD5Z.js → chunk-OT52JOML.js} +1 -1
- package/dist/chunk-OTT73YUA.js +5 -0
- package/dist/{chunk-AUAUAK6P.js → chunk-OUUOML3D.js} +1 -1
- package/dist/{chunk-6ZWMXMNM.js → chunk-P7XC5HS2.js} +1 -1
- package/dist/{chunk-JOKLZMTP.js → chunk-PALG4SNB.js} +1 -1
- package/dist/{chunk-OJZT3NA2.js → chunk-PB37BTPE.js} +1 -1
- package/dist/{chunk-KPNNGJAW.js → chunk-PWYRKTJ4.js} +1 -1
- package/dist/{chunk-WN5VTUWJ.js → chunk-PXSX63RF.js} +1 -1
- package/dist/{chunk-23LZNWB5.js → chunk-QDPDB5EP.js} +1 -1
- package/dist/{chunk-VJQJ5PTQ.js → chunk-QG7TELFC.js} +1 -1
- package/dist/{chunk-TM44Z7U7.js → chunk-QU5NL2QT.js} +1 -1
- package/dist/{chunk-3OCR7P3S.js → chunk-QV53BSQP.js} +1 -1
- package/dist/{chunk-P7OSUECN.js → chunk-QXXA2EQY.js} +1 -1
- package/dist/{chunk-XUAAQI5N.js → chunk-QZ5FMWZS.js} +1 -1
- package/dist/chunk-R26GJEH3.js +1 -0
- package/dist/{chunk-VCWESQBC.js → chunk-RTW4RZWH.js} +2 -2
- package/dist/{chunk-UVIGXZMV.js → chunk-SEV3S3WH.js} +1 -1
- package/dist/{chunk-NIVGP4LB.js → chunk-TAFOSPBW.js} +1 -1
- package/dist/{chunk-Q7DSLGTN.js → chunk-TAV2ENJY.js} +1 -1
- package/dist/{chunk-LVLDPYH5.js → chunk-TQNALMQH.js} +1 -1
- package/dist/chunk-TR4OWSEX.js +77 -0
- package/dist/{chunk-DZMXYETH.js → chunk-TUJNCWHZ.js} +1 -1
- package/dist/{chunk-TSEPNC3O.js → chunk-U564K7SX.js} +1 -1
- package/dist/chunk-UKQ7NE5V.js +1 -0
- package/dist/{chunk-TNUY66EE.js → chunk-UM3OHLCX.js} +1 -1
- package/dist/{chunk-QEVGRNUE.js → chunk-V65P572N.js} +3 -3
- package/dist/chunk-VFIVXK53.js +2 -0
- package/dist/chunk-VVFPW4ZQ.js +2 -0
- package/dist/{chunk-YKNMNGV7.js → chunk-VYITPC34.js} +1 -1
- package/dist/{chunk-7AY6HLQG.js → chunk-VZKR2YFM.js} +1 -1
- package/dist/{chunk-YWQPSMRZ.js → chunk-W2GMKXM7.js} +1 -1
- package/dist/{chunk-7TQ6HVHN.js → chunk-W4X3635B.js} +1 -1
- package/dist/chunk-W6ST525S.js +99 -0
- package/dist/{chunk-BVWQZKNK.js → chunk-WEEYQX3M.js} +1 -1
- package/dist/{chunk-KMQE7WFZ.js → chunk-WO7LKJCJ.js} +1 -1
- package/dist/{chunk-DI5ZPWNA.js → chunk-WPRAJ25Z.js} +1 -1
- package/dist/{chunk-ZT4PUH7L.js → chunk-WR2ZQGUR.js} +1 -1
- package/dist/{chunk-RLB5QHWG.js → chunk-WWX265PC.js} +1 -1
- package/dist/chunk-XERJY4IG.js +103 -0
- package/dist/{chunk-EOJNSPIH.js → chunk-XGCJWCC4.js} +1 -1
- package/dist/{chunk-LGFOE4XL.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-XXLGM6OZ.js → chunk-Y4QC2YVE.js} +1 -1
- package/dist/chunk-YNJZ2VXV.js +5 -0
- package/dist/chunk-Z5DDPQ26.js +3 -0
- package/dist/{chunk-U3MSTPZP.js → chunk-ZK7VJZ6V.js} +1 -1
- package/dist/{chunk-4VJ5VBSR.js → chunk-ZLT4DPHN.js} +1 -1
- package/dist/{chunk-6K4DVV37.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/custom-oclif-loader-4ZAXX5MR.js +1 -0
- 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-B4UJTUCD.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-FREAI3KR.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-VUR2QZPW.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-KPQTFQD4.js → workerd-LXBSJULF.js} +1 -1
- package/oclif.manifest.json +612 -2
- package/package.json +11 -11
- package/dist/analytics-M7ZU437S.js +0 -1
- package/dist/analytics-ZRM4FEOE.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-2O22LZKV.js +0 -44
- package/dist/chunk-3IFZECSI.js +0 -22
- package/dist/chunk-4MLEL3VK.js +0 -283
- package/dist/chunk-4P54DKG4.js +0 -3
- package/dist/chunk-4ROX2TCK.js +0 -1
- package/dist/chunk-5C7HDTHJ.js +0 -1
- package/dist/chunk-5VC4XXYH.js +0 -1
- package/dist/chunk-7RJPTSL6.js +0 -7
- package/dist/chunk-ADKFAPED.js +0 -21
- package/dist/chunk-B5MFFERE.js +0 -1
- package/dist/chunk-BLSWUNOK.js +0 -16
- package/dist/chunk-DN3BB4IO.js +0 -103
- package/dist/chunk-EAOT5CK5.js +0 -2
- package/dist/chunk-G6BFXMOV.js +0 -2
- package/dist/chunk-GMAZ2BQY.js +0 -26
- package/dist/chunk-HYF3VJYS.js +0 -3
- package/dist/chunk-IIFRDOYG.js +0 -1
- package/dist/chunk-KB6H5LQJ.js +0 -4
- package/dist/chunk-LKZ7ARYS.js +0 -18
- package/dist/chunk-MYQTAM77.js +0 -2
- package/dist/chunk-NGCPVRDM.js +0 -1
- package/dist/chunk-NJOO5XJV.js +0 -1
- package/dist/chunk-NNOSZ447.js +0 -1
- package/dist/chunk-NVA2354A.js +0 -5
- package/dist/chunk-NWH3TAHK.js +0 -1
- package/dist/chunk-OCBGHOH2.js +0 -19
- package/dist/chunk-P7U6BWKN.js +0 -1
- package/dist/chunk-QFXJNFMI.js +0 -1
- package/dist/chunk-R7QYSC6T.js +0 -567
- package/dist/chunk-RE652L3G.js +0 -1
- package/dist/chunk-SSDEWKDZ.js +0 -6
- package/dist/chunk-T6CC5WUU.js +0 -159
- package/dist/chunk-TB7HFPBB.js +0 -370
- package/dist/chunk-TIU7MMRT.js +0 -836
- package/dist/chunk-TTEY5PLR.js +0 -10
- package/dist/chunk-U4HLIXRH.js +0 -4
- package/dist/chunk-UAYIFFYJ.js +0 -11
- package/dist/chunk-UHIP5CFI.js +0 -1
- package/dist/chunk-UMFVRG33.js +0 -5
- package/dist/chunk-WTRKTFVE.js +0 -2
- package/dist/chunk-X3VG75LO.js +0 -1
- package/dist/chunk-XSUZPWYV.js +0 -5
- package/dist/chunk-Z33MWGCG.js +0 -1
- package/dist/chunk-ZIM2G3EP.js +0 -1
- package/dist/chunk-ZSYMRT3S.js +0 -4
- package/dist/conf-store-HOA62HKK.js +0 -1
- package/dist/custom-oclif-loader-3AICQCNU.js +0 -1
- package/dist/deprecations-2FTB7JEW.js +0 -1
- package/dist/dist-63JMGNUL.js +0 -1
- package/dist/dist-6TY6L7OW.js +0 -1
- package/dist/environments-XVYTKHRZ.js +0 -1
- package/dist/error-SDU6RPQQ.js +0 -1
- package/dist/error-handler-4YEBBCUH.js +0 -1
- package/dist/is-global-5LFZDDNH.js +0 -1
- package/dist/lib-QJDPPAWN.js +0 -1
- package/dist/lib-UCG2DNMS.js +0 -1
- package/dist/local-VTYGIJVD.js +0 -1
- package/dist/local-storage-A6NBLBB2.js +0 -1
- package/dist/node-package-manager-N5SUT2WN.js +0 -1
- package/dist/notifications-system-P3SUTD25.js +0 -1
- package/dist/out-CDCY25QC.js +0 -1
- package/dist/system-OXF2P5CT.js +0 -1
- package/dist/ui-N2C5FC3G.js +0 -1
- package/dist/upgrade-AJ36IT7H.js +0 -1
- package/dist/version-DSFP332V.js +0 -1
- package/dist/version-HUOO3XOE.js +0 -1
package/dist/chunk-GMAZ2BQY.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import{a as v}from"./chunk-G6BFXMOV.js";import{a as c}from"./chunk-5VC4XXYH.js";import{a as u}from"./chunk-TM44Z7U7.js";import{a as y}from"./chunk-ZAN7AZTX.js";import{d as f}from"./chunk-N6IFIMC6.js";import{p,v as m}from"./chunk-4P54DKG4.js";import{xa as h}from"./chunk-TIU7MMRT.js";import{b as l,d}from"./chunk-NGCPVRDM.js";import{r as O}from"./chunk-T6CC5WUU.js";import{e as F,g as a}from"./chunk-VKWPEFWQ.js";a();var t=F(O(),1);var w,o=class extends m{async command(r,n){let{ignore:g=[],only:_=[]}=r;h("theme-command:dev:single-env:authenticated");let i,e;if(r.theme){let s={filter:{theme:r.theme}};i=await u(n,s),e={...r,theme:i.id.toString(),store:n.storeFqdn}}else{i=await new c(n).findOrCreate();let s=r["theme-editor-sync"]&&i.createdAtRuntime;e={...r,theme:i.id.toString(),store:n.storeFqdn,"overwrite-json":s}}await f(i,"start development mode",r["allow-live"])&&(await v({adminSession:n,commandConfig:this.config,directory:e.path,store:e.store,password:e.password,storePassword:e["store-password"],theme:i,listing:e.listing,host:e.host,port:e.port,"live-reload":e["live-reload"],"error-overlay":e["error-overlay"],force:e.force,open:e.open,"theme-editor-sync":e["theme-editor-sync"],"standard-events-inspector":e["standard-events-inspector"],noDelete:e.nodelete,ignore:g,only:_,notify:e.notify}),await y({path:e.path,password:e.password,store:e.store,force:e.force,verbose:e.verbose,noColor:e["no-color"],silent:!0}))}};w=o;o.summary="Uploads the current theme as a development theme to the connected store, then prints theme editor and preview URLs to your terminal. While running, changes will push to the store in real time.";o.descriptionWithMarkdown=`
|
|
2
|
-
Uploads the current theme as the specified theme, or a [development theme](https://shopify.dev/docs/themes/tools/cli#development-themes), to a store so you can preview it.
|
|
3
|
-
|
|
4
|
-
This command returns the following information:
|
|
5
|
-
|
|
6
|
-
- A link to your development theme at http://127.0.0.1:9292. This URL can hot reload local changes to CSS and sections, or refresh the entire page when a file changes, enabling you to preview changes in real time using the store's data.
|
|
7
|
-
|
|
8
|
-
You can specify a different network interface and port using \`--host\` and \`--port\`.
|
|
9
|
-
|
|
10
|
-
- A link to the [editor](https://shopify.dev/docs/themes/tools/online-editor) for the theme in the Shopify admin.
|
|
11
|
-
|
|
12
|
-
- A [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with other developers.
|
|
13
|
-
|
|
14
|
-
If you already have a development theme for your current environment, then this command replaces the development theme with your local theme. You can override this using the \`--theme-editor-sync\` flag.
|
|
15
|
-
|
|
16
|
-
> Note: You can't preview checkout customizations using http://127.0.0.1:9292.
|
|
17
|
-
|
|
18
|
-
Development themes are deleted when you run \`shopify auth logout\`. If you need a preview link that can be used after you log out, then you should [share](https://shopify.dev/docs/api/shopify-cli/theme/theme-share) your theme or [push](https://shopify.dev/docs/api/shopify-cli/theme/theme-push) to an unpublished theme on your store.
|
|
19
|
-
|
|
20
|
-
You can run this command only in a directory that matches the [default Shopify theme folder structure](https://shopify.dev/docs/themes/tools/cli#directory-structure).`;o.description=w.descriptionWithoutMarkdown();o.flags={...l,...p,host:t.Flags.string({description:"Set which network interface the web server listens on. The default value is 127.0.0.1.",env:"SHOPIFY_FLAG_HOST"}),"live-reload":t.Flags.string({description:`The live reload mode switches the server behavior when a file is modified:
|
|
21
|
-
- hot-reload Hot reloads local changes to CSS and sections (default)
|
|
22
|
-
- full-page Always refreshes the entire page
|
|
23
|
-
- off Deactivate live reload`,default:"hot-reload",options:["hot-reload","full-page","off"],env:"SHOPIFY_FLAG_LIVE_RELOAD"}),"error-overlay":t.Flags.string({description:`Controls the visibility of the error overlay when an theme asset upload fails:
|
|
24
|
-
- silent Prevents the error overlay from appearing.
|
|
25
|
-
- default Displays the error overlay.
|
|
26
|
-
`,options:["silent","default"],default:"default",env:"SHOPIFY_FLAG_ERROR_OVERLAY"}),poll:t.Flags.boolean({hidden:!0,description:"Force polling to detect file changes.",env:"SHOPIFY_FLAG_POLL"}),"theme-editor-sync":t.Flags.boolean({description:"Synchronize Theme Editor updates in the local theme files.",env:"SHOPIFY_FLAG_THEME_EDITOR_SYNC"}),"standard-events-inspector":t.Flags.boolean({description:"Inject the standard events inspector into storefront HTML.",env:"SHOPIFY_FLAG_STANDARD_EVENTS_INSPECTOR",default:!1}),port:d({description:"Local port to serve theme preview from.",env:"SHOPIFY_FLAG_PORT"}),theme:t.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"}),listing:t.Flags.string({description:"The listing preset to use for multi-preset themes. Applies preset files from listings/[preset-name] directory.",env:"SHOPIFY_FLAG_LISTING"}),nodelete:t.Flags.boolean({char:"n",description:"Prevents files from being deleted in the remote theme when a file has been deleted locally. This applies to files that are deleted while the command is running, and files that have been deleted locally before the command is run.",env:"SHOPIFY_FLAG_NODELETE"}),only:t.Flags.string({char:"o",multiple:!0,description:"Hot reload only files that match the specified pattern.",env:"SHOPIFY_FLAG_ONLY"}),ignore:t.Flags.string({char:"x",multiple:!0,description:"Skip hot reloading any files that match the specified pattern.",env:"SHOPIFY_FLAG_IGNORE"}),force:t.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"}),notify:t.Flags.string({description:"The file path or URL. The file path is to a file that you want updated on idle. The URL path is where you want a webhook posted to report on file changes.",env:"SHOPIFY_FLAG_NOTIFY"}),open:t.Flags.boolean({description:"Automatically launch the theme preview in your default web browser.",env:"SHOPIFY_FLAG_OPEN",default:!1}),"store-password":t.Flags.string({description:"The password for storefronts with password protection.",env:"SHOPIFY_FLAG_STORE_PASSWORD"}),"allow-live":t.Flags.boolean({description:"Allow development on a live theme.",char:"a",env:"SHOPIFY_FLAG_ALLOW_LIVE",default:!1})};o.multiEnvironmentsFlags=null;var R=o;export{R as a};
|
package/dist/chunk-HYF3VJYS.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{a as M}from"./chunk-UHIP5CFI.js";import{a as S}from"./chunk-VJQJ5PTQ.js";import{A as b,B as A,D as C,E as x,Fa as V}from"./chunk-4MLEL3VK.js";import{a as c}from"./chunk-7PVNAILK.js";import{b as j,c as E}from"./chunk-NGCPVRDM.js";import{v as y,x as u}from"./chunk-EEEKSYWV.js";import{d as g,f as o}from"./chunk-IIFRDOYG.js";import{Lb as s,Sb as w,Vb as h}from"./chunk-TB7HFPBB.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();m();async function N(f,t){let i=new Set(t.map(n=>n.file)).size;await c.addPublicMetadata(()=>({cmd_app_validate_valid:f,cmd_app_validate_issue_count:t.length,cmd_app_validate_file_count:i}))}async function J(f,t={json:!1}){let i=f.errors;if(!i||i.isEmpty()){if(await N(!0,[]),t.json){s(JSON.stringify({valid:!0,issues:[]},null,2));return}y({headline:"App configuration is valid."});return}let n=i.getErrors();if(await N(!1,n),t.json){let d=n.map(({file:p,message:a,path:r,code:e})=>({file:p,message:a,path:r,code:e}));throw s(JSON.stringify({valid:!1,issues:d},null,2)),new o}throw u({headline:"Validation errors found.",body:n.map(d=>`\u2022 ${x(d)}`).join(`
|
|
2
|
-
`)}),new o}var v;async function _(f,t){await c.addPublicMetadata(()=>({cmd_app_validate_valid:!1,cmd_app_validate_issue_count:f,cmd_app_validate_file_count:t}))}var l=class extends M{async run(){let{flags:t}=await this.parse(v);await c.addPublicMetadata(()=>({cmd_app_validate_json:t.json}));let i;try{i=await b.load(t.path)}catch(a){if(a instanceof g&&t.json){await _(1,1);let r=h(w(a.message)).trim();throw s(JSON.stringify({valid:!1,issues:[{message:r}]},null,2)),new o}throw a}let n;try{n=await C(i,t.config)}catch(a){if(a instanceof g&&t.json){await _(1,1);let r=h(w(a.message)).trim();throw s(JSON.stringify({valid:!1,issues:[{message:r}]},null,2)),new o}throw a}let d=A(i,n.file);if(d.length>0){let a=d.map(e=>({file:e.path,message:e.message})),r=new Set(d.map(e=>e.path)).size;throw await _(a.length,r),t.json?(s(JSON.stringify({valid:!1,issues:a},null,2)),new o):(u({headline:"Validation errors found.",body:a.map(e=>`\u2022 ${e.message}`).join(`
|
|
3
|
-
`)}),new o)}let p;try{p=(await V({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config,unsafeTolerateErrors:!0})).app}catch(a){let r=a instanceof g?h(w(a.message)).trim():"";throw r.startsWith("Validation errors in ")&&t.json?(await _(1,1),s(JSON.stringify({valid:!1,issues:[{message:r}]},null,2)),new o):a}return await J(p,{json:t.json}),{app:p}}};v=l;l.summary="Validate your app configuration and extensions.";l.descriptionWithMarkdown="Validates the selected app configuration file and all extension configurations against their schemas and reports any errors found.";l.description=v.descriptionWithoutMarkdown();l.flags={...j,...S,...E};var X=l;export{X as a};
|
package/dist/chunk-IIFRDOYG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Eb as x,Sb as P,vb as w}from"./chunk-TB7HFPBB.js";import{e as g}from"./chunk-773TIA5M.js";import{r as T}from"./chunk-T6CC5WUU.js";import{c as h,e as O,g as u}from"./chunk-VKWPEFWQ.js";var M=h(a=>{"use strict";u();a.__esModule=void 0;a.__esModule=!0;var B=typeof Object.setPrototypeOf=="function",R=typeof Object.getPrototypeOf=="function",U=typeof Object.defineProperty=="function",q=typeof Object.create=="function",z=typeof Object.prototype.hasOwnProperty=="function",H=function(e,r){B?Object.setPrototypeOf(e,r):e.__proto__=r};a.setPrototypeOf=H;var L=function(e){return R?Object.getPrototypeOf(e):e.__proto__||e.prototype};a.getPrototypeOf=L;var j=!1,Y=function t(e,r,n){if(U&&!j)try{Object.defineProperty(e,r,n)}catch{j=!0,t(e,r,n)}else e[r]=n.value};a.defineProperty=Y;var k=function(e,r){return z?e.hasOwnProperty(e,r):e[r]===void 0};a.hasOwnProperty=k;var D=function(e,r){if(q)return Object.create(e,r);var n=function(){};n.prototype=e;var s=new n;if(typeof r>"u")return s;if(typeof r=="null")throw new Error("PropertyDescriptors must not be null.");if(typeof r=="object")for(var o in r)k(r,o)&&(s[o]=r[o].value);return s};a.objectCreate=D});var S=h(f=>{"use strict";u();f.__esModule=void 0;f.__esModule=!0;var b=M(),G=b.setPrototypeOf,Z=b.getPrototypeOf,v=b.defineProperty,J=b.objectCreate,K=new Error().toString()==="[object Error]",m="";function p(t){var e=this.constructor,r=e.name||(function(){var y=e.toString().match(/^function\s*([^\s(]+)/);return y===null?m||"Error":y[1]})(),n=r==="Error",s=n?m:r,o=Error.apply(this,arguments);if(G(o,Z(this)),!(o instanceof e)||!(o instanceof p)){var o=this;Error.apply(this,arguments),v(o,"message",{configurable:!0,enumerable:!1,value:t,writable:!0})}if(v(o,"name",{configurable:!0,enumerable:!1,value:s,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(o,n?p:e),o.stack===void 0){var c=new Error(t);c.name=o.name,o.stack=c.stack}return K&&v(o,"toString",{configurable:!0,enumerable:!1,value:function(){return(this.name||"Error")+(typeof this.message>"u"?"":": "+this.message)},writable:!0}),o}m=p.name||"ExtendableError";p.prototype=J(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}});f.ExtendableError=p;f.default=f.ExtendableError});u();var A=O(T()),V=O(S()),i;(function(t){t[t.Abort=0]="Abort",t[t.AbortSilent=1]="AbortSilent",t[t.Bug=2]="Bug"})(i||(i={}));var _=class extends Error{},l=class extends Error{constructor(e,r,n=null,s,o){let c=typeof e=="string"||"value"in e;super(c?P(e):w(e)),n?n instanceof x?this.tryMessage=P(n):this.tryMessage=n:this.tryMessage=null,this.type=r,this.nextSteps=s,this.customSections=o,this.skipOclifErrorHandling=!0,c||(this.formattedMessage=e)}},E=class extends l{constructor(e,r=null,n,s){super(e,i.Abort,r,n,s)}},I=class extends l{constructor(e,r,n,s=null){super(e,i.Abort,s),this.command=r,this.args=n}},C=class extends l{constructor(){super("",i.AbortSilent)}},d=class extends l{constructor(e,r=null){super(e,i.Bug,r)}};async function ne(t){let e;if(N(t))e=t;else if(typeof t=="string")e=new d(t);else if(t instanceof Error)e=new d(t.message),e.stack=t.stack;else{let n=t;e=new d(n?.message??"Unknown error"),n?.stack&&(e.stack=n?.stack)}let{renderFatalError:r}=await import("./ui-N2C5FC3G.js");return r(e),Promise.resolve(t)}function oe(t){if(t instanceof A.Errors.CLIError){let e=new E(t.message);return e.stack=t.stack,Promise.resolve(e)}else return Promise.resolve(t)}function N(t){try{return Object.prototype.hasOwnProperty.call(t,"type")}catch{return!1}}function se(t){if(!N(t)){if(t instanceof Error){let e=t.message;return!Q(e)}return!0}return t.type===i.Bug}function ae(t){return g(t).replace("file:/","/").replace(/^\/?[A-Z]:/,"")}function Q(t){return["EPERM: operation not permitted, scandir","EPERM: operation not permitted, rename","EACCES: permission denied","EPERM: operation not permitted, symlink","This version of npm supports the following node versions","EBUSY: resource busy or locked","ENOTEMPTY: directory not empty","getaddrinfo ENOTFOUND","Client network socket disconnected before secure TLS connection was established","spawn EPERM","socket hang up","The user aborted a request.","write EPIPE","Unsupported platform"].some(n=>t.includes(n))}export{i as a,_ as b,l as c,E as d,I as e,C as f,d as g,ne as h,oe as i,se as j,ae as k,V as l};
|
package/dist/chunk-KB6H5LQJ.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{f as m,i as f}from"./chunk-R7QYSC6T.js";import{d as s}from"./chunk-IIFRDOYG.js";import{$ as c,Ta as r,qa as h,wa as l}from"./chunk-TB7HFPBB.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};
|
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-MYQTAM77.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A as x,a as ne,b as ie,c as L,d as ae,e as le,g as P,i as v,j as ce,k as ue,m as pe,n as me,o as fe,r as de,s as ge,t as Ee,u as he,v as U,w as ye,x as Te,y as we,z as A}from"./chunk-XCGV3IJ5.js";import{a as oe}from"./chunk-RE652L3G.js";import{a as se}from"./chunk-UHIP5CFI.js";import{a as z}from"./chunk-VJQJ5PTQ.js";import{F as X,Fa as re,_ as ee,ba as te,m as W}from"./chunk-4MLEL3VK.js";import{ea as Z}from"./chunk-R7QYSC6T.js";import{z as G}from"./chunk-TIU7MMRT.js";import{b as Y,c as K}from"./chunk-NGCPVRDM.js";import{i as H,u as Q}from"./chunk-EEEKSYWV.js";import{d as _}from"./chunk-IIFRDOYG.js";import{Lb as M,Mb as S,da as $,eb as F,fb as f,gb as o}from"./chunk-TB7HFPBB.js";import{j as V}from"./chunk-773TIA5M.js";import{r as _e}from"./chunk-T6CC5WUU.js";import{e as N,g as E}from"./chunk-VKWPEFWQ.js";E();E();E();E();E();E();var C=N(F(),1);function be(t){let s=(0,C.useRef)(t);(0,C.useEffect)(()=>{s.current=t},[t]),(0,C.useEffect)(()=>{let n;function i(){s.current().then(({retryIntervalMs:a})=>{a&&(n=setTimeout(i,a))}).catch(()=>{})}return n=setTimeout(i,0),()=>n&&clearTimeout(n)},[])}E();var B=async({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:i,organizationId:l})=>{let a=await i.appLogs({jwtToken:t,cursor:s},l),{errors:p,status:u}=a;if(u!==200){if(u===401||u===429||u>=500)return{errors:p.map(T=>({status:u,message:T}))};throw new _(`${p.join(", ")} while fetching app logs`)}let{cursor:r,app_logs:c}=a,d=Ce(c,n);return{cursor:r,appLogs:d}};function Ce(t,s){let n=t;return(s.status!==void 0||s.sources!==void 0)&&(n=n.filter(i=>{let l=s.status===void 0?!0:i.status===s.status,a=s.sources===void 0?!0:s.sources.includes(`${i.source_namespace}.${i.source}`);return l&&a})),n}var b=N(F(),1);async function Fe({jwtToken:t,cursor:s,filters:n,storeNameById:i,organizationId:l,setErrors:a,setAppLogOutputs:p,resubscribeCallback:u,developerPlatformClient:r}){let c=t,d=P,T=s,R=await B({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:r,organizationId:l}),m="not_attempted",w=R;if(w.errors){let h=await U({response:w,onThrottle:g=>{a(["Request throttled while polling app logs.",`Retrying in ${g/1e3}s`])},onUnknownError:g=>{a(["Error while polling app logs",`Retrying in ${g/1e3}s`])},onResubscribe:()=>u()});m=h.resubscribeResult,h.nextJwtToken&&(c=h.nextJwtToken),d=h.retryIntervalMs}else{a(g=>g.length?[]:g);let{appLogs:h}=R;if(T=R.cursor,h)for(let g of h){let y,k,q,j=i.get(g.shop_id.toString());if(j===void 0)continue;switch(g.log_type){case ue:y=de(g.payload),k=`export "${y.export}" executed in ${(y.fuelConsumed/ce).toFixed(4)}M instructions`;break;case pe:y=ge(g.payload),k="network access response retrieved from cache";break;case me:y=Ee(g.payload),k="network access request executing in background";break;case fe:y=he(g.payload),q=y.connectTimeMs&&y.writeReadTimeMs?y.connectTimeMs+y.writeReadTimeMs:null,k=`network access request executed${q?` in ${q} ms`:""}`;break;default:continue}let ke={status:g.status==="success"?"Success":"Failure",source:g.source,storeName:j,description:k,logTimestamp:$(g.log_timestamp)};y&&p(Ne=>[...Ne,{appLog:y,prefix:ke}])}}return{nextJwtToken:c,retryIntervalMs:d,cursor:T??s,resubscribeResult:m}}function Re({initialJwt:t,filters:s,resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a}){let[p,u]=(0,b.useState)([]),[r,c]=(0,b.useState)([]),d=(0,b.useRef)(t),T=(0,b.useRef)(0),R=(0,b.useRef)(""),m=(0,b.useRef)(0),w=(0,b.useCallback)(async()=>{let h=await Fe({jwtToken:d.current,cursor:R.current,filters:s,storeNameById:i,setErrors:u,setAppLogOutputs:c,resubscribeCallback:n,developerPlatformClient:l,organizationId:a});if(h.resubscribeResult==="failed"){if(m.current+=1,m.current>=v)return u(["App log streaming session has expired. Please restart your dev session."]),{retryIntervalMs:0}}else h.resubscribeResult==="succeeded"&&(m.current=0);return d.current=h.nextJwtToken,R.current=h.cursor,T.current=h.retryIntervalMs,{retryIntervalMs:T.current}},[]);return be(w),{appLogOutputs:r,errors:p}}var e=N(F(),1);var Me=t=>{switch(t){case L.NoCachedResponse:return"No cached response available";case L.CacheAboutToExpire:return"Cache is about to expire";case L.Unknown:return"Unknown reason"}},xe=({pollOptions:{jwtToken:t,filters:s},resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a})=>{let{appLogOutputs:p,errors:u}=Re({filters:s,initialJwt:t,resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a});return e.default.createElement(e.default.Fragment,null,p.map(({appLog:r,prefix:c},d)=>e.default.createElement(f,{flexDirection:"column",key:d},e.default.createElement(f,{flexDirection:"row",gap:1},e.default.createElement(o,null,e.default.createElement(o,{color:"green"},c.logTimestamp," "),e.default.createElement(o,{color:"blueBright"},`${c.storeName.split(".")[0]}`," "),e.default.createElement(o,{color:"blueBright"},c.source," "),e.default.createElement(o,{color:c.status==="Success"?"green":"red"},c.status," "),e.default.createElement(o,null,c.description))),e.default.createElement(f,{flexDirection:"column",marginLeft:4},r instanceof ne&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,r.logs),r.inputQueryVariablesMetafieldKey&&r.inputQueryVariablesMetafieldNamespace?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input Query Variables:"),e.default.createElement(f,{flexDirection:"row",marginLeft:1,marginTop:1},e.default.createElement(o,{dimColor:!0},"Namespace:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldNamespace)),e.default.createElement(f,{flexDirection:"row",marginLeft:1},e.default.createElement(o,{dimColor:!0},"Key:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldKey)),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.inputQueryVariablesMetafieldValue)??e.default.createElement(o,{color:"red"},"Metafield is not set")))):null,r.input?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input ",e.default.createElement(o,{dimColor:!0},"(",r.inputBytes," bytes):")),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.input)))):null,r.output?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Output ",e.default.createElement(o,{dimColor:!0},"(",r.outputBytes," bytes):")),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.output)))):null),r instanceof ie&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Cache write time: ",new Date(r.cacheEntryEpochMs).toISOString()),e.default.createElement(o,null,"Cache TTL: ",r.cacheTtlMs/1e3," s"),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))),r instanceof ae&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Reason: ",Me(r.reason)),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest))),r instanceof le&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Attempt: ",r.attempt),r.connectTimeMs?e.default.createElement(o,null,"Connect time: ",r.connectTimeMs," ms"):null,r.writeReadTimeMs?e.default.createElement(o,null,"Write read time: ",r.writeReadTimeMs," ms"):null,e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),r.httpResponse?e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))):null,r.error?e.default.createElement(o,null,"Error: ",r.error):null)))),u.length>0&&e.default.createElement(f,{flexDirection:"column"},u.map((r,c)=>e.default.createElement(f,{key:c},e.default.createElement(o,{color:"red"},r)))))};var Ie=N(F(),1);async function Se({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:l}){let a=async()=>A(n,s,l);return H(Ie.default.createElement(xe,{pollOptions:t,resubscribeCallback:a,storeNameById:i,developerPlatformClient:n,organizationId:l}))}E();async function D({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:l,consecutiveResubscribeFailures:a=0}){let p=await B({pollOptions:t,developerPlatformClient:n,organizationId:l}),u=P,r=t.jwtToken,c=a,d=p;if(d.errors){let m=await U({response:d,onThrottle:w=>{S(JSON.stringify({message:"Request throttled while polling app logs.",retry_in_ms:w}))},onUnknownError:w=>{S(JSON.stringify({message:"Error while polling app logs.",retry_in_ms:w}))},onResubscribe:()=>A(n,s,l)});if(m.resubscribeResult==="failed"){if(c+=1,c>=v){S(JSON.stringify({message:"App log streaming session has expired. Please restart your dev session."}));return}}else m.resubscribeResult==="succeeded"&&(c=0);m.nextJwtToken&&(r=m.nextJwtToken),u=m.retryIntervalMs}else c=0;let{cursor:T,appLogs:R}=p;R&&R.forEach(m=>{let w=i.get(m.shop_id?.toString());w!==void 0&&M(Te({appLog:m,appLogPayload:we(m.payload,m.log_type),storeName:w,prettyPrint:!1}))}),setTimeout(()=>{D({options:{variables:s,developerPlatformClient:n},pollOptions:{jwtToken:r||t.jwtToken,cursor:T??t.cursor,filters:t.filters},storeNameById:i,organizationId:l,consecutiveResubscribeFailures:c}).catch(m=>{throw m})},u)}async function Ae(t){let{app:s,remoteApp:n,developerPlatformClient:i}=t,l=await Le(t),a=ye(s);if(a.length===0)throw new _("This app has no log sources. Learn more about app logs at https://shopify.dev/docs/api/shopify-cli/app/app-logs");if(t.sources){let d=t.sources.filter(T=>!a.includes(T));if(d.length)throw new _(`Invalid sources: ${d.join(", ")}. Valid sources are: ${a.join(", ")}`)}let p={shopIds:l.storeIds.map(Number),apiKey:n.apiKey},u=await A(i,p,t.organization.id),r={status:t.status,sources:t.sources},c={jwtToken:u,filters:r};t.format==="json"?(M(JSON.stringify({subscribedToStores:t.storeFqdns})),S(JSON.stringify({message:"Waiting for app logs..."})),await D({options:{variables:p,developerPlatformClient:i},pollOptions:c,storeNameById:l.storeNameById,organizationId:t.organization.id})):(S(`Waiting for app logs...
|
|
2
|
-
`),await Se({options:{variables:p,developerPlatformClient:i},pollOptions:c,storeNameById:l.storeNameById,organizationId:t.organization.id}))}async function Le(t){let{app:s,remoteApp:n,developerPlatformClient:i,primaryStore:l,organization:a}=t,p=V(s.configPath);t.format==="text"&&Pe(n.title,l.shopDomain,t.storeFqdns,p,a.businessName);let u=new Map;return u.set(l.shopId,l.shopDomain),t.storeFqdns&&t.storeFqdns.length>1&&await Promise.all(t.storeFqdns?.slice(1).map(async c=>{let d=await Z(a,c,i);u.set(d.shopId,c)})),{storeIds:Array.from(u.keys()),storeNameById:u}}function Pe(t,s,n,i,l){let a=[];n&&n.length>0?n.forEach(u=>a.push(u)):a.push(s);let p=i?W(i):void 0;Q({headline:i?`Using ${p} for default values:`:"Using these settings:",body:ee({appName:t,org:l,devStores:a,messages:[te]})})}var O=N(_e(),1);var J,I=class extends se{async run(){let{flags:s}=await this.parse(J);await X(s.path);let n=await re({directory:s.path,clientId:s["client-id"],forceRelink:s.reset,userProvidedConfigName:s.config}),i=await oe({appContextResult:n,storeFqdn:s.store?.[0],forceReselectStore:s.reset}),l={...n,primaryStore:i,storeFqdns:s.store,sources:s.source,status:s.status,format:s.json?"json":"text"};return await Ae(l),{app:n.app}}};J=I;I.summary="Stream detailed logs for your Shopify app.";I.descriptionWithMarkdown="\n Opens a real-time stream of detailed app logs from the selected app and store.\n Use the `--source` argument to limit output to a particular log source, such as a specific Shopify Function handle. Use the `shopify app logs sources` command to view a list of sources.\n Use the `--status` argument to filter on status, either `success` or `failure`.\n ```\n shopify app logs --status=success --source=extension.discount-function\n ```\n ";I.description=J.descriptionWithoutMarkdown();I.flags={...Y,...z,...K,store:O.Flags.string({char:"s",description:"Store URL. Must be an existing development or Shopify Plus sandbox store.",env:"SHOPIFY_FLAG_STORE",multiple:!0,parse:async t=>G(t)}),source:O.Flags.string({description:"Filters output to the specified log source.",env:"SHOPIFY_FLAG_SOURCE",multiple:!0}),status:O.Flags.string({description:"Filters output to the specified status (success or failure).",options:["success","failure"],env:"SHOPIFY_FLAG_STATUS"})};var _t=I;export{_t as a};
|
package/dist/chunk-NGCPVRDM.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-VTYGIJVD.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-4YEBBCUH.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-N2C5FC3G.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-N5SUT2WN.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-HOA62HKK.js");e()}export{_ as a,F as b,E as c,S as d,j as e};
|
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-NVA2354A.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{ha as a,i}from"./chunk-4MLEL3VK.js";import{Fb as e,Hb as r}from"./chunk-TB7HFPBB.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();async function f(n,t,o){return c(n,t,o,"text")}async function c(n,t,o,S){return await a(t,o.source),S==="json"?r`${e.json({SHOPIFY_API_KEY:t.apiKey,SHOPIFY_API_SECRET:t.apiSecretKeys[0]?.secret,SCOPES:i(n.configuration)})}`:r`
|
|
2
|
-
${e.green("SHOPIFY_API_KEY")}=${t.apiKey}
|
|
3
|
-
${e.green("SHOPIFY_API_SECRET")}=${t.apiSecretKeys[0]?.secret??""}
|
|
4
|
-
${e.green("SCOPES")}=${i(n.configuration)}
|
|
5
|
-
`}export{f as a,c as b};
|
package/dist/chunk-NWH3TAHK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as b}from"./chunk-UHIP5CFI.js";import{a as k}from"./chunk-VJQJ5PTQ.js";import{Fa as N,ga as x}from"./chunk-4MLEL3VK.js";import{b as C,c as R}from"./chunk-NGCPVRDM.js";import{C as y}from"./chunk-EEEKSYWV.js";import{d as v}from"./chunk-IIFRDOYG.js";import{Fb as w,Hb as E,Lb as L,Mb as m,Vb as T,ca as h}from"./chunk-TB7HFPBB.js";import{u as A}from"./chunk-A4SBXDZB.js";import{j as u}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();l();var M=12;async function S(p,t,o){let n=await p.appVersions(t);if(!n.app)throw new v(`Invalid API Key: ${t.apiKey}`);let a=n.app.appVersions.nodes.map(e=>{let r=e.message??"";return{...e,status:e.status==="active"&&!o?A.green(`\u2605 ${e.status}`):e.status,createdBy:e.createdBy?.displayName??"",createdAt:h(new Date(e.createdAt)),message:r}});if(!o){let e=(process.stdout.columns??75)-M,r=e;a.forEach(s=>{let f=s.message.length+(s.versionTag?.length??0)+T(s.status).length+s.createdAt.length+s.createdBy.length;if(f>e){let I=f-s.message.length,g=Math.max(e-I,10);g<r&&(r=g)}}),a.forEach(s=>{s.message.length>r&&(s.message=`${s.message.slice(0,r-3)}...`)})}return{appVersions:a,totalResults:n.app.appVersions.pageInfo.totalResults,app:n.app}}async function c(p){let{remoteApp:t,developerPlatformClient:o,organization:n}=p,{appVersions:a,totalResults:e}=await S(o,t,p.json);if(p.json)return L(JSON.stringify(a,null,2));if(x({org:n.businessName,appName:t.title,configFile:u(p.app.configPath)}),a.length===0){m("No app versions found for this app");return}y({rows:a,columns:{versionTag:{header:"VERSION"},status:{header:"STATUS"},message:{header:"MESSAGE"},createdAt:{header:"DATE CREATED"},createdBy:{header:"CREATED BY"}}});let r=w.link(o.webUiName,[await o.appDeepLink(t),"versions"].join("/"));m(E`\nView all ${String(e)} app versions in the ${r}`)}var d,i=class extends b{async run(){let{flags:t}=await this.parse(d),{app:o,remoteApp:n,developerPlatformClient:a,organization:e}=await N({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});return await c({app:o,remoteApp:n,organization:e,developerPlatformClient:a,json:t.json}),{app:o}}};d=i;i.summary="List deployed versions of your app.";i.descriptionWithMarkdown="Lists the deployed app versions. An app version is a snapshot of your app extensions.";i.description=d.descriptionWithoutMarkdown();i.flags={...C,...k,...R};var J=i;export{J as a};
|
package/dist/chunk-OCBGHOH2.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import{p as S,v as E}from"./chunk-4P54DKG4.js";import{$ as re,aa as G}from"./chunk-L42FYXFW.js";import{r as C}from"./chunk-SSDEWKDZ.js";import{b as $}from"./chunk-NGCPVRDM.js";import{u as w,v as N}from"./chunk-EEEKSYWV.js";import{$a as A,Lb as l,Mb as P,N as x,Nb as T,Pb as L,Ta as b,na as R,ua as _}from"./chunk-TB7HFPBB.js";import{d as F,p as I}from"./chunk-773TIA5M.js";import{r as oe}from"./chunk-T6CC5WUU.js";import{e as O,g as k}from"./chunk-VKWPEFWQ.js";k();k();var i=O(G(),1),y=O(re(),1);function ie(t){switch(t){case"error":return i.Severity.ERROR;case"suggestion":case"warning":return i.Severity.WARNING;case"style":case"info":return i.Severity.INFO;case"crash":return}}function j(t){switch(t){case i.Severity.ERROR:return"error";case i.Severity.WARNING:return"warning";case i.Severity.INFO:return"info"}}function se(t,e,n){let o=i.path.fsPath(t),c=R(o).toString().split(`
|
|
2
|
-
`).slice(e,n+1),a=c.length===1;return c.map((u,h)=>{let f=e+h+1,d=a?u.trim():u;return`${f} ${d}`}).join(`
|
|
3
|
-
`)}function ce(t){switch(t){case i.Severity.ERROR:return{error:`
|
|
4
|
-
[error]:`};case i.Severity.WARNING:return{warn:`
|
|
5
|
-
[warning]:`};case i.Severity.INFO:return{info:`
|
|
6
|
-
[info]:`}}}function ae(t){return t.map((n,o)=>{let{message:r,uri:s,start:c,end:a,check:u,severity:h}=n,f=se(s,c.line,a.line),d=o===t.length-1?"":`
|
|
7
|
-
|
|
8
|
-
`;return[ce(h),{bold:u},{subdued:`
|
|
9
|
-
${r}`},`
|
|
10
|
-
|
|
11
|
-
${f}`,d]}).flat()}var ue=(t,e)=>t.severity-e.severity;function Y(t){let e=t.reduce((n,o)=>{let{uri:r}=o,s=i.path.fsPath(r);return n[s]??(n[s]=[]),n[s].push(o),n},{});return Object.keys(e).reduce((n,o)=>(n[o]=e[o].sort(ue),n),{})}function U(t){return t.reduce((e,n)=>(!Object.prototype.hasOwnProperty.call(e,n.severity)&&(e[n.severity]=0),e[n.severity]++,e),{})}function W(t,e,n){let o=[`${n.length} files inspected`];if(t.length===0)o.push("with no offenses found.");else{o.push(`with ${t.length} total offenses found across ${Object.keys(e).length} files.`);let r=U(t);r[i.Severity.ERROR]&&o.push(`
|
|
12
|
-
${r[i.Severity.ERROR]} errors.`),r[i.Severity.WARNING]&&o.push(`
|
|
13
|
-
${r[i.Severity.WARNING]} warnings.`),r[i.Severity.INFO]&&o.push(`
|
|
14
|
-
${r[i.Severity.INFO]} info issues.`)}return o}function q(t,e,n){Object.keys(t).sort().forEach(r=>{let s=r.replace(e,"").slice(1);w({headline:n?`[${n}] ${s}`:s,body:ae(t[r])})})}function H(t,e){return Object.entries(t).map(([n,o])=>{let r=o.map(c=>({check:c.check,severity:j(c.severity),start_row:c.start.line,start_column:c.start.character,end_row:c.end.line,end_column:c.end.character,message:c.message})),s=U(o);return{environment:e,path:n,offenses:r,errorCount:s[i.Severity.ERROR]??0,warningCount:s[i.Severity.WARNING]??0,infoCount:s[i.Severity.INFO]??0}})}function B(t,e){e||process.exit(0);let n=ie(e),o=n!==void 0&&t.some(r=>r.severity<=n);process.exit(o?1:0)}function fe(t){return t.split(`
|
|
15
|
-
`).map(e=>`# ${e}`).join(`
|
|
16
|
-
`)}async function D(t){let e=".theme-check.yml",n=F(t,e);if(await b(n)){P(`${e} already exists at ${t}`);return}let{settings:o}=await(0,i.loadConfig)(void 0,t),r=fe(y.default.stringify(o)),s=y.default.stringify({extends:"theme-check:recommended",ignore:["node_modules/**"]});await _(n,`${s}${r}`),T(`Created ${e} at ${t}`)}var de=async(t,e)=>{let n=(0,i.applyFixToString)(t.source,e),o=i.path.fsPath(t.uri);await _(o,n)};async function M(t,e){await(0,i.autofix)(t,e,de)}async function J(t,e,n){let{ignore:o,settings:r,rootUri:s}=await(0,i.loadConfig)(e,t),c={extends:[],ignore:x(o??[]),rootUri:s,...r},a=n?{[n]:c}:c;l(y.default.stringify(a))}async function V(t,e,n){let{settings:o,ignore:r,checks:s}=await(0,i.loadConfig)(e,t),c=x(r??[]),u=Object.keys(o).reduce((f,d)=>{let{severity:Q,enabled:X,...Z}=o[d];if(!X)return f;let ee=j(Q??i.Severity.INFO),v=s.find(ne=>ne.meta.code===d),te=v&&v.meta?{description:v.meta.docs.description,doc:v.meta.docs.url}:{};return f[d]={severity:ee,...te,ignored_patterns:`[${c.join(", ")}]`,...Z},f},{}),h=n?{[n]:u}:u;l(y.default.stringify(h))}function z(t){return"_handle"in t&&typeof t._handle=="object"&&t._handle!==null&&typeof t._handle.setBlocking=="function"}var m=O(oe(),1);var g=O(G(),1);var K,p=class extends E{async command(e,n,o){let r=e.path,s=e.environment?.[0],a=e.config?.startsWith(":")&&g.LegacyIdentifiers.has(e.config.slice(1))?g.LegacyIdentifiers.get(e.config.slice(1)):e.config;if(e.init){await D(r);return}if(e.version){let f=await A(F("node_modules","@shopify","theme-check-node","package.json"),{type:"file",cwd:I(import.meta.url)}),d="unknown";f&&(d=await C(f)??"unknown"),l(d);return}if(e.print){await J(r,a,s);return}if(e.list){await V(r,a,s);return}let{offenses:u,theme:h}=await me(r,e.output,a,s);if(e["auto-correct"]&&await M(h,u),!o)return B(u,e["fail-level"])}};K=p;p.summary="Validate the theme.";p.descriptionWithMarkdown="Calls and runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) to analyze your theme code for errors and to ensure that it follows theme and Liquid best practices. [Learn more about the checks that Theme Check runs.](https://shopify.dev/docs/themes/tools/theme-check/checks)";p.description=K.descriptionWithoutMarkdown();p.flags={...$,path:S.path,"auto-correct":m.Flags.boolean({char:"a",required:!1,description:"Automatically fix offenses",env:"SHOPIFY_FLAG_AUTO_CORRECT"}),config:m.Flags.string({char:"C",required:!1,description:`Use the config provided, overriding .theme-check.yml if present
|
|
17
|
-
Supports all theme-check: config values, e.g., theme-check:theme-app-extension,
|
|
18
|
-
theme-check:recommended, theme-check:all
|
|
19
|
-
For backwards compatibility, :theme_app_extension is also supported `,env:"SHOPIFY_FLAG_CONFIG"}),"fail-level":m.Flags.string({required:!1,description:"Minimum severity for exit with error code",env:"SHOPIFY_FLAG_FAIL_LEVEL",options:["crash","error","suggestion","style","warning","info"],default:"error"}),init:m.Flags.boolean({required:!1,description:"Generate a .theme-check.yml file",env:"SHOPIFY_FLAG_INIT"}),list:m.Flags.boolean({required:!1,description:"List enabled checks",env:"SHOPIFY_FLAG_LIST"}),output:m.Flags.string({char:"o",required:!1,description:"The output format to use",env:"SHOPIFY_FLAG_OUTPUT",options:["text","json"],default:"text"}),print:m.Flags.boolean({required:!1,description:"Output active config to STDOUT",env:"SHOPIFY_FLAG_PRINT"}),version:m.Flags.boolean({char:"v",required:!1,description:"Print Theme Check version",env:"SHOPIFY_FLAG_VERSION"}),environment:S.environment};p.multiEnvironmentsFlags=["path"];var Ae=p;async function me(t,e,n,o){let{offenses:r,theme:s}=await(0,g.themeCheckRun)(t,n,a=>{process.env.SHOPIFY_TMP_FLAG_DEBUG&&L(a)}),c=Y(r);if(e==="text"&&(q(c,t,o),(r.length?w:N)({headline:o?`[${o}] Theme Check Summary.`:"Theme Check Summary.",body:W(r,c,s)})),e==="json"){let a=process.stdout;z(a)&&a._handle.setBlocking(!0),l(JSON.stringify(H(c,o)))}return{offenses:r,theme:s}}export{Ae as a,me as b};
|
package/dist/chunk-P7U6BWKN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-4ROX2TCK.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends o{};export{t as a};
|
package/dist/chunk-QFXJNFMI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as a}from"./chunk-TIU7MMRT.js";import{d as o}from"./chunk-IIFRDOYG.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();var n={LOCALHOST:"localhost",HTTP:"http",PUBSUB:"google-pub-sub",EVENTBRIDGE:"event-bridge"},p={LOCALHOST:new RegExp("^http:","i"),HTTP:new RegExp("^https:","i"),PUBSUB:new RegExp("^pubsub:"),EVENTBRIDGE:new RegExp("^arn:aws:events:")};function c(t,e){let r=h(t);return r===n.LOCALHOST&&e===n.HTTP?!0:r===e}function f(t){return p.LOCALHOST.test(t)?new URL(t.toLowerCase()).hostname==="localhost":!1}function E(t,e){if(!c(t,e))throw new o(`Can't deliver your webhook payload to this address using '${e}'`,"Use a valid URL for address",l(e));let r=e;return f(t)&&(r=n.LOCALHOST),[t.trim(),r]}function l(t){return t===n.HTTP?["For remote HTTP testing, use a URL that starts with https://","For local HTTP testing, use http://localhost:{port}/{url-path}"]:t===n.PUBSUB?["For Google Pub/Sub, use pubsub://{project-id}:{topic-id}"]:t===n.EVENTBRIDGE?["For Amazon EventBridge, use an Amazon Resource Name (ARN) starting with arn:aws:events:"]:[]}function g(t,e){if(e.includes(t))return t;throw new o(`Api Version '${t}' does not exist`,`Allowed values: ${e.join(", ")}`,["Try again with a valid api-version value"])}function L(t,e,r){if(r.length===0)throw new o(`No topics found for '${e}'`);let i=T(t.trim(),r);if(i===void 0)throw new o(`Topic '${t}' does not exist for ApiVersion '${e}'`,`Allowed values: ${r.join(", ")}`,["Try again with a valid api-version - topic pair"]);return i}function T(t,e){return e.includes(t)?t:e.find(r=>r.toUpperCase().replace("/","_")===t)}function h(t){if(t){if(t.startsWith("pubsub:"))return n.PUBSUB;if(t.startsWith("arn:aws:events:"))return n.EVENTBRIDGE;if(f(t))return n.LOCALHOST;if(p.HTTP.test(t))return n.HTTP}}u();async function H(t,e,r){let i={method:"POST",body:e,headers:{"Content-Type":"application/json",...JSON.parse(r)}},s=await a(t,i);return s.status>=200&&s.status<300}export{H as a,n as b,c,E as d,g as e,L as f,h as g};
|