@shopify/cli 4.5.1 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-6S5JVSRO.js +1 -0
- package/dist/analytics-E252SR3P.js +1 -0
- package/dist/assets/hydrogen/starter/package.json +1 -1
- package/dist/bootstrap.js +1 -1
- package/dist/{chokidar-VDIVGBZH.js → chokidar-5RWEYTNQ.js} +1 -1
- package/dist/{chunk-XU6CCL4P.js → chunk-2I62GKIH.js} +80 -80
- package/dist/{chunk-PGN5EZTI.js → chunk-2JFZ6GZC.js} +2 -2
- package/dist/{chunk-UQWFDL3F.js → chunk-2KD4LHRT.js} +1 -1
- package/dist/chunk-2MCH43SL.js +11 -0
- package/dist/{chunk-BEXQB4RT.js → chunk-2SNT7U7B.js} +1 -1
- package/dist/{chunk-U2LQBJJL.js → chunk-2VIUGNYO.js} +1 -1
- package/dist/chunk-2Y6CYLKF.js +1 -0
- package/dist/{chunk-KHXDP3SF.js → chunk-3EHRA4LA.js} +1 -1
- package/dist/{chunk-GQG6WELZ.js → chunk-3EPQ6UOK.js} +6 -6
- package/dist/{chunk-ZHPXJRHR.js → chunk-3NO6PWNL.js} +1 -1
- package/dist/chunk-3TFUSDHY.js +370 -0
- package/dist/{chunk-SFMXFH33.js → chunk-46NA23I7.js} +1 -1
- package/dist/{chunk-C5U4NLNU.js → chunk-47URTBZF.js} +1 -1
- package/dist/chunk-4FEBSLSU.js +1 -0
- package/dist/{chunk-DCUAVLTM.js → chunk-4HB4VZJQ.js} +1 -1
- package/dist/{chunk-DU5LZYQX.js → chunk-4JARSKED.js} +1 -1
- package/dist/{chunk-IHUCBI6L.js → chunk-4KZRP2JP.js} +141 -141
- package/dist/{chunk-2GDACKZF.js → chunk-4P7PWLUN.js} +1 -1
- package/dist/{chunk-MYQQOOGA.js → chunk-4YCMEC5R.js} +1 -1
- package/dist/{chunk-Q2X7IXPQ.js → chunk-53ZA2HD3.js} +1 -1
- package/dist/{chunk-DE3WCNP6.js → chunk-57YF2UNT.js} +1 -1
- package/dist/{chunk-MOCD7GFI.js → chunk-5EFQILLF.js} +1 -1
- package/dist/chunk-5JPV3HPJ.js +1 -0
- package/dist/{chunk-OCYPWE2O.js → chunk-5LJ5H4TD.js} +1 -1
- package/dist/{chunk-JVMYTC3J.js → chunk-5Y2VD4I3.js} +1 -1
- package/dist/{chunk-YBFCDINU.js → chunk-6BX62FFE.js} +1 -1
- package/dist/{chunk-6ZMNEURG.js → chunk-6FJBCRVK.js} +1 -1
- package/dist/{chunk-2WDKXDFM.js → chunk-6Q5VRSRN.js} +1 -1
- package/dist/{chunk-GDHD3TGC.js → chunk-6QDOCBD4.js} +1 -1
- package/dist/{chunk-BVFIJSD7.js → chunk-6SXB44CE.js} +1 -1
- package/dist/chunk-6UTUJKKC.js +16 -0
- package/dist/{chunk-E24W34C4.js → chunk-6YCGMS7X.js} +15 -15
- package/dist/chunk-72GN655L.js +1 -0
- package/dist/chunk-7CPECP5P.js +1 -0
- package/dist/{chunk-XH5FCMS5.js → chunk-7HAFBCL3.js} +1 -1
- package/dist/chunk-7XPFLQEM.js +1 -0
- package/dist/{chunk-DDVT2K7E.js → chunk-A3JE5LX3.js} +1 -1
- package/dist/{chunk-ASOT7VNB.js → chunk-AJ6VOBXU.js} +1 -1
- package/dist/{chunk-XWQ72WTQ.js → chunk-B2WK53GH.js} +1 -1
- package/dist/chunk-B34VYVGV.js +1 -0
- package/dist/chunk-B6SY4BIK.js +2 -0
- package/dist/{chunk-H7DDRARV.js → chunk-BBEHNPKK.js} +1 -1
- package/dist/{chunk-GKQ6CSJZ.js → chunk-BCTMBKAU.js} +1 -1
- package/dist/chunk-BGUHH7AW.js +10 -0
- package/dist/chunk-BOAGJ6P5.js +1 -0
- package/dist/chunk-C256W7D2.js +26 -0
- package/dist/chunk-CTNBSUVU.js +83 -0
- package/dist/{chunk-MQXSMZQZ.js → chunk-CXWLHQKA.js} +1 -1
- package/dist/chunk-DHU767C3.js +1 -0
- package/dist/{chunk-NGPJXONG.js → chunk-DKHMLETG.js} +1 -1
- package/dist/{chunk-QPJQ67GU.js → chunk-DODCPRXT.js} +144 -144
- package/dist/{chunk-QDYDB7DY.js → chunk-E3RDAVJT.js} +3 -3
- package/dist/chunk-E3RQCWSC.js +6 -0
- package/dist/{chunk-EDSKA6UB.js → chunk-EBZ6MDEM.js} +1 -1
- package/dist/chunk-ELJ7SKMH.js +1 -0
- package/dist/{chunk-FOPGI6GO.js → chunk-EQTULRM7.js} +1 -1
- package/dist/{chunk-SRAHMYWJ.js → chunk-ERCJPRN3.js} +1 -1
- package/dist/{chunk-M2AS5BWX.js → chunk-ESZS7L6O.js} +1 -1
- package/dist/{chunk-IBBFRL3Y.js → chunk-ET2O5DAS.js} +1 -1
- package/dist/chunk-EZ7EBYDT.js +684 -0
- package/dist/{chunk-AVMNXIXF.js → chunk-EZNJDFFK.js} +1 -1
- package/dist/chunk-F34LB7M4.js +20 -0
- package/dist/{chunk-QVYZZNAS.js → chunk-FE24P4UQ.js} +1 -1
- package/dist/chunk-FFSDGRAN.js +1 -0
- package/dist/{chunk-ALQKJAHP.js → chunk-FMTPUYSH.js} +1 -1
- package/dist/{chunk-IQYZAALJ.js → chunk-FPWLEGKZ.js} +1 -1
- package/dist/{chunk-APYASWBA.js → chunk-FT4HLDK7.js} +1 -1
- package/dist/{chunk-E7OLCSAL.js → chunk-G3YYMKWG.js} +1 -1
- package/dist/chunk-G7QW5OSQ.js +6 -0
- package/dist/{chunk-JO4ZHVOD.js → chunk-GCDEDRY7.js} +1 -1
- package/dist/{chunk-GAYQKMOM.js → chunk-GEE5MXHT.js} +1 -1
- package/dist/{chunk-IIHPONSQ.js → chunk-H4MYBJ6C.js} +1 -1
- package/dist/chunk-HDXBZLHH.js +8 -0
- package/dist/chunk-HSKB5OTM.js +1 -0
- package/dist/{chunk-5T3OVTF5.js → chunk-HT6MOPLW.js} +1 -1
- package/dist/chunk-HZXY7RWJ.js +19 -0
- package/dist/{chunk-WIXW233Y.js → chunk-IDAWPBJM.js} +1 -1
- package/dist/{chunk-UHJ65YFN.js → chunk-IDLDQ2JB.js} +1 -1
- package/dist/{chunk-KOB6T6NK.js → chunk-IKYZ5L3F.js} +1 -1
- package/dist/{chunk-O2PI2PYG.js → chunk-ILQXBASM.js} +1 -1
- package/dist/{chunk-O7MONSF7.js → chunk-IYU72M55.js} +1 -1
- package/dist/{chunk-JCNRQYRP.js → chunk-J3IHP46B.js} +2 -2
- package/dist/{chunk-UB5BVO76.js → chunk-J4KJQHNS.js} +1 -1
- package/dist/{chunk-3GMW7IEC.js → chunk-JHRZCUBE.js} +1 -1
- package/dist/chunk-JIBLEZ57.js +18 -0
- package/dist/{chunk-TXJEP4FB.js → chunk-JIKIYMCT.js} +1 -1
- package/dist/{chunk-MKCXLBQ4.js → chunk-JJTGHARS.js} +1 -1
- package/dist/chunk-JJZNUFPD.js +44 -0
- package/dist/{chunk-U7ZRDNZU.js → chunk-JQP3ZCAG.js} +1 -1
- package/dist/{chunk-5UXPTCSD.js → chunk-JS3X6BDT.js} +1 -1
- package/dist/{chunk-YZY4M6IH.js → chunk-K7IZMKBR.js} +1 -1
- package/dist/{chunk-5JCREGSD.js → chunk-KGZH4RFA.js} +1 -1
- package/dist/{chunk-JNEGEJH6.js → chunk-KO4FB4QU.js} +1 -1
- package/dist/chunk-KPRKIZ5M.js +3 -0
- package/dist/chunk-KUN74JD4.js +4 -0
- package/dist/chunk-KURWC4A5.js +16 -0
- package/dist/{chunk-XDEAZP2I.js → chunk-L3D2CASO.js} +1 -1
- package/dist/{chunk-P6S5YLOP.js → chunk-L7DZTIHJ.js} +1 -1
- package/dist/{chunk-QPY6WJTT.js → chunk-LBDAYBIF.js} +1 -1
- package/dist/{chunk-ZG7BVVT2.js → chunk-LD6ZCTZ3.js} +1 -1
- package/dist/{chunk-TDCY3BRI.js → chunk-LH3RIIOB.js} +1 -1
- package/dist/{chunk-BZAZMLII.js → chunk-LWRDNTAD.js} +1 -1
- package/dist/{chunk-MMKBIMMC.js → chunk-LWWBU7ET.js} +1 -1
- package/dist/chunk-M4BEPPA3.js +1 -0
- package/dist/chunk-M4YPMHIM.js +1 -0
- package/dist/{chunk-VSZS3FAJ.js → chunk-M5KKLAM6.js} +1 -1
- package/dist/{chunk-Q2UHGP2Z.js → chunk-MBLHXPGK.js} +1 -1
- package/dist/{chunk-3YCTWCHH.js → chunk-MDHJJVXA.js} +1 -1
- package/dist/{chunk-5U6MXSNY.js → chunk-MDXSLAIC.js} +1 -1
- package/dist/{chunk-NV5IDANV.js → chunk-NA2ERJIJ.js} +1 -1
- package/dist/chunk-NOKCVDYD.js +317 -0
- package/dist/chunk-O6XSWAP2.js +4 -0
- package/dist/{chunk-OVLTFTZW.js → chunk-OB62WVZ5.js} +1 -1
- package/dist/{chunk-UYNCJGMC.js → chunk-OT52JOML.js} +1 -1
- package/dist/chunk-OTT73YUA.js +5 -0
- package/dist/{chunk-ZVQBSXE4.js → chunk-OUUOML3D.js} +1 -1
- package/dist/{chunk-7ZLKT2TB.js → chunk-P7XC5HS2.js} +1 -1
- package/dist/{chunk-KC2TN7AR.js → chunk-PALG4SNB.js} +1 -1
- package/dist/{chunk-T5DF2GGD.js → chunk-PB37BTPE.js} +1 -1
- package/dist/{chunk-WO5YOBQ7.js → chunk-PWYRKTJ4.js} +1 -1
- package/dist/{chunk-H7PNMMDO.js → chunk-PXSX63RF.js} +1 -1
- package/dist/{chunk-QMSYJIAU.js → chunk-QDPDB5EP.js} +1 -1
- package/dist/{chunk-7XQDZF73.js → chunk-QG7TELFC.js} +1 -1
- package/dist/{chunk-OASPW2P2.js → chunk-QU5NL2QT.js} +1 -1
- package/dist/{chunk-DQE7XRCK.js → chunk-QV53BSQP.js} +1 -1
- package/dist/{chunk-CNOL26GA.js → chunk-QXXA2EQY.js} +1 -1
- package/dist/{chunk-T3AJL2M5.js → chunk-QZ5FMWZS.js} +1 -1
- package/dist/chunk-R26GJEH3.js +1 -0
- package/dist/{chunk-TDSR2X7X.js → chunk-RTW4RZWH.js} +2 -2
- package/dist/{chunk-FPCPFECH.js → chunk-SEV3S3WH.js} +1 -1
- package/dist/{chunk-YYHCPLBX.js → chunk-TAFOSPBW.js} +1 -1
- package/dist/{chunk-MCATVWHC.js → chunk-TAV2ENJY.js} +1 -1
- package/dist/{chunk-ZNWFTUFV.js → chunk-TQNALMQH.js} +1 -1
- package/dist/chunk-TR4OWSEX.js +77 -0
- package/dist/{chunk-RFDT525K.js → chunk-TUJNCWHZ.js} +1 -1
- package/dist/{chunk-2MNOWKMI.js → chunk-U564K7SX.js} +1 -1
- package/dist/chunk-UKQ7NE5V.js +1 -0
- package/dist/{chunk-ICFFBMFB.js → chunk-UM3OHLCX.js} +1 -1
- package/dist/{chunk-4TC4M4RC.js → chunk-V65P572N.js} +3 -3
- package/dist/chunk-VFIVXK53.js +2 -0
- package/dist/chunk-VVFPW4ZQ.js +2 -0
- package/dist/{chunk-TVU4YD2H.js → chunk-VYITPC34.js} +1 -1
- package/dist/{chunk-3QVXHF6I.js → chunk-VZKR2YFM.js} +1 -1
- package/dist/{chunk-WMDYHUPS.js → chunk-W2GMKXM7.js} +1 -1
- package/dist/{chunk-72K36DID.js → chunk-W4X3635B.js} +1 -1
- package/dist/chunk-W6ST525S.js +99 -0
- package/dist/{chunk-RIRSTGFU.js → chunk-WEEYQX3M.js} +1 -1
- package/dist/{chunk-KOUKBXOZ.js → chunk-WO7LKJCJ.js} +1 -1
- package/dist/{chunk-6XLVKD6Q.js → chunk-WPRAJ25Z.js} +1 -1
- package/dist/{chunk-LUG2BZJP.js → chunk-WR2ZQGUR.js} +1 -1
- package/dist/{chunk-5K4DONQJ.js → chunk-WWX265PC.js} +1 -1
- package/dist/chunk-XERJY4IG.js +103 -0
- package/dist/{chunk-GXUZ3V7S.js → chunk-XGCJWCC4.js} +1 -1
- package/dist/{chunk-PGKP7W5T.js → chunk-XGMPC7KK.js} +1 -1
- package/dist/chunk-XGRVAPLR.js +7 -0
- package/dist/{chunk-TC3JOEMA.js → chunk-Y2PC2BBJ.js} +60 -60
- package/dist/{chunk-ODH2U44N.js → chunk-Y4QC2YVE.js} +1 -1
- package/dist/chunk-YNJZ2VXV.js +5 -0
- package/dist/chunk-Z5DDPQ26.js +3 -0
- package/dist/{chunk-EXQXGSGY.js → chunk-ZK7VJZ6V.js} +1 -1
- package/dist/{chunk-COTYR5RC.js → chunk-ZLT4DPHN.js} +1 -1
- package/dist/{chunk-CGULQAB5.js → chunk-ZOBQKNGK.js} +1 -1
- package/dist/chunk-ZTE46E4Z.js +153 -0
- package/dist/cli/commands/app/app-logs/sources.js +1 -1
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-N5P2ZEAD.js +1 -0
- package/dist/configs/all.yml +3 -0
- package/dist/configs/recommended.yml +3 -0
- package/dist/custom-oclif-loader-4ZAXX5MR.js +1 -0
- package/dist/data/filters.json +1 -1
- package/dist/data/objects.json +30 -3
- package/dist/data/shopify_system_translations.json +48 -4
- package/dist/deprecations-4TY4DNME.js +1 -0
- package/dist/dist-6ZJS4I57.js +1 -0
- package/dist/dist-7W2KJOYN.js +1 -0
- package/dist/environments-TR5WW2MD.js +1 -0
- package/dist/error-VJQM4MFE.js +1 -0
- package/dist/error-handler-IYGE3Z72.js +1 -0
- package/dist/{fs-7LCRIUF3.js → fs-EOQL26C3.js} +1 -1
- package/dist/hooks/app-init.js +1 -1
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/{http-proxy-node16-X2WAMUT5.js → http-proxy-node16-A6AKKRQH.js} +1 -1
- package/dist/index.js +15 -15
- package/dist/is-global-RQCPBQA3.js +1 -0
- package/dist/{latest-version-32HXMWJ7.js → latest-version-LDWU5F7A.js} +7 -7
- package/dist/lib-2BR2WN7L.js +1 -0
- package/dist/lib-JKLF33A7.js +1 -0
- package/dist/{lib-NOROGV6N.js → lib-P3APEIHY.js} +1 -1
- package/dist/local-TW3HCZ2S.js +1 -0
- package/dist/local-storage-T6FKS53K.js +1 -0
- package/dist/{metadata-D5GLZOLV.js → metadata-TYZDEER5.js} +1 -1
- package/dist/{morph-QZGREMO2.js → morph-ABSWZEVT.js} +4 -4
- package/dist/node-package-manager-6SWUZILX.js +1 -0
- package/dist/notifications-system-SMHMV2UW.js +1 -0
- package/dist/out-53ABAVL7.js +1 -0
- package/dist/{output-FYS764MJ.js → output-JG5I2TEL.js} +1 -1
- package/dist/system-D4Z32GDS.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-6M3XZ6MR.js +1 -0
- package/dist/upgrade-EKAG4IV7.js +1 -0
- package/dist/version-6UBWZCNS.js +1 -0
- package/dist/version-XRU7TEAI.js +1 -0
- package/dist/{workerd-N25GY5MX.js → workerd-LXBSJULF.js} +1 -1
- package/oclif.manifest.json +612 -2
- package/package.json +11 -11
- package/dist/analytics-CIKTYXZ6.js +0 -1
- package/dist/analytics-DM7CBV2M.js +0 -1
- package/dist/assets/dev-console/extensions/dev-console/assets/apple-touch-icon-BXMqQaSW.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/favicon-16x16-B6uL8SrV.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/favicon-32x32-CGwlpz_y.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/favicon-ByUl89Ab.ico +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/index-Bm_GpKQW.js +0 -51
- package/dist/assets/dev-console/extensions/dev-console/assets/index-DISeE29z.css +0 -1
- package/dist/assets/dev-console/extensions/dev-console/assets/site-B9Ae890R.webmanifest +0 -19
- package/dist/assets/dev-console/index.html +0 -21
- package/dist/chunk-2FIDORHT.js +0 -5
- package/dist/chunk-2HZMOK4U.js +0 -836
- package/dist/chunk-2O22LZKV.js +0 -44
- package/dist/chunk-3SJHCEQR.js +0 -7
- package/dist/chunk-4E354M4H.js +0 -1
- package/dist/chunk-5C7HDTHJ.js +0 -1
- package/dist/chunk-5NY4HKJF.js +0 -103
- package/dist/chunk-5PLLJPEW.js +0 -3
- package/dist/chunk-6Y3QXASG.js +0 -22
- package/dist/chunk-6ZRHK4ON.js +0 -1
- package/dist/chunk-7USHLXEN.js +0 -2
- package/dist/chunk-AH2ZJ73H.js +0 -16
- package/dist/chunk-AI756VJI.js +0 -1
- package/dist/chunk-DA4LHFJQ.js +0 -26
- package/dist/chunk-DKKBJ4H5.js +0 -2
- package/dist/chunk-EAXEV45I.js +0 -2
- package/dist/chunk-ELIH6GCC.js +0 -1
- package/dist/chunk-EYDNSYYE.js +0 -370
- package/dist/chunk-FO6FNY6P.js +0 -5
- package/dist/chunk-G7QLHXVA.js +0 -19
- package/dist/chunk-H3QZN45D.js +0 -4
- package/dist/chunk-HHSUBF73.js +0 -1
- package/dist/chunk-HXYWEKMS.js +0 -2
- package/dist/chunk-IDKUJQIG.js +0 -11
- package/dist/chunk-IOU6EKTT.js +0 -1
- package/dist/chunk-IRH6IGFT.js +0 -567
- package/dist/chunk-IRTCLR3F.js +0 -10
- package/dist/chunk-J3KRY2SD.js +0 -1
- package/dist/chunk-JOYM7AEQ.js +0 -1
- package/dist/chunk-LKZ7ARYS.js +0 -18
- package/dist/chunk-N5HGT3TE.js +0 -4
- package/dist/chunk-NJOO5XJV.js +0 -1
- package/dist/chunk-NNOSZ447.js +0 -1
- package/dist/chunk-OHASEW7T.js +0 -1
- package/dist/chunk-PGODIZ64.js +0 -1
- package/dist/chunk-PTIJDS6I.js +0 -3
- package/dist/chunk-Q6LCSRIW.js +0 -1
- package/dist/chunk-SKM44SK5.js +0 -4
- package/dist/chunk-T6CC5WUU.js +0 -159
- package/dist/chunk-UZ7U322K.js +0 -283
- package/dist/chunk-VHAZBDFE.js +0 -21
- package/dist/chunk-VRRDIXFQ.js +0 -6
- package/dist/chunk-YB3SGPFF.js +0 -1
- package/dist/chunk-YJCJDCVP.js +0 -1
- package/dist/chunk-ZDQNCYRH.js +0 -5
- package/dist/conf-store-OC4XCP45.js +0 -1
- package/dist/custom-oclif-loader-3AICQCNU.js +0 -1
- package/dist/deprecations-M5JGGK47.js +0 -1
- package/dist/dist-3SP7TISC.js +0 -1
- package/dist/dist-Z4H2OM7V.js +0 -1
- package/dist/environments-ZLSO534C.js +0 -1
- package/dist/error-ZBG2MA5U.js +0 -1
- package/dist/error-handler-MCUV4RZV.js +0 -1
- package/dist/is-global-RURDJZDU.js +0 -1
- package/dist/lib-QJDPPAWN.js +0 -1
- package/dist/lib-UCG2DNMS.js +0 -1
- package/dist/local-5AKD7T5X.js +0 -1
- package/dist/local-storage-TJU77VRQ.js +0 -1
- package/dist/node-package-manager-FA3Y6DPG.js +0 -1
- package/dist/notifications-system-76GJJAJP.js +0 -1
- package/dist/out-CDCY25QC.js +0 -1
- package/dist/system-KDM2BB7R.js +0 -1
- package/dist/ui-QIHGXICT.js +0 -1
- package/dist/upgrade-DY4L43H4.js +0 -1
- package/dist/version-LULWCT5R.js +0 -1
- package/dist/version-WIERCO5R.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as x}from"./chunk-
|
|
1
|
+
import{a as x}from"./chunk-72GN655L.js";import{ta as D}from"./chunk-NOKCVDYD.js";import{b as u,d as B}from"./chunk-PXSX63RF.js";import{m as y}from"./chunk-EZ7EBYDT.js";import{E as N,P as F,x as A}from"./chunk-6YCGMS7X.js";import{d as W,m as s,p as C}from"./chunk-ZTE46E4Z.js";import{Fb as m,Hb as o,Ta as _,ma as T}from"./chunk-3TFUSDHY.js";import{e as z,g as t}from"./chunk-VKWPEFWQ.js";t();var b=z(W(),1);function H(e){return e.startsWith("gid://")?e:/^\d+$/.test(e)?`gid://shopify/BulkOperation/${e}`:e}function J(e){return e.match(/^gid:\/\/shopify\/BulkOperation\/(\d+)$/)?.[1]??e}function g(e){let n;try{n=(0,b.parse)(e)}catch(i){throw i instanceof Error?new s(`Invalid GraphQL syntax: ${i.message}`):i}if(n.definitions.filter(i=>i.kind==="OperationDefinition").length!==1)throw new s("GraphQL document must contain exactly one operation definition. Multiple operations are not supported.")}function X(e){let n;try{n=(0,b.parse)(e)}catch(i){throw i instanceof Error?new s(`Invalid GraphQL syntax: ${i.message}`):i}return n.definitions.find(i=>i.kind==="OperationDefinition")?.operation==="mutation"}async function Y(e){let{adminSession:n,userSpecifiedVersion:a,minimumDefaultVersion:i}=e;if(a==="unstable")return a;let r=await B(n);if(!a){let c=r.filter(v=>v.supported).map(v=>v.handle);i&&c.push(i);let f=c.sort().reverse()[0];if(!f)throw new s("No supported API versions available for this store.");return f}let l=r.map(c=>c.handle);if(l.includes(a))return a;let d=o`Invalid API version: ${a}`.value,k=o`Allowed versions: ${l.join(", ")}`.value;throw new s(d,k)}t();t();var p="2026-01";t();async function E(e){let n;if(e.query!==void 0){if(!e.query.trim())throw new s("The --query flag value is empty. Please provide a valid GraphQL query or mutation.");n=e.query}else if(e.queryFile){if(!await _(e.queryFile))throw new s(o`Query file not found at ${m.path(e.queryFile)}. Please check the path and try again.`);let a=await T(e.queryFile,{encoding:"utf8"});if(!a.trim())throw new s(o`Query file at ${m.path(e.queryFile)} is empty. Please provide a valid GraphQL query or mutation.`);n=a}else throw new C("Query should have been provided via --query or --query-file flags due to exactlyOne constraint. This indicates the oclif flag validation failed.");return g(n),n}t();t();var R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationRunQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationRunQuery"},arguments:[{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function Z(e){let{adminSession:n,query:a,version:i}=e;return(await u({query:R,session:n,variables:{query:a},...i&&{version:i}})).bulkOperationRunQuery}t();t();t();var L={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"StagedUploadsCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StagedUploadInput"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stagedUploadsCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stagedTargets"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"resourceUrl"}},{kind:"Field",name:{kind:"Name",value:"parameters"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function h(e){let{adminSession:n,variablesJsonl:a}=e,i=Buffer.from(a??"","utf-8"),r="bulk-variables.jsonl",l=i.length,d=await ee(n,r,l),k=ne(d);return await ie(i,k.url,k.parameters,r),k.stagedUploadKey}async function ee(e,n,a){return u({query:L,session:e,variables:{input:[{filename:n,fileSize:a.toString(),httpMethod:"POST",mimeType:"text/jsonl",resource:"BULK_MUTATION_VARIABLES"}]}})}function ne(e){if(!e.stagedUploadsCreate)throw new s("No response received from stagedUploadsCreate mutation");if(e.stagedUploadsCreate.userErrors.length>0){let i=e.stagedUploadsCreate.userErrors.map(r=>r.message).join(", ");throw new s(`Failed to create staged upload: ${i}`)}let n=e.stagedUploadsCreate.stagedTargets?.[0];if(!n)throw new s("No staged upload target returned from Shopify");if(!n.url||!n.resourceUrl)throw new s("Invalid staged upload target: missing required URLs");let a=n.parameters.find(i=>i.name==="key")?.value;if(!a)throw new s("No key parameter found in staged upload target");return{url:n.url,resourceUrl:n.resourceUrl,parameters:n.parameters,stagedUploadKey:a}}async function ie(e,n,a,i){let r=new FormData;for(let d of a)r.append(d.name,d.value);r.append("file",new Blob([new Uint8Array(e)],{type:"text/jsonl"}),i);let l=await N({title:o`Uploading bulk operation variables`,task:async()=>y(n,{method:"POST",body:r},"slow-request"),renderOptions:{stdout:process.stderr}});if(!l.ok){let d=await l.text();throw new s(`Failed to upload file to staged URL: ${l.statusText}
|
|
2
2
|
${d}`)}}t();var U={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationRunMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mutation"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"stagedUploadPath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"clientIdentifier"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationRunMutation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mutation"},value:{kind:"Variable",name:{kind:"Name",value:"mutation"}}},{kind:"Argument",name:{kind:"Name",value:"stagedUploadPath"},value:{kind:"Variable",name:{kind:"Name",value:"stagedUploadPath"}}},{kind:"Argument",name:{kind:"Name",value:"clientIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"clientIdentifier"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function ae(e){let{adminSession:n,query:a,variablesJsonl:i,version:r}=e,l=await h({adminSession:n,variablesJsonl:i});return(await u({query:U,session:n,variables:{mutation:a,stagedUploadPath:l},...r&&{version:r}})).bulkOperationRunMutation}t();t();var S={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetBulkOperationById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};t();var q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListBulkOperations"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BulkOperationsSortKeys"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperations"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}},{kind:"Argument",name:{kind:"Name",value:"sortKey"},value:{kind:"Variable",name:{kind:"Name",value:"sortKey"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function te(e){let{adminSession:n,operationId:a,version:i}=e;return(await u({query:S,session:n,variables:{id:a},version:i??p})).bulkOperation}async function re(e){let{adminSession:n,version:a,sinceDays:i=7,first:r=100}=e,l=new Date(Date.now()-i*24*60*60*1e3).toISOString().split("T")[0];return(await u({query:q,session:n,variables:{query:`created_at:>=${l}`,first:r,sortKey:"CREATED_AT"},version:a??p})).bulkOperations.nodes}t();t();var P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationCancel"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationCancel"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"fileSize"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"query"}},{kind:"Field",name:{kind:"Name",value:"rootObjectCount"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function oe(e){let{adminSession:n,operationId:a,version:i}=e;return(await u({query:P,session:n,variables:{id:a},version:i??p})).bulkOperationCancel}t();t();function O(e){switch(e.status){case"RUNNING":return o`Bulk operation in progress${e.objectCount>0?m.gray(` (${String(e.objectCount)} objects ${e.type==="MUTATION"?"written":"read"})`):""}`;case"CREATED":return o`Starting`;case"COMPLETED":return o`Bulk operation succeeded: ${m.gray(`${String(e.objectCount)} objects`)}`;case"FAILED":return o`Bulk operation failed. ${m.errorText(`Error: ${e.errorCode??"unknown"}`)}`;case"CANCELING":return o`Bulk operation canceling...`;case"CANCELED":return o`Bulk operation canceled.`;case"EXPIRED":return o`Bulk operation expired.`;default:return o`Bulk operation status: ${e.status}`}}function le(e,n){let a=e.map(i=>o`${i.field?.join(".")??"unknown"}: ${i.message}`.value).join(`
|
|
3
3
|
`);A({headline:n,body:a})}function de(e){let n=O(e).value;switch(e.status){case"CANCELING":return{headline:"Bulk operation is being cancelled.",renderType:"success"};case"CANCELED":case"COMPLETED":case"FAILED":{let a=[o`ID: ${m.cyan(e.id)}`.value,o`Status: ${m.yellow(e.status)}`.value,o`Created at: ${m.gray(String(e.createdAt))}`.value,...e.completedAt?[o`Completed at: ${m.gray(String(e.completedAt))}`.value]:[]];return{headline:o`Bulk operation is already ${e.status.toLowerCase()}.`.value,body:o`This operation has already finished and can't be canceled.`.value,customSections:[{body:[{list:{items:a}}]}],renderType:"warning"}}case"CREATED":case"EXPIRED":case"RUNNING":return{headline:n,renderType:"info"}}}var se=["COMPLETED","FAILED","CANCELED","EXPIRED"],V=1,ue=5,M=10,$=3e3,Q=300;async function me(e,n){return N({title:o`Starting bulk operation`,task:async()=>{let a=Date.now(),i=j({adminSession:e,operationId:n,pollIntervalSeconds:Q/1e3,useAdaptivePolling:!1}),r;do{let{value:l,done:d}=await i.next();if(r=l,d)return r}while(Date.now()-a<$);return r},renderOptions:{stdout:process.stderr}})}async function ke(e,n,a,i){return N({title:o`Polling bulk operation`,task:async r=>{let l=j({adminSession:e,operationId:n,pollIntervalSeconds:ue,initialPollIntervalSeconds:V,initialPollCount:M,useAdaptivePolling:!0,abortSignal:a});for(;;){let{value:d,done:k}=await l.next();if(k)return d;r(O(d))}},onAbort:i,renderOptions:{stdout:process.stderr}})}async function*j({adminSession:e,operationId:n,pollIntervalSeconds:a,useAdaptivePolling:i=!1,initialPollIntervalSeconds:r=V,initialPollCount:l=M,abortSignal:d}){let k=0;for(;;){let c=await pe(e,n);if(!c.bulkOperation)throw new Error("bulk operation not found");let f=c.bulkOperation;if(se.includes(f.status)||d?.aborted)return f;yield f,k++;let v=a;if(i&&k<=l&&(v=r),d){let w,K=new Promise(G=>{let I=()=>G();d.addEventListener("abort",I,{once:!0}),w=()=>d.removeEventListener("abort",I)});await Promise.race([F(v),K]),w?.()}else await F(v)}}async function pe(e,n){return u({query:S,session:e,variables:{id:n},version:p})}t();async function ce(e){let n=await y(e);if(!n.ok)throw new s(`Failed to download bulk operation results: ${n.statusText}`);return n.text()}function ve(e){return e.trim().split(`
|
|
4
4
|
`).filter(a=>a.trim().length>0).some(a=>{let i;try{i=JSON.parse(a)}catch(l){if(l instanceof SyntaxError)return!1;throw l}if(!i.data)return!1;let r=Object.values(i.data)[0];return r?.userErrors!==void 0&&r.userErrors.length>0})}t();async function fe(e){let n=await D({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),a=await x({appContextResult:n,storeFqdn:e.store,forceReselectStore:e.reset,storeTypes:["APP_DEVELOPMENT","DEVELOPMENT","DEVELOPMENT_SUPERSET","PRODUCTION"]});return{appContextResult:n,store:a}}async function Jn(e){let n=await E({query:e.query,queryFile:e["query-file"]}),{appContextResult:a,store:i}=await fe(e);return{query:n,appContextResult:a,store:i}}export{p as a,H as b,J as c,g as d,X as e,Y as f,E as g,Z as h,ae as i,te as j,re as k,oe as l,O as m,le as n,de as o,me as p,ke as q,ce as r,ve as s,fe as t,Jn as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{l as O}from"./chunk-
|
|
1
|
+
import{l as O}from"./chunk-6YCGMS7X.js";import{m as E}from"./chunk-ZTE46E4Z.js";import{Pb as i,Qb as m,Y as b,ca as N}from"./chunk-3TFUSDHY.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();u();var l=class{constructor({export:e,input:r,inputBytes:o,output:n,outputBytes:s,logs:a,functionId:f,fuelConsumed:c,target:A,errorMessage:S,errorType:w,inputQueryVariablesMetafieldValue:g,inputQueryVariablesMetafieldNamespace:I,inputQueryVariablesMetafieldKey:C}){this.export=e,this.input=r,this.inputBytes=o,this.output=n,this.outputBytes=s,this.logs=a,this.functionId=f,this.fuelConsumed=c,this.target=A,this.errorMessage=S,this.errorType=w,this.inputQueryVariablesMetafieldValue=g,this.inputQueryVariablesMetafieldNamespace=I,this.inputQueryVariablesMetafieldKey=C}},h=class{constructor({cacheEntryEpochMs:e,cacheTtlMs:r,httpRequest:o,httpResponse:n}){this.cacheEntryEpochMs=e,this.cacheTtlMs=r,this.httpRequest=o,this.httpResponse=n}},_;(function(t){t[t.NoCachedResponse=0]="NoCachedResponse",t[t.CacheAboutToExpire=1]="CacheAboutToExpire",t[t.Unknown=2]="Unknown"})(_||(_={}));var d=class{constructor({reason:e,httpRequest:r}){this.reason=e,this.httpRequest=r}},y=class{constructor({attempt:e,connectTimeMs:r,writeReadTimeMs:o,httpRequest:n,httpResponse:s,error:a}){this.attempt=e,this.connectTimeMs=r,this.writeReadTimeMs=o,this.httpRequest=n,this.httpResponse=s,this.error=a}};u();function R(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype}function M(t,e){return e?.deep&&R(t)||e?.deep&&Array.isArray(t)?p(t,e):t}function p(t,e){if(Array.isArray(t))return t.map(r=>e?.deep?p(r,e):r);if(R(t)){let r={};for(let[o,n]of Object.entries(t))r[b(o)]=M(n,e);return r}return t}var L=450,P=5*1e3,T=60*1e3,H=5,W=1e6,U="function_run",z="function_network_access",V="function_network_access.response_from_cache",q="function_network_access.request_execution_in_background",J="function_network_access.request_execution",Z="no_cached_response",ee="cached_response_about_to_expire";function te(t){let e=JSON.parse(t),r=e.input_query_variables_metafield_value&&x(e.input_query_variables_metafield_value);return new l({export:e.export,input:e.input,inputBytes:e.input_bytes,output:e.output,outputBytes:e.output_bytes,logs:e.logs,functionId:e.function_id,fuelConsumed:e.fuel_consumed,target:e.target,errorMessage:e.error_message,errorType:e.error_type,inputQueryVariablesMetafieldValue:r,inputQueryVariablesMetafieldNamespace:e.input_query_variables_metafield_namespace,inputQueryVariablesMetafieldKey:e.input_query_variables_metafield_key})}function re(t){let e=JSON.parse(t);return new h({cacheEntryEpochMs:e.cache_entry_epoch_ms,cacheTtlMs:e.cache_ttl_ms,httpRequest:e.http_request,httpResponse:e.http_response})}var k={no_cached_response:_.NoCachedResponse,cached_response_about_to_expire:_.CacheAboutToExpire};function se(t){let e=JSON.parse(t);return new d({reason:k[e.reason]??_.Unknown,httpRequest:e.http_request})}function oe(t){let e=JSON.parse(t);return new y({attempt:e.attempt,connectTimeMs:e.connect_time_ms??null,writeReadTimeMs:e.write_read_time_ms??null,httpRequest:e.http_request,httpResponse:e.http_response??null,error:e.error??null})}var ne=async t=>{let{errors:e}=t.response,r=L,o=null,n="not_attempted";if(e.length>0)if(i(`Errors: ${e.map(s=>s.message).join(", ")}`),e.some(s=>s.status===401))try{o=await t.onResubscribe(),n="succeeded"}catch(s){i(`Failed to resubscribe to app logs: ${s}`),r=T,n="failed",t.onThrottle(r)}else e.some(s=>s.status===429)?(r=T,t.onThrottle(r)):(r=P,t.onUnknownError(r));return{retryIntervalMs:r,nextJwtToken:o,resubscribeResult:n}};function ae(t){return t.allExtensions.flatMap(e=>e.isFunctionExtension?[`extensions.${e.configuration.handle}`]:[])}var ie=({appLog:t,appLogPayload:e,storeName:r,prettyPrint:o=!0})=>{let{cursor:n,...s}=t,a=p({...s,payload:e,localTime:N(t.log_timestamp),storeName:r});return e instanceof l&&(a.payload.logs=e.logs.split(`
|
|
2
2
|
`).filter(Boolean),a.payload.inputQueryVariablesMetafieldValue&&(a.payload.inputQueryVariablesMetafieldValue=x(a.payload.inputQueryVariablesMetafieldValue))),o?JSON.stringify(a,null,2):JSON.stringify(a)},pe=(t,e)=>{let r=p(JSON.parse(t));return e===U?new l(r):e===V?new h(r):e===q?new d(r):e===J?new y(r):r},ce=async(t,e,r,o)=>{let n=await t.subscribeToAppLogs(e,r);if(!n.appLogsSubscribe)throw new E("Failed to subscribe to app logs: No response received");let{jwtToken:s,success:a,errors:f}=n.appLogsSubscribe;if(i(`Token: ${s}
|
|
3
3
|
`),i(`API Key: ${e.apiKey}
|
|
4
4
|
`),f&&f.length>0){let c=f.join(", ");throw await O({stripAnsi:!1},()=>{m(`Errors subscribing to app logs: ${c}`,o),m("App log streaming is not available in this session.",o)}),new E(c)}else{if(!s)throw new E("Failed to subscribe to app logs: No response received");let c=Array.isArray(e.shopIds)?e.shopIds:[e.shopIds];i(`Subscribed to App Events for shop ID(s) ${c.join(", ")}`),a!==void 0&&i(`Success: ${a}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-VZKR2YFM.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var t=e({cmd_app_warning_api_key_deprecation_displayed:!1}),i=t;export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as f,c as o,d as h}from"./chunk-
|
|
1
|
+
import{b as f,c as o,d as h}from"./chunk-RTW4RZWH.js";import{a as l}from"./chunk-DHU767C3.js";import{a as c}from"./chunk-QG7TELFC.js";import{ta as m}from"./chunk-NOKCVDYD.js";import{b as d}from"./chunk-2Y6CYLKF.js";import{Mb as e}from"./chunk-3TFUSDHY.js";import{u as r}from"./chunk-A4SBXDZB.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();var t=class g extends l{async run(){let{flags:a}=await this.parse(g),{app:s}=await m({directory:a.path,clientId:a["client-id"],forceRelink:a.reset,userProvidedConfigName:a.config}),i=new h(s);return await i.start(),e(`Watching for changes in ${s.name}...`),i.onEvent(async({app:y,extensionEvents:u,startTime:w,path:x})=>{e(`\u{1F195} Event [${f(w)}ms]`),e(` \u{1F4C2} ${x}`),u.forEach(n=>{switch(n.type){case o.Created:e(` \u2705 Extension created - ${r.green(n.extension.handle)}`);break;case o.Deleted:e(` \u274C Extension deleted: ${r.red(n.extension.handle)}`);break;case o.Updated:e(` \u{1F504} Updated: ${r.yellow(n.extension.handle)}`);break}})}),setInterval(()=>{},1<<30),{app:s}}};t.summary="Watch and prints out changes to an app.";t.hidden=!0;t.flags={...d,...c};var F=t;export{F as a};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as N}from"./chunk-DHU767C3.js";import{a as S}from"./chunk-QG7TELFC.js";import{A as x,B as V,ta as M,x as A,y as C}from"./chunk-NOKCVDYD.js";import{a as m}from"./chunk-KGZH4RFA.js";import{b as E,c as b}from"./chunk-2Y6CYLKF.js";import{v as j,x as g}from"./chunk-6YCGMS7X.js";import{m as w,o as n}from"./chunk-ZTE46E4Z.js";import{Lb as s,Sb as h,Vb as _}from"./chunk-3TFUSDHY.js";import{j as u}from"./chunk-773TIA5M.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();async function P(d,t){let r=new Set(t.map(e=>e.file)).size;await m.addPublicMetadata(()=>({cmd_app_validate_valid:d,cmd_app_validate_issue_count:t.length,cmd_app_validate_file_count:r}))}async function k(d,t={json:!1}){let r=d.errors;if(!r||r.isEmpty()){if(await P(!0,[]),t.json){s(JSON.stringify({valid:!0,issues:[]},null,2));return}j({headline:`App configuration '${u(d.configPath)}' is valid.`});return}let e=r.getErrors();if(await P(!1,e),t.json){let f=e.map(({file:c,message:a,path:i,code:o})=>({file:c,message:a,path:i,code:o}));throw s(JSON.stringify({valid:!1,issues:f},null,2)),new n}throw g({headline:"Validation errors found.",body:e.map(f=>`\u2022 ${V(f)}`).join(`
|
|
2
|
+
`)}),new n}var y;async function v(d,t){await m.addPublicMetadata(()=>({cmd_app_validate_valid:!1,cmd_app_validate_issue_count:d,cmd_app_validate_file_count:t}))}var l=class extends N{async run(){let{flags:t}=await this.parse(y);await m.addPublicMetadata(()=>({cmd_app_validate_json:t.json}));let r;try{r=await A.load(t.path)}catch(a){if(a instanceof w&&t.json){await v(1,1);let i=_(h(a.message)).trim();throw s(JSON.stringify({valid:!1,issues:[{message:i}]},null,2)),new n}throw a}let e;try{e=await x(r,t.config,{clientId:t["client-id"],skipPrompts:!!t["client-id"]})}catch(a){if(a instanceof w&&t.json){await v(1,1);let i=_(h(a.message)).trim();throw s(JSON.stringify({valid:!1,issues:[{message:i}]},null,2)),new n}throw a}let f=C(r,e.file);if(f.length>0){let a=f.map(o=>({file:o.path,message:o.message})),i=new Set(f.map(o=>o.path)).size;throw await v(a.length,i),t.json?(s(JSON.stringify({valid:!1,issues:a},null,2)),new n):(g({headline:"Validation errors found.",body:a.map(o=>`\u2022 ${o.message}`).join(`
|
|
3
|
+
`)}),new n)}let c;try{c=(await M({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config??(t["client-id"]?u(e.file.path):void 0),unsafeTolerateErrors:!0})).app}catch(a){let i=a instanceof w?_(h(a.message)).trim():"";throw i.startsWith("Validation errors in ")&&t.json?(await v(1,1),s(JSON.stringify({valid:!1,issues:[{message:i}]},null,2)),new n):a}return await k(c,{json:t.json}),{app:c}}};y=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=y.descriptionWithoutMarkdown();l.flags={...E,...S,...b};var tt=l;export{tt as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{a as C}from"./chunk-DHU767C3.js";import{a as E}from"./chunk-QG7TELFC.js";import{P as F,Q as _,R as x,ta as R}from"./chunk-NOKCVDYD.js";import{b as I}from"./chunk-2Y6CYLKF.js";import{D as A,v,x as h}from"./chunk-6YCGMS7X.js";import{d as w}from"./chunk-VZKR2YFM.js";import{o as k}from"./chunk-ZTE46E4Z.js";import{a as y}from"./chunk-CTNBSUVU.js";import{e as b,g as l}from"./chunk-VKWPEFWQ.js";l();l();async function P(n){let{developerPlatformClient:e,app:p,remoteApp:s}=n,{extensionIdentifiersBreakdown:a,versionDetails:o}=await F(e,s,n.version),t=_({localApp:p,versionAppModules:o.appModuleVersions,activeAppVersion:await e.activeAppVersion(s)});if(!await x({configExtensionIdentifiersBreakdown:t,extensionIdentifiersBreakdown:a,appTitle:s.title,release:!0,allowUpdates:n.force||n.allowUpdates,allowDeletes:n.force||n.allowDeletes}))throw new k;let m=[{title:"Releasing version",task:async u=>{u.appRelease=await e.release({app:s,version:{versionId:o.uuid,appVersionId:o.id}})}}],{appRelease:{appRelease:i}}=await A(m),f=[{link:{label:o.versionTag??void 0,url:o.location}},o.message?`
|
|
2
|
+
${o.message}`:""];if(i.userErrors&&i.userErrors.length>0){let u=i.userErrors?.map(T=>T.message).join(", ");h({headline:"Version couldn't be released.",body:[...f,`${f.length>0?`
|
|
3
|
+
|
|
4
|
+
`:""}${u}`]})}else v({headline:"Version released to users.",body:f})}var d=b(y(),1);var g,r=class extends C{async run(){let{flags:e}=await this.parse(g),p=e["client-id"];await w(()=>({cmd_app_reset_used:e.reset}));let s=e["allow-updates"],a=e["allow-deletes"],o=!!(s&&a),t=[];!s&&!a&&t.push("allow-updates"),this.failMissingNonTTYFlags(e,t);let{app:c,remoteApp:m,developerPlatformClient:i}=await R({directory:e.path,clientId:p,forceRelink:e.reset,userProvidedConfigName:e.config});return await P({app:c,remoteApp:m,developerPlatformClient:i,force:o,allowUpdates:s,allowDeletes:a,version:e.version}),{app:c}}};g=r;r.summary="Release an app version.";r.usage="app release --version <version>";r.descriptionWithMarkdown="Releases an existing app version. Pass the name of the version that you want to release using the `--version` flag.";r.description=g.descriptionWithoutMarkdown();r.flags={...I,...E,"allow-updates":d.Flags.boolean({hidden:!1,description:"Allows adding and updating extensions and configuration without requiring user confirmation. Recommended option for CI/CD environments.",env:"SHOPIFY_FLAG_ALLOW_UPDATES"}),"allow-deletes":d.Flags.boolean({hidden:!1,description:"Allows removing extensions and configuration without requiring user confirmation. For CI/CD environments, the recommended flag is --allow-updates.",env:"SHOPIFY_FLAG_ALLOW_DELETES"}),version:d.Flags.string({hidden:!1,description:"The name of the app version to release.",env:"SHOPIFY_FLAG_VERSION",required:!0})};var G=r;export{G as a};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{b as f}from"./chunk-2MCH43SL.js";import{b as C}from"./chunk-V65P572N.js";import{A as S,u as i,y as x}from"./chunk-6YCGMS7X.js";import{m as v}from"./chunk-ZTE46E4Z.js";import{Pb as I}from"./chunk-3TFUSDHY.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();n();var m={on:"Autocorrect on. The system will automatically run commands even when you mistype them.",off:"Autocorrect off. You'll need to confirm corrections for mistyped commands."};n();function p(o=W()){return!!o.get("autocorrectEnabled")}function y(o,e=W()){e.set("autocorrectEnabled",o)}function W(){return b??(b=new C({projectName:"did-you-mean"})),b}var b;var A,s=class extends f{async run(){y(!0),i({body:m.on})}};A=s;s.summary="Enable autocorrect. Off by default.";s.descriptionWithMarkdown=`Enable autocorrect. Off by default.
|
|
2
|
+
|
|
3
|
+
When autocorrection is enabled, Shopify CLI automatically runs a corrected version of your command if a correction is available.
|
|
4
|
+
|
|
5
|
+
When autocorrection is disabled, you need to confirm that you want to run corrections for mistyped commands.
|
|
6
|
+
`;s.description=A.descriptionWithoutMarkdown();var E=s;n();var k,u=class extends f{async run(){y(!1),i({body:m.off})}};k=u;u.summary="Disable autocorrect. Off by default.";u.descriptionWithMarkdown=`Disable autocorrect. Off by default.
|
|
7
|
+
|
|
8
|
+
When autocorrection is enabled, Shopify CLI automatically runs a corrected version of your command if a correction is available.
|
|
9
|
+
|
|
10
|
+
When autocorrection is disabled, you need to confirm that you want to run corrections for mistyped commands.
|
|
11
|
+
`;u.description=k.descriptionWithoutMarkdown();var M=u;n();var D,d=class extends f{async run(){p()?i({body:m.on}):i({body:m.off})}};D=d;d.summary="Check whether autocorrect is enabled or disabled. On by default.";d.descriptionWithMarkdown=`Check whether autocorrect is enabled or disabled. On by default.
|
|
12
|
+
|
|
13
|
+
When autocorrection is enabled, Shopify CLI automatically runs a corrected version of your command if a correction is available.
|
|
14
|
+
|
|
15
|
+
When autocorrection is disabled, you need to confirm that you want to run corrections for mistyped commands.
|
|
16
|
+
`;d.description=D.descriptionWithoutMarkdown();var N=d;n();var g=O(2),ao=O(3);function O(o){if(typeof o!="number"||Number.isNaN(o)||o<1||o===Number.POSITIVE_INFINITY)throw new Error("`"+o+"` is not a valid argument for `n-gram`");return e;function e(t){let c=[];if(t==null)return c;let a=typeof t.slice=="function"?t:String(t),r=a.length-o+1;if(r<1)return c;for(;r--;)c[r]=a.slice(r,r+o);return c}}function h(o){return o.replace(/:/g," ")}function F(o,e){let t=new Map;for(let a of o)t.set(a,(t.get(a)??0)+1);let c=0;for(let a of e){let r=t.get(a)??0;r>0&&(c+=1,t.set(a,r-1))}return c}function L(o){if(o.id.length<2)return;let e=new Set(o.config.commands.filter(r=>r.hidden).map(r=>r.id)),t=Array.from(new Set([...o.config.commandIDs,...o.config.commands.flatMap(r=>r.aliases)].filter(r=>!e.has(r)))),c=g(o.id),a=t.map(r=>{let l=g(r);return{score:F(l,c),cmd:r}}).filter(({score:r})=>r>=2).sort((r,l)=>{let w=l.score-r.score;return w!==0?w:r.cmd.length-l.cmd.length});if(I(`'Did you mean' options: ${JSON.stringify(a)}`),a.length>0){let{cmd:r}=a[0];return r}}async function Y(o,e){return p()?(i({body:["Autocorrecting",{command:h(e)},"to",{command:h(o)},{char:"."}]}),!0):S({message:["Command",{command:e},"not found. Did you mean",{command:h(o)},{char:"?"}]})}var bo={"config:autocorrect:off":M,"config:autocorrect:status":N,"config:autocorrect:on":E},go=async function(o){let e=L(o),t=h(o.id);if(o.argv&&(o.argv.includes("-f")||o.argv.includes("--force"))||!e){x(new v(`Command '${t}' not found.`));return}await Y(e,t)&&await this.config.runCommand(e,o.argv)};export{L as a,Y as b,bo as c,go as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b}from"./chunk-
|
|
1
|
+
import{b}from"./chunk-E3RQCWSC.js";import{a as F}from"./chunk-QU5NL2QT.js";import{j as h,l as u,o as T}from"./chunk-IKYZ5L3F.js";import{p as y,v as O}from"./chunk-Z5DDPQ26.js";import{b as I}from"./chunk-2Y6CYLKF.js";import{n as f,ra as v}from"./chunk-EZ7EBYDT.js";import{v as _}from"./chunk-6YCGMS7X.js";import{m as s}from"./chunk-ZTE46E4Z.js";import{Mb as S,Ua as l,ma as c}from"./chunk-3TFUSDHY.js";import{a as U}from"./chunk-CTNBSUVU.js";import{e as A,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();async function P({session:e,overridesContent:r,themeId:t}){v("theme-preview:create");let w=`${u(e)}/theme_preview.json?preview_theme_id=${t}`,o=await h(e,{headers:{"Content-Type":"application/json"}}),i=await f(w,{method:"POST",body:r,headers:o});if(!i.ok)throw new s(`Theme preview request failed with status ${i.status}: ${i.statusText}`);let a=await J(i);return v("theme-preview:create"),a}async function g({session:e,overridesContent:r,themeId:t,previewIdentifier:d}){v("theme-preview:update");let o=`${u(e)}/theme_preview.json?preview_theme_id=${t}&preview_identifier=${encodeURIComponent(d)}`,i=await h(e,{headers:{"Content-Type":"application/json"}}),a=await f(o,{method:"POST",body:r,headers:i});if(!a.ok)throw new s(`Theme preview request failed with status ${a.status}: ${a.statusText}`);let x=await J(a);return v("theme-preview:update"),x}async function J(e){let r=await e.json();if(r.error)throw new s(`Theme preview failed: ${r.error}`);if(!r.url||!r.preview_identifier)throw new s("Theme preview returned an unexpected response");return{url:r.url,preview_identifier:r.preview_identifier}}async function $(e){if(!l(e.overrideJson))throw new s(`Override file not found: ${e.overrideJson}`);let r=await c(e.overrideJson),t;try{t=JSON.parse(r)}catch(i){let a=i instanceof Error?i.message:String(i);throw new s(`Failed to parse override file: ${e.overrideJson}`,a)}let d=await T(e.themeId,e.adminSession,e.password),w=JSON.stringify(t),o=e.previewIdentifier?await g({session:d,overridesContent:w,themeId:e.themeId,previewIdentifier:e.previewIdentifier}):await P({session:d,overridesContent:w,themeId:e.themeId});e.json?S(JSON.stringify({url:o.url,preview_identifier:o.preview_identifier})):_({body:[{list:{title:e.previewIdentifier?"Preview updated":"Preview is ready",items:[{link:{url:o.url}},`Preview ID: ${o.preview_identifier}`]}}]}),e.open&&b(o.url,"theme preview")}var m=A(U(),1);var E,n=class extends O{async command(r,t){let d=await F(t,{filter:{theme:r.theme}});await $({adminSession:t,overrideJson:r.overrides,themeId:d.id.toString(),previewIdentifier:r["preview-id"],open:r.open,password:r.password,json:r.json})}};E=n;n.summary="Applies JSON overrides to a theme and returns a preview URL.";n.descriptionWithMarkdown="Applies a JSON overrides file to a theme and creates or updates a preview. This lets you quickly preview changes.\n\n The command returns a preview URL and a preview identifier. You can reuse the preview identifier with `--preview-id` to update an existing preview instead of creating a new one.";n.description=E.descriptionWithoutMarkdown();n.flags={...I,...y,theme:m.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID",required:!0}),overrides:m.Flags.string({description:"Path to a JSON overrides file.",env:"SHOPIFY_FLAG_OVERRIDES",required:!0}),"preview-id":m.Flags.string({description:"An existing preview identifier to update instead of creating a new preview.",env:"SHOPIFY_FLAG_PREVIEW_ID"}),open:m.Flags.boolean({description:"Automatically launch the theme preview in your default web browser.",env:"SHOPIFY_FLAG_OPEN",default:!1}),json:m.Flags.boolean({description:"Output the preview URL and identifier as JSON.",env:"SHOPIFY_FLAG_JSON",default:!1})};n.multiEnvironmentsFlags=null;var ee=n;export{ee as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as v}from"./chunk-
|
|
1
|
+
import{a as v}from"./chunk-DHU767C3.js";import{a as k}from"./chunk-QG7TELFC.js";import{pa as w,ra as A,sa as P,ta as C}from"./chunk-NOKCVDYD.js";import{b as y}from"./chunk-2Y6CYLKF.js";import{v as u}from"./chunk-6YCGMS7X.js";import{m as h}from"./chunk-ZTE46E4Z.js";import{j as p}from"./chunk-773TIA5M.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();async function f(l){let{directory:o,configName:e,configPath:a,configuration:n,remoteApp:i}=l;if(!n.client_id)throw new h("The selected configuration is not linked to a remote app.","Run `shopify app config link` first to link this configuration to a Shopify app.");let c=i.developerPlatformClient,m=await w({developerPlatformClient:c,app:i}),d=i.flags,b={directory:o,configName:e,developerPlatformClient:c,apiKey:n.client_id},g=await A(b,m,d,i.apiKey),x=p(a),F=await P({remoteApp:i,developerPlatformClient:c,specifications:m,flags:d,configFileName:x,appDirectory:g.appDirectory??o,localAppOptions:g});return{configPath:a,configuration:F,remoteApp:i}}var s,t=class extends v{async run(){let{flags:o}=await this.parse(s),{app:e,remoteApp:a}=await C({directory:o.path,clientId:o["client-id"],forceRelink:o.reset,userProvidedConfigName:o.config}),{configuration:n,configPath:i}=await f({directory:o.path,configName:o.config,configPath:e.configPath,configuration:e.configuration,remoteApp:a});return u({headline:`Pulled latest configuration for "${n.name}"`,body:`Updated ${p(i)} with the remote data.`}),{app:e}}};s=t;t.summary="Refresh an already-linked app configuration without prompts.";t.descriptionWithMarkdown="Pulls the latest configuration from the already-linked Shopify app and updates the selected configuration file.\n\nThis command reuses the existing linked app and organization and skips all interactive prompts. Use `--config` to target a specific configuration file, or omit it to use the default one.";t.description=s.descriptionWithoutMarkdown();t.flags={...y,...k};var z=t;export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-OT52JOML.js";import{b as e}from"./chunk-2MCH43SL.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class extends e{static{this.description="View the UI kit components prompts"}static{this.hidden=!0}async run(){await i()}};export{t as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as Dn,c as Mn,d as qn,e as An}from"./chunk-2O22LZKV.js";import{a as E,c,g as o}from"./chunk-VKWPEFWQ.js";var Vt=c(H=>{"use strict";o();Object.defineProperty(H,"__esModule",{value:!0});H.splitWhen=H.flatten=void 0;function Fn(t){return t.reduce((e,r)=>[].concat(e,r),[])}H.flatten=Fn;function Rn(t,e){let r=[[]],n=0;for(let s of t)e(s)?(n++,r[n]=[]):r[n].push(s);return r}H.splitWhen=Rn});var Ct=c(K=>{"use strict";o();Object.defineProperty(K,"__esModule",{value:!0});K.isEnoentCodeError=void 0;function Ln(t){return t.code==="ENOENT"}K.isEnoentCodeError=Ln});var Yt=c(z=>{"use strict";o();Object.defineProperty(z,"__esModule",{value:!0});z.createDirentFromStats=void 0;var Se=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function xn(t,e){return new Se(t,e)}z.createDirentFromStats=xn});var Qt=c(P=>{"use strict";o();Object.defineProperty(P,"__esModule",{value:!0});P.convertPosixPathToPattern=P.convertWindowsPathToPattern=P.convertPathToPattern=P.escapePosixPath=P.escapeWindowsPath=P.escape=P.removeLeadingDotSegment=P.makeAbsolute=P.unixify=void 0;var jn=E("os"),In=E("path"),Ht=jn.platform()==="win32",Bn=2,Nn=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Wn=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Vn=/^\\\\([.?])/,Cn=/\\(?![!()+@[\]{}])/g;function Yn(t){return t.replace(/\\/g,"/")}P.unixify=Yn;function Hn(t,e){return In.resolve(t,e)}P.makeAbsolute=Hn;function Un(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Bn)}return t}P.removeLeadingDotSegment=Un;P.escape=Ht?Pe:ve;function Pe(t){return t.replace(Wn,"\\$2")}P.escapeWindowsPath=Pe;function ve(t){return t.replace(Nn,"\\$2")}P.escapePosixPath=ve;P.convertPathToPattern=Ht?Ut:Gt;function Ut(t){return Pe(t).replace(Vn,"//$1").replace(Cn,"/")}P.convertWindowsPathToPattern=Ut;function Gt(t){return ve(t)}P.convertPosixPathToPattern=Gt});var Zt=c((bo,zt)=>{"use strict";o();var Xt=E("util"),Jt=Mn(),q=An(),Ee=qn(),$t=t=>t===""||t==="./",Kt=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},S=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,s=new Set,i=new Set,a=0,d=u=>{i.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let _=q(String(e[u]),{...r,onResult:d},!0),p=_.state.negated||_.state.negatedExtglob;p&&a++;for(let R of t){let m=_(R,!0);(p?!m.isMatch:m.isMatch)&&(p?n.add(m.output):(n.delete(m.output),s.add(m.output)))}}let h=(a===e.length?[...i]:[...s]).filter(u=>!n.has(u));if(r&&h.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return h};S.match=S;S.matcher=(t,e)=>q(t,e);S.isMatch=(t,e,r)=>q(e,r)(t);S.any=S.isMatch;S.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,s=[],i=d=>{r.onResult&&r.onResult(d),s.push(d.output)},a=new Set(S(t,e,{...r,onResult:i}));for(let d of s)a.has(d)||n.add(d);return[...n]};S.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Xt.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>S.contains(t,n,r));if(typeof e=="string"){if($t(t)||$t(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return S.isMatch(t,e,{...r,contains:!0})};S.matchKeys=(t,e,r)=>{if(!Ee.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=S(Object.keys(t),e,r),s={};for(let i of n)s[i]=t[i];return s};S.some=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=q(String(s),r);if(n.some(a=>i(a)))return!0}return!1};S.every=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=q(String(s),r);if(!n.every(a=>i(a)))return!1}return!0};S.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Xt.inspect(t)}"`);return[].concat(e).every(n=>q(n,r)(t))};S.capture=(t,e,r)=>{let n=Ee.isWindows(r),i=q.makeRe(String(t),{...r,capture:!0}).exec(n?Ee.toPosixSlashes(e):e);if(i)return i.slice(1).map(a=>a===void 0?"":a)};S.makeRe=(...t)=>q.makeRe(...t);S.scan=(...t)=>q.scan(...t);S.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let s of Jt(String(n),e))r.push(q.parse(s,e));return r};S.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!Kt(t)?[t]:Jt(t,e)};S.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return S.braces(t,{...e,expand:!0})};S.hasBraces=Kt;zt.exports=S});var cr=c(l=>{"use strict";o();Object.defineProperty(l,"__esModule",{value:!0});l.isAbsolute=l.partitionAbsoluteAndRelative=l.removeDuplicateSlashes=l.matchAny=l.convertPatternsToRe=l.makeRe=l.getPatternParts=l.expandBraceExpansion=l.expandPatternsWithBraceExpansion=l.isAffectDepthOfReadingPattern=l.endsWithSlashGlobStar=l.hasGlobStar=l.getBaseDirectory=l.isPatternRelatedToParentDirectory=l.getPatternsOutsideCurrentDirectory=l.getPatternsInsideCurrentDirectory=l.getPositivePatterns=l.getNegativePatterns=l.isPositivePattern=l.isNegativePattern=l.convertToNegativePattern=l.convertToPositivePattern=l.isDynamicPattern=l.isStaticPattern=void 0;var er=E("path"),Gn=Dn(),be=Zt(),tr="**",Qn="\\",$n=/[*?]|^!/,Xn=/\[[^[]*]/,Jn=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Kn=/[!*+?@]\([^(]*\)/,zn=/,|\.\./,Zn=/(?!^)\/{2,}/g;function rr(t,e={}){return!nr(t,e)}l.isStaticPattern=rr;function nr(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(Qn)||$n.test(t)||Xn.test(t)||Jn.test(t)||e.extglob!==!1&&Kn.test(t)||e.braceExpansion!==!1&&es(t))}l.isDynamicPattern=nr;function es(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return zn.test(n)}function ts(t){return Z(t)?t.slice(1):t}l.convertToPositivePattern=ts;function rs(t){return"!"+t}l.convertToNegativePattern=rs;function Z(t){return t.startsWith("!")&&t[1]!=="("}l.isNegativePattern=Z;function sr(t){return!Z(t)}l.isPositivePattern=sr;function ns(t){return t.filter(Z)}l.getNegativePatterns=ns;function ss(t){return t.filter(sr)}l.getPositivePatterns=ss;function is(t){return t.filter(e=>!we(e))}l.getPatternsInsideCurrentDirectory=is;function os(t){return t.filter(we)}l.getPatternsOutsideCurrentDirectory=os;function we(t){return t.startsWith("..")||t.startsWith("./..")}l.isPatternRelatedToParentDirectory=we;function as(t){return Gn(t,{flipBackslashes:!1})}l.getBaseDirectory=as;function us(t){return t.includes(tr)}l.hasGlobStar=us;function ir(t){return t.endsWith("/"+tr)}l.endsWithSlashGlobStar=ir;function cs(t){let e=er.basename(t);return ir(t)||rr(e)}l.isAffectDepthOfReadingPattern=cs;function ls(t){return t.reduce((e,r)=>e.concat(or(r)),[])}l.expandPatternsWithBraceExpansion=ls;function or(t){let e=be.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return e.sort((r,n)=>r.length-n.length),e.filter(r=>r!=="")}l.expandBraceExpansion=or;function hs(t,e){let{parts:r}=be.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}l.getPatternParts=hs;function ar(t,e){return be.makeRe(t,e)}l.makeRe=ar;function fs(t,e){return t.map(r=>ar(r,e))}l.convertPatternsToRe=fs;function ds(t,e){return e.some(r=>r.test(t))}l.matchAny=ds;function _s(t){return t.replace(Zn,"/")}l.removeDuplicateSlashes=_s;function ps(t){let e=[],r=[];for(let n of t)ur(n)?e.push(n):r.push(n);return[e,r]}l.partitionAbsoluteAndRelative=ps;function ur(t){return er.isAbsolute(t)}l.isAbsolute=ur});var dr=c((Oo,fr)=>{"use strict";o();var gs=E("stream"),lr=gs.PassThrough,ms=Array.prototype.slice;fr.exports=ys;function ys(){let t=[],e=ms.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let s=n.end!==!1,i=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let a=lr(n);function d(){for(let u=0,_=arguments.length;u<_;u++)t.push(hr(arguments[u],n));return f(),this}function f(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(h);return}Array.isArray(u)||(u=[u]);let _=u.length+1;function p(){--_>0||(r=!1,f())}function R(m){function O(){m.removeListener("merge2UnpipeEnd",O),m.removeListener("end",O),i&&m.removeListener("error",J),p()}function J(C){a.emit("error",C)}if(m._readableState.endEmitted)return p();m.on("merge2UnpipeEnd",O),m.on("end",O),i&&m.on("error",J),m.pipe(a,{end:!1}),m.resume()}for(let m=0;m<u.length;m++)R(u[m]);p()}function h(){r=!1,a.emit("queueDrain"),s&&a.end()}return a.setMaxListeners(0),a.add=d,a.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&d.apply(null,e),a}function hr(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=hr(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(lr(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var pr=c(ee=>{"use strict";o();Object.defineProperty(ee,"__esModule",{value:!0});ee.merge=void 0;var Ss=dr();function Ps(t){let e=Ss(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>_r(t)),e.once("end",()=>_r(t)),e}ee.merge=Ps;function _r(t){t.forEach(e=>e.emit("close"))}});var gr=c(U=>{"use strict";o();Object.defineProperty(U,"__esModule",{value:!0});U.isEmpty=U.isString=void 0;function vs(t){return typeof t=="string"}U.isString=vs;function Es(t){return t===""}U.isEmpty=Es});var L=c(b=>{"use strict";o();Object.defineProperty(b,"__esModule",{value:!0});b.string=b.stream=b.pattern=b.path=b.fs=b.errno=b.array=void 0;var bs=Vt();b.array=bs;var ws=Ct();b.errno=ws;var Ts=Yt();b.fs=Ts;var ks=Qt();b.path=ks;var Os=cr();b.pattern=Os;var Ds=pr();b.stream=Ds;var Ms=gr();b.string=Ms});var Pr=c(w=>{"use strict";o();Object.defineProperty(w,"__esModule",{value:!0});w.convertPatternGroupToTask=w.convertPatternGroupsToTasks=w.groupPatternsByBaseDirectory=w.getNegativePatternsAsPositive=w.getPositivePatterns=w.convertPatternsToTasks=w.generate=void 0;var D=L();function qs(t,e){let r=mr(t,e),n=mr(e.ignore,e),s=yr(r),i=Sr(r,n),a=s.filter(u=>D.pattern.isStaticPattern(u,e)),d=s.filter(u=>D.pattern.isDynamicPattern(u,e)),f=Te(a,i,!1),h=Te(d,i,!0);return f.concat(h)}w.generate=qs;function mr(t,e){let r=t;return e.braceExpansion&&(r=D.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>D.pattern.removeDuplicateSlashes(n))}function Te(t,e,r){let n=[],s=D.pattern.getPatternsOutsideCurrentDirectory(t),i=D.pattern.getPatternsInsideCurrentDirectory(t),a=ke(s),d=ke(i);return n.push(...Oe(a,e,r)),"."in d?n.push(De(".",i,e,r)):n.push(...Oe(d,e,r)),n}w.convertPatternsToTasks=Te;function yr(t){return D.pattern.getPositivePatterns(t)}w.getPositivePatterns=yr;function Sr(t,e){return D.pattern.getNegativePatterns(t).concat(e).map(D.pattern.convertToPositivePattern)}w.getNegativePatternsAsPositive=Sr;function ke(t){let e={};return t.reduce((r,n)=>{let s=D.pattern.getBaseDirectory(n);return s in r?r[s].push(n):r[s]=[n],r},e)}w.groupPatternsByBaseDirectory=ke;function Oe(t,e,r){return Object.keys(t).map(n=>De(n,t[n],e,r))}w.convertPatternGroupsToTasks=Oe;function De(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(D.pattern.convertToNegativePattern))}}w.convertPatternGroupToTask=De});var Er=c(te=>{"use strict";o();Object.defineProperty(te,"__esModule",{value:!0});te.read=void 0;function As(t,e,r){e.fs.lstat(t,(n,s)=>{if(n!==null){vr(r,n);return}if(!s.isSymbolicLink()||!e.followSymbolicLink){Me(r,s);return}e.fs.stat(t,(i,a)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){vr(r,i);return}Me(r,s);return}e.markSymbolicLink&&(a.isSymbolicLink=()=>!0),Me(r,a)})})}te.read=As;function vr(t,e){t(e)}function Me(t,e){t(null,e)}});var br=c(re=>{"use strict";o();Object.defineProperty(re,"__esModule",{value:!0});re.read=void 0;function Fs(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}re.read=Fs});var wr=c(x=>{"use strict";o();Object.defineProperty(x,"__esModule",{value:!0});x.createFileSystemAdapter=x.FILE_SYSTEM_ADAPTER=void 0;var ne=E("fs");x.FILE_SYSTEM_ADAPTER={lstat:ne.lstat,stat:ne.stat,lstatSync:ne.lstatSync,statSync:ne.statSync};function Rs(t){return t===void 0?x.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},x.FILE_SYSTEM_ADAPTER),t)}x.createFileSystemAdapter=Rs});var Tr=c(Ae=>{"use strict";o();Object.defineProperty(Ae,"__esModule",{value:!0});var Ls=wr(),qe=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Ls.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};Ae.default=qe});var Y=c(j=>{"use strict";o();Object.defineProperty(j,"__esModule",{value:!0});j.statSync=j.stat=j.Settings=void 0;var kr=Er(),xs=br(),Fe=Tr();j.Settings=Fe.default;function js(t,e,r){if(typeof e=="function"){kr.read(t,Re(),e);return}kr.read(t,Re(e),r)}j.stat=js;function Is(t,e){let r=Re(e);return xs.read(t,r)}j.statSync=Is;function Re(t={}){return t instanceof Fe.default?t:new Fe.default(t)}});var Mr=c((Qo,Dr)=>{o();var Or;Dr.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Or||(Or=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Ar=c((Xo,qr)=>{o();qr.exports=Ns;var Bs=Mr();function Ns(t,e){let r,n,s,i=!0;Array.isArray(t)?(r=[],n=t.length):(s=Object.keys(t),r={},n=s.length);function a(f){function h(){e&&e(f,r),e=null}i?Bs(h):h()}function d(f,h,u){r[f]=u,(--n===0||h)&&a(h)}n?s?s.forEach(function(f){t[f](function(h,u){d(f,h,u)})}):t.forEach(function(f,h){f(function(u,_){d(h,u,_)})}):a(null),i=!1}});var Le=c(ie=>{"use strict";o();Object.defineProperty(ie,"__esModule",{value:!0});ie.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var se=process.versions.node.split(".");if(se[0]===void 0||se[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Fr=Number.parseInt(se[0],10),Ws=Number.parseInt(se[1],10),Rr=10,Vs=10,Cs=Fr>Rr,Ys=Fr===Rr&&Ws>=Vs;ie.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Cs||Ys});var Lr=c(oe=>{"use strict";o();Object.defineProperty(oe,"__esModule",{value:!0});oe.createDirentFromStats=void 0;var xe=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Hs(t,e){return new xe(t,e)}oe.createDirentFromStats=Hs});var je=c(ae=>{"use strict";o();Object.defineProperty(ae,"__esModule",{value:!0});ae.fs=void 0;var Us=Lr();ae.fs=Us});var Ie=c(ue=>{"use strict";o();Object.defineProperty(ue,"__esModule",{value:!0});ue.joinPathSegments=void 0;function Gs(t,e,r){return t.endsWith(r)?t+e:t+r+e}ue.joinPathSegments=Gs});var Wr=c(I=>{"use strict";o();Object.defineProperty(I,"__esModule",{value:!0});I.readdir=I.readdirWithFileTypes=I.read=void 0;var Qs=Y(),xr=Ar(),$s=Le(),jr=je(),Ir=Ie();function Xs(t,e,r){if(!e.stats&&$s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Br(t,e,r);return}Nr(t,e,r)}I.read=Xs;function Br(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,s)=>{if(n!==null){ce(r,n);return}let i=s.map(d=>({dirent:d,name:d.name,path:Ir.joinPathSegments(t,d.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Be(r,i);return}let a=i.map(d=>Js(d,e));xr(a,(d,f)=>{if(d!==null){ce(r,d);return}Be(r,f)})})}I.readdirWithFileTypes=Br;function Js(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,s)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=jr.fs.createDirentFromStats(t.name,s),r(null,t)})}}function Nr(t,e,r){e.fs.readdir(t,(n,s)=>{if(n!==null){ce(r,n);return}let i=s.map(a=>{let d=Ir.joinPathSegments(t,a,e.pathSegmentSeparator);return f=>{Qs.stat(d,e.fsStatSettings,(h,u)=>{if(h!==null){f(h);return}let _={name:a,path:d,dirent:jr.fs.createDirentFromStats(a,u)};e.stats&&(_.stats=u),f(null,_)})}});xr(i,(a,d)=>{if(a!==null){ce(r,a);return}Be(r,d)})})}I.readdir=Nr;function ce(t,e){t(e)}function Be(t,e){t(null,e)}});var Ur=c(B=>{"use strict";o();Object.defineProperty(B,"__esModule",{value:!0});B.readdir=B.readdirWithFileTypes=B.read=void 0;var Ks=Y(),zs=Le(),Vr=je(),Cr=Ie();function Zs(t,e){return!e.stats&&zs.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Yr(t,e):Hr(t,e)}B.read=Zs;function Yr(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let s={dirent:n,name:n.name,path:Cr.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let i=e.fs.statSync(s.path);s.dirent=Vr.fs.createDirentFromStats(s.name,i)}catch(i){if(e.throwErrorOnBrokenSymbolicLink)throw i}return s})}B.readdirWithFileTypes=Yr;function Hr(t,e){return e.fs.readdirSync(t).map(n=>{let s=Cr.joinPathSegments(t,n,e.pathSegmentSeparator),i=Ks.statSync(s,e.fsStatSettings),a={name:n,path:s,dirent:Vr.fs.createDirentFromStats(n,i)};return e.stats&&(a.stats=i),a})}B.readdir=Hr});var Gr=c(N=>{"use strict";o();Object.defineProperty(N,"__esModule",{value:!0});N.createFileSystemAdapter=N.FILE_SYSTEM_ADAPTER=void 0;var G=E("fs");N.FILE_SYSTEM_ADAPTER={lstat:G.lstat,stat:G.stat,lstatSync:G.lstatSync,statSync:G.statSync,readdir:G.readdir,readdirSync:G.readdirSync};function ei(t){return t===void 0?N.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},N.FILE_SYSTEM_ADAPTER),t)}N.createFileSystemAdapter=ei});var Qr=c(We=>{"use strict";o();Object.defineProperty(We,"__esModule",{value:!0});var ti=E("path"),ri=Y(),ni=Gr(),Ne=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=ni.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ti.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new ri.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};We.default=Ne});var le=c(W=>{"use strict";o();Object.defineProperty(W,"__esModule",{value:!0});W.Settings=W.scandirSync=W.scandir=void 0;var $r=Wr(),si=Ur(),Ve=Qr();W.Settings=Ve.default;function ii(t,e,r){if(typeof e=="function"){$r.read(t,Ce(),e);return}$r.read(t,Ce(e),r)}W.scandir=ii;function oi(t,e){let r=Ce(e);return si.read(t,r)}W.scandirSync=oi;function Ce(t={}){return t instanceof Ve.default?t:new Ve.default(t)}});var Jr=c((pa,Xr)=>{"use strict";o();function ai(t){var e=new t,r=e;function n(){var i=e;return i.next?e=i.next:(e=new t,r=e),i.next=null,i}function s(i){r.next=i,r=i}return{get:n,release:s}}Xr.exports=ai});var zr=c((ma,Ye)=>{"use strict";o();var ui=Jr();function Kr(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=ui(ci),s=null,i=null,a=0,d=null,f={push:O,drain:T,saturated:T,pause:u,paused:!1,get concurrency(){return r},set concurrency(g){if(!(g>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=g,!f.paused)for(;s&&a<r;)a++,C()},running:h,resume:R,idle:m,length:_,getQueue:p,unshift:J,empty:T,kill:En,killAndDrain:bn,error:Tn,abort:wn};return f;function h(){return a}function u(){f.paused=!0}function _(){for(var g=s,v=0;g;)g=g.next,v++;return v}function p(){for(var g=s,v=[];g;)v.push(g.value),g=g.next;return v}function R(){if(f.paused){if(f.paused=!1,s===null){a++,C();return}for(;s&&a<r;)a++,C()}}function m(){return a===0&&f.length()===0}function O(g,v){var y=n.get();y.context=t,y.release=C,y.value=g,y.callback=v||T,y.errorHandler=d,a>=r||f.paused?i?(i.next=y,i=y):(s=y,i=y,f.saturated()):(a++,e.call(t,y.value,y.worked))}function J(g,v){var y=n.get();y.context=t,y.release=C,y.value=g,y.callback=v||T,y.errorHandler=d,a>=r||f.paused?s?(y.next=s,s=y):(s=y,i=y,f.saturated()):(a++,e.call(t,y.value,y.worked))}function C(g){g&&n.release(g);var v=s;v&&a<=r?f.paused?a--:(i===s&&(i=null),s=v.next,v.next=null,e.call(t,v.value,v.worked),i===null&&f.empty()):--a===0&&f.drain()}function En(){s=null,i=null,f.drain=T}function bn(){s=null,i=null,f.drain(),f.drain=T}function wn(){var g=s;for(s=null,i=null;g;){var v=g.next,y=g.callback,Wt=g.errorHandler,kn=g.value,On=g.context;g.value=null,g.callback=T,g.errorHandler=null,Wt&&Wt(new Error("abort"),kn),y.call(On,new Error("abort")),g.release(g),g=v}f.drain=T}function Tn(g){d=g}}function T(){}function ci(){this.value=null,this.callback=T,this.next=null,this.release=T,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var s=t.callback,i=t.errorHandler,a=t.value;t.value=null,t.callback=T,t.errorHandler&&i(r,a),s.call(t.context,r,n),t.release(t)}}function li(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(u,_){e.call(this,u).then(function(p){_(null,p)},_)}var s=Kr(t,n,r),i=s.push,a=s.unshift;return s.push=d,s.unshift=f,s.drained=h,s;function d(u){var _=new Promise(function(p,R){i(u,function(m,O){if(m){R(m);return}p(O)})});return _.catch(T),_}function f(u){var _=new Promise(function(p,R){a(u,function(m,O){if(m){R(m);return}p(O)})});return _.catch(T),_}function h(){var u=new Promise(function(_){process.nextTick(function(){if(s.idle())_();else{var p=s.drain;s.drain=function(){typeof p=="function"&&p(),_(),s.drain=p}}})});return u}}Ye.exports=Kr;Ye.exports.promise=li});var he=c(A=>{"use strict";o();Object.defineProperty(A,"__esModule",{value:!0});A.joinPathSegments=A.replacePathSegmentSeparator=A.isAppliedFilter=A.isFatalError=void 0;function hi(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}A.isFatalError=hi;function fi(t,e){return t===null||t(e)}A.isAppliedFilter=fi;function di(t,e){return t.split(/[/\\]/).join(e)}A.replacePathSegmentSeparator=di;function _i(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}A.joinPathSegments=_i});var Ge=c(Ue=>{"use strict";o();Object.defineProperty(Ue,"__esModule",{value:!0});var pi=he(),He=class{constructor(e,r){this._root=e,this._settings=r,this._root=pi.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Ue.default=He});var Xe=c($e=>{"use strict";o();Object.defineProperty($e,"__esModule",{value:!0});var gi=E("events"),mi=le(),yi=zr(),fe=he(),Si=Ge(),Qe=class extends Si.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=mi.scandir,this._emitter=new gi.EventEmitter,this._queue=yi(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,s=>{s!==null&&this._handleError(s)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,s)=>{if(n!==null){r(n,void 0);return}for(let i of s)this._handleEntry(i,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!fe.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=fe.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),fe.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&fe.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};$e.default=Qe});var Zr=c(Ke=>{"use strict";o();Object.defineProperty(Ke,"__esModule",{value:!0});var Pi=Xe(),Je=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Pi.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{vi(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Ei(e,this._storage)}),this._reader.read()}};Ke.default=Je;function vi(t,e){t(e)}function Ei(t,e){t(null,e)}});var en=c(Ze=>{"use strict";o();Object.defineProperty(Ze,"__esModule",{value:!0});var bi=E("stream"),wi=Xe(),ze=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new wi.default(this._root,this._settings),this._stream=new bi.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Ze.default=ze});var tn=c(tt=>{"use strict";o();Object.defineProperty(tt,"__esModule",{value:!0});var Ti=le(),de=he(),ki=Ge(),et=class extends ki.default{constructor(){super(...arguments),this._scandir=Ti.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let s of n)this._handleEntry(s,r)}catch(n){this._handleError(n)}}_handleError(e){if(de.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=de.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),de.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&de.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};tt.default=et});var rn=c(nt=>{"use strict";o();Object.defineProperty(nt,"__esModule",{value:!0});var Oi=tn(),rt=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Oi.default(this._root,this._settings)}read(){return this._reader.read()}};nt.default=rt});var nn=c(it=>{"use strict";o();Object.defineProperty(it,"__esModule",{value:!0});var Di=E("path"),Mi=le(),st=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Di.sep),this.fsScandirSettings=new Mi.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};it.default=st});var pe=c(F=>{"use strict";o();Object.defineProperty(F,"__esModule",{value:!0});F.Settings=F.walkStream=F.walkSync=F.walk=void 0;var sn=Zr(),qi=en(),Ai=rn(),ot=nn();F.Settings=ot.default;function Fi(t,e,r){if(typeof e=="function"){new sn.default(t,_e()).read(e);return}new sn.default(t,_e(e)).read(r)}F.walk=Fi;function Ri(t,e){let r=_e(e);return new Ai.default(t,r).read()}F.walkSync=Ri;function Li(t,e){let r=_e(e);return new qi.default(t,r).read()}F.walkStream=Li;function _e(t={}){return t instanceof ot.default?t:new ot.default(t)}});var ge=c(ut=>{"use strict";o();Object.defineProperty(ut,"__esModule",{value:!0});var xi=E("path"),ji=Y(),on=L(),at=class{constructor(e){this._settings=e,this._fsStatSettings=new ji.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return xi.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:on.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!on.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};ut.default=at});var ht=c(lt=>{"use strict";o();Object.defineProperty(lt,"__esModule",{value:!0});var Ii=E("stream"),Bi=Y(),Ni=pe(),Wi=ge(),ct=class extends Wi.default{constructor(){super(...arguments),this._walkStream=Ni.walkStream,this._stat=Bi.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),s=new Ii.PassThrough({objectMode:!0});s._write=(i,a,d)=>this._getEntry(n[i],e[i],r).then(f=>{f!==null&&r.entryFilter(f)&&s.push(f),i===n.length-1&&s.end(),d()}).catch(d);for(let i=0;i<n.length;i++)s.write(i);return s}_getEntry(e,r,n){return this._getStat(e).then(s=>this._makeEntry(s,r)).catch(s=>{if(n.errorFilter(s))return null;throw s})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(s,i)=>s===null?r(i):n(s))})}};lt.default=ct});var an=c(dt=>{"use strict";o();Object.defineProperty(dt,"__esModule",{value:!0});var Vi=pe(),Ci=ge(),Yi=ht(),ft=class extends Ci.default{constructor(){super(...arguments),this._walkAsync=Vi.walk,this._readerStream=new Yi.default(this._settings)}dynamic(e,r){return new Promise((n,s)=>{this._walkAsync(e,r,(i,a)=>{i===null?n(a):s(i)})})}async static(e,r){let n=[],s=this._readerStream.static(e,r);return new Promise((i,a)=>{s.once("error",a),s.on("data",d=>n.push(d)),s.once("end",()=>i(n))})}};dt.default=ft});var un=c(pt=>{"use strict";o();Object.defineProperty(pt,"__esModule",{value:!0});var X=L(),_t=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let r=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:e,segments:r,sections:n})}}_getPatternSegments(e){return X.pattern.getPatternParts(e,this._micromatchOptions).map(n=>X.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:X.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return X.array.splitWhen(e,r=>r.dynamic&&X.pattern.hasGlobStar(r.pattern))}};pt.default=_t});var cn=c(mt=>{"use strict";o();Object.defineProperty(mt,"__esModule",{value:!0});var Hi=un(),gt=class extends Hi.default{match(e){let r=e.split("/"),n=r.length,s=this._storage.filter(i=>!i.complete||i.segments.length>n);for(let i of s){let a=i.sections[0];if(!i.complete&&n>a.length||r.every((f,h)=>{let u=i.segments[h];return!!(u.dynamic&&u.patternRe.test(f)||!u.dynamic&&u.pattern===f)}))return!0}return!1}};mt.default=gt});var ln=c(St=>{"use strict";o();Object.defineProperty(St,"__esModule",{value:!0});var me=L(),Ui=cn(),yt=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let s=this._getMatcher(r),i=this._getNegativePatternsRe(n);return a=>this._filter(e,a,s,i)}_getMatcher(e){return new Ui.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(me.pattern.isAffectDepthOfReadingPattern);return me.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,s){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=me.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(i,n)?!1:this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let s=e.split("/").length;return n-s}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!me.pattern.matchAny(e,r)}};St.default=yt});var hn=c(vt=>{"use strict";o();Object.defineProperty(vt,"__esModule",{value:!0});var V=L(),Pt=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let[n,s]=V.pattern.partitionAbsoluteAndRelative(r),i={positive:{all:V.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:V.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:V.pattern.convertPatternsToRe(s,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return a=>this._filter(a,i)}_filter(e,r){let n=V.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let s=this._isMatchToPatternsSet(n,r,e.dirent.isDirectory());return this._settings.unique&&s&&this._createIndexRecord(n),s}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,r,n){return!(!this._isMatchToPatterns(e,r.positive.all,n)||this._isMatchToPatterns(e,r.negative.relative,n)||this._isMatchToAbsoluteNegative(e,r.negative.absolute,n))}_isMatchToAbsoluteNegative(e,r,n){if(r.length===0)return!1;let s=V.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(s,r,n)}_isMatchToPatterns(e,r,n){if(r.length===0)return!1;let s=V.pattern.matchAny(e,r);return!s&&n?V.pattern.matchAny(e+"/",r):s}};vt.default=Pt});var fn=c(bt=>{"use strict";o();Object.defineProperty(bt,"__esModule",{value:!0});var Gi=L(),Et=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Gi.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};bt.default=Et});var _n=c(Tt=>{"use strict";o();Object.defineProperty(Tt,"__esModule",{value:!0});var dn=L(),wt=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=dn.path.makeAbsolute(this._settings.cwd,r),r=dn.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Tt.default=wt});var ye=c(Ot=>{"use strict";o();Object.defineProperty(Ot,"__esModule",{value:!0});var Qi=E("path"),$i=ln(),Xi=hn(),Ji=fn(),Ki=_n(),kt=class{constructor(e){this._settings=e,this.errorFilter=new Ji.default(this._settings),this.entryFilter=new Xi.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new $i.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Ki.default(this._settings)}_getRootDirectory(e){return Qi.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Ot.default=kt});var pn=c(Mt=>{"use strict";o();Object.defineProperty(Mt,"__esModule",{value:!0});var zi=an(),Zi=ye(),Dt=class extends Zi.default{constructor(){super(...arguments),this._reader=new zi.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(i=>n.transform(i))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Mt.default=Dt});var gn=c(At=>{"use strict";o();Object.defineProperty(At,"__esModule",{value:!0});var eo=E("stream"),to=ht(),ro=ye(),qt=class extends ro.default{constructor(){super(...arguments),this._reader=new to.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),s=this.api(r,e,n),i=new eo.Readable({objectMode:!0,read:()=>{}});return s.once("error",a=>i.emit("error",a)).on("data",a=>i.emit("data",n.transform(a))).once("end",()=>i.emit("end")),i.once("close",()=>s.destroy()),i}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};At.default=qt});var mn=c(Rt=>{"use strict";o();Object.defineProperty(Rt,"__esModule",{value:!0});var no=Y(),so=pe(),io=ge(),Ft=class extends io.default{constructor(){super(...arguments),this._walkSync=so.walkSync,this._statSync=no.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let s of e){let i=this._getFullEntryPath(s),a=this._getEntry(i,s,r);a===null||!r.entryFilter(a)||n.push(a)}return n}_getEntry(e,r,n){try{let s=this._getStat(e);return this._makeEntry(s,r)}catch(s){if(n.errorFilter(s))return null;throw s}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Rt.default=Ft});var yn=c(xt=>{"use strict";o();Object.defineProperty(xt,"__esModule",{value:!0});var oo=mn(),ao=ye(),Lt=class extends ao.default{constructor(){super(...arguments),this._reader=new oo.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};xt.default=Lt});var Sn=c($=>{"use strict";o();Object.defineProperty($,"__esModule",{value:!0});$.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Q=E("fs"),uo=E("os"),co=Math.max(uo.cpus().length,1);$.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Q.lstat,lstatSync:Q.lstatSync,stat:Q.stat,statSync:Q.statSync,readdir:Q.readdir,readdirSync:Q.readdirSync};var jt=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,co),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},$.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};$.default=jt});var _o=c((du,vn)=>{o();var Pn=Pr(),lo=pn(),ho=gn(),fo=yn(),It=Sn(),k=L();async function Bt(t,e){M(t);let r=Nt(t,lo.default,e),n=await Promise.all(r);return k.array.flatten(n)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(h,u){M(h);let _=Nt(h,fo.default,u);return k.array.flatten(_)}t.sync=e;function r(h,u){M(h);let _=Nt(h,ho.default,u);return k.stream.merge(_)}t.stream=r;function n(h,u){M(h);let _=[].concat(h),p=new It.default(u);return Pn.generate(_,p)}t.generateTasks=n;function s(h,u){M(h);let _=new It.default(u);return k.pattern.isDynamicPattern(h,_)}t.isDynamicPattern=s;function i(h){return M(h),k.path.escape(h)}t.escapePath=i;function a(h){return M(h),k.path.convertPathToPattern(h)}t.convertPathToPattern=a;let d;(function(h){function u(p){return M(p),k.path.escapePosixPath(p)}h.escapePath=u;function _(p){return M(p),k.path.convertPosixPathToPattern(p)}h.convertPathToPattern=_})(d=t.posix||(t.posix={}));let f;(function(h){function u(p){return M(p),k.path.escapeWindowsPath(p)}h.escapePath=u;function _(p){return M(p),k.path.convertWindowsPathToPattern(p)}h.convertPathToPattern=_})(f=t.win32||(t.win32={}))})(Bt||(Bt={}));function Nt(t,e,r){let n=[].concat(t),s=new It.default(r),i=Pn.generate(n,s),a=new e(s);return i.map(a.read,a)}function M(t){if(![].concat(t).every(n=>k.string.isString(n)&&!k.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}vn.exports=Bt});export{dr as a,_o as b};
|
|
1
|
+
import{b as Dn,c as Mn,d as qn,e as An}from"./chunk-JJZNUFPD.js";import{a as E,c,g as o}from"./chunk-VKWPEFWQ.js";var Vt=c(H=>{"use strict";o();Object.defineProperty(H,"__esModule",{value:!0});H.splitWhen=H.flatten=void 0;function Fn(t){return t.reduce((e,r)=>[].concat(e,r),[])}H.flatten=Fn;function Rn(t,e){let r=[[]],n=0;for(let s of t)e(s)?(n++,r[n]=[]):r[n].push(s);return r}H.splitWhen=Rn});var Ct=c(K=>{"use strict";o();Object.defineProperty(K,"__esModule",{value:!0});K.isEnoentCodeError=void 0;function Ln(t){return t.code==="ENOENT"}K.isEnoentCodeError=Ln});var Yt=c(z=>{"use strict";o();Object.defineProperty(z,"__esModule",{value:!0});z.createDirentFromStats=void 0;var Se=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function xn(t,e){return new Se(t,e)}z.createDirentFromStats=xn});var Qt=c(P=>{"use strict";o();Object.defineProperty(P,"__esModule",{value:!0});P.convertPosixPathToPattern=P.convertWindowsPathToPattern=P.convertPathToPattern=P.escapePosixPath=P.escapeWindowsPath=P.escape=P.removeLeadingDotSegment=P.makeAbsolute=P.unixify=void 0;var jn=E("os"),In=E("path"),Ht=jn.platform()==="win32",Bn=2,Nn=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Wn=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Vn=/^\\\\([.?])/,Cn=/\\(?![!()+@[\]{}])/g;function Yn(t){return t.replace(/\\/g,"/")}P.unixify=Yn;function Hn(t,e){return In.resolve(t,e)}P.makeAbsolute=Hn;function Un(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Bn)}return t}P.removeLeadingDotSegment=Un;P.escape=Ht?Pe:ve;function Pe(t){return t.replace(Wn,"\\$2")}P.escapeWindowsPath=Pe;function ve(t){return t.replace(Nn,"\\$2")}P.escapePosixPath=ve;P.convertPathToPattern=Ht?Ut:Gt;function Ut(t){return Pe(t).replace(Vn,"//$1").replace(Cn,"/")}P.convertWindowsPathToPattern=Ut;function Gt(t){return ve(t)}P.convertPosixPathToPattern=Gt});var Zt=c((bo,zt)=>{"use strict";o();var Xt=E("util"),Jt=Mn(),q=An(),Ee=qn(),$t=t=>t===""||t==="./",Kt=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},S=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,s=new Set,i=new Set,a=0,d=u=>{i.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let _=q(String(e[u]),{...r,onResult:d},!0),p=_.state.negated||_.state.negatedExtglob;p&&a++;for(let R of t){let m=_(R,!0);(p?!m.isMatch:m.isMatch)&&(p?n.add(m.output):(n.delete(m.output),s.add(m.output)))}}let h=(a===e.length?[...i]:[...s]).filter(u=>!n.has(u));if(r&&h.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return h};S.match=S;S.matcher=(t,e)=>q(t,e);S.isMatch=(t,e,r)=>q(e,r)(t);S.any=S.isMatch;S.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,s=[],i=d=>{r.onResult&&r.onResult(d),s.push(d.output)},a=new Set(S(t,e,{...r,onResult:i}));for(let d of s)a.has(d)||n.add(d);return[...n]};S.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Xt.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>S.contains(t,n,r));if(typeof e=="string"){if($t(t)||$t(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return S.isMatch(t,e,{...r,contains:!0})};S.matchKeys=(t,e,r)=>{if(!Ee.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=S(Object.keys(t),e,r),s={};for(let i of n)s[i]=t[i];return s};S.some=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=q(String(s),r);if(n.some(a=>i(a)))return!0}return!1};S.every=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=q(String(s),r);if(!n.every(a=>i(a)))return!1}return!0};S.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Xt.inspect(t)}"`);return[].concat(e).every(n=>q(n,r)(t))};S.capture=(t,e,r)=>{let n=Ee.isWindows(r),i=q.makeRe(String(t),{...r,capture:!0}).exec(n?Ee.toPosixSlashes(e):e);if(i)return i.slice(1).map(a=>a===void 0?"":a)};S.makeRe=(...t)=>q.makeRe(...t);S.scan=(...t)=>q.scan(...t);S.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let s of Jt(String(n),e))r.push(q.parse(s,e));return r};S.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!Kt(t)?[t]:Jt(t,e)};S.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return S.braces(t,{...e,expand:!0})};S.hasBraces=Kt;zt.exports=S});var cr=c(l=>{"use strict";o();Object.defineProperty(l,"__esModule",{value:!0});l.isAbsolute=l.partitionAbsoluteAndRelative=l.removeDuplicateSlashes=l.matchAny=l.convertPatternsToRe=l.makeRe=l.getPatternParts=l.expandBraceExpansion=l.expandPatternsWithBraceExpansion=l.isAffectDepthOfReadingPattern=l.endsWithSlashGlobStar=l.hasGlobStar=l.getBaseDirectory=l.isPatternRelatedToParentDirectory=l.getPatternsOutsideCurrentDirectory=l.getPatternsInsideCurrentDirectory=l.getPositivePatterns=l.getNegativePatterns=l.isPositivePattern=l.isNegativePattern=l.convertToNegativePattern=l.convertToPositivePattern=l.isDynamicPattern=l.isStaticPattern=void 0;var er=E("path"),Gn=Dn(),be=Zt(),tr="**",Qn="\\",$n=/[*?]|^!/,Xn=/\[[^[]*]/,Jn=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Kn=/[!*+?@]\([^(]*\)/,zn=/,|\.\./,Zn=/(?!^)\/{2,}/g;function rr(t,e={}){return!nr(t,e)}l.isStaticPattern=rr;function nr(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(Qn)||$n.test(t)||Xn.test(t)||Jn.test(t)||e.extglob!==!1&&Kn.test(t)||e.braceExpansion!==!1&&es(t))}l.isDynamicPattern=nr;function es(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return zn.test(n)}function ts(t){return Z(t)?t.slice(1):t}l.convertToPositivePattern=ts;function rs(t){return"!"+t}l.convertToNegativePattern=rs;function Z(t){return t.startsWith("!")&&t[1]!=="("}l.isNegativePattern=Z;function sr(t){return!Z(t)}l.isPositivePattern=sr;function ns(t){return t.filter(Z)}l.getNegativePatterns=ns;function ss(t){return t.filter(sr)}l.getPositivePatterns=ss;function is(t){return t.filter(e=>!we(e))}l.getPatternsInsideCurrentDirectory=is;function os(t){return t.filter(we)}l.getPatternsOutsideCurrentDirectory=os;function we(t){return t.startsWith("..")||t.startsWith("./..")}l.isPatternRelatedToParentDirectory=we;function as(t){return Gn(t,{flipBackslashes:!1})}l.getBaseDirectory=as;function us(t){return t.includes(tr)}l.hasGlobStar=us;function ir(t){return t.endsWith("/"+tr)}l.endsWithSlashGlobStar=ir;function cs(t){let e=er.basename(t);return ir(t)||rr(e)}l.isAffectDepthOfReadingPattern=cs;function ls(t){return t.reduce((e,r)=>e.concat(or(r)),[])}l.expandPatternsWithBraceExpansion=ls;function or(t){let e=be.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return e.sort((r,n)=>r.length-n.length),e.filter(r=>r!=="")}l.expandBraceExpansion=or;function hs(t,e){let{parts:r}=be.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}l.getPatternParts=hs;function ar(t,e){return be.makeRe(t,e)}l.makeRe=ar;function fs(t,e){return t.map(r=>ar(r,e))}l.convertPatternsToRe=fs;function ds(t,e){return e.some(r=>r.test(t))}l.matchAny=ds;function _s(t){return t.replace(Zn,"/")}l.removeDuplicateSlashes=_s;function ps(t){let e=[],r=[];for(let n of t)ur(n)?e.push(n):r.push(n);return[e,r]}l.partitionAbsoluteAndRelative=ps;function ur(t){return er.isAbsolute(t)}l.isAbsolute=ur});var dr=c((Oo,fr)=>{"use strict";o();var gs=E("stream"),lr=gs.PassThrough,ms=Array.prototype.slice;fr.exports=ys;function ys(){let t=[],e=ms.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let s=n.end!==!1,i=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let a=lr(n);function d(){for(let u=0,_=arguments.length;u<_;u++)t.push(hr(arguments[u],n));return f(),this}function f(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(h);return}Array.isArray(u)||(u=[u]);let _=u.length+1;function p(){--_>0||(r=!1,f())}function R(m){function O(){m.removeListener("merge2UnpipeEnd",O),m.removeListener("end",O),i&&m.removeListener("error",J),p()}function J(C){a.emit("error",C)}if(m._readableState.endEmitted)return p();m.on("merge2UnpipeEnd",O),m.on("end",O),i&&m.on("error",J),m.pipe(a,{end:!1}),m.resume()}for(let m=0;m<u.length;m++)R(u[m]);p()}function h(){r=!1,a.emit("queueDrain"),s&&a.end()}return a.setMaxListeners(0),a.add=d,a.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&d.apply(null,e),a}function hr(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=hr(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(lr(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var pr=c(ee=>{"use strict";o();Object.defineProperty(ee,"__esModule",{value:!0});ee.merge=void 0;var Ss=dr();function Ps(t){let e=Ss(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>_r(t)),e.once("end",()=>_r(t)),e}ee.merge=Ps;function _r(t){t.forEach(e=>e.emit("close"))}});var gr=c(U=>{"use strict";o();Object.defineProperty(U,"__esModule",{value:!0});U.isEmpty=U.isString=void 0;function vs(t){return typeof t=="string"}U.isString=vs;function Es(t){return t===""}U.isEmpty=Es});var L=c(b=>{"use strict";o();Object.defineProperty(b,"__esModule",{value:!0});b.string=b.stream=b.pattern=b.path=b.fs=b.errno=b.array=void 0;var bs=Vt();b.array=bs;var ws=Ct();b.errno=ws;var Ts=Yt();b.fs=Ts;var ks=Qt();b.path=ks;var Os=cr();b.pattern=Os;var Ds=pr();b.stream=Ds;var Ms=gr();b.string=Ms});var Pr=c(w=>{"use strict";o();Object.defineProperty(w,"__esModule",{value:!0});w.convertPatternGroupToTask=w.convertPatternGroupsToTasks=w.groupPatternsByBaseDirectory=w.getNegativePatternsAsPositive=w.getPositivePatterns=w.convertPatternsToTasks=w.generate=void 0;var D=L();function qs(t,e){let r=mr(t,e),n=mr(e.ignore,e),s=yr(r),i=Sr(r,n),a=s.filter(u=>D.pattern.isStaticPattern(u,e)),d=s.filter(u=>D.pattern.isDynamicPattern(u,e)),f=Te(a,i,!1),h=Te(d,i,!0);return f.concat(h)}w.generate=qs;function mr(t,e){let r=t;return e.braceExpansion&&(r=D.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>D.pattern.removeDuplicateSlashes(n))}function Te(t,e,r){let n=[],s=D.pattern.getPatternsOutsideCurrentDirectory(t),i=D.pattern.getPatternsInsideCurrentDirectory(t),a=ke(s),d=ke(i);return n.push(...Oe(a,e,r)),"."in d?n.push(De(".",i,e,r)):n.push(...Oe(d,e,r)),n}w.convertPatternsToTasks=Te;function yr(t){return D.pattern.getPositivePatterns(t)}w.getPositivePatterns=yr;function Sr(t,e){return D.pattern.getNegativePatterns(t).concat(e).map(D.pattern.convertToPositivePattern)}w.getNegativePatternsAsPositive=Sr;function ke(t){let e={};return t.reduce((r,n)=>{let s=D.pattern.getBaseDirectory(n);return s in r?r[s].push(n):r[s]=[n],r},e)}w.groupPatternsByBaseDirectory=ke;function Oe(t,e,r){return Object.keys(t).map(n=>De(n,t[n],e,r))}w.convertPatternGroupsToTasks=Oe;function De(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(D.pattern.convertToNegativePattern))}}w.convertPatternGroupToTask=De});var Er=c(te=>{"use strict";o();Object.defineProperty(te,"__esModule",{value:!0});te.read=void 0;function As(t,e,r){e.fs.lstat(t,(n,s)=>{if(n!==null){vr(r,n);return}if(!s.isSymbolicLink()||!e.followSymbolicLink){Me(r,s);return}e.fs.stat(t,(i,a)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){vr(r,i);return}Me(r,s);return}e.markSymbolicLink&&(a.isSymbolicLink=()=>!0),Me(r,a)})})}te.read=As;function vr(t,e){t(e)}function Me(t,e){t(null,e)}});var br=c(re=>{"use strict";o();Object.defineProperty(re,"__esModule",{value:!0});re.read=void 0;function Fs(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}re.read=Fs});var wr=c(x=>{"use strict";o();Object.defineProperty(x,"__esModule",{value:!0});x.createFileSystemAdapter=x.FILE_SYSTEM_ADAPTER=void 0;var ne=E("fs");x.FILE_SYSTEM_ADAPTER={lstat:ne.lstat,stat:ne.stat,lstatSync:ne.lstatSync,statSync:ne.statSync};function Rs(t){return t===void 0?x.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},x.FILE_SYSTEM_ADAPTER),t)}x.createFileSystemAdapter=Rs});var Tr=c(Ae=>{"use strict";o();Object.defineProperty(Ae,"__esModule",{value:!0});var Ls=wr(),qe=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Ls.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};Ae.default=qe});var Y=c(j=>{"use strict";o();Object.defineProperty(j,"__esModule",{value:!0});j.statSync=j.stat=j.Settings=void 0;var kr=Er(),xs=br(),Fe=Tr();j.Settings=Fe.default;function js(t,e,r){if(typeof e=="function"){kr.read(t,Re(),e);return}kr.read(t,Re(e),r)}j.stat=js;function Is(t,e){let r=Re(e);return xs.read(t,r)}j.statSync=Is;function Re(t={}){return t instanceof Fe.default?t:new Fe.default(t)}});var Mr=c((Qo,Dr)=>{o();var Or;Dr.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Or||(Or=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Ar=c((Xo,qr)=>{o();qr.exports=Ns;var Bs=Mr();function Ns(t,e){let r,n,s,i=!0;Array.isArray(t)?(r=[],n=t.length):(s=Object.keys(t),r={},n=s.length);function a(f){function h(){e&&e(f,r),e=null}i?Bs(h):h()}function d(f,h,u){r[f]=u,(--n===0||h)&&a(h)}n?s?s.forEach(function(f){t[f](function(h,u){d(f,h,u)})}):t.forEach(function(f,h){f(function(u,_){d(h,u,_)})}):a(null),i=!1}});var Le=c(ie=>{"use strict";o();Object.defineProperty(ie,"__esModule",{value:!0});ie.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var se=process.versions.node.split(".");if(se[0]===void 0||se[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Fr=Number.parseInt(se[0],10),Ws=Number.parseInt(se[1],10),Rr=10,Vs=10,Cs=Fr>Rr,Ys=Fr===Rr&&Ws>=Vs;ie.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Cs||Ys});var Lr=c(oe=>{"use strict";o();Object.defineProperty(oe,"__esModule",{value:!0});oe.createDirentFromStats=void 0;var xe=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Hs(t,e){return new xe(t,e)}oe.createDirentFromStats=Hs});var je=c(ae=>{"use strict";o();Object.defineProperty(ae,"__esModule",{value:!0});ae.fs=void 0;var Us=Lr();ae.fs=Us});var Ie=c(ue=>{"use strict";o();Object.defineProperty(ue,"__esModule",{value:!0});ue.joinPathSegments=void 0;function Gs(t,e,r){return t.endsWith(r)?t+e:t+r+e}ue.joinPathSegments=Gs});var Wr=c(I=>{"use strict";o();Object.defineProperty(I,"__esModule",{value:!0});I.readdir=I.readdirWithFileTypes=I.read=void 0;var Qs=Y(),xr=Ar(),$s=Le(),jr=je(),Ir=Ie();function Xs(t,e,r){if(!e.stats&&$s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Br(t,e,r);return}Nr(t,e,r)}I.read=Xs;function Br(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,s)=>{if(n!==null){ce(r,n);return}let i=s.map(d=>({dirent:d,name:d.name,path:Ir.joinPathSegments(t,d.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Be(r,i);return}let a=i.map(d=>Js(d,e));xr(a,(d,f)=>{if(d!==null){ce(r,d);return}Be(r,f)})})}I.readdirWithFileTypes=Br;function Js(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,s)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=jr.fs.createDirentFromStats(t.name,s),r(null,t)})}}function Nr(t,e,r){e.fs.readdir(t,(n,s)=>{if(n!==null){ce(r,n);return}let i=s.map(a=>{let d=Ir.joinPathSegments(t,a,e.pathSegmentSeparator);return f=>{Qs.stat(d,e.fsStatSettings,(h,u)=>{if(h!==null){f(h);return}let _={name:a,path:d,dirent:jr.fs.createDirentFromStats(a,u)};e.stats&&(_.stats=u),f(null,_)})}});xr(i,(a,d)=>{if(a!==null){ce(r,a);return}Be(r,d)})})}I.readdir=Nr;function ce(t,e){t(e)}function Be(t,e){t(null,e)}});var Ur=c(B=>{"use strict";o();Object.defineProperty(B,"__esModule",{value:!0});B.readdir=B.readdirWithFileTypes=B.read=void 0;var Ks=Y(),zs=Le(),Vr=je(),Cr=Ie();function Zs(t,e){return!e.stats&&zs.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Yr(t,e):Hr(t,e)}B.read=Zs;function Yr(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let s={dirent:n,name:n.name,path:Cr.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let i=e.fs.statSync(s.path);s.dirent=Vr.fs.createDirentFromStats(s.name,i)}catch(i){if(e.throwErrorOnBrokenSymbolicLink)throw i}return s})}B.readdirWithFileTypes=Yr;function Hr(t,e){return e.fs.readdirSync(t).map(n=>{let s=Cr.joinPathSegments(t,n,e.pathSegmentSeparator),i=Ks.statSync(s,e.fsStatSettings),a={name:n,path:s,dirent:Vr.fs.createDirentFromStats(n,i)};return e.stats&&(a.stats=i),a})}B.readdir=Hr});var Gr=c(N=>{"use strict";o();Object.defineProperty(N,"__esModule",{value:!0});N.createFileSystemAdapter=N.FILE_SYSTEM_ADAPTER=void 0;var G=E("fs");N.FILE_SYSTEM_ADAPTER={lstat:G.lstat,stat:G.stat,lstatSync:G.lstatSync,statSync:G.statSync,readdir:G.readdir,readdirSync:G.readdirSync};function ei(t){return t===void 0?N.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},N.FILE_SYSTEM_ADAPTER),t)}N.createFileSystemAdapter=ei});var Qr=c(We=>{"use strict";o();Object.defineProperty(We,"__esModule",{value:!0});var ti=E("path"),ri=Y(),ni=Gr(),Ne=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=ni.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ti.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new ri.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};We.default=Ne});var le=c(W=>{"use strict";o();Object.defineProperty(W,"__esModule",{value:!0});W.Settings=W.scandirSync=W.scandir=void 0;var $r=Wr(),si=Ur(),Ve=Qr();W.Settings=Ve.default;function ii(t,e,r){if(typeof e=="function"){$r.read(t,Ce(),e);return}$r.read(t,Ce(e),r)}W.scandir=ii;function oi(t,e){let r=Ce(e);return si.read(t,r)}W.scandirSync=oi;function Ce(t={}){return t instanceof Ve.default?t:new Ve.default(t)}});var Jr=c((pa,Xr)=>{"use strict";o();function ai(t){var e=new t,r=e;function n(){var i=e;return i.next?e=i.next:(e=new t,r=e),i.next=null,i}function s(i){r.next=i,r=i}return{get:n,release:s}}Xr.exports=ai});var zr=c((ma,Ye)=>{"use strict";o();var ui=Jr();function Kr(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=ui(ci),s=null,i=null,a=0,d=null,f={push:O,drain:T,saturated:T,pause:u,paused:!1,get concurrency(){return r},set concurrency(g){if(!(g>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=g,!f.paused)for(;s&&a<r;)a++,C()},running:h,resume:R,idle:m,length:_,getQueue:p,unshift:J,empty:T,kill:En,killAndDrain:bn,error:Tn,abort:wn};return f;function h(){return a}function u(){f.paused=!0}function _(){for(var g=s,v=0;g;)g=g.next,v++;return v}function p(){for(var g=s,v=[];g;)v.push(g.value),g=g.next;return v}function R(){if(f.paused){if(f.paused=!1,s===null){a++,C();return}for(;s&&a<r;)a++,C()}}function m(){return a===0&&f.length()===0}function O(g,v){var y=n.get();y.context=t,y.release=C,y.value=g,y.callback=v||T,y.errorHandler=d,a>=r||f.paused?i?(i.next=y,i=y):(s=y,i=y,f.saturated()):(a++,e.call(t,y.value,y.worked))}function J(g,v){var y=n.get();y.context=t,y.release=C,y.value=g,y.callback=v||T,y.errorHandler=d,a>=r||f.paused?s?(y.next=s,s=y):(s=y,i=y,f.saturated()):(a++,e.call(t,y.value,y.worked))}function C(g){g&&n.release(g);var v=s;v&&a<=r?f.paused?a--:(i===s&&(i=null),s=v.next,v.next=null,e.call(t,v.value,v.worked),i===null&&f.empty()):--a===0&&f.drain()}function En(){s=null,i=null,f.drain=T}function bn(){s=null,i=null,f.drain(),f.drain=T}function wn(){var g=s;for(s=null,i=null;g;){var v=g.next,y=g.callback,Wt=g.errorHandler,kn=g.value,On=g.context;g.value=null,g.callback=T,g.errorHandler=null,Wt&&Wt(new Error("abort"),kn),y.call(On,new Error("abort")),g.release(g),g=v}f.drain=T}function Tn(g){d=g}}function T(){}function ci(){this.value=null,this.callback=T,this.next=null,this.release=T,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var s=t.callback,i=t.errorHandler,a=t.value;t.value=null,t.callback=T,t.errorHandler&&i(r,a),s.call(t.context,r,n),t.release(t)}}function li(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(u,_){e.call(this,u).then(function(p){_(null,p)},_)}var s=Kr(t,n,r),i=s.push,a=s.unshift;return s.push=d,s.unshift=f,s.drained=h,s;function d(u){var _=new Promise(function(p,R){i(u,function(m,O){if(m){R(m);return}p(O)})});return _.catch(T),_}function f(u){var _=new Promise(function(p,R){a(u,function(m,O){if(m){R(m);return}p(O)})});return _.catch(T),_}function h(){var u=new Promise(function(_){process.nextTick(function(){if(s.idle())_();else{var p=s.drain;s.drain=function(){typeof p=="function"&&p(),_(),s.drain=p}}})});return u}}Ye.exports=Kr;Ye.exports.promise=li});var he=c(A=>{"use strict";o();Object.defineProperty(A,"__esModule",{value:!0});A.joinPathSegments=A.replacePathSegmentSeparator=A.isAppliedFilter=A.isFatalError=void 0;function hi(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}A.isFatalError=hi;function fi(t,e){return t===null||t(e)}A.isAppliedFilter=fi;function di(t,e){return t.split(/[/\\]/).join(e)}A.replacePathSegmentSeparator=di;function _i(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}A.joinPathSegments=_i});var Ge=c(Ue=>{"use strict";o();Object.defineProperty(Ue,"__esModule",{value:!0});var pi=he(),He=class{constructor(e,r){this._root=e,this._settings=r,this._root=pi.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Ue.default=He});var Xe=c($e=>{"use strict";o();Object.defineProperty($e,"__esModule",{value:!0});var gi=E("events"),mi=le(),yi=zr(),fe=he(),Si=Ge(),Qe=class extends Si.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=mi.scandir,this._emitter=new gi.EventEmitter,this._queue=yi(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,s=>{s!==null&&this._handleError(s)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,s)=>{if(n!==null){r(n,void 0);return}for(let i of s)this._handleEntry(i,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!fe.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=fe.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),fe.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&fe.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};$e.default=Qe});var Zr=c(Ke=>{"use strict";o();Object.defineProperty(Ke,"__esModule",{value:!0});var Pi=Xe(),Je=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Pi.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{vi(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Ei(e,this._storage)}),this._reader.read()}};Ke.default=Je;function vi(t,e){t(e)}function Ei(t,e){t(null,e)}});var en=c(Ze=>{"use strict";o();Object.defineProperty(Ze,"__esModule",{value:!0});var bi=E("stream"),wi=Xe(),ze=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new wi.default(this._root,this._settings),this._stream=new bi.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Ze.default=ze});var tn=c(tt=>{"use strict";o();Object.defineProperty(tt,"__esModule",{value:!0});var Ti=le(),de=he(),ki=Ge(),et=class extends ki.default{constructor(){super(...arguments),this._scandir=Ti.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let s of n)this._handleEntry(s,r)}catch(n){this._handleError(n)}}_handleError(e){if(de.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=de.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),de.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&de.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};tt.default=et});var rn=c(nt=>{"use strict";o();Object.defineProperty(nt,"__esModule",{value:!0});var Oi=tn(),rt=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Oi.default(this._root,this._settings)}read(){return this._reader.read()}};nt.default=rt});var nn=c(it=>{"use strict";o();Object.defineProperty(it,"__esModule",{value:!0});var Di=E("path"),Mi=le(),st=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Di.sep),this.fsScandirSettings=new Mi.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};it.default=st});var pe=c(F=>{"use strict";o();Object.defineProperty(F,"__esModule",{value:!0});F.Settings=F.walkStream=F.walkSync=F.walk=void 0;var sn=Zr(),qi=en(),Ai=rn(),ot=nn();F.Settings=ot.default;function Fi(t,e,r){if(typeof e=="function"){new sn.default(t,_e()).read(e);return}new sn.default(t,_e(e)).read(r)}F.walk=Fi;function Ri(t,e){let r=_e(e);return new Ai.default(t,r).read()}F.walkSync=Ri;function Li(t,e){let r=_e(e);return new qi.default(t,r).read()}F.walkStream=Li;function _e(t={}){return t instanceof ot.default?t:new ot.default(t)}});var ge=c(ut=>{"use strict";o();Object.defineProperty(ut,"__esModule",{value:!0});var xi=E("path"),ji=Y(),on=L(),at=class{constructor(e){this._settings=e,this._fsStatSettings=new ji.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return xi.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:on.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!on.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};ut.default=at});var ht=c(lt=>{"use strict";o();Object.defineProperty(lt,"__esModule",{value:!0});var Ii=E("stream"),Bi=Y(),Ni=pe(),Wi=ge(),ct=class extends Wi.default{constructor(){super(...arguments),this._walkStream=Ni.walkStream,this._stat=Bi.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),s=new Ii.PassThrough({objectMode:!0});s._write=(i,a,d)=>this._getEntry(n[i],e[i],r).then(f=>{f!==null&&r.entryFilter(f)&&s.push(f),i===n.length-1&&s.end(),d()}).catch(d);for(let i=0;i<n.length;i++)s.write(i);return s}_getEntry(e,r,n){return this._getStat(e).then(s=>this._makeEntry(s,r)).catch(s=>{if(n.errorFilter(s))return null;throw s})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(s,i)=>s===null?r(i):n(s))})}};lt.default=ct});var an=c(dt=>{"use strict";o();Object.defineProperty(dt,"__esModule",{value:!0});var Vi=pe(),Ci=ge(),Yi=ht(),ft=class extends Ci.default{constructor(){super(...arguments),this._walkAsync=Vi.walk,this._readerStream=new Yi.default(this._settings)}dynamic(e,r){return new Promise((n,s)=>{this._walkAsync(e,r,(i,a)=>{i===null?n(a):s(i)})})}async static(e,r){let n=[],s=this._readerStream.static(e,r);return new Promise((i,a)=>{s.once("error",a),s.on("data",d=>n.push(d)),s.once("end",()=>i(n))})}};dt.default=ft});var un=c(pt=>{"use strict";o();Object.defineProperty(pt,"__esModule",{value:!0});var X=L(),_t=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let r=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:e,segments:r,sections:n})}}_getPatternSegments(e){return X.pattern.getPatternParts(e,this._micromatchOptions).map(n=>X.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:X.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return X.array.splitWhen(e,r=>r.dynamic&&X.pattern.hasGlobStar(r.pattern))}};pt.default=_t});var cn=c(mt=>{"use strict";o();Object.defineProperty(mt,"__esModule",{value:!0});var Hi=un(),gt=class extends Hi.default{match(e){let r=e.split("/"),n=r.length,s=this._storage.filter(i=>!i.complete||i.segments.length>n);for(let i of s){let a=i.sections[0];if(!i.complete&&n>a.length||r.every((f,h)=>{let u=i.segments[h];return!!(u.dynamic&&u.patternRe.test(f)||!u.dynamic&&u.pattern===f)}))return!0}return!1}};mt.default=gt});var ln=c(St=>{"use strict";o();Object.defineProperty(St,"__esModule",{value:!0});var me=L(),Ui=cn(),yt=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let s=this._getMatcher(r),i=this._getNegativePatternsRe(n);return a=>this._filter(e,a,s,i)}_getMatcher(e){return new Ui.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(me.pattern.isAffectDepthOfReadingPattern);return me.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,s){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=me.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(i,n)?!1:this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let s=e.split("/").length;return n-s}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!me.pattern.matchAny(e,r)}};St.default=yt});var hn=c(vt=>{"use strict";o();Object.defineProperty(vt,"__esModule",{value:!0});var V=L(),Pt=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let[n,s]=V.pattern.partitionAbsoluteAndRelative(r),i={positive:{all:V.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:V.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:V.pattern.convertPatternsToRe(s,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return a=>this._filter(a,i)}_filter(e,r){let n=V.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let s=this._isMatchToPatternsSet(n,r,e.dirent.isDirectory());return this._settings.unique&&s&&this._createIndexRecord(n),s}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,r,n){return!(!this._isMatchToPatterns(e,r.positive.all,n)||this._isMatchToPatterns(e,r.negative.relative,n)||this._isMatchToAbsoluteNegative(e,r.negative.absolute,n))}_isMatchToAbsoluteNegative(e,r,n){if(r.length===0)return!1;let s=V.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(s,r,n)}_isMatchToPatterns(e,r,n){if(r.length===0)return!1;let s=V.pattern.matchAny(e,r);return!s&&n?V.pattern.matchAny(e+"/",r):s}};vt.default=Pt});var fn=c(bt=>{"use strict";o();Object.defineProperty(bt,"__esModule",{value:!0});var Gi=L(),Et=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Gi.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};bt.default=Et});var _n=c(Tt=>{"use strict";o();Object.defineProperty(Tt,"__esModule",{value:!0});var dn=L(),wt=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=dn.path.makeAbsolute(this._settings.cwd,r),r=dn.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Tt.default=wt});var ye=c(Ot=>{"use strict";o();Object.defineProperty(Ot,"__esModule",{value:!0});var Qi=E("path"),$i=ln(),Xi=hn(),Ji=fn(),Ki=_n(),kt=class{constructor(e){this._settings=e,this.errorFilter=new Ji.default(this._settings),this.entryFilter=new Xi.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new $i.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Ki.default(this._settings)}_getRootDirectory(e){return Qi.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Ot.default=kt});var pn=c(Mt=>{"use strict";o();Object.defineProperty(Mt,"__esModule",{value:!0});var zi=an(),Zi=ye(),Dt=class extends Zi.default{constructor(){super(...arguments),this._reader=new zi.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(i=>n.transform(i))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Mt.default=Dt});var gn=c(At=>{"use strict";o();Object.defineProperty(At,"__esModule",{value:!0});var eo=E("stream"),to=ht(),ro=ye(),qt=class extends ro.default{constructor(){super(...arguments),this._reader=new to.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),s=this.api(r,e,n),i=new eo.Readable({objectMode:!0,read:()=>{}});return s.once("error",a=>i.emit("error",a)).on("data",a=>i.emit("data",n.transform(a))).once("end",()=>i.emit("end")),i.once("close",()=>s.destroy()),i}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};At.default=qt});var mn=c(Rt=>{"use strict";o();Object.defineProperty(Rt,"__esModule",{value:!0});var no=Y(),so=pe(),io=ge(),Ft=class extends io.default{constructor(){super(...arguments),this._walkSync=so.walkSync,this._statSync=no.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let s of e){let i=this._getFullEntryPath(s),a=this._getEntry(i,s,r);a===null||!r.entryFilter(a)||n.push(a)}return n}_getEntry(e,r,n){try{let s=this._getStat(e);return this._makeEntry(s,r)}catch(s){if(n.errorFilter(s))return null;throw s}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Rt.default=Ft});var yn=c(xt=>{"use strict";o();Object.defineProperty(xt,"__esModule",{value:!0});var oo=mn(),ao=ye(),Lt=class extends ao.default{constructor(){super(...arguments),this._reader=new oo.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};xt.default=Lt});var Sn=c($=>{"use strict";o();Object.defineProperty($,"__esModule",{value:!0});$.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Q=E("fs"),uo=E("os"),co=Math.max(uo.cpus().length,1);$.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Q.lstat,lstatSync:Q.lstatSync,stat:Q.stat,statSync:Q.statSync,readdir:Q.readdir,readdirSync:Q.readdirSync};var jt=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,co),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},$.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};$.default=jt});var _o=c((du,vn)=>{o();var Pn=Pr(),lo=pn(),ho=gn(),fo=yn(),It=Sn(),k=L();async function Bt(t,e){M(t);let r=Nt(t,lo.default,e),n=await Promise.all(r);return k.array.flatten(n)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(h,u){M(h);let _=Nt(h,fo.default,u);return k.array.flatten(_)}t.sync=e;function r(h,u){M(h);let _=Nt(h,ho.default,u);return k.stream.merge(_)}t.stream=r;function n(h,u){M(h);let _=[].concat(h),p=new It.default(u);return Pn.generate(_,p)}t.generateTasks=n;function s(h,u){M(h);let _=new It.default(u);return k.pattern.isDynamicPattern(h,_)}t.isDynamicPattern=s;function i(h){return M(h),k.path.escape(h)}t.escapePath=i;function a(h){return M(h),k.path.convertPathToPattern(h)}t.convertPathToPattern=a;let d;(function(h){function u(p){return M(p),k.path.escapePosixPath(p)}h.escapePath=u;function _(p){return M(p),k.path.convertPosixPathToPattern(p)}h.convertPathToPattern=_})(d=t.posix||(t.posix={}));let f;(function(h){function u(p){return M(p),k.path.escapeWindowsPath(p)}h.escapePath=u;function _(p){return M(p),k.path.convertWindowsPathToPattern(p)}h.convertPathToPattern=_})(f=t.win32||(t.win32={}))})(Bt||(Bt={}));function Nt(t,e,r){let n=[].concat(t),s=new It.default(r),i=Pn.generate(n,s),a=new e(s);return i.map(a.read,a)}function M(t){if(![].concat(t).every(n=>k.string.isString(n)&&!k.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}vn.exports=Bt});export{dr as a,_o as b};
|
|
2
2
|
/*! Bundled license information:
|
|
3
3
|
|
|
4
4
|
queue-microtask/index.js:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as _,v as R}from"./chunk-
|
|
1
|
+
import{p as _,v as R}from"./chunk-Z5DDPQ26.js";import{c as g,l as P}from"./chunk-M5KKLAM6.js";import{b as N}from"./chunk-2Y6CYLKF.js";import{D as w,F as v,R as L,w as T,z as C}from"./chunk-6YCGMS7X.js";import{m as F}from"./chunk-ZTE46E4Z.js";import{Aa as I,Ca as k,Ta as A,Va as E,ka as b,ma as f,ua as y}from"./chunk-3TFUSDHY.js";import{d as r}from"./chunk-773TIA5M.js";import{a as H}from"./chunk-CTNBSUVU.js";import{e as D,g as d}from"./chunk-VKWPEFWQ.js";d();d();var h="https://github.com/Shopify/skeleton-theme.git",q="https://github.com/Shopify/theme-liquid-docs.git",S={all:"All",github:"VS Code (GitHub Copilot)",cursor:"Cursor",claude:"Claude"};async function G(t,e){await U(t,e)}async function O(t,e){await U(t,e,!0)}async function U(t,e,o){await w([{title:`Cloning ${t} into ${e}`,task:async()=>{await g({repoUrl:t,destination:e,latestTag:o,shallow:!0}),await P(e),t===h&&(await Promise.all(Object.keys(S).map(async c=>x(r(e,`.${c}`)))),await x(r(e,".git")))}}])}async function x(t){await A(t)&&await k(t)}async function M(){return await C({message:"Which LLM instruction file would you like to include in your theme?",choices:[...Object.entries(S).map(([e,o])=>({label:o,value:e})),{label:"Skip",value:null}]})}async function $(t,e){let o=[];await w([{title:`Adding AI instructions into ${t}`,task:async()=>{await b(async c=>{await g({repoUrl:q,destination:c,shallow:!0});let l=e==="all"?Object.keys(S).filter(a=>a!=="all"):[e];try{let a=r(c,"ai","github","copilot-instructions.md"),s=await f(a),n=r(t,"AGENTS.md"),u=`# AGENTS.md
|
|
2
2
|
|
|
3
3
|
${s}`;await y(n,u),(await Promise.all(l.map(p=>W(t,n,p)))).forEach(p=>{p.copiedFile&&o.push(p.copiedFile)})}catch{throw new F("Failed to create AI instructions")}})}}]),o.length>0&&T({headline:"Files created instead of symlinks.",body:`Shopify CLI attempted to create symbolic links between AGENTS.md and ${o.join(", ")}, but your system doesn't have Developer Mode enabled or symlinks are disabled. Separate files were created instead.`})}async function W(t,e,o){if(o==="cursor")return{};let l={github:"copilot-instructions.md",claude:"CLAUDE.md"}[o],a=r(t,l);try{return await I(e,a),{}}catch(s){if(s instanceof Error){let n=await f(e);return await y(a,n),{copiedFile:l}}else throw s}}var m=D(H(),1);var j,i=class extends R{async command(e,o,c,l){let a=l.name??await this.promptName(e.path),s=e["clone-url"],n=r(e.path,a);if(e.latest?await O(s,n):await G(s,n),!L())return;let u=await M();u&&await $(n,u)}async promptName(e){let o=await E({suffix:"theme",directory:e,family:"creative"});return v({message:"Name of the new theme",defaultValue:o})}};j=i;i.summary="Clones a Git repository to use as a starting point for building a new theme.";i.descriptionWithMarkdown=`Clones a Git repository to your local machine to use as the starting point for building a theme.
|
|
4
4
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as x,c as D,f as M}from"./chunk-
|
|
1
|
+
import{b as x,c as D,f as M}from"./chunk-TQNALMQH.js";import{c as w}from"./chunk-EZ7EBYDT.js";import{C as h,F as e,v as y,z as s}from"./chunk-6YCGMS7X.js";import{a as o}from"./chunk-M4BEPPA3.js";import{Mb as _,ua as u}from"./chunk-3TFUSDHY.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();async function $(){let a=new Date,n=`${a.getFullYear()}-${(a.getMonth()+1).toString().padStart(2,"0")}-${a.getDate().toString().padStart(2,"0")}`,i=w(),t=await s({message:"Type of message?",choices:[{label:"Info",value:"info"},{label:"Warning",value:"warning"},{label:"Error",value:"error"}]}),b=await e({message:"Title"}),E=await e({message:"Message"}),S=await s({message:"Frequency",choices:[{label:"Only once",value:"once"},{label:"Once a week",value:"once_a_week"},{label:"Once a day",value:"once_a_day"},{label:"Always",value:"always"}]}),r=await e({message:"Minimum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),l=await e({message:"Maximum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),m=await e({message:"Minimum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),c=await e({message:"Maximum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),f=await e({message:"Surface. E.g.: app, theme, hydrogen, theme_app_extension... (optional)",allowEmpty:!0}),g=await e({message:"Comma separated list of commands. E.g.: app:generate:extension (optional)",allowEmpty:!0}),T=await e({message:"Slack channel of the team who will own this notification"}),d=await x(),v={id:i,type:t,title:b,frequency:S,message:E,minVersion:r.length===0?void 0:r,maxVersion:l.length===0?void 0:l,minDate:m.length===0?void 0:m,maxDate:c.length===0?void 0:c,surface:f.length===0?void 0:f,commands:g.length===0?void 0:g.split(",").map(N=>N.trim()),ownerChannel:T};d.notifications.push(v),await u("./notifications.json",JSON.stringify(d)),y({headline:"notifications.json file updated successfully."})}async function j(){let a=await D(),n={type:{header:"Type",color:"dim"},title:{header:"Title",color:"dim"},message:{header:"Message",color:"dim"},filters:{header:"Filters",color:"dim"}},i=a.notifications.map(t=>({type:t.type,title:t.title??"",message:t.message,filters:M(t)}));h({rows:i,columns:n}),_(`
|
|
2
2
|
`)}export{$ as a,j as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as l}from"./chunk-2Y6CYLKF.js";import{b as u}from"./chunk-2MCH43SL.js";import{n as f}from"./chunk-EZ7EBYDT.js";import{m as n}from"./chunk-ZTE46E4Z.js";import{Lb as m}from"./chunk-3TFUSDHY.js";import{a as g}from"./chunk-CTNBSUVU.js";import{e as v,g as o}from"./chunk-VKWPEFWQ.js";o();o();var S="https://shopify.dev/assistant/search",w="X-Shopify-Surface",A="cli";async function y(s,e,p){let i=new URLSearchParams({query:s});e&&i.append("api_name",e),p&&i.append("api_version",p);let r;try{r=await f(`${S}?${i.toString()}`,{headers:{Accept:"application/json",[w]:A}})}catch{throw new n("Could not reach shopify.dev to run the search.","Check your network connection and try again.")}let h=await r.text();if(!r.ok){let d=`${r.status} ${r.statusText}`;try{let t=JSON.parse(h);t?.error&&(d=t.error)}catch(t){if(!(t instanceof SyntaxError))throw t}throw new n(`Search failed: ${d}`)}m(h)}var a=v(g(),1),c=class s extends u{static{this.description="Query the shopify.dev vector store and print the most relevant documentation chunks as JSON. Best for programmatic discovery \u2014 surfacing the relevant pieces of documentation for a topic, rather than retrieving a whole document. To download a full document verbatim, use `doc fetch`."}static{this.examples=[`# search shopify.dev for a topic
|
|
2
2
|
shopify doc search --query "subscribe to webhooks"
|
|
3
3
|
|
|
4
4
|
# narrow the search to a specific API and version
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as I}from"./chunk-VKWPEFWQ.js";I();var o="4.6.0";export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-4FEBSLSU.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends o{};export{t as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as R}from"./chunk-VJEKDBGZ.js";import{e as l}from"./chunk-
|
|
1
|
+
import{a as R}from"./chunk-VJEKDBGZ.js";import{e as l}from"./chunk-6YCGMS7X.js";import{f as I}from"./chunk-VZKR2YFM.js";import{m as n}from"./chunk-ZTE46E4Z.js";import{Ea as b,Fb as a,Hb as s,Pb as f,Ta as G,Wa as C}from"./chunk-3TFUSDHY.js";import{a as k,q as w}from"./chunk-J3IHP46B.js";import{q as g}from"./chunk-773TIA5M.js";import{e as D,g as $}from"./chunk-VKWPEFWQ.js";$();var A=D(R());async function r(t,e){try{return(await l("git",t,{cwd:e})).stdout}catch(o){if(o instanceof Error){let i=new n(o.message);throw i.stack=o.stack,"exitCode"in o&&Object.assign(i,{exitCode:o.exitCode}),i}throw o}}async function K(t,e="main"){f(s`Initializing git repository at ${a.path(t)}...`),await h(),await r(["init"],t),await r(["checkout","-b",e],t)}async function Q(t,e){try{return(await r(["check-ignore",...e],t)).split(`
|
|
2
2
|
`).filter(Boolean)}catch(o){if(o instanceof n&&"exitCode"in o&&o.exitCode===1)return[];throw o}}async function V(t){return I("cmd_all_timing_network_ms")(async()=>{let{repoUrl:e,destination:o,shallow:i,latestTag:m}=t;if(f(s`Git-cloning repository ${e} into ${a.path(o)}...`),await h(),await G(o)){if(!await b(o))throw new n(s`Can't clone to ${a.path(o)}`,"The path exists but isn't a directory.");if((await C(["*",".*"],{cwd:o,deep:1,onlyFiles:!1})).length>0)throw new n(s`Directory ${a.path(o)} already exists and is not empty`,s`Choose a different name or remove the existing directory first.`)}let[v,d]=e.split("#");if(d&&m)throw new n("Error cloning the repository. Git can't clone the latest release with a 'branch'.");if(i&&m)throw new n("Error cloning the repository. Git can't clone the latest release with the 'shallow' property.");let u=["clone","--recurse-submodules"];d&&u.push("--branch",d),i&&u.push("--depth","1"),k()||u.push("-c","core.askpass=true"),u.push(v,o);try{if(await l("git",u),m){let c=await S(o,e);await r(["checkout",c],o)}}catch(c){if(c instanceof n)throw c;if(c instanceof Error){let x=new n(c.message);throw x.stack=c.stack,x}throw c}})}async function S(t,e){let o=await F(t);if(!o)throw new n(`Couldn't obtain the most recent tag of the repository ${e}`);return o}async function X(t){let o=await r(["log","-1","--format=%H%x00%ai%x00%s%x00%D%x00%b%x00%an%x00%ae"],t);if(!o.trim())throw new n("Must have at least one commit to run command",s`Run ${a.genericShellCommand("git commit -m 'Initial commit'")} to create your first commit.`);let i=o.split("\0");return{hash:i[0],date:i[1],message:i[2],refs:i[3],body:i[4],author_name:i[5],author_email:i[6]}}async function Y(t){await r(["add","--all"],t)}async function Z(t,e){let o=["commit","-m",t];return e?.author&&o.push("--author",e.author),await r(o,e?.directory),(await r(["rev-parse","HEAD"],e?.directory)).trim()}async function h(){if(!await w())throw new n("Git is necessary in the environment to continue",s`Install ${a.link("git","https://git-scm.com/book/en/v2/Getting-Started-Installing-Git")}`)}var p=class extends n{};async function N(t){if(await h(),!await E(t))throw new p(`${a.path(t??g())} is not a Git directory`)}async function tt(t){return await w()?E(t):!1}async function E(t){try{return await l("git",["rev-parse","--git-dir"],{cwd:t}),!0}catch(e){if(e instanceof Error&&"exitCode"in e&&e.exitCode===128)return!1;throw e}}var y=class extends n{};async function et(t){if(!await T(t))throw new y(`${a.path(t??g())} is not a clean Git directory`)}async function T(t){return(await r(["status","--porcelain"],t)).trim()===""}async function F(t){try{return(await r(["describe","--tags","--abbrev=0"],t)).trim()||void 0}catch(e){if(e instanceof n&&"exitCode"in e&&e.exitCode===128)return;throw e}}async function ot(t,e="origin"){if(f(s`Removing git remote ${e} from ${a.path(t)}...`),await h(),!(await r(["remote"],t)).split(`
|
|
3
3
|
`).filter(Boolean).includes(e)){f(s`Remote ${e} does not exist, no action needed`);return}await r(["remote","remove",e],t)}export{K as a,Q as b,V as c,X as d,Y as e,Z as f,N as g,tt as h,y as i,et as j,T as k,ot as l};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as r}from"./chunk-
|
|
1
|
+
import{b as r}from"./chunk-3NO6PWNL.js";import{b as a}from"./chunk-2MCH43SL.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var i=class extends a{static{this.summary="Upgrades Shopify CLI."}static{this.descriptionWithMarkdown="Upgrades Shopify CLI using your package manager."}static{this.description=this.descriptionWithoutMarkdown()}async run(){await r()}};export{i as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as N,b as $,c as w}from"./chunk-FT4HLDK7.js";import{m as T}from"./chunk-EZ7EBYDT.js";import{O as P,P as k,a as F}from"./chunk-6YCGMS7X.js";import{a as D,b}from"./chunk-Y4QC2YVE.js";import{p as A}from"./chunk-ZTE46E4Z.js";import{Ia as U,La as I,N as x,Pa as O,Pb as u,Ua as p,xa as y,za as _}from"./chunk-3TFUSDHY.js";import{f as h}from"./chunk-J3IHP46B.js";import{d as m,i as l,j as S}from"./chunk-773TIA5M.js";import{g as f}from"./chunk-VKWPEFWQ.js";f();f();import{fileURLToPath as q}from"url";import Y from"util";import{pipeline as j}from"stream";import{execSync as z,execFileSync as B}from"child_process";var H="2024.8.2",W=`https://github.com/cloudflare/cloudflared/releases/download/${H}/`,G={arm64:"cloudflared-linux-arm64",arm:"cloudflared-linux-arm",x64:"cloudflared-linux-amd64",ia32:"cloudflared-linux-386"},V={arm64:"cloudflared-darwin-arm64.tgz",x64:"cloudflared-darwin-amd64.tgz"},X={x64:"cloudflared-windows-amd64.exe",ia32:"cloudflared-windows-386.exe",arm64:"cloudflared-windows-amd64.exe"},v={linux:G,darwin:V,win32:X};function Z(r=process.platform,t=process.arch){if(!Object.keys(v).includes(r))throw new Error(`Unsupported system platform: ${r}`);let n=v[r][t];if(n===void 0)throw new Error(`Unsupported system arch: ${t}`);return W+n}function J(r=process.env,t=process.platform){return r.SHOPIFY_CLI_CLOUDFLARED_PATH?r.SHOPIFY_CLI_CLOUDFLARED_PATH:m(l(q(import.meta.url)),"..","bin",t==="win32"?"cloudflared.exe":"cloudflared")}async function g(r=process.env,t=process.platform,e=process.arch){if(r.SHOPIFY_CLI_IGNORE_CLOUDFLARED){u("Skipping cloudflared installation because SHOPIFY_CLI_IGNORE_CLOUDFLARED is set");return}let n=Z(t,e),o=J(r,t);if(p(o))try{let a=B(o,["--version"],{encoding:"utf8"}).split(" "),i=a.length>2?a[2]:"0.0.0";if(!K(H,i)){u("cloudflared already installed, skipping");return}}catch{u("version check failed, reinstalling")}if(t==="linux")await Q(n,o);else if(t==="darwin")await rt(n,o);else if(t==="win32")await tt(n,o);else throw new Error(`Unsupported platform: ${t}`)}function K(r,t){let[e,n,o]=r.split(".").map(Number),[a,i,c]=t.split(".").map(Number);return e!==a?(e??0)>(a??0):n!==i?(n??0)>(i??0):(o??0)>(c??0)}async function Q(r,t){await C(r,t),await O(t,"755")}async function tt(r,t){await C(r,t)}async function rt(r,t){await C(r,`${t}.tgz`);let e=S(`${t}.tgz`);z(`tar -xzf ${e}`,{cwd:l(t)}),U(`${t}.tgz`),await _(`${l(t)}/cloudflared`,t)}async function C(r,t){p(l(t))||y(l(t));let e=Y.promisify(j),n=await T(r,{redirect:"follow"},"slow-request");if(!n.ok||!n.body)throw new Error(`Couldn't download file ${r} (${n.status} ${n.statusText})`);let o=I(t);return await e(n.body,o),t}import{Writable as et}from"stream";import{fileURLToPath as nt}from"url";var $t=$({provider:w,action:it}),ot=h()?.2:40,st=5;async function it(r){try{let t=new R(r);return await t.startTunnel(),D(t)}catch(t){let e=new N("unknown",t.message);return b(e)}}var R=class{constructor(t){this.provider=w,this.currentStatus={status:"not-started"},this.abortController=void 0,this.port=t}async startTunnel(){try{await g(),this.tunnel()}catch(t){this.currentStatus={status:"error",message:t.message,tryMessage:d()}}}getTunnelStatus(){return this.currentStatus}stopTunnel(){this.abortController?.abort()}tunnel(t=0){this.abortController=new F;let e=!1;if(t>=st){e=!0,this.currentStatus={status:"error",message:"Could not start Cloudflare tunnel: max retries reached.",tryMessage:d()};return}let n=["tunnel","--url",`http://localhost:${this.port}`,"--no-autoupdate"],o=[],a=!1,i;this.currentStatus={status:"starting"},setTimeout(()=>{if(!e){e=!0;let s=x(o).slice(-5).join(`
|
|
2
2
|
`);s===""?this.currentStatus={status:"error",message:"Could not start Cloudflare tunnel: unknown error.",tryMessage:d()}:this.currentStatus={status:"error",message:s,tryMessage:d()},this.abortController?.abort()}},ot*1e3);let c=this,E=new et({write(s,mt,M){if(u(s.toString()),e)return;i??(i=at(s)),ct(s)&&(a=!0),a&&(i?(e=!0,c.currentStatus={status:"connected",url:i}):c.currentStatus={status:"error",message:"Could not start Cloudflare tunnel: URL not found."});let L=lt(s);L&&o.push(L),M()}});P(dt(),n,{stdout:E,stderr:E,signal:this.abortController.signal,externalErrorHandler:async s=>{if(e)throw new A(`Could not start Cloudflare tunnel: process crashed after stablishing a connection: ${s.message}`,d());u(`Cloudflare tunnel crashed: ${s.message}, restarting...`),h()||await k(1),this.tunnel(t+1)}})}};function d(){return["You can run the command again, or try networking with Shopify via",{command:"--use-localhost"},"or",{command:"--tunnel-url <custom tunnel>"},".",{link:{label:"See documentation for details.",url:"https://shopify.dev/docs/apps/build/cli-for-apps/networking-options"}}]}function at(r){let t=new RegExp(`(https:\\/\\/[^\\s]+\\.${ft()})`),e=r.toString().match(t)??void 0;return e&&e[1]}function lt(r){if([/failed to request quick Tunnel/,/failed to unmarshal quick Tunnel/,/failed to parse quick Tunnel ID/,/failed to provision routing/,/ERR Couldn't start tunnel/,/ERR Failed to serve quic connection/,/ERR Failed to create new quic connection error/].some(n=>n.test(r.toString())))return`Could not start Cloudflare tunnel: ${ut(r.toString())}`}function ut(r){let t=/^[0-9TZ:-]+ (ERR )?/g,e=/connIndex.*/g;return r.replace(t,"").replace(e,"")}function ct(r){let t=r.toString().match(/(INF Registered tunnel connection|INF Connection)/)??void 0;return t&&t[0]}function dt(){return process.env.SHOPIFY_CLI_CLOUDFLARED_PATH?process.env.SHOPIFY_CLI_CLOUDFLARED_PATH:m(l(nt(import.meta.url)),"..","bin",process.platform==="win32"?"cloudflared.exe":"cloudflared")}function ft(){return process.env.SHOPIFY_CLI_CLOUDFLARED_DOMAIN??"trycloudflare.com"}export{$t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h,b as w}from"./chunk-
|
|
1
|
+
import{a as h,b as w}from"./chunk-E3RDAVJT.js";import{m as f}from"./chunk-EZ7EBYDT.js";import{P as d}from"./chunk-6YCGMS7X.js";import{m as i}from"./chunk-ZTE46E4Z.js";import{Ga as m,na as p}from"./chunk-3TFUSDHY.js";import{d as u}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();import{writeFile as g}from"fs/promises";var S=1024*1024,y=100,U=y*S,E=3,_=new Set([408,429,500,502,503,504]);async function j(o,e){let t=u(e,"manifest.json");await g(t,JSON.stringify(o,null,2))}var A=["!**/*.js.map","!**/*.metafile.json"];async function k(o,e,t){let n=t??["**/*",...A];e.endsWith(".br")?await w({inputDirectory:o,outputPath:e,matchFilePattern:n}):await h({inputDirectory:o,outputZipPath:e,matchFilePattern:n})}async function C(o,e){let t=await m(e);if(t>U){let s=`${(Math.ceil(t/S*100)/100).toFixed(2)} MB`;throw new i(`Your app bundle exceeds the ${y} MB upload limit (it is ${s}).`,"Check the asset paths in your extension configuration \u2014 a misconfigured source can pull in much more than intended. Exclude large files or directories from your bundle, then try again.")}let n=p(e),r;for(let s=1;s<=E;s++){if(r=await f(o,{method:"put",body:n},"slow-request"),r.ok)return;let T=s===E;if(_.has(r.status)&&!T){await r.text().catch(()=>{}),await d(2**s*.1);continue}break}let a=r?.status,c=(await r?.text().catch(()=>""))?.trim();throw new i(`Failed to upload your app bundle to storage${a?` (HTTP ${a})`:""}.`,"This is usually transient. Please try again, and check your network connection if it persists.",c?[`Storage responded with: ${c.slice(0,300)}`]:void 0)}async function D(o,e){let t=await o.generateSignedUploadUrl(e);if(!t.assetUrl||t.userErrors?.length>0){let n=t.userErrors.map(r=>r.message).join(", ");throw new i(n)}return t.assetUrl}export{j as a,A as b,k as c,C as d,D as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
1
|
+
import{a as u}from"./chunk-B6SY4BIK.js";import{g as d}from"./chunk-VKWPEFWQ.js";d();var m=!1;function v(){return m}function y(){let t=0,e=!1,i=setInterval(()=>{if(!e){if(v()||t>=12e4){e=!0,clearInterval(i),u(process.pid,"SIGINT",!1,()=>{process.exit(0)});return}t+=100}},100)}var k=async({config:a,Command:o})=>{await I(o);let t=await import("./metadata-TYZDEER5.js"),{commandStartOptions:e}=t.getAllSensitiveMetadata();e&&await t.addSensitiveMetadata(()=>({commandStartOptions:{...e,endTime:new Date().getTime()}}));let{postrun:i}=await import("./deprecations-4TY4DNME.js");i(o);let{outputDebug:n}=await import("./output-JG5I2TEL.js"),r=o.id.replace(/:/g," ");n(`Completed command ${r}`),!r.includes("notifications")&&!r.includes("upgrade")&&await M();let{reportAnalyticsEvent:p}=await import("./analytics-6S5JVSRO.js");await p({config:a,exitMode:"ok"}),m=!0};async function M(){let{versionToAutoUpgrade:a,warnIfUpgradeAvailable:o}=await import("./upgrade-EKAG4IV7.js"),t=a();if(!t){await o();return}if(process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1")await l(t);else{let{runAtMinimumInterval:i}=await import("./conf-store-N5P2ZEAD.js");await i("auto-upgrade",{days:1},async()=>{await l(t)})}}async function l(a){let[{CLI_KIT_VERSION:o},{isMajorVersionChange:t},{outputWarn:e,outputDebug:i},{getOutputUpdateCLIReminder:n,runCLIUpgrade:r,hasBlockingAutoUpgradeNotification:p},s]=await Promise.all([import("./version-6UBWZCNS.js"),import("./version-XRU7TEAI.js"),import("./output-JG5I2TEL.js"),import("./upgrade-EKAG4IV7.js"),import("./metadata-TYZDEER5.js")]);if(t(o,a)){e(n(a,!0)),await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"major_version"}));return}if(await p()){await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"blocked_by_notification"}));return}try{await r({autoupgrade:!0}),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!0}))}catch(f){let c=`Auto-upgrade failed: ${f}`;i(c),e(n(a)),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!1}));let[{sendErrorToBugsnag:g},{inferPackageManagerForGlobalCLI:w}]=await Promise.all([import("./error-handler-IYGE3Z72.js"),import("./is-global-RQCPBQA3.js")]),_=Object.assign(new Error(c),{packageManager:w(),platform:process.platform,cliVersion:o});await g(_,"expected_error")}}async function I(a){let o=new Date().getTime();if(a&&"analyticsStopCommand"in a&&typeof a.analyticsStopCommand=="function"){let t=a.analyticsStopCommand();if(t){let e=await import("./metadata-TYZDEER5.js"),{commandStartOptions:i}=e.getAllSensitiveMetadata();if(!i)return;await e.addSensitiveMetadata(()=>({commandStartOptions:{...i,startTime:o,startCommand:t}}))}}}export{y as a,k as b};
|