@shopify/cli 4.6.0 → 4.7.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-6LI5GLWS.js +1 -0
- package/dist/analytics-UNRIIG4Y.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-4YCMEC5R.js → chunk-2CYVZUYT.js} +1 -1
- package/dist/{chunk-C256W7D2.js → chunk-2HK4MFWP.js} +3 -3
- package/dist/chunk-2JDCVEFK.js +1 -0
- package/dist/chunk-2SZOPJYI.js +1 -0
- package/dist/chunk-2U4P6UFZ.js +6 -0
- package/dist/{chunk-TAFOSPBW.js → chunk-2WJAAJVX.js} +1 -1
- package/dist/chunk-37TEEITE.js +2 -0
- package/dist/chunk-3K6VHXC2.js +4 -0
- package/dist/chunk-4HV6A6UH.js +8 -0
- package/dist/chunk-4JY2P2A5.js +1 -0
- package/dist/chunk-4LRG5YBS.js +3 -0
- package/dist/chunk-4W3UE2ZI.js +1 -0
- package/dist/chunk-5CADTCJE.js +25 -0
- package/dist/chunk-5CR5YJTU.js +11 -0
- package/dist/chunk-5CYJG63I.js +1 -0
- package/dist/chunk-5HBIIYSK.js +1 -0
- package/dist/chunk-5HPBQ6U5.js +1 -0
- package/dist/chunk-5NO5OXYP.js +15 -0
- package/dist/chunk-63CIFL36.js +6 -0
- package/dist/chunk-6EBLULOC.js +1 -0
- package/dist/{chunk-FMTPUYSH.js → chunk-6ENBE43F.js} +1 -1
- package/dist/chunk-6OFGSZD6.js +1 -0
- package/dist/chunk-6PDR2IUL.js +11 -0
- package/dist/chunk-6VGJVXZI.js +3 -0
- package/dist/{chunk-ILQXBASM.js → chunk-6VRXGEIW.js} +1 -1
- package/dist/chunk-6WZYX5RO.js +1 -0
- package/dist/chunk-7AALWJAO.js +7 -0
- package/dist/chunk-7DOWT5JZ.js +20 -0
- package/dist/chunk-7JIQXGDE.js +9 -0
- package/dist/chunk-7MHANY34.js +1 -0
- package/dist/chunk-7WTNEG2F.js +3 -0
- package/dist/chunk-7Y7AZRL3.js +10 -0
- package/dist/chunk-ACTDYTAV.js +317 -0
- package/dist/{chunk-Y2PC2BBJ.js → chunk-AEUCDGTB.js} +4 -4
- package/dist/chunk-AGOEROAI.js +10 -0
- package/dist/{chunk-WPRAJ25Z.js → chunk-AH2ZGMDM.js} +1 -1
- package/dist/chunk-AMLWPYNA.js +4 -0
- package/dist/chunk-B4OMIONW.js +5 -0
- package/dist/chunk-BR6DBMQA.js +5 -0
- package/dist/chunk-CFWHR74L.js +1 -0
- package/dist/chunk-CHMEDVDZ.js +15 -0
- package/dist/chunk-CIH6LPTG.js +6 -0
- package/dist/chunk-CMYQXGLO.js +1 -0
- package/dist/chunk-CTRXLZAJ.js +1 -0
- package/dist/{chunk-WWX265PC.js → chunk-CYOFLJ3Z.js} +1 -1
- package/dist/{chunk-HSKB5OTM.js → chunk-CZJZCJRX.js} +1 -1
- package/dist/chunk-CZPGC2E7.js +1 -0
- package/dist/{chunk-2I62GKIH.js → chunk-D2K2ZBKH.js} +8 -8
- package/dist/chunk-DHU57LKD.js +1 -0
- package/dist/chunk-DKL6N3L2.js +1 -0
- package/dist/chunk-DMXQLI35.js +1 -0
- package/dist/chunk-DPNZWBT5.js +1 -0
- package/dist/{chunk-QU5NL2QT.js → chunk-DQCIORGH.js} +1 -1
- package/dist/chunk-DQFSKPKL.js +6 -0
- package/dist/{chunk-6Q5VRSRN.js → chunk-E2W5OYYM.js} +1 -1
- package/dist/chunk-E5T4YRGW.js +1 -0
- package/dist/chunk-EOMCXBCS.js +5 -0
- package/dist/{chunk-LWRDNTAD.js → chunk-EW55WWT7.js} +1 -1
- package/dist/{chunk-6UTUJKKC.js → chunk-F5HCSUXC.js} +5 -5
- package/dist/{chunk-W2GMKXM7.js → chunk-FCGKO2KY.js} +1 -1
- package/dist/{chunk-7CPECP5P.js → chunk-FULWTZS6.js} +1 -1
- package/dist/chunk-FWPJEL6Q.js +3 -0
- package/dist/chunk-GKOBFX4A.js +1 -0
- package/dist/chunk-GLWQMLUC.js +1 -0
- package/dist/chunk-GMTNOCMS.js +375 -0
- package/dist/chunk-GSCWZR22.js +1 -0
- package/dist/chunk-GZ64KWHX.js +8 -0
- package/dist/{chunk-72GN655L.js → chunk-H5KWM27L.js} +1 -1
- package/dist/chunk-HHVHVGRT.js +1 -0
- package/dist/{chunk-EBZ6MDEM.js → chunk-HLNJL4B6.js} +1 -1
- package/dist/{chunk-OUUOML3D.js → chunk-HZIX3DIT.js} +1 -1
- package/dist/chunk-I3N6NPHF.js +2 -0
- package/dist/chunk-JD5P5RAJ.js +1 -0
- package/dist/chunk-JJJTPEMD.js +1 -0
- package/dist/{chunk-KRZABRYT.js → chunk-JLGA3B7P.js} +1 -1
- package/dist/chunk-JQ2B3VHR.js +7 -0
- package/dist/{chunk-VZKR2YFM.js → chunk-JQISGC7D.js} +1 -1
- package/dist/chunk-JQVXH26X.js +6 -0
- package/dist/{chunk-ERCJPRN3.js → chunk-JUKAWTYY.js} +1 -1
- package/dist/{chunk-JHRZCUBE.js → chunk-JZMRBJH3.js} +1 -1
- package/dist/chunk-JZXA3H5K.js +1 -0
- package/dist/chunk-K4KTNINH.js +1 -0
- package/dist/chunk-KCS75ZM4.js +1 -0
- package/dist/{chunk-AJ6VOBXU.js → chunk-KIYHEMHD.js} +7 -7
- package/dist/chunk-KK24VGVE.js +6 -0
- package/dist/{chunk-6BX62FFE.js → chunk-KOVAFUYN.js} +1 -1
- package/dist/{chunk-QG7TELFC.js → chunk-KUNDCAQN.js} +1 -1
- package/dist/{chunk-3NO6PWNL.js → chunk-L67BU25M.js} +1 -1
- package/dist/{chunk-4KZRP2JP.js → chunk-LDF4PQ3B.js} +18 -18
- package/dist/chunk-LFOBYEWG.js +1 -0
- package/dist/chunk-LJM2DUXN.js +1 -0
- package/dist/{chunk-XWPPBOGF.js → chunk-LQ7ENG4V.js} +1 -1
- package/dist/chunk-LQCR4TGH.js +3 -0
- package/dist/{chunk-UM3OHLCX.js → chunk-LRQYUWWB.js} +1 -1
- package/dist/{chunk-CXWLHQKA.js → chunk-LWJA2DQG.js} +1 -1
- package/dist/{chunk-IKYZ5L3F.js → chunk-LZ3GZ7NS.js} +1 -1
- package/dist/chunk-MB7E5GEY.js +2 -0
- package/dist/{chunk-XERJY4IG.js → chunk-MLZLDL6B.js} +8 -8
- package/dist/chunk-MRCWOOSF.js +8 -0
- package/dist/chunk-N6YTJXIS.js +18 -0
- package/dist/chunk-NEMPLS7C.js +1 -0
- package/dist/chunk-OE3F7XXU.js +4 -0
- package/dist/chunk-OORWOTAP.js +3 -0
- package/dist/chunk-OUZGGWFN.js +1 -0
- package/dist/chunk-P5MNNBSO.js +1 -0
- package/dist/chunk-PAAKBWSF.js +1 -0
- package/dist/{chunk-5EFQILLF.js → chunk-PANGX7SA.js} +1 -1
- package/dist/{chunk-DODCPRXT.js → chunk-PIFW2R3S.js} +1 -1
- package/dist/chunk-PWSI275S.js +7 -0
- package/dist/chunk-Q5DQGV3M.js +1 -0
- package/dist/chunk-QBIVQXUJ.js +6 -0
- package/dist/chunk-QEB3HUQE.js +19 -0
- package/dist/{chunk-E3RDAVJT.js → chunk-QKGZWOOY.js} +1 -1
- package/dist/chunk-QPWMD2VR.js +1 -0
- package/dist/chunk-QRT4A2RV.js +3 -0
- package/dist/chunk-QXHENYJH.js +2 -0
- package/dist/{chunk-FPWLEGKZ.js → chunk-QZBSCOJV.js} +1 -1
- package/dist/chunk-R2R6JDNH.js +1 -0
- package/dist/chunk-RUFQCXBX.js +16 -0
- package/dist/chunk-RY2SJVWM.js +12 -0
- package/dist/chunk-RZFBGBNA.js +1 -0
- package/dist/chunk-S3P5WWJD.js +1 -0
- package/dist/chunk-SEVSMWNX.js +1 -0
- package/dist/chunk-SJMTETSU.js +32 -0
- package/dist/chunk-SSJGWLCW.js +28 -0
- package/dist/chunk-SYADOUBB.js +7 -0
- package/dist/chunk-T5JXQ7KO.js +1 -0
- package/dist/chunk-TCTVI6PK.js +1 -0
- package/dist/chunk-TSLQZTXR.js +1 -0
- package/dist/chunk-TTAPXLI5.js +1 -0
- package/dist/{chunk-MDXSLAIC.js → chunk-TY4W7AYX.js} +1 -1
- package/dist/chunk-TYIGOVRQ.js +3 -0
- package/dist/{chunk-B6SY4BIK.js → chunk-U2Z5NMXV.js} +1 -1
- package/dist/{chunk-KGZH4RFA.js → chunk-U6HYEGAE.js} +1 -1
- package/dist/chunk-U7R6LYPJ.js +5 -0
- package/dist/chunk-UPJLZHHR.js +4 -0
- package/dist/chunk-UVQL7RUY.js +1 -0
- package/dist/chunk-V2HCVJYF.js +1 -0
- package/dist/chunk-V5SC2RYQ.js +2 -0
- package/dist/chunk-VKSR6MJG.js +2 -0
- package/dist/chunk-VRVP2GQL.js +5 -0
- package/dist/{chunk-XGRVAPLR.js → chunk-WCRZJY3P.js} +1 -1
- package/dist/{chunk-XGCJWCC4.js → chunk-WHLGNDRE.js} +1 -1
- package/dist/{chunk-E3RQCWSC.js → chunk-WKUGSFTB.js} +3 -3
- package/dist/chunk-X4XP2RQJ.js +1 -0
- package/dist/chunk-XAOYKECS.js +1 -0
- package/dist/chunk-XCBEYRQI.js +3 -0
- package/dist/chunk-XHZ5BWXL.js +5 -0
- package/dist/{chunk-2JFZ6GZC.js → chunk-XLURZ6GL.js} +52 -52
- package/dist/chunk-XRT2W5Y2.js +10 -0
- package/dist/chunk-XUEMMLXK.js +1 -0
- package/dist/chunk-Y34LWI3S.js +19 -0
- package/dist/chunk-YHPBDS52.js +16 -0
- package/dist/{chunk-JS3X6BDT.js → chunk-YIZZ5LZN.js} +1 -1
- package/dist/chunk-YN6A26QL.js +836 -0
- package/dist/chunk-YOO7DLOT.js +1 -0
- package/dist/chunk-YUVE2I3C.js +1 -0
- package/dist/chunk-YY6TFARF.js +1 -0
- package/dist/chunk-Z5K4J7HQ.js +1 -0
- package/dist/chunk-ZCNIR6YU.js +1 -0
- package/dist/{chunk-OTT73YUA.js → chunk-ZO74GSWC.js} +1 -1
- package/dist/{chunk-5Y2VD4I3.js → chunk-ZRLEAF7M.js} +1 -1
- package/dist/chunk-ZSFAURIH.js +3 -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/send-analytics.d.ts +5 -0
- package/dist/cli/commands/send-analytics.js +1 -0
- 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/cli/services/doctor-release/theme/tests/init.js +4 -8
- package/dist/cli/services/doctor-release/theme/tests/push.js +3 -4
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-OAGJBITE.js +1 -0
- package/dist/custom-oclif-loader-BWAMUFQ4.js +1 -0
- package/dist/deprecations-K3NPRKBF.js +1 -0
- package/dist/dist-EXJEE23W.js +1 -0
- package/dist/dist-S62Z6IFV.js +1 -0
- package/dist/environments-ALH2N36U.js +1 -0
- package/dist/error-YX56C43A.js +1 -0
- package/dist/error-handler-FDCH72NH.js +1 -0
- package/dist/fs-SKHQZZTQ.js +1 -0
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +2 -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/index.d.ts +1 -1
- package/dist/index.js +15 -15
- package/dist/is-global-V5VORI3F.js +1 -0
- package/dist/lib-M72BVWQ3.js +1 -0
- package/dist/local-GX5AN6ZS.js +1 -0
- package/dist/metadata-XUJUTBTB.js +1 -0
- package/dist/{morph-ABSWZEVT.js → morph-77RHJICZ.js} +1 -1
- package/dist/node-package-manager-3WIYU7Y3.js +1 -0
- package/dist/notifications-system-RHULO564.js +1 -0
- package/dist/os-M6X7KOR4.js +1 -0
- package/dist/output-X47P6ICP.js +1 -0
- package/dist/{prettier-6ZMB2MMO.js → prettier-RVUAAWC7.js} +1 -1
- package/dist/system-SR5G7WEW.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-VYWSLAQ6.js +1 -0
- package/dist/upgrade-PFQ7JMXG.js +1 -0
- package/dist/version-FK4ETQ22.js +1 -0
- package/dist/version-U4GM2LNG.js +1 -0
- package/dist/workerd-NAPS5TA7.js +18 -0
- package/oclif.manifest.json +146 -120
- package/package.json +7 -8
- package/dist/analytics-6S5JVSRO.js +0 -1
- package/dist/analytics-E252SR3P.js +0 -1
- package/dist/chunk-2MCH43SL.js +0 -11
- package/dist/chunk-2SNT7U7B.js +0 -1
- package/dist/chunk-2VIUGNYO.js +0 -1
- package/dist/chunk-2Y6CYLKF.js +0 -1
- package/dist/chunk-3EHRA4LA.js +0 -1
- package/dist/chunk-3EPQ6UOK.js +0 -25
- package/dist/chunk-3TFUSDHY.js +0 -370
- package/dist/chunk-46NA23I7.js +0 -3
- package/dist/chunk-47URTBZF.js +0 -9
- package/dist/chunk-4FEBSLSU.js +0 -1
- package/dist/chunk-4HB4VZJQ.js +0 -4
- package/dist/chunk-4JARSKED.js +0 -32
- package/dist/chunk-4P7PWLUN.js +0 -1
- package/dist/chunk-53ZA2HD3.js +0 -1
- package/dist/chunk-57YF2UNT.js +0 -1
- package/dist/chunk-5JPV3HPJ.js +0 -1
- package/dist/chunk-5LJ5H4TD.js +0 -7
- package/dist/chunk-6FJBCRVK.js +0 -15
- package/dist/chunk-6SXB44CE.js +0 -1
- package/dist/chunk-6YCGMS7X.js +0 -28
- package/dist/chunk-7HAFBCL3.js +0 -2
- package/dist/chunk-7XPFLQEM.js +0 -1
- package/dist/chunk-A3JE5LX3.js +0 -7
- package/dist/chunk-A4SBXDZB.js +0 -14
- package/dist/chunk-B2WK53GH.js +0 -1
- package/dist/chunk-B34VYVGV.js +0 -1
- package/dist/chunk-BBEHNPKK.js +0 -7
- package/dist/chunk-BCTMBKAU.js +0 -7
- package/dist/chunk-BGUHH7AW.js +0 -10
- package/dist/chunk-DHU767C3.js +0 -1
- package/dist/chunk-DKHMLETG.js +0 -1
- package/dist/chunk-EJDWYASP.js +0 -1
- package/dist/chunk-ELJ7SKMH.js +0 -1
- package/dist/chunk-EQTULRM7.js +0 -2
- package/dist/chunk-ESZS7L6O.js +0 -11
- package/dist/chunk-ET2O5DAS.js +0 -1
- package/dist/chunk-EZ7EBYDT.js +0 -684
- package/dist/chunk-EZNJDFFK.js +0 -28
- package/dist/chunk-F34LB7M4.js +0 -20
- package/dist/chunk-FE24P4UQ.js +0 -6
- package/dist/chunk-FT4HLDK7.js +0 -1
- package/dist/chunk-G3YYMKWG.js +0 -3
- package/dist/chunk-G7QW5OSQ.js +0 -6
- package/dist/chunk-GCDEDRY7.js +0 -3
- package/dist/chunk-GEE5MXHT.js +0 -5
- package/dist/chunk-H4MYBJ6C.js +0 -1
- package/dist/chunk-HDXBZLHH.js +0 -8
- package/dist/chunk-HT6MOPLW.js +0 -1
- package/dist/chunk-HZXY7RWJ.js +0 -19
- package/dist/chunk-IDAWPBJM.js +0 -4
- package/dist/chunk-IDLDQ2JB.js +0 -1
- package/dist/chunk-IYU72M55.js +0 -3
- package/dist/chunk-J3IHP46B.js +0 -3
- package/dist/chunk-J4KJQHNS.js +0 -1
- package/dist/chunk-JIBLEZ57.js +0 -18
- package/dist/chunk-JIKIYMCT.js +0 -1
- package/dist/chunk-JJTGHARS.js +0 -3
- package/dist/chunk-JQP3ZCAG.js +0 -1
- package/dist/chunk-K7IZMKBR.js +0 -5
- package/dist/chunk-KO4FB4QU.js +0 -1
- package/dist/chunk-KPRKIZ5M.js +0 -3
- package/dist/chunk-KUN74JD4.js +0 -4
- package/dist/chunk-KURWC4A5.js +0 -16
- package/dist/chunk-L3D2CASO.js +0 -1
- package/dist/chunk-L7DZTIHJ.js +0 -1
- package/dist/chunk-LBDAYBIF.js +0 -1
- package/dist/chunk-LH3RIIOB.js +0 -8
- package/dist/chunk-LWWBU7ET.js +0 -6
- package/dist/chunk-M4BEPPA3.js +0 -1
- package/dist/chunk-M4YPMHIM.js +0 -1
- package/dist/chunk-M5KKLAM6.js +0 -3
- package/dist/chunk-MBLHXPGK.js +0 -1
- package/dist/chunk-MDHJJVXA.js +0 -2
- package/dist/chunk-NA2ERJIJ.js +0 -1
- package/dist/chunk-NOKCVDYD.js +0 -317
- package/dist/chunk-O6XSWAP2.js +0 -4
- package/dist/chunk-OB62WVZ5.js +0 -16
- package/dist/chunk-OT52JOML.js +0 -1
- package/dist/chunk-P7XC5HS2.js +0 -1
- package/dist/chunk-PALG4SNB.js +0 -1
- package/dist/chunk-PB37BTPE.js +0 -6
- package/dist/chunk-PWYRKTJ4.js +0 -1
- package/dist/chunk-PXSX63RF.js +0 -1
- package/dist/chunk-QDPDB5EP.js +0 -3
- package/dist/chunk-QV53BSQP.js +0 -6
- package/dist/chunk-QXXA2EQY.js +0 -15
- package/dist/chunk-QZ5FMWZS.js +0 -1
- package/dist/chunk-R26GJEH3.js +0 -1
- package/dist/chunk-RTW4RZWH.js +0 -6
- package/dist/chunk-SEV3S3WH.js +0 -8
- package/dist/chunk-STJ3LWFL.js +0 -1
- package/dist/chunk-TAV2ENJY.js +0 -1
- package/dist/chunk-TQNALMQH.js +0 -3
- package/dist/chunk-TUJNCWHZ.js +0 -1
- package/dist/chunk-U564K7SX.js +0 -1
- package/dist/chunk-UKQ7NE5V.js +0 -1
- package/dist/chunk-V65P572N.js +0 -10
- package/dist/chunk-VFIVXK53.js +0 -2
- package/dist/chunk-VVFPW4ZQ.js +0 -2
- package/dist/chunk-VYITPC34.js +0 -11
- package/dist/chunk-W4X3635B.js +0 -1
- package/dist/chunk-WEEYQX3M.js +0 -1
- package/dist/chunk-WO7LKJCJ.js +0 -1
- package/dist/chunk-WR2ZQGUR.js +0 -1
- package/dist/chunk-WW7TENNA.js +0 -1
- package/dist/chunk-XGMPC7KK.js +0 -2
- package/dist/chunk-Y4QC2YVE.js +0 -1
- package/dist/chunk-YNJZ2VXV.js +0 -5
- package/dist/chunk-Z5DDPQ26.js +0 -3
- package/dist/chunk-ZK7VJZ6V.js +0 -6
- package/dist/chunk-ZLT4DPHN.js +0 -5
- package/dist/chunk-ZOBQKNGK.js +0 -1
- package/dist/chunk-ZTE46E4Z.js +0 -153
- package/dist/conf-store-N5P2ZEAD.js +0 -1
- package/dist/custom-oclif-loader-4ZAXX5MR.js +0 -1
- package/dist/deprecations-4TY4DNME.js +0 -1
- package/dist/dist-6ZJS4I57.js +0 -1
- package/dist/dist-7W2KJOYN.js +0 -1
- package/dist/environments-TR5WW2MD.js +0 -1
- package/dist/error-VJQM4MFE.js +0 -1
- package/dist/error-handler-IYGE3Z72.js +0 -1
- package/dist/fs-EOQL26C3.js +0 -1
- package/dist/hooks/app-init.d.ts +0 -9
- package/dist/hooks/app-init.js +0 -1
- package/dist/is-global-RQCPBQA3.js +0 -1
- package/dist/is-wsl-UEMXYJPN.js +0 -1
- package/dist/lib-JKLF33A7.js +0 -1
- package/dist/local-TW3HCZ2S.js +0 -1
- package/dist/local-storage-T6FKS53K.js +0 -1
- package/dist/metadata-TYZDEER5.js +0 -1
- package/dist/node-package-manager-6SWUZILX.js +0 -1
- package/dist/notifications-system-SMHMV2UW.js +0 -1
- package/dist/output-JG5I2TEL.js +0 -1
- package/dist/system-D4Z32GDS.js +0 -1
- package/dist/ui-6M3XZ6MR.js +0 -1
- package/dist/upgrade-EKAG4IV7.js +0 -1
- package/dist/version-6UBWZCNS.js +0 -1
- package/dist/version-XRU7TEAI.js +0 -1
- package/dist/workerd-LXBSJULF.js +0 -18
- /package/dist/{chunk-VDN6MEYI.js → chunk-NJPL5BTN.js} +0 -0
package/dist/chunk-JIKIYMCT.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c,b as f,c as g,d as x,g as C}from"./chunk-VVFPW4ZQ.js";import{a as d}from"./chunk-DHU767C3.js";import{a as l}from"./chunk-QG7TELFC.js";import{ta as m}from"./chunk-NOKCVDYD.js";import{b as p}from"./chunk-2Y6CYLKF.js";import{v as s}from"./chunk-6YCGMS7X.js";import{a as I}from"./chunk-CTNBSUVU.js";import{e as y,g as a}from"./chunk-VKWPEFWQ.js";a();var h=y(I(),1);var i=class u extends d{async run(){let{flags:o}=await this.parse(u),e=await m({directory:o.path,clientId:o["client-id"],forceRelink:o.reset,userProvidedConfigName:o.config}),t=await C({developerPlatformClient:e.developerPlatformClient,apiKey:e.remoteApp.apiKey,organizationId:e.remoteApp.organizationId,extensionTypes:g}),n=c(t);if(n.length===0)s({headline:["No extensions to migrate."]});else{let r=await f(n);await x({...e,extensions:t,extensionTypes:r.extensionTypes,buildExtensionConfig:r.buildExtensionConfig})}return{app:e.app}}};i.description="Import dashboard-managed extensions into your app.";i.flags={...p,...l,"client-id":h.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]})};var k=i;export{k as a};
|
package/dist/chunk-JJTGHARS.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk-FPWLEGKZ.js";import{p as i,v as m}from"./chunk-Z5DDPQ26.js";import{b as t}from"./chunk-2Y6CYLKF.js";import{a as c}from"./chunk-CTNBSUVU.js";import{e as l,g as r}from"./chunk-VKWPEFWQ.js";r();var a=l(c(),1),s,o=class extends m{async command(e){let d={path:e.path,password:e.password,store:e.store,force:e.force,verbose:e.verbose,noColor:e["no-color"]};await n(d)}};s=o;o.summary="Download metafields definitions from your shop into a local file.";o.descriptionWithMarkdown=`Retrieves metafields from Shopify Admin.
|
|
2
|
-
|
|
3
|
-
If the metafields file already exists, it will be overwritten.`;o.description=s.descriptionWithoutMarkdown();o.flags={...t,...i,force:a.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"})};o.multiEnvironmentsFlags=null;var v=o;export{v as a};
|
package/dist/chunk-JQP3ZCAG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-2MCH43SL.js";import{a as i}from"./chunk-M4BEPPA3.js";import{Lb as t}from"./chunk-3TFUSDHY.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();async function s(){t(i)}var r=class extends e{static{this.description="Shopify CLI version currently installed."}async run(){await s()}};export{r as a};
|
package/dist/chunk-K7IZMKBR.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
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
|
-
`).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
|
-
`),i(`API Key: ${e.apiKey}
|
|
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}
|
|
5
|
-
`)}return s};function ue(t){try{if(typeof t=="string"){let e=JSON.parse(t);return JSON.stringify(e,null,2)}else return typeof t=="object"&&t!==null?JSON.stringify(t,null,2):void 0}catch(e){throw new Error(`Error parsing JSON: ${e}`)}}var x=t=>{try{return JSON.parse(t)}catch{return t}};export{l as a,h as b,_ as c,d,y as e,p as f,L as g,P as h,H as i,W as j,U as k,z as l,V as m,q as n,J as o,Z as p,ee as q,te as r,re as s,se as t,oe as u,ne as v,ae as w,ie as x,pe as y,ce as z,ue as A};
|
package/dist/chunk-KO4FB4QU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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};
|
package/dist/chunk-KPRKIZ5M.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
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};
|
package/dist/chunk-KUN74JD4.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
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};
|
package/dist/chunk-KURWC4A5.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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};
|
package/dist/chunk-L3D2CASO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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};
|
package/dist/chunk-L7DZTIHJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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};
|
package/dist/chunk-LBDAYBIF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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};
|
package/dist/chunk-LH3RIIOB.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
|
|
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
|
-
|
|
5
|
-
If no Git repository is specified, then this command creates a copy of Shopify's [Skeleton theme](${h}), with the specified name in the current folder. If no name is provided, then you're prompted to enter one.
|
|
6
|
-
|
|
7
|
-
> Caution: If you're building a theme for the Shopify Theme Store, then you can use our example theme as a starting point. However, the theme that you submit needs to be [substantively different from existing themes](https://shopify.dev/docs/themes/store/requirements#uniqueness) so that it provides added value for users.
|
|
8
|
-
`;i.description=j.descriptionWithoutMarkdown();i.usage="theme init [name] [flags]";i.args={name:m.Args.string({name:"name",description:"Name of the new theme",required:!1})};i.flags={...N,path:_.path,"clone-url":m.Flags.string({char:"u",default:h,description:"The Git URL to clone from. Defaults to Shopify's Skeleton theme.",env:"SHOPIFY_FLAG_CLONE_URL"}),latest:m.Flags.boolean({char:"l",description:"Downloads the latest release of the `clone-url`",env:"SHOPIFY_FLAG_LATEST"})};i.multiEnvironmentsFlags=null;var se=i;export{se as a};
|
package/dist/chunk-LWWBU7ET.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
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
|
-
shopify doc search --query "subscribe to webhooks"
|
|
3
|
-
|
|
4
|
-
# narrow the search to a specific API and version
|
|
5
|
-
shopify doc search --query "create a product" --api-name admin --api-version latest
|
|
6
|
-
`]}static{this.flags={...l,query:a.Flags.string({description:"The search query.",env:"SHOPIFY_FLAG_QUERY",required:!0}),"api-name":a.Flags.string({description:"Limit results to a specific API (for example: admin, storefront, hydrogen, functions). Unrecognized values are ignored.",env:"SHOPIFY_FLAG_API_NAME"}),"api-version":a.Flags.string({description:"Limit results to a specific API version (for example: 2025-10, latest, current).",env:"SHOPIFY_FLAG_API_VERSION"})}}async run(){let{flags:e}=await this.parse(s);await y(e.query,e["api-name"],e["api-version"])}};export{c as a};
|
package/dist/chunk-M4BEPPA3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as I}from"./chunk-VKWPEFWQ.js";I();var o="4.6.0";export{o as a};
|
package/dist/chunk-M4YPMHIM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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};
|
package/dist/chunk-M5KKLAM6.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
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
|
-
`).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
|
-
`).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};
|
package/dist/chunk-MBLHXPGK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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};
|
package/dist/chunk-MDHJJVXA.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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
|
-
`);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};
|
package/dist/chunk-NA2ERJIJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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};
|