shopify 4.9.2 → 4.9.4
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-APDNTBDE.js +1 -0
- package/dist/analytics-LX52KYSE.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-JKWB7WTO.js → chunk-2PDVBGQH.js} +1 -1
- package/dist/{chunk-3ZL4TDTH.js → chunk-2YVSZFXJ.js} +1 -1
- package/dist/{chunk-BLCR7BXU.js → chunk-35WQTGN3.js} +1 -1
- package/dist/chunk-37BGAWAW.js +2 -0
- package/dist/chunk-3C4WVKSO.js +6 -0
- package/dist/{chunk-46U6C6C6.js → chunk-3G2ZQ2EF.js} +1 -1
- package/dist/{chunk-JAY7AGAG.js → chunk-3LHE4GIX.js} +1 -1
- package/dist/{chunk-3E3MCY5O.js → chunk-3V4VL3SD.js} +3 -3
- package/dist/{chunk-2P5DUPT7.js → chunk-43URS56H.js} +1 -1
- package/dist/{chunk-525BMYNR.js → chunk-45SZ5PSE.js} +1 -1
- package/dist/{chunk-RCYQPOJW.js → chunk-47IQIIFX.js} +91 -91
- package/dist/{chunk-PV5C6Q2P.js → chunk-4ES7BJEK.js} +1 -1
- package/dist/{chunk-C4GEP3CX.js → chunk-4IFY7V7W.js} +1 -1
- package/dist/{chunk-J7ZG6SO3.js → chunk-4JGWKUJN.js} +1 -1
- package/dist/{chunk-3EEH3A27.js → chunk-4O5GQ3DS.js} +1 -1
- package/dist/{chunk-JWDR66AS.js → chunk-4O7LK5RG.js} +1 -1
- package/dist/{chunk-RBPMV3KB.js → chunk-4OCVXE5Y.js} +1 -1
- package/dist/{chunk-CHRFYG6W.js → chunk-4TFJ5RW7.js} +1 -1
- package/dist/{chunk-UOKX3AME.js → chunk-4TZCRMBJ.js} +1 -1
- package/dist/{chunk-EZ5F4ZFY.js → chunk-4ZNBEMRT.js} +3 -3
- package/dist/chunk-5BGUKF7L.js +1 -0
- package/dist/{chunk-LIQSNIB3.js → chunk-5BTLE67Z.js} +1 -1
- package/dist/{chunk-6NLGZGYE.js → chunk-5JIJDUXX.js} +1 -1
- package/dist/{chunk-WINVPFT5.js → chunk-66YRAUWX.js} +1 -1
- package/dist/{chunk-JCO2SDDR.js → chunk-67EBF76X.js} +1 -1
- package/dist/{chunk-5BO5HCN6.js → chunk-6A4H3HPY.js} +1 -1
- package/dist/{chunk-BVR3GF2L.js → chunk-6HPUOCFF.js} +1 -1
- package/dist/chunk-6IDEDOXW.js +2 -0
- package/dist/{chunk-ANHSOQTZ.js → chunk-6IMHGT7F.js} +1 -1
- package/dist/{chunk-4QEALPWD.js → chunk-6MC2BEW4.js} +1 -1
- package/dist/chunk-6YDLNP4G.js +15 -0
- package/dist/{chunk-BPVXYM6G.js → chunk-73D5O7A3.js} +1 -1
- package/dist/{chunk-EMKLN75K.js → chunk-7556AIVG.js} +1 -1
- package/dist/{chunk-IQIUFTR6.js → chunk-7A3RW2VM.js} +1 -1
- package/dist/{chunk-EGJQEKAO.js → chunk-7HNRK2CR.js} +1 -1
- package/dist/{chunk-G627WGIC.js → chunk-7HWMURCW.js} +2 -2
- package/dist/{chunk-3NRGGEGU.js → chunk-7SJHVJ3W.js} +1 -1
- package/dist/{chunk-MQZPASSP.js → chunk-7VAKNVFD.js} +1 -1
- package/dist/{chunk-KPNUSDCW.js → chunk-A2VCTDKH.js} +1 -1
- package/dist/{chunk-JCKA3O5A.js → chunk-ALK66U3O.js} +1 -1
- package/dist/{chunk-MP5NZL7C.js → chunk-AMLCWRHU.js} +1 -1
- package/dist/{chunk-AVOSD4NV.js → chunk-AVMNIZAJ.js} +1 -1
- package/dist/{chunk-IJLD5UYC.js → chunk-AYIU6Z4C.js} +1 -1
- package/dist/{chunk-T3JUBPBU.js → chunk-B3M3KIOU.js} +1 -1
- package/dist/{chunk-ER7ZTF26.js → chunk-BIWG3FQQ.js} +1 -1
- package/dist/{chunk-YKYJOUV7.js → chunk-BOE2ST6J.js} +1 -1
- package/dist/chunk-BQ3U3CQV.js +1 -0
- package/dist/{chunk-FICC6IFE.js → chunk-BVB3DTNE.js} +1 -1
- package/dist/{chunk-55QTRPZ2.js → chunk-C6IBY7NW.js} +1 -1
- package/dist/{chunk-E64OFJHF.js → chunk-CLD3NZYD.js} +1 -1
- package/dist/{chunk-PFIQR7XS.js → chunk-CQF5NDTJ.js} +1 -1
- package/dist/{chunk-X6HLGOIV.js → chunk-CVFPY2SH.js} +1 -1
- package/dist/{chunk-OERMQ2FP.js → chunk-D3KFKT4D.js} +1 -1
- package/dist/{chunk-3NUQGW57.js → chunk-DEF2G7S4.js} +1 -1
- package/dist/{chunk-I55L6FOM.js → chunk-DMDLJRLW.js} +1 -1
- package/dist/{chunk-EMRUM6AA.js → chunk-DMNWSUKV.js} +1 -1
- package/dist/{chunk-PQH4U2XV.js → chunk-DSS4ECIH.js} +1 -1
- package/dist/{chunk-WXT5AKZV.js → chunk-DYPZX7MW.js} +1 -1
- package/dist/{chunk-R43LXE66.js → chunk-EMH7OHCW.js} +1 -1
- package/dist/{chunk-UB2LAIXS.js → chunk-ENQXB532.js} +1 -1
- package/dist/{chunk-Q7PF4VKI.js → chunk-EO4YJFMY.js} +62 -51
- package/dist/{chunk-KY36HSIB.js → chunk-F3PZGSOY.js} +1 -1
- package/dist/chunk-FEQHCE2E.js +3 -0
- package/dist/{chunk-QMJZFKKU.js → chunk-FK7GA4QQ.js} +1 -1
- package/dist/{chunk-OCQZ2ULI.js → chunk-FO2R6KHG.js} +1 -1
- package/dist/{chunk-WNO2V53C.js → chunk-FOAV642V.js} +1 -1
- package/dist/{chunk-QA2NOPXG.js → chunk-FQL2WEKX.js} +1 -1
- package/dist/{chunk-3ATOVFLZ.js → chunk-G7JW4UIM.js} +1 -1
- package/dist/{chunk-BLBJT7BM.js → chunk-GE4MLO3C.js} +1 -1
- package/dist/{chunk-OIQVPTNQ.js → chunk-GM4EFJJF.js} +1 -1
- package/dist/chunk-GN66BRYF.js +1 -0
- package/dist/{chunk-XTKXBQVA.js → chunk-GPRZYFDE.js} +1 -1
- package/dist/{chunk-SYNCIFJ6.js → chunk-GSE6FXZU.js} +1 -1
- package/dist/{chunk-OXN2DID2.js → chunk-GZ7VGCVW.js} +1 -1
- package/dist/{chunk-HKZ75UKL.js → chunk-HASIOUH2.js} +1 -1
- package/dist/chunk-HILYTMVA.js +1 -0
- package/dist/{chunk-SWNY3RUM.js → chunk-HJHS23Q3.js} +1 -1
- package/dist/{chunk-SQIESCOJ.js → chunk-HLPAVELJ.js} +1 -1
- package/dist/{chunk-YIV3CWED.js → chunk-HPM3HF7A.js} +1 -1
- package/dist/{chunk-HZJHGHLN.js → chunk-HQJ62PII.js} +1 -1
- package/dist/{chunk-JJHJYBPQ.js → chunk-HQY6JM6G.js} +1 -1
- package/dist/{chunk-7ARGLS6W.js → chunk-HSYMUYEZ.js} +1 -1
- package/dist/{chunk-IESHPQLC.js → chunk-I5PQZRYM.js} +1 -1
- package/dist/{chunk-M7QFZQ23.js → chunk-IDKRJ2F4.js} +1 -1
- package/dist/{chunk-I2LILWDI.js → chunk-IGDVKRB4.js} +1 -1
- package/dist/chunk-IPZ6LUJV.js +4 -0
- package/dist/{chunk-NLKO2J7T.js → chunk-J4J2YXH3.js} +1 -1
- package/dist/{chunk-CNAMKKAK.js → chunk-J4NBPC57.js} +1 -1
- package/dist/chunk-J6LQR2F6.js +7 -0
- package/dist/{chunk-UYRXUGLY.js → chunk-JYGZD4HM.js} +1 -1
- package/dist/{chunk-CDIKRQ6M.js → chunk-K3HUQLIC.js} +1 -1
- package/dist/{chunk-GPJJA3FX.js → chunk-K7D53KSJ.js} +1 -1
- package/dist/{chunk-UMSO6MOI.js → chunk-KQFA5YTT.js} +1 -1
- package/dist/{chunk-MW3HFOPD.js → chunk-KTD7VLHL.js} +1 -1
- package/dist/chunk-L4DFMMOI.js +1 -0
- package/dist/{chunk-7IRPE3M5.js → chunk-LJIJEGND.js} +1 -1
- package/dist/{chunk-D2S566HF.js → chunk-LJZTSQRD.js} +1 -1
- package/dist/{chunk-7EDXMGBQ.js → chunk-LKXFHYLI.js} +1 -1
- package/dist/{chunk-6H3HVSO5.js → chunk-LLPB6JN5.js} +1 -1
- package/dist/{chunk-UVC3IXM3.js → chunk-LOWSU4BB.js} +1 -1
- package/dist/{chunk-7MMPQMU7.js → chunk-LWU5TKNA.js} +1 -1
- package/dist/{chunk-PI6FLLDD.js → chunk-LYIXRMQJ.js} +1 -1
- package/dist/{chunk-DTGIMRBX.js → chunk-MCNK5SJ6.js} +1 -1
- package/dist/{chunk-GS52MX5F.js → chunk-MJZSSCGD.js} +1 -1
- package/dist/{chunk-65I35VBS.js → chunk-MMQZO2W2.js} +1 -1
- package/dist/{chunk-MIP2Y34N.js → chunk-MUM34KUM.js} +1 -1
- package/dist/{chunk-YXKMPCFH.js → chunk-MW3IMZJ5.js} +1 -1
- package/dist/{chunk-HYC3JXR4.js → chunk-MW3JKGJH.js} +1 -1
- package/dist/{chunk-WZEKBD7B.js → chunk-N55MSO3X.js} +5 -5
- package/dist/{chunk-PQMKPXFV.js → chunk-N5AZZYQA.js} +1 -1
- package/dist/{chunk-P2MVR6CG.js → chunk-NCRWOW6F.js} +1 -1
- package/dist/{chunk-MHZSSRHP.js → chunk-NCVGCVQ5.js} +1 -1
- package/dist/{chunk-ELQ5NPPB.js → chunk-NGSEF3UX.js} +1 -1
- package/dist/{chunk-3U2MYUWG.js → chunk-NT4A37HG.js} +1 -1
- package/dist/{chunk-Q4TZD2M6.js → chunk-NU5WLZ6Y.js} +1 -1
- package/dist/{chunk-TEASB2WU.js → chunk-NYYXH2SX.js} +1 -1
- package/dist/{chunk-RAQP66LR.js → chunk-O5FFMTJE.js} +1 -1
- package/dist/{chunk-2VDCTMLY.js → chunk-OE3HSNSE.js} +1 -1
- package/dist/{chunk-RY6TZDVV.js → chunk-ONF7XXEL.js} +1 -1
- package/dist/{chunk-5TQOMAJS.js → chunk-PB5ZZET5.js} +1 -1
- package/dist/{chunk-2NMICU24.js → chunk-PFXNBHQQ.js} +1 -1
- package/dist/{chunk-RGZCV56L.js → chunk-PG4S5HJJ.js} +1 -1
- package/dist/{chunk-Z5SFLTH6.js → chunk-PHG4DASY.js} +1 -1
- package/dist/{chunk-VXGXK66W.js → chunk-PO5T44H3.js} +1 -1
- package/dist/{chunk-ZJ4H3XEL.js → chunk-PP4VCR4Y.js} +1 -1
- package/dist/{chunk-RDO5IWB5.js → chunk-PVAZCZSY.js} +1 -1
- package/dist/chunk-PWS4VFSD.js +1 -0
- package/dist/{chunk-T6TYF72N.js → chunk-Q2XLIWG4.js} +1 -1
- package/dist/{chunk-ZZ7SOJHH.js → chunk-Q37WAD6F.js} +1 -1
- package/dist/{chunk-Q26ES5T3.js → chunk-Q43LBSPT.js} +1 -1
- package/dist/{chunk-VZLEYZLX.js → chunk-QAJZUJR5.js} +1 -1
- package/dist/{chunk-2X3HYG4B.js → chunk-QO5RNGWA.js} +1 -1
- package/dist/chunk-QPQS2YU3.js +1 -0
- package/dist/{chunk-Q555FV2X.js → chunk-QTLGMJDW.js} +1 -1
- package/dist/{chunk-ELJ34WWD.js → chunk-QUXQM3S3.js} +1 -1
- package/dist/{chunk-SRDKLZ4O.js → chunk-R3KSOCMB.js} +1 -1
- package/dist/{chunk-NS4FUSSK.js → chunk-R74WHKHH.js} +1 -1
- package/dist/chunk-R7YJNDXW.js +1 -0
- package/dist/chunk-RJSQMKKS.js +1 -0
- package/dist/{chunk-DGOBYP74.js → chunk-RK2V6OIJ.js} +1 -1
- package/dist/{chunk-U5L2P36D.js → chunk-RSC5NQAT.js} +1 -1
- package/dist/{chunk-4565O5TG.js → chunk-RUHQNF2W.js} +1 -1
- package/dist/{chunk-7ZNR4YL4.js → chunk-RXTLNUPF.js} +1 -1
- package/dist/{chunk-PGE4HGLA.js → chunk-S36VGP37.js} +1 -1
- package/dist/{chunk-KYBZ2MBA.js → chunk-SNE4RHM4.js} +1 -1
- package/dist/{chunk-BVVYKX4D.js → chunk-SQAS5RVZ.js} +1 -1
- package/dist/{chunk-AKP4QAGL.js → chunk-SZI6G247.js} +1 -1
- package/dist/{chunk-LWF4EV22.js → chunk-TFXUDHCP.js} +1 -1
- package/dist/{chunk-THW6UDZH.js → chunk-TPHHQAUD.js} +1 -1
- package/dist/{chunk-JLGXJHPX.js → chunk-TVCWDEVS.js} +1 -1
- package/dist/{chunk-2R2PKQQV.js → chunk-UEBUGSBT.js} +1 -1
- package/dist/{chunk-TPPBEVNQ.js → chunk-UIC7K2HX.js} +1 -1
- package/dist/{chunk-PG6XEOYF.js → chunk-UNHT4ZFP.js} +1 -1
- package/dist/{chunk-JUCOIXG5.js → chunk-UQ6ALA3Y.js} +1 -1
- package/dist/{chunk-EP5HIGAL.js → chunk-UU6BRRYS.js} +1 -1
- package/dist/{chunk-3F42A3XV.js → chunk-UWI76E2L.js} +3 -3
- package/dist/{chunk-EXKTQF26.js → chunk-VGBUN3CZ.js} +1 -1
- package/dist/{chunk-J66WAKXN.js → chunk-VMNOSVPT.js} +1 -1
- package/dist/{chunk-JAX56OYG.js → chunk-VNFUCH6T.js} +1 -1
- package/dist/{chunk-NDMISEDF.js → chunk-VS7QVU3Z.js} +1 -1
- package/dist/{chunk-XE5QH4D7.js → chunk-W4KE7AO6.js} +1 -1
- package/dist/{chunk-W56I6HOT.js → chunk-WEPO4J2F.js} +1 -1
- package/dist/{chunk-QN6SITWN.js → chunk-WEXOA4C4.js} +1 -1
- package/dist/{chunk-DH5E6NM3.js → chunk-WLWHCUPZ.js} +1 -1
- package/dist/{chunk-WNE2MZAZ.js → chunk-XGKCPD6W.js} +1 -1
- package/dist/{chunk-CGH5Y6XE.js → chunk-XNPUZRWP.js} +1 -1
- package/dist/{chunk-PYILLIGT.js → chunk-XNVOKAF2.js} +1 -1
- package/dist/{chunk-EJY4LA2S.js → chunk-XSMCQLJW.js} +1 -1
- package/dist/chunk-XUUIBSLW.js +1 -0
- package/dist/{chunk-RW2MONAS.js → chunk-XWQM2NZ2.js} +1 -1
- package/dist/{chunk-TWS34WUT.js → chunk-Y3PY5LP7.js} +1 -1
- package/dist/{chunk-FU4UVINZ.js → chunk-Y62EMOQA.js} +1 -1
- package/dist/{chunk-PQCALXSD.js → chunk-Y743UVBS.js} +1 -1
- package/dist/{chunk-OMEWUFUL.js → chunk-YBSX53QP.js} +1 -1
- package/dist/{chunk-7GJYJ6DU.js → chunk-YHCP326A.js} +1 -1
- package/dist/{chunk-B477XHLZ.js → chunk-YHESTFMZ.js} +1 -1
- package/dist/{chunk-R6IJRVVM.js → chunk-YPCXVZ2N.js} +1 -1
- package/dist/{chunk-HVU3D3ZU.js → chunk-YT27FIQN.js} +2 -2
- package/dist/{chunk-N4AR2B6D.js → chunk-YTR5JHNJ.js} +1 -1
- package/dist/{chunk-SHBB5GST.js → chunk-YYA5VGDW.js} +1 -1
- package/dist/{chunk-XRJ2GQ24.js → chunk-Z6X2GT6Q.js} +1 -1
- package/dist/{chunk-FNKTF2OF.js → chunk-ZEBMW5KS.js} +1 -1
- package/dist/{chunk-SZ2JOXTG.js → chunk-ZEE32UH6.js} +1 -1
- package/dist/{chunk-4S2WKMLJ.js → chunk-ZTICX3AO.js} +1 -1
- 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/channel-config.js +1 -1
- package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import/dashboard-extensions.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/security/check.js +1 -1
- package/dist/cli/commands/app/security/clean.js +1 -1
- package/dist/cli/commands/app/security/instructions.js +1 -1
- package/dist/cli/commands/app/security/record.js +1 -1
- package/dist/cli/commands/app/security/review.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/unschedule.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.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-json-schema-HYYJSZAH.js → command-json-schema-SS4GDJTQ.js} +1 -1
- package/dist/command-registry.js +1 -1
- package/dist/{conf-store-CDZ5YSQM.js → conf-store-54YJCIDK.js} +1 -1
- package/dist/{custom-oclif-loader-NVOK22CJ.js → custom-oclif-loader-3UBH7Q7R.js} +1 -1
- package/dist/{deprecations-33DG6ZUL.js → deprecations-ZX7ZKF6L.js} +1 -1
- package/dist/dist-JMNE7MP6.js +1 -0
- package/dist/dist-M2AXGBOL.js +1 -0
- package/dist/{environment-ZUTBXY7U.js → environment-RSUK27TA.js} +1 -1
- package/dist/environments-KD2IDYPG.js +1 -0
- package/dist/{error-V77H2UYX.js → error-AA6LW3PN.js} +1 -1
- package/dist/error-handler-4VW3AV2G.js +1 -0
- package/dist/{fs-SKH3XZU7.js → fs-4QZCAEP7.js} +1 -1
- 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 +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/index.js +1 -1
- package/dist/{is-global-2G4BLF7H.js → is-global-FKG327CG.js} +1 -1
- package/dist/{json-error-WSMAL66C.js → json-error-32ETFU3V.js} +1 -1
- package/dist/{local-G2Z24BHM.js → local-R3UAQN7T.js} +1 -1
- package/dist/{metadata-Y3RKC4P2.js → metadata-JWJG4JV4.js} +1 -1
- package/dist/{node-package-manager-A7HTBJKY.js → node-package-manager-M4XHUTQR.js} +1 -1
- package/dist/notifications-system-QVM2JWKB.js +1 -0
- package/dist/{os-7VQXVZWF.js → os-FEHBQQKP.js} +1 -1
- package/dist/{output-ZFFHJGNK.js → output-2LS5AOAH.js} +1 -1
- package/dist/{path-6YMSTSWG.js → path-CPAYTWQW.js} +1 -1
- package/dist/system-TMD2LYZM.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-YSFALYSL.js → ui-FNPICAAH.js} +1 -1
- package/dist/upgrade-YYPP5VZY.js +1 -0
- package/dist/version-OX3MORI6.js +1 -0
- package/dist/version-P7D5ME4Z.js +1 -0
- package/dist/{workerd-RNDPF36Q.js → workerd-TKVRZK2F.js} +1 -1
- package/oclif.manifest.json +37 -13
- package/package.json +7 -7
- package/dist/analytics-H2ANKZ2S.js +0 -1
- package/dist/analytics-Q6HJRPRX.js +0 -1
- package/dist/chunk-246AZCDT.js +0 -1
- package/dist/chunk-3VYOLEQE.js +0 -2
- package/dist/chunk-5JW2EYSE.js +0 -15
- package/dist/chunk-6SO5GA6P.js +0 -2
- package/dist/chunk-BK4VCXDD.js +0 -1
- package/dist/chunk-DV77BSKW.js +0 -1
- package/dist/chunk-FQKURDZR.js +0 -6
- package/dist/chunk-IOS4IDZ2.js +0 -3
- package/dist/chunk-JUVJNIEA.js +0 -1
- package/dist/chunk-KOYBR5MV.js +0 -1
- package/dist/chunk-P6TOIMMF.js +0 -1
- package/dist/chunk-QLHPTMIH.js +0 -1
- package/dist/chunk-SDHDDNKM.js +0 -4
- package/dist/chunk-TQ7MHGY4.js +0 -1
- package/dist/chunk-TUE67I2F.js +0 -7
- package/dist/chunk-YTJ3EPD3.js +0 -1
- package/dist/chunk-Z57YWHOE.js +0 -1
- package/dist/dist-DODCXJ2A.js +0 -1
- package/dist/dist-YXMAKIFS.js +0 -1
- package/dist/environments-KBRQNE4R.js +0 -1
- package/dist/error-handler-JY3ZKE2G.js +0 -1
- package/dist/notifications-system-E64OSVXF.js +0 -1
- package/dist/system-ZLITSFDC.js +0 -1
- package/dist/upgrade-I4JTR4LA.js +0 -1
- package/dist/version-AOVO47AW.js +0 -1
- package/dist/version-LQV54JBC.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as B,j as C,m as P}from"./chunk-
|
|
1
|
+
import{a as B,j as C,m as P}from"./chunk-SZI6G247.js";import{e as U,f as _}from"./chunk-LYIXRMQJ.js";import{e as g}from"./chunk-QO5RNGWA.js";import{l as v,m as w}from"./chunk-3LHE4GIX.js";import{ra as E}from"./chunk-3V4VL3SD.js";import{Nb as m}from"./chunk-UWI76E2L.js";import{g as T}from"./chunk-VKWPEFWQ.js";T();var $=20,J=1024*1024,A=2;function oe(t,e,r,s,o={},l){let n=B(r),i=new Map,c=a=>a.total===0?"[100%]":`[${Math.round(a.current/a.total*100)}%]`,u=R(t,e,n),h=Promise.all([s.ready(),u]).then(()=>q(n,s,t,e,i)),p=h.then(a=>a.promise).then(()=>j(n,s,t,e,o,i)),k=o?.deferPartialWork?u:p.then(a=>a.promise);return o?.backgroundWorkCatch&&Promise.all([u,h.then(a=>a.promise),p.then(a=>a.promise)]).catch(o.backgroundWorkCatch),{uploadResults:i,workPromise:k,renderThemeSyncProgress:async()=>{if(o?.deferPartialWork)return;let{progress:a,promise:d}=await h,f=o.multiEnvironment?4e3:1e3;await g(b({promise:d,titleGetter:()=>`Uploading files to remote theme ${c(a)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment);let{progress:y,promise:F}=await p;await g(b({promise:F,titleGetter:()=>`Cleaning your remote theme ${c(y)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment),await g([{title:"Theme upload complete",task:async()=>{}}],l?.stderr,o?.multiEnvironment),H(i,o?.environment)}}}function b({promise:t,titleGetter:e,updateInterval:r}){let s=[],o=()=>{s.push({title:e(),task:async()=>{await Promise.race([t,new Promise(n=>setTimeout(()=>n("timeout"),r))])==="timeout"&&o()}})};return o(),s}function j(t,e,r,s,o,l){if(o.nodelete)return{progress:{current:0,total:0},promise:Promise.resolve()};let n=L(t,e),i=x(n),c={current:0,total:i.length};if(i.length===0)return{progress:c,promise:Promise.resolve()};let u=[];for(let p=0;p<i.length;p+=$){let k=i.slice(p,p+$),a=v(r.id,k.map(d=>d.key),s).then(d=>{d.forEach(f=>{if(l.set(f.key,f),!f.success){let y=f.errors?.asset?.map(F=>`-${F}`).join(`
|
|
2
2
|
`);_(f.key,"delete")(new Error(`Failed to delete ${f.key}: ${y}`))}}),c.current+=k.length});u.push(a)}let h=Promise.all(u).then(()=>{c.current=c.total});return{progress:c,promise:h}}function L(t,e){let s=e.applyIgnoreFilters(t).filter(o=>!e.files.has(o.key));return m(`Files to be deleted:
|
|
3
3
|
${s.map(o=>`-${o.key}`).join(`
|
|
4
4
|
`)}`),s}function x(t){let e=P(t);return[...e.contextualizedJsonFiles,...e.templateJsonFiles,...e.sectionJsonFiles,...e.otherJsonFiles,...e.sectionLiquidFiles,...e.blockLiquidFiles,...e.layoutFiles,...e.otherLiquidFiles,...e.configDataFile,...e.configStylesheetFiles,...e.documentationFiles,...e.configSchemaFile,...e.staticAssetFiles]}var D=[{key:"config/settings_schema.json",value:"[]"},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"}];async function R(t,e,r){let s=new Set(r.map(l=>l.key)),o=D.filter(({key:l})=>!s.has(l));o.length>0&&await w(t.id,o,e)}function q(t,e,r,s,o){let l=S(e,t);e.unsyncedFileKeys.clear(),l.forEach(a=>e.unsyncedFileKeys.add(a.key));let{independentFiles:n,dependentFiles:i}=I(l),c={current:0,total:l.length},u=a=>a.length===0?Promise.resolve():Promise.all(z(a).map(d=>N(d,e,s,r.id,o).then(()=>{c.current+=d.length,d.forEach(f=>e.unsyncedFileKeys.delete(f.key))}))).then(()=>{}),h=i.reduce((a,d)=>a.then(()=>u(d)),Promise.resolve()),p=Promise.resolve().then(()=>u(n.flat())),k=Promise.all([h,p]).then(()=>{c.current=c.total});return{progress:c,promise:k}}function S(t,e){let r=K(t),s=t.applyIgnoreFilters(r),o=new Map(e.map(n=>[n.key,n])),l=s.filter(n=>{let i=o.get(n.key);return!i||i.checksum!==n.checksum});return m(`Files to be uploaded:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as P,v as x}from"./chunk-
|
|
1
|
+
import{p as P,v as x}from"./chunk-Y3PY5LP7.js";import{a as O}from"./chunk-ZTICX3AO.js";import{c as k,m as G}from"./chunk-FEQHCE2E.js";import{b as _}from"./chunk-NU5WLZ6Y.js";import{A as N,D as d,H as S,J as R,V as f}from"./chunk-47IQIIFX.js";import{i as g}from"./chunk-Q37WAD6F.js";import{Ea as E,Ga as v,Xa as L,Za as F,oa as C,qa as w,ya as b}from"./chunk-UWI76E2L.js";import{b as W}from"./chunk-I3J63RFV.js";import{c as s}from"./chunk-6IDEDOXW.js";import{e as q,g as h}from"./chunk-VKWPEFWQ.js";h();h();var l="https://github.com/Shopify/skeleton-theme.git",V="https://github.com/Shopify/theme-liquid-docs.git",I={all:"All",github:"VS Code (GitHub Copilot)",cursor:"Cursor",claude:"Claude"};async function $(t,e){await T(t,e)}async function H(t,e){await T(t,e,!0)}async function M(t){let e=await O("Shopify","skeleton-theme",{filter:o=>!o.draft&&!o.prerelease});if(!e)throw new g("Couldn't find a stable Skeleton theme release");await T(`${l}#${e.tag_name}`,t)}async function T(t,e,o){await S([{title:`Cloning ${t} into ${e}`,task:async()=>{await k({repoUrl:t,destination:e,latestTag:o,shallow:!o}),await G(e),t.split("#")[0]===l&&(await Promise.all(Object.keys(I).map(async i=>U(s(e,`.${i}`)))),await U(s(e,".git")))}}])}async function U(t){await L(t)&&await v(t)}async function j(){return await d({message:"Which LLM instruction file would you like to include in your theme?",choices:[...Object.entries(I).map(([e,o])=>({label:o,value:e})),{label:"Skip",value:null}]})}async function D(t,e){let o=[];await S([{title:`Adding AI instructions into ${t}`,task:async()=>{await C(async i=>{await k({repoUrl:V,destination:i,shallow:!0});let c=e==="all"?Object.keys(I).filter(a=>a!=="all"):[e];try{let a=s(i,"ai","github","copilot-instructions.md"),n=await w(a),r=s(t,"AGENTS.md"),m=`# AGENTS.md
|
|
2
2
|
|
|
3
3
|
${n}`;await b(r,m),(await Promise.all(c.map(p=>K(t,r,p)))).forEach(p=>{p.copiedFile&&o.push(p.copiedFile)})}catch{throw new g("Failed to create AI instructions")}})}}]),o.length>0&&N({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 K(t,e,o){if(o==="cursor")return{};let c={github:"copilot-instructions.md",claude:"CLAUDE.md"}[o],a=s(t,c);try{return await E(e,a),{}}catch(n){if(n instanceof Error){let r=await w(e);return await b(a,r),{copiedFile:c}}else throw n}}var u=q(W(),1);var A=class extends x{static summary="Clones a Git repository to use as a starting point for building a new theme.";static descriptionWithMarkdown=`Clones a Git repository to your local machine to use as the starting point for building a theme.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as j}from"./chunk-
|
|
1
|
+
import{a as j}from"./chunk-PWS4VFSD.js";import{a as C}from"./chunk-PO5T44H3.js";import{Ha as O,ia as N}from"./chunk-UNHT4ZFP.js";import{b as R,c as k}from"./chunk-NU5WLZ6Y.js";import{G as w}from"./chunk-47IQIIFX.js";import{a as y}from"./chunk-7VAKNVFD.js";import{i as S}from"./chunk-Q37WAD6F.js";import{Cb as x,Eb as E,Ib as I,Kb as f,Tb as b,b as o,fa as v}from"./chunk-UWI76E2L.js";import{i as T}from"./chunk-B4OMIONW.js";import{i as L}from"./chunk-6IDEDOXW.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();var B=o.object({createdAt:o.string(),createdBy:o.string(),versionTag:o.string().nullable().optional(),status:o.string(),versionId:o.string(),message:o.string()}),u=y({name:"AppVersionsListResult",schema:o.array(B),definitions:{AppVersion:B}});r();async function M(i,t){let n=await i.appVersions(t);if(!n.app)throw new S(`Shopify did not return app information for API key ${t.apiKey}.`);return{appVersions:n.app.appVersions.nodes.map(e=>({createdAt:v(new Date(e.createdAt)),createdBy:e.createdBy?.displayName??"",versionTag:e.versionTag,status:e.status,versionId:e.versionId,message:e.message??""})),totalResults:n.app.appVersions.pageInfo.totalResults}}r();var $=12;async function D({app:i,appVersions:t,totalResults:n,remoteApp:e,organization:p,developerPlatformClient:m},d){if(d==="json"){I(u.encode(t));return}if(N({org:p.businessName,appName:e.title,configFile:L(i.configPath)}),t.length===0){f("No app versions found for this app");return}let g=t.map(({versionId:s,...a})=>({...a,status:a.status==="active"?T.green(`\u2605 ${a.status}`):a.status})),l=(process.stdout.columns??75)-$,c=l;g.forEach(s=>{let a=s.message.length+(s.versionTag?.length??0)+b(s.status).length+s.createdAt.length+s.createdBy.length;if(a>l){let J=a-s.message.length,A=Math.max(l-J,10);A<c&&(c=A)}}),g.forEach(s=>{s.message.length>c&&(s.message=`${s.message.slice(0,c-3)}...`)}),w({rows:g,columns:{versionTag:{header:"VERSION"},status:{header:"STATUS"},message:{header:"MESSAGE"},createdAt:{header:"DATE CREATED"},createdBy:{header:"CREATED BY"}}});let F=x.link(m.webUiName,[await m.appDeepLink(e),"versions"].join("/"));f(E`\nView all ${String(n)} app versions in the ${F}`)}var h=class i extends j{static summary="List deployed versions of your app.";static descriptionWithMarkdown="Lists the deployed app versions. An app version is a snapshot of your app extensions.";static get jsonOutputSchema(){return u}static description=this.descriptionForHelp();static flags={...R,...C,...k};async run(){let{flags:t}=await this.parse(i),{app:n,remoteApp:e,developerPlatformClient:p,organization:m}=await O({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),d=await M(p,e);return await D({app:n,remoteApp:e,organization:m,developerPlatformClient:p,...d},t.json?"json":"text"),{app:n}}};export{h as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as n}from"./chunk-
|
|
1
|
+
import{b as n}from"./chunk-NU5WLZ6Y.js";import{i as r}from"./chunk-B4OMIONW.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();function v(o){o.verbose&&(process.env[n.verbose.env]="true"),o.noColor&&(r.level=0,process.env.FORCE_COLOR="0")}export{v as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as O,c as b,f as F}from"./chunk-
|
|
1
|
+
import{b as O,c as b,f as F}from"./chunk-NU5WLZ6Y.js";import{b as L}from"./chunk-4ZNBEMRT.js";import{F as g,t as f,w as p,x as d,y as h,z as S}from"./chunk-3V4VL3SD.js";import{j as r}from"./chunk-QTLGMJDW.js";import{D as w,J as y}from"./chunk-47IQIIFX.js";import{a as m}from"./chunk-7VAKNVFD.js";import{Ib as A,Mb as I,b as n}from"./chunk-UWI76E2L.js";import{b as j}from"./chunk-I3J63RFV.js";import{e as C,g as i}from"./chunk-VKWPEFWQ.js";i();i();var a=m({name:"AuthLoginResult",schema:n.object({status:n.literal("success"),alias:n.string()}).strict()});i();var c="NEW_LOGIN";function _(s,e){let t=[],o=s[e];if(o)for(let[l,x]of Object.entries(o))t.push({label:x.identity.alias??l,value:l});return t}async function q(){let s=await g({},{forceNewSession:!0}),e=await d(s.userId);if(!e){let t=await y({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await h(s.userId,t),t}return e}async function E(){let s=await p(),e=await f(),t=[];return s&&t.push(..._(s,e)),t.length>0&&t.push({label:"Log in with a different account",value:c}),t}async function N(s){if(s){let o=await S(s);if(o)return r(o),s}let e=await E(),t=c;return e.length>0&&(t=await w({message:"Which account would you like to use?",choices:e})),t===c?q():(r(t),e.find(o=>o.value===t)?.label??t)}var v=C(j(),1);var u=class s extends L{static descriptionWithMarkdown="Logs you in to your Shopify account.";static description=this.descriptionForHelp();static flags={...O,...b,alias:F(v.Flags.string({description:"Alias of an existing session you want to use.",env:"SHOPIFY_FLAG_AUTH_ALIAS"}))};static get jsonOutputSchema(){return a}async run(){let{flags:e}=await this.parse(s),t=await N(e.alias);e.json?A(a.encode({status:"success",alias:t})):I(`Current account: ${t}.`)}};export{u as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as C,v as Y}from"./chunk-
|
|
1
|
+
import{p as C,v as Y}from"./chunk-Y3PY5LP7.js";import{ca as re,da as q}from"./chunk-NCRWOW6F.js";import{b as H}from"./chunk-NU5WLZ6Y.js";import{r as L}from"./chunk-3C4WVKSO.js";import{y as w,z as E}from"./chunk-47IQIIFX.js";import{i as $}from"./chunk-Q37WAD6F.js";import{Ib as p,Kb as P,Lb as G,Nb as j,R as I,Xa as N,db as A,ya as T}from"./chunk-UWI76E2L.js";import{b as oe}from"./chunk-I3J63RFV.js";import{c as O,e as S,o as b}from"./chunk-6IDEDOXW.js";import{e as k,g as v}from"./chunk-VKWPEFWQ.js";v();v();var r=k(q(),1),l=k(re(),1);function se(e,t){return e instanceof Error&&"code"in e&&e.code==="ENOENT"&&"path"in e&&typeof e.path=="string"&&S(e.path)===S(t)}async function F(e,t){try{return await t()}catch(n){throw e!==void 0&&se(n,e)?new $(`Theme Check config file not found: ${e}`):n}}function ce(e){switch(e){case"error":return r.Severity.ERROR;case"suggestion":case"warning":return r.Severity.WARNING;case"style":case"info":return r.Severity.INFO;case"crash":return}}function U(e){switch(e){case r.Severity.ERROR:return"error";case r.Severity.WARNING:return"warning";case r.Severity.INFO:return"info"}}function ae(e){return new Map(e.map(t=>[t.uri,t.source]))}function ue(e,t,n){let o=e.split(`
|
|
2
2
|
`).slice(t,n+1),s=o.length===1;return o.map((c,a)=>{let u=t+a+1,d=s?c.trim():c;return`${u} ${d}`}).join(`
|
|
3
3
|
`)}function fe(e){switch(e){case r.Severity.ERROR:return{error:`
|
|
4
4
|
[error]:`};case r.Severity.WARNING:return{warn:`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-2PDVBGQH.js";import{b as e}from"./chunk-4ZNBEMRT.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var t=class extends e{static description="View the UI kit components that display static output";static hidden=!0;async run(){await o()}};export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as h,ba as F,c,ca as g,f as k,g as v,n as m}from"./chunk-
|
|
1
|
+
import{A as h,ba as F,c,ca as g,f as k,g as v,n as m}from"./chunk-3V4VL3SD.js";import{b as l}from"./chunk-QTLGMJDW.js";import{i as n,l as A}from"./chunk-Q37WAD6F.js";import{Cb as b,Eb as f}from"./chunk-UWI76E2L.js";import{i as q}from"./chunk-FOAV642V.js";import{g as d}from"./chunk-VKWPEFWQ.js";d();d();var $={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"publicApiVersions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicApiVersions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"supported"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};var S=new Map;async function Y(t,r,e,o){let p="Admin",u=o??await T(r),s=r.storeFqdn,i=V(r);l()==="local"&&(i["x-forwarded-host"]=s,s=new m().host("app"));let a=E(s,u,r);return F({query:t,api:p,addedHeaders:i,url:a,token:r.token,variables:e})}async function D(t){let{query:r,session:e,variables:o,version:p,responseOptions:u,preferredBehaviour:s}=t,i=p??S.get(e.storeFqdn);i??=await T(e,s);let a=e.storeFqdn,y=V(e);l()==="local"&&(y["x-forwarded-host"]=a,a=new m().host("app"));let x={url:E(a,i,e),api:"Admin",token:e.token,addedHeaders:y},w;return"refresh"in e&&(w={type:"token_refresh",handler:e.refresh}),g({...x,query:r,variables:o,responseOptions:u,unauthorizedHandler:w,preferredBehaviour:s})}function V(t){return h(t)?{"X-Shopify-Shop":t.storeFqdn,"X-Shopify-Access-Token":t.token}:{}}async function T(t,r){let o=(await N(t,r)).reverse()[0];return S.set(t.storeFqdn,o),o}async function N(t,r){return(await R(t,r)).filter(o=>o.supported).map(o=>o.handle).sort()}async function R(t,r){try{return(await D({query:$,session:t,variables:{},version:"unstable",responseOptions:{handleErrors:!1},preferredBehaviour:r})).publicApiVersions}catch(e){if(e instanceof c&&e.response.status===403){let o=t.storeFqdn.replace(".myshopify.com","");throw new n(f`Looks like you don't have access to this dev store: (${b.link(o,`https://${t.storeFqdn}`)})`,f`If you're not the owner, create a dev store staff account for yourself`)}throw e instanceof c&&(e.response.status===401||e.response.status===404)?new n(`Error connecting to your store ${t.storeFqdn}: ${e.message} ${e.response.status} ${e.response.data}`):e instanceof c&&e.response.status===402?new n(`The store ${t.storeFqdn} is currently unavailable.`,"This usually means the store is frozen, paused, or closed. Check the store in the Shopify admin and try again once it is reactivated."):e instanceof c&&e.response.status>=500?new n(`The Admin API for ${t.storeFqdn} returned a server error (HTTP ${e.response.status}).`,"This is a problem on the Shopify side, not with your command. Wait a moment and try again."):v(e)?new n(`Request to ${t.storeFqdn} was aborted before it completed.`,"The request was cancelled or timed out before the store responded. Try running the command again."):k(e)?new n(`Network error connecting to your store ${t.storeFqdn}: ${e instanceof Error?e.message:String(e)}`,"Check your internet connection and try again."):new A(`Unknown error connecting to your store ${t.storeFqdn}: ${e instanceof Error?e.message:String(e)}`)}}function E(t,r,e){let o=r??"unstable";return e&&h(e)?`https://${q}/cli/admin/api/${o}/graphql.json`:`https://${t}/admin/api/${o}/graphql.json`}export{Y as a,D as b,N as c,R as d,E as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as l}from"./chunk-
|
|
1
|
+
import{h as l}from"./chunk-3LHE4GIX.js";import{K as c}from"./chunk-3V4VL3SD.js";import{i as u}from"./chunk-Q37WAD6F.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var s=["live","unpublished","development"];async function x(e,r){let t=await c(e,r);return p(t)}async function p(e){let r=e.storeFqdn,t=(await l(e)).filter(d);if(t.length===0)throw new u(`There are no themes in the ${r} store`);return t.sort(w)}function d(e){return s.includes(e.role)}function w(e,r){return s.indexOf(e.role)-s.indexOf(r.role)}i();function b(e,r,t){return y(e,r,t)??T(e,r,t)}function y(e,r,t){let o=t.role;if(!o)return;let n=`No themes on the store ${e} match the role "${o}"`;return m(r,h=>h.role===o).orThrow(n)}function T(e,r,t){return t.themeIdentifiers.flatMap(n=>{let h=`No themes on the store ${e} match the ID or name "${n}"`;return m(r,f=>`${f.id}`===n||f.name.toLowerCase()===n.toLowerCase()?!0:L(f.name.toLowerCase(),n.toLowerCase())).orThrow(h)})}function m(e,r){let t=e.filter(r);return t.length>0?{orThrow:o=>t}:{orThrow:o=>{throw new u(o)}}}var a=class{queryProps;constructor(r){this.queryProps=r}get role(){for(let r of s)if(this.queryProps[r])return r}get themeIdentifiers(){return[this.queryProps.theme,this.queryProps.themes].flat().filter(t=>!!t)}any(){return Object.values(this.queryProps).some(r=>r?.length!==void 0?r.length>0:!!r)}};function L(e,r){let t=r.replace(/(^\*)|(\*$)/g,"");return r.startsWith("*")&&r.endsWith("*")?e.includes(t):r.startsWith("*")?e.endsWith(t):r.endsWith("*")?e.startsWith(t):!1}export{s as a,x as b,p as c,b as d,a as e};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as m}from"./chunk-
|
|
1
|
+
import{b as m}from"./chunk-4ZNBEMRT.js";import{G as f}from"./chunk-47IQIIFX.js";import{Ib as c}from"./chunk-UWI76E2L.js";import{b as N}from"./chunk-I3J63RFV.js";import{e as v,g}from"./chunk-VKWPEFWQ.js";g();var d=v(N(),1),i=class h extends m{static description="View all the available command flags";static hidden=!0;static flags={csv:d.Flags.boolean({description:"Output as CSV",env:"SHOPIFY_FLAG_OUTPUT_CSV",default:!1})};async run(){let{flags:p}=await this.parse(h),s=[];for(let[t,a]of this.config.plugins)for(let o of a.commands){let l=await o.load(),n;a.name.startsWith("@shopify")?n=a.name.substring(9):n=a.name.startsWith("@oclif")?a.name.substring(7):a.name;let e=l.flags;if(e)for(let[u,r]of Object.entries(e))s.push({pluginName:n,command:o.id,flagName:`--${u}`,flagChar:r.char?`-${r.char}`:"",flagEnv:r.env})}if(p.csv){let t=["pluginName","command","flagName","flagChar","flagEnv"],a=`${t.join(",")}
|
|
2
2
|
`,o=s.map(n=>t.map(e=>n[e]).join(",")).join(`
|
|
3
3
|
`),l=`${a}${o}
|
|
4
4
|
`;c(l)}else f({rows:s,columns:{pluginName:{header:"plugin",color:"red"},command:{},flagName:{header:"long flag",color:"green"},flagChar:{header:"short flag",color:"green"},flagEnv:{header:"env variable",color:"blueBright"}}})}};export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as i,c as n}from"./chunk-
|
|
1
|
+
import{b as i,c as n}from"./chunk-NU5WLZ6Y.js";import{b as u}from"./chunk-4ZNBEMRT.js";import{M as a}from"./chunk-3V4VL3SD.js";import{a as e}from"./chunk-7VAKNVFD.js";import{Ib as c,Lb as r,b as t}from"./chunk-UWI76E2L.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var m=e({name:"AuthLogoutResult",schema:t.object({status:t.literal("success")}).strict()}),o=class p extends u{static descriptionWithMarkdown="Logs you out of the Shopify account or Partner account and store.";static description=this.descriptionForHelp();static flags={...i,...n};static get jsonOutputSchema(){return m}async run(){let{flags:l}=await this.parse(p);await a(),l.json?c(m.encode({status:"success"})):r("Logged out from all the accounts")}};export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h,b as w}from"./chunk-
|
|
1
|
+
import{a as h,b as w}from"./chunk-YPCXVZ2N.js";import{j as f}from"./chunk-3V4VL3SD.js";import{T as d}from"./chunk-47IQIIFX.js";import{i}from"./chunk-Q37WAD6F.js";import{Ka as m,ra as p}from"./chunk-UWI76E2L.js";import{c as u}from"./chunk-6IDEDOXW.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as I}from"./chunk-VKWPEFWQ.js";I();var o="4.9.4";export{o as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as y}from"./chunk-
|
|
1
|
+
import{a as y}from"./chunk-PWS4VFSD.js";import{a as d}from"./chunk-PO5T44H3.js";import{Ha as h}from"./chunk-UNHT4ZFP.js";import{b as g,c as l}from"./chunk-NU5WLZ6Y.js";import{a as m}from"./chunk-7VAKNVFD.js";import{Ib as u,Vb as f,b as e}from"./chunk-UWI76E2L.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();function S(s){return s.allExtensions.filter(t=>t.isFunctionExtension).map(t=>({source:`extensions.${t.configuration.handle}`,namespace:"extensions",handle:t.handle,name:t.name,type:t.type,externalType:t.externalType,humanName:t.humanName,uid:t.uid,directory:t.directory,configurationPath:t.configurationPath,configuration:t.configuration,entrySourceFilePath:t.entrySourceFilePath,outputPath:t.outputPath,surface:t.surface,features:t.features,dependency:t.dependency}))}o();var P=e.object({source:e.string(),namespace:e.literal("extensions"),handle:e.string(),name:e.string(),type:e.string(),externalType:e.string(),humanName:e.string(),uid:e.string(),directory:e.string(),configurationPath:e.string(),configuration:e.record(e.unknown()),entrySourceFilePath:e.string(),outputPath:e.string(),surface:e.string(),features:e.array(e.string()),dependency:e.string().optional()}).strict(),c=m({name:"AppLogSourcesResult",schema:e.object({sources:e.array(P)}).strict(),definitions:{AppLogSource:P}});o();function j(s,t){if(t==="json"){u(c.encode({sources:s}));return}let r=new Map;s.forEach(({source:a})=>{let n=a.split(".");if(n.length>=2){let i=n[0];r.has(i)||r.set(i,[]),r.set(i,[...r.get(i),a])}});for(let[a,n]of r)u(f(a,n.join(`
|
|
2
2
|
`)))}var p=class s extends y{static summary="Print out a list of sources that may be used with the logs command.";static descriptionWithMarkdown="The output source names can be used with the `--source` argument of `shopify app logs` to filter log output. Currently only function extensions are supported as sources.";static get jsonOutputSchema(){return c}static description=this.descriptionForHelp();static flags={...g,...d,...l};async run(){let{flags:t}=await this.parse(s),{app:r}=await h({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});return r.errors.isEmpty()?j(S(r),t.json?"json":"text"):process.exit(2),{app:r}}};export{p as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as ne}from"./chunk-EMKLN75K.js";import{d as ie}from"./chunk-Q4TZD2M6.js";import{a as se,b as q}from"./chunk-EZ5F4ZFY.js";import{B as C,K as L,pa as V,ra as U,sa as X,u as w}from"./chunk-3E3MCY5O.js";import{e as x}from"./chunk-Q555FV2X.js";import{A as N,B as I,E as re,a as Q,x as te}from"./chunk-RCYQPOJW.js";import{b as K}from"./chunk-YTJ3EPD3.js";import{d as Z,e as ee}from"./chunk-PQH4U2XV.js";import{i as F,l as oe}from"./chunk-ZZ7SOJHH.js";import{Cb as R,Eb as l,Ja as W,Nb as h,Ya as _}from"./chunk-3F42A3XV.js";import{b as Ie}from"./chunk-I3J63RFV.js";import{d as Y,f as k,i as J,q as $}from"./chunk-3VYOLEQE.js";import{e as Te,g as f}from"./chunk-VKWPEFWQ.js";f();var T=Te(Ie(),1);var O={path:T.Flags.string({description:"The path where you want to run the command. Defaults to the current working directory.",env:"SHOPIFY_FLAG_PATH",parse:async t=>{let e=k(t);return _(e)?W(e)?e:(I({headline:"The path must be a directory, not a file.",body:[`The provided path is not a directory: ${e}`,`Did you mean: ${J(e)}`]}),process.exit(1)):(I({headline:"A path was explicitly provided but doesn't exist.",body:[`Please check the path and try again: ${e}`]}),process.exit(1))},default:async()=>$(),noCacheDefault:!0}),password:T.Flags.string({description:"Password generated from the Theme Access app or an Admin API token.",env:"SHOPIFY_CLI_THEME_TOKEN"}),store:T.Flags.string({char:"s",description:"Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).",env:"SHOPIFY_FLAG_STORE",parse:async t=>w(t)}),environment:T.Flags.string({char:"e",description:"The environment to apply to the current command.",env:"SHOPIFY_FLAG_ENVIRONMENT",multiple:!0})},ae="Wrap the value in double quotes if you're using wildcards.",qe=t=>({only:T.Flags.string({char:"o",multiple:!0,description:`${t.charAt(0).toUpperCase()+t.slice(1)} only the specified files (Multiple flags allowed). ${ae}`,env:"SHOPIFY_FLAG_ONLY"}),ignore:T.Flags.string({char:"x",multiple:!0,description:`Skip ${t}ing the specified files (Multiple flags allowed). ${ae}`,env:"SHOPIFY_FLAG_IGNORE"})});f();f();import{AsyncLocalStorage as _e}from"node:async_hooks";var pe=new _e,ce,ue,me,de;function S(){return ce??=new x({projectName:"shopify-cli-theme-conf"}),ce}function j(){return ue??=new x({projectName:"shopify-cli-development-theme-config"}),ue}function D(){return me??=new x({projectName:"shopify-cli-repl-theme-config"}),me}function M(){return de??=new x({projectName:"shopify-cli-theme-store-password"}),de}function B(t=S()){return pe.getStore()?.store??t.get("themeStore")}function fe(t,e=S()){e.set("themeStore",t)}function He(t=S()){return h(l`Getting development theme...`),j().get(v(t))}function ze(t,e=S()){h(l`Setting development theme...`),j().set(v(e),t)}function Ye(t=S()){h(l`Removing development theme...`),j().delete(v(t))}function Je(t=S()){return h(l`Getting REPL theme...`),D().get(v(t))}function We(t,e=S()){h(l`Setting REPL theme to ${t}...`),D().set(v(e),t)}function Ke(t=S()){h(l`Removing REPL theme...`),D().delete(v(t))}function Qe(t=S()){let e=v(t);return h(l`Getting storefront password for shop ${e}...`),M().get(e)}function Ve(t,e=S()){let o=v(e);h(l`Setting storefront password for shop ${o}...`),M().set(o,t)}function Xe(t=S()){let e=v(t);h(l`Removing storefront password for ${e}...`),M().delete(e)}function v(t=S()){let e=B(t);if(!e)throw new oe("Theme store is not set. This indicates an unexpected issue with the CLI. Please report this to the Shopify CLI team.",["It may be possible to recover by running",{command:"shopify theme list --store <store>"},"(setting the store flag to the store you wish to use) and then running the command again."]);return e}async function he(t,e){return pe.run({store:t},e)}function le(t){let e=t.store??B();if(!e)throw V(new F("A store is required",`Specify the store passing ${l`${R.genericShellCommand(`--${O.store.name}=example.myshopify.com`)}`.value} or set the ${l`${R.genericShellCommand(O.store.env)}`.value} environment variable.`));return fe(e),e}f();f();var Se="shopify.theme.toml",ct=new Intl.DateTimeFormat(void 0,{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),ut=["**/.git","**/.vscode","**/.hg","**/.bzr","**/.svn","**/_darcs","**/CVS","**/*.sublime-(project|workspace)","**/.DS_Store","**/.sass-cache","**/Thumbs.db","**/desktop.ini","**/config.yml","**/node_modules/",".prettierrc.json","**/{blocks,layout,snippets}/**/*.liquid.tmp.*","**/{config,locales}/**/*.json.tmp.*","**/{sections,templates}/**/*.{liquid,json}.tmp.*"],mt=50;f();f();var G="7e9cb568cfd431c538f36d1ad3f2b4f6";var Fe="shopify-cli-store",be=240*1e3,ge;function P(){return ge??=new x({projectName:Fe}),ge}function b(t){return`${G}::${Ee(t)}`}function Ee(t){return t.replace(/\\/g,"\\\\").replace(/\./g,"\\.")}function d(t){return typeof t=="string"}function ke(t){if(!t||typeof t!="object")return;let e=t;if(typeof e.id=="number")return{id:e.id,...d(e.email)?{email:e.email}:{},...d(e.firstName)?{firstName:e.firstName}:{},...d(e.lastName)?{lastName:e.lastName}:{},...typeof e.accountOwner=="boolean"?{accountOwner:e.accountOwner}:{}}}function $e(t){if(!t||typeof t!="object")return;let e=t;if(!(!d(e.shopId)||!d(e.name)||!d(e.createdAt)))return{shopId:e.shopId,name:e.name,createdAt:e.createdAt,...d(e.placeholderAccountUuid)?{placeholderAccountUuid:e.placeholderAccountUuid}:{},...d(e.country)?{country:e.country}:{},...d(e.accessUrl)?{accessUrl:e.accessUrl}:{}}}function Pe(t){if(!t||typeof t!="object")return;let e=t;if(!d(e.store)||!d(e.clientId)||!d(e.userId)||!d(e.accessToken)||!Array.isArray(e.scopes)||!e.scopes.every(d)||!d(e.acquiredAt))return;let o=ke(e.associatedUser),r=e.kind==="preview"?"preview":"standard",n=r==="preview"?$e(e.preview):void 0;if(!(r==="preview"&&!n))return{store:e.store,clientId:e.clientId,userId:e.userId,accessToken:e.accessToken,scopes:e.scopes,acquiredAt:e.acquiredAt,...d(e.refreshToken)?{refreshToken:e.refreshToken}:{},...d(e.expiresAt)?{expiresAt:e.expiresAt}:{},...d(e.refreshTokenExpiresAt)?{refreshTokenExpiresAt:e.refreshTokenExpiresAt}:{},...o?{associatedUser:o}:{},...r==="preview"?{kind:r}:{},...n?{preview:n}:{}}}function ye(t,e,o){if(!e||typeof e!="object")return;let{sessionsByUserId:r,currentUserId:n}=e;if(!(r!==void 0||n!==void 0))return;let s=b(t);if(!r||typeof r!="object"||Array.isArray(r)||typeof n!="string"){o.delete(s);return}let a=Object.fromEntries(Object.entries(r).flatMap(([u,c])=>{let p=Pe(c);return p?[[u,p]]:[]}));if(Object.keys(a).length!==Object.keys(r).length)if(a[n])o.set(s,{currentUserId:n,sessionsByUserId:a});else{o.delete(s);return}return{currentUserId:n,sessionsByUserId:a}}function H(t,e){return ye(t,e.get(b(t)),e)}function Ce(t){return t.config?.store??{}}function we(t=P()){let e=[],o=`${G}::`;for(let[r,n]of Object.entries(Ce(t))){if(!r.startsWith(o))continue;let i=ye(r.slice(o.length),n,t),s=i?.sessionsByUserId[i.currentUserId];s&&e.push(s)}return e}function Ae(t,e=P()){let o=w(t),r=H(o,e);if(!r)return;let n=r.sessionsByUserId[r.currentUserId];if(!n){e.delete(b(o));return}return n}function wt(t,e=P()){let o=b(t.store),r=H(t.store,e),n={currentUserId:t.userId,sessionsByUserId:{...r?.sessionsByUserId??{},[t.userId]:t}};e.set(o,n)}function At(t,e,o){let r=w(t),n=typeof e=="string"?e:void 0,i=(typeof e=="string"?o:e)??P(),s=b(r);if(!n){i.delete(s);return}let a=H(r,i);if(!a)return;let{[n]:u,...c}=a.sessionsByUserId,p=Object.keys(c);if(p.length===0){i.delete(s);return}i.set(s,{currentUserId:a.currentUserId===n?p[0]:a.currentUserId,sessionsByUserId:c})}function ve(t){if(!t.expiresAt)return!1;let e=new Date(t.expiresAt).getTime();return Number.isNaN(e)?!0:e-be<Date.now()}var z=class extends q{static baseFlags={...q.baseFlags,...ie};environmentsFilename(){return Se}async command(e,o,r=!1,n,i){}async run(e){let o=this.constructor,r=o.multiEnvironmentsFlags,{args:n,flags:i}=await this.parse(o),s="password"in o.flags,a=(Array.isArray(i.environment)?i.environment:[i.environment]).filter(Boolean),u=r!==null&&r.some(m=>Array.isArray(m)?m.includes("store"):m==="store");if(a.length<=1){if(a[0]&&!i.store&&u)throw new F("Please provide a valid environment.");let m=s?await this.createSession(i):void 0,A=this.constructor.name.toLowerCase();if(U(`theme-command:${A}:single-env:authenticated`),i.path&&!_(i.path))throw new F(`Path does not exist: ${i.path}`);try{await this.command(i,m,!1,n)}finally{await this.logAnalyticsData(m)}return}if(r===null){N({body:"This command does not support multiple environments."});return}let{flags:c}=await this.parse(se(o),this.argv);if("path"in c){this.errorOnGlobalPath();return}let p=await this.loadEnvironments(a,i,c),g=await this.validateEnvironments(p,r,s);"force"in o.flags&&!i.force&&!await this.showConfirmation(this.constructor.name,r,g)||await this.runConcurrent(g.valid)}storeAuthScopes(){}async loadEnvironments(e,o,r){let n=new Map;for(let i of e){let s=await ne(i,"shopify.theme.toml",{from:o.path,silent:!0});s?.store&&typeof s.store=="string"&&(s.store=w(s.store)),s?.path&&typeof s.path=="string"&&(s.path=k(s.path)),n.set(i,{flags:{...o,...s,...r,environment:[i]},validationFlags:{...s,...r}})}return n}async validateEnvironments(e,o,r){let n=[],i=[],s=r?this.storeAuthSessionsForTheme(Array.from(e.values()).map(({validationFlags:u})=>u)):new Map,a=Array.from(e.entries()).map(([u,{flags:c,validationFlags:p}])=>({environmentName:u,flags:c,validationFlags:p,storeAuthSession:this.storeAuthSessionFromCache(p,s)}));for(let{environmentName:u,flags:c,validationFlags:p,storeAuthSession:g}of a){let y=this.validConfig(p,o,u,g);if(y!==!0){let m=y.join(", ");i.push({environment:u,reason:`Missing flags: ${m}`});continue}n.push({environment:u,flags:c,requiresAuth:r,storeAuthSession:g})}return{valid:n,invalid:i}}async showConfirmation(e,o,r){let s={message:[`Run ${e.toLowerCase()} in the following environments?`],confirmationMessage:"Yes, proceed",cancellationMessage:"Cancel"},a=[...r.valid.map(({environment:u,flags:c})=>{let p=o.map(g=>{let y=Array.isArray(g)?g.find(m=>c[m]):g;if(y==="password")return"password";if(y==="path"&&typeof c.path=="string"){let m=c.path.split(/[/\\]/);if(m.length===1)return`path: ${c.path}`;let A=m[0]===""?`/${m[1]}`:m[0],E=m.at(-1);return`path: ${A}/.../${E}`}return y&&`${y}: ${c[y]}`}).join(", ");return[u,{subdued:p||"No flags required"}]}),...r.invalid.map(({environment:u,reason:c})=>[u,{error:`Skipping | ${c}`}])];return s.infoTable={Environment:a},r.invalid.length>0&&(s.confirmationMessage="Proceed anyway (will skip invalid environments)"),re(s)}async runConcurrent(e){let o=new Q,r=e.map(s=>s.flags.store),n=new Set(r),i=r.length===n.size?[e]:this.createSequentialGroups(e);for(let s of i)await te({processes:s.map(({environment:a,flags:u,requiresAuth:c,storeAuthSession:p})=>({prefix:a,action:async(g,y,m)=>{try{let A=u.store;await he(A,async()=>{let E=c?await this.createSession(u,p):void 0,xe=this.constructor.name.toLowerCase();U(`theme-command:${xe}:multi-env:authenticated`);try{await this.command(u,E,!0,{},{stdout:g,stderr:y})}finally{await this.logAnalyticsData(E)}})}catch(A){A instanceof Error&&(A.message=`Environment ${a} failed:
|
|
1
|
+
import{a as ne}from"./chunk-7556AIVG.js";import{d as ie}from"./chunk-NU5WLZ6Y.js";import{a as se,b as q}from"./chunk-4ZNBEMRT.js";import{B as C,K as L,pa as V,ra as U,sa as X,u as w}from"./chunk-3V4VL3SD.js";import{e as x}from"./chunk-QTLGMJDW.js";import{A as N,B as I,E as re,a as Q,x as te}from"./chunk-47IQIIFX.js";import{b as K}from"./chunk-HILYTMVA.js";import{d as Z,e as ee}from"./chunk-DSS4ECIH.js";import{i as F,l as oe}from"./chunk-Q37WAD6F.js";import{Cb as R,Eb as l,Ja as W,Nb as h,Ya as _}from"./chunk-UWI76E2L.js";import{b as Ie}from"./chunk-I3J63RFV.js";import{c as Y,e as k,h as J,p as $}from"./chunk-6IDEDOXW.js";import{e as Te,g as f}from"./chunk-VKWPEFWQ.js";f();var T=Te(Ie(),1);var O={path:T.Flags.string({description:"The path where you want to run the command. Defaults to the current working directory.",env:"SHOPIFY_FLAG_PATH",parse:async t=>{let e=k(t);return _(e)?W(e)?e:(I({headline:"The path must be a directory, not a file.",body:[`The provided path is not a directory: ${e}`,`Did you mean: ${J(e)}`]}),process.exit(1)):(I({headline:"A path was explicitly provided but doesn't exist.",body:[`Please check the path and try again: ${e}`]}),process.exit(1))},default:async()=>$(),noCacheDefault:!0}),password:T.Flags.string({description:"Password generated from the Theme Access app or an Admin API token.",env:"SHOPIFY_CLI_THEME_TOKEN"}),store:T.Flags.string({char:"s",description:"Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).",env:"SHOPIFY_FLAG_STORE",parse:async t=>w(t)}),environment:T.Flags.string({char:"e",description:"The environment to apply to the current command.",env:"SHOPIFY_FLAG_ENVIRONMENT",multiple:!0})},ae="Wrap the value in double quotes if you're using wildcards.",qe=t=>({only:T.Flags.string({char:"o",multiple:!0,description:`${t.charAt(0).toUpperCase()+t.slice(1)} only the specified files (Multiple flags allowed). ${ae}`,env:"SHOPIFY_FLAG_ONLY"}),ignore:T.Flags.string({char:"x",multiple:!0,description:`Skip ${t}ing the specified files (Multiple flags allowed). ${ae}`,env:"SHOPIFY_FLAG_IGNORE"})});f();f();import{AsyncLocalStorage as _e}from"node:async_hooks";var pe=new _e,ce,ue,me,de;function S(){return ce??=new x({projectName:"shopify-cli-theme-conf"}),ce}function j(){return ue??=new x({projectName:"shopify-cli-development-theme-config"}),ue}function D(){return me??=new x({projectName:"shopify-cli-repl-theme-config"}),me}function M(){return de??=new x({projectName:"shopify-cli-theme-store-password"}),de}function B(t=S()){return pe.getStore()?.store??t.get("themeStore")}function fe(t,e=S()){e.set("themeStore",t)}function He(t=S()){return h(l`Getting development theme...`),j().get(v(t))}function ze(t,e=S()){h(l`Setting development theme...`),j().set(v(e),t)}function Ye(t=S()){h(l`Removing development theme...`),j().delete(v(t))}function Je(t=S()){return h(l`Getting REPL theme...`),D().get(v(t))}function We(t,e=S()){h(l`Setting REPL theme to ${t}...`),D().set(v(e),t)}function Ke(t=S()){h(l`Removing REPL theme...`),D().delete(v(t))}function Qe(t=S()){let e=v(t);return h(l`Getting storefront password for shop ${e}...`),M().get(e)}function Ve(t,e=S()){let o=v(e);h(l`Setting storefront password for shop ${o}...`),M().set(o,t)}function Xe(t=S()){let e=v(t);h(l`Removing storefront password for ${e}...`),M().delete(e)}function v(t=S()){let e=B(t);if(!e)throw new oe("Theme store is not set. This indicates an unexpected issue with the CLI. Please report this to the Shopify CLI team.",["It may be possible to recover by running",{command:"shopify theme list --store <store>"},"(setting the store flag to the store you wish to use) and then running the command again."]);return e}async function he(t,e){return pe.run({store:t},e)}function le(t){let e=t.store??B();if(!e)throw V(new F("A store is required",`Specify the store passing ${l`${R.genericShellCommand(`--${O.store.name}=example.myshopify.com`)}`.value} or set the ${l`${R.genericShellCommand(O.store.env)}`.value} environment variable.`));return fe(e),e}f();f();var Se="shopify.theme.toml",ct=new Intl.DateTimeFormat(void 0,{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),ut=["**/.git","**/.vscode","**/.hg","**/.bzr","**/.svn","**/_darcs","**/CVS","**/*.sublime-(project|workspace)","**/.DS_Store","**/.sass-cache","**/Thumbs.db","**/desktop.ini","**/config.yml","**/node_modules/",".prettierrc.json","**/{blocks,layout,snippets}/**/*.liquid.tmp.*","**/{config,locales}/**/*.json.tmp.*","**/{sections,templates}/**/*.{liquid,json}.tmp.*"],mt=50;f();f();var G="7e9cb568cfd431c538f36d1ad3f2b4f6";var Fe="shopify-cli-store",be=240*1e3,ge;function P(){return ge??=new x({projectName:Fe}),ge}function b(t){return`${G}::${Ee(t)}`}function Ee(t){return t.replace(/\\/g,"\\\\").replace(/\./g,"\\.")}function d(t){return typeof t=="string"}function ke(t){if(!t||typeof t!="object")return;let e=t;if(typeof e.id=="number")return{id:e.id,...d(e.email)?{email:e.email}:{},...d(e.firstName)?{firstName:e.firstName}:{},...d(e.lastName)?{lastName:e.lastName}:{},...typeof e.accountOwner=="boolean"?{accountOwner:e.accountOwner}:{}}}function $e(t){if(!t||typeof t!="object")return;let e=t;if(!(!d(e.shopId)||!d(e.name)||!d(e.createdAt)))return{shopId:e.shopId,name:e.name,createdAt:e.createdAt,...d(e.placeholderAccountUuid)?{placeholderAccountUuid:e.placeholderAccountUuid}:{},...d(e.country)?{country:e.country}:{},...d(e.accessUrl)?{accessUrl:e.accessUrl}:{}}}function Pe(t){if(!t||typeof t!="object")return;let e=t;if(!d(e.store)||!d(e.clientId)||!d(e.userId)||!d(e.accessToken)||!Array.isArray(e.scopes)||!e.scopes.every(d)||!d(e.acquiredAt))return;let o=ke(e.associatedUser),r=e.kind==="preview"?"preview":"standard",n=r==="preview"?$e(e.preview):void 0;if(!(r==="preview"&&!n))return{store:e.store,clientId:e.clientId,userId:e.userId,accessToken:e.accessToken,scopes:e.scopes,acquiredAt:e.acquiredAt,...d(e.refreshToken)?{refreshToken:e.refreshToken}:{},...d(e.expiresAt)?{expiresAt:e.expiresAt}:{},...d(e.refreshTokenExpiresAt)?{refreshTokenExpiresAt:e.refreshTokenExpiresAt}:{},...o?{associatedUser:o}:{},...r==="preview"?{kind:r}:{},...n?{preview:n}:{}}}function ye(t,e,o){if(!e||typeof e!="object")return;let{sessionsByUserId:r,currentUserId:n}=e;if(!(r!==void 0||n!==void 0))return;let s=b(t);if(!r||typeof r!="object"||Array.isArray(r)||typeof n!="string"){o.delete(s);return}let a=Object.fromEntries(Object.entries(r).flatMap(([u,c])=>{let p=Pe(c);return p?[[u,p]]:[]}));if(Object.keys(a).length!==Object.keys(r).length)if(a[n])o.set(s,{currentUserId:n,sessionsByUserId:a});else{o.delete(s);return}return{currentUserId:n,sessionsByUserId:a}}function H(t,e){return ye(t,e.get(b(t)),e)}function Ce(t){return t.config?.store??{}}function we(t=P()){let e=[],o=`${G}::`;for(let[r,n]of Object.entries(Ce(t))){if(!r.startsWith(o))continue;let i=ye(r.slice(o.length),n,t),s=i?.sessionsByUserId[i.currentUserId];s&&e.push(s)}return e}function Ae(t,e=P()){let o=w(t),r=H(o,e);if(!r)return;let n=r.sessionsByUserId[r.currentUserId];if(!n){e.delete(b(o));return}return n}function wt(t,e=P()){let o=b(t.store),r=H(t.store,e),n={currentUserId:t.userId,sessionsByUserId:{...r?.sessionsByUserId??{},[t.userId]:t}};e.set(o,n)}function At(t,e,o){let r=w(t),n=typeof e=="string"?e:void 0,i=(typeof e=="string"?o:e)??P(),s=b(r);if(!n){i.delete(s);return}let a=H(r,i);if(!a)return;let{[n]:u,...c}=a.sessionsByUserId,p=Object.keys(c);if(p.length===0){i.delete(s);return}i.set(s,{currentUserId:a.currentUserId===n?p[0]:a.currentUserId,sessionsByUserId:c})}function ve(t){if(!t.expiresAt)return!1;let e=new Date(t.expiresAt).getTime();return Number.isNaN(e)?!0:e-be<Date.now()}var z=class extends q{static baseFlags={...q.baseFlags,...ie};environmentsFilename(){return Se}async command(e,o,r=!1,n,i){}async run(e){let o=this.constructor,r=o.multiEnvironmentsFlags,{args:n,flags:i}=await this.parse(o),s="password"in o.flags,a=(Array.isArray(i.environment)?i.environment:[i.environment]).filter(Boolean),u=r!==null&&r.some(m=>Array.isArray(m)?m.includes("store"):m==="store");if(a.length<=1){if(a[0]&&!i.store&&u)throw new F("Please provide a valid environment.");let m=s?await this.createSession(i):void 0,A=this.constructor.name.toLowerCase();if(U(`theme-command:${A}:single-env:authenticated`),i.path&&!_(i.path))throw new F(`Path does not exist: ${i.path}`);try{await this.command(i,m,!1,n)}finally{await this.logAnalyticsData(m)}return}if(r===null){N({body:"This command does not support multiple environments."});return}let{flags:c}=await this.parse(se(o),this.argv);if("path"in c){this.errorOnGlobalPath();return}let p=await this.loadEnvironments(a,i,c),g=await this.validateEnvironments(p,r,s);"force"in o.flags&&!i.force&&!await this.showConfirmation(this.constructor.name,r,g)||await this.runConcurrent(g.valid)}storeAuthScopes(){}async loadEnvironments(e,o,r){let n=new Map;for(let i of e){let s=await ne(i,"shopify.theme.toml",{from:o.path,silent:!0});s?.store&&typeof s.store=="string"&&(s.store=w(s.store)),s?.path&&typeof s.path=="string"&&(s.path=k(s.path)),n.set(i,{flags:{...o,...s,...r,environment:[i]},validationFlags:{...s,...r}})}return n}async validateEnvironments(e,o,r){let n=[],i=[],s=r?this.storeAuthSessionsForTheme(Array.from(e.values()).map(({validationFlags:u})=>u)):new Map,a=Array.from(e.entries()).map(([u,{flags:c,validationFlags:p}])=>({environmentName:u,flags:c,validationFlags:p,storeAuthSession:this.storeAuthSessionFromCache(p,s)}));for(let{environmentName:u,flags:c,validationFlags:p,storeAuthSession:g}of a){let y=this.validConfig(p,o,u,g);if(y!==!0){let m=y.join(", ");i.push({environment:u,reason:`Missing flags: ${m}`});continue}n.push({environment:u,flags:c,requiresAuth:r,storeAuthSession:g})}return{valid:n,invalid:i}}async showConfirmation(e,o,r){let s={message:[`Run ${e.toLowerCase()} in the following environments?`],confirmationMessage:"Yes, proceed",cancellationMessage:"Cancel"},a=[...r.valid.map(({environment:u,flags:c})=>{let p=o.map(g=>{let y=Array.isArray(g)?g.find(m=>c[m]):g;if(y==="password")return"password";if(y==="path"&&typeof c.path=="string"){let m=c.path.split(/[/\\]/);if(m.length===1)return`path: ${c.path}`;let A=m[0]===""?`/${m[1]}`:m[0],E=m.at(-1);return`path: ${A}/.../${E}`}return y&&`${y}: ${c[y]}`}).join(", ");return[u,{subdued:p||"No flags required"}]}),...r.invalid.map(({environment:u,reason:c})=>[u,{error:`Skipping | ${c}`}])];return s.infoTable={Environment:a},r.invalid.length>0&&(s.confirmationMessage="Proceed anyway (will skip invalid environments)"),re(s)}async runConcurrent(e){let o=new Q,r=e.map(s=>s.flags.store),n=new Set(r),i=r.length===n.size?[e]:this.createSequentialGroups(e);for(let s of i)await te({processes:s.map(({environment:a,flags:u,requiresAuth:c,storeAuthSession:p})=>({prefix:a,action:async(g,y,m)=>{try{let A=u.store;await he(A,async()=>{let E=c?await this.createSession(u,p):void 0,xe=this.constructor.name.toLowerCase();U(`theme-command:${xe}:multi-env:authenticated`);try{await this.command(u,E,!0,{},{stdout:g,stderr:y})}finally{await this.logAnalyticsData(E)}})}catch(A){A instanceof Error&&(A.message=`Environment ${a} failed:
|
|
2
2
|
|
|
3
3
|
${A.message}`,I({body:[A.message]}))}}})),abortSignal:o.signal,showTimestamps:!0,renderOptions:{stdout:process.stderr}})}createSequentialGroups(e){let o=[];return e.forEach(r=>{let n=o.find(i=>!i.some(s=>s.flags.store===r.flags.store));n?n.push(r):o.push([r])}),o}async createSession(e,o){let r=le({store:e.store}),n=e.password;return n?await L(r,n):o??await this.storeAuthSessionForTheme({store:r})??await L(r,n)}async storeAuthSessionForTheme(e){let o=this.storeAuthScopes();if(!o)return;let r=typeof e.store=="string"?e.store:void 0,n=e.password;if(!r||n)return;let i=w(r),s=Ae(i);if(s)return this.adminSessionFromStoreAuthSession(s,i,o)}storeAuthSessionsForTheme(e){let o=this.storeAuthScopes();if(!o)return new Map;let r=new Set(e.filter(({store:n,password:i})=>typeof n=="string"&&!i).map(({store:n})=>w(n)));return r.size===0?new Map:new Map(we().map(n=>{let i=w(n.store);if(!r.has(i))return;let s=this.adminSessionFromStoreAuthSession(n,i,o);return s?[i,s]:void 0}).filter(n=>n!==void 0))}storeAuthSessionFromCache(e,o){let r=typeof e.store=="string"?e.store:void 0,n=e.password;if(!(!r||n))return o.get(w(r))}adminSessionFromStoreAuthSession(e,o,r){if(ve(e)){h(`Ignoring stored store auth session for ${o}: it expired at ${e.expiresAt??"unknown"}.`);return}if(!this.hasRequiredStoreAuthScopes(e.scopes,r)){h(`Ignoring stored store auth session for ${o}: it is missing required scopes (has: ${e.scopes.join(", ")}; needs: ${r.join(", ")}).`);return}return h(`Using stored store auth session for ${o} (scopes: ${e.scopes.join(", ")}).`),C(e.userId),{token:e.accessToken,storeFqdn:o}}expandImpliedStoreAuthScopes(e){let o=new Set(e);for(let r of e){let n=r.match(/^(unauthenticated_)?write_(.*)$/);n&&o.add(`${n[1]??""}read_${n[2]}`)}return o}hasRequiredStoreAuthScopes(e,o){let r=this.expandImpliedStoreAuthScopes(e);return o.every(n=>r.has(n))}validConfig(e,o,r,n){let i=o.filter(s=>Array.isArray(s)?!s.some(a=>this.hasRequiredFlag(e,a,n)):!this.hasRequiredFlag(e,s,n)).map(s=>Array.isArray(s)?s.join(" or "):s);return i.length>0?(N({body:[`Missing required flags in environment configuration${r?` for ${r}`:""}:`,{list:{items:i}}]}),i):!0}hasRequiredFlag(e,o,r){return o==="password"&&r?!0:!!e[o]}errorOnGlobalPath(){let e=Y($(),"shopify.theme.toml"),o=_(e);I({body:["Can't use `--path` flag with multiple environments.",...o?["Configure each environment's theme path in your shopify.theme.toml file instead."]:["Run this command from the directory containing shopify.theme.toml.","No shopify.theme.toml found in current directory."]]})}async logAnalyticsData(e){if(!e)return;let o=X();await Z(()=>({store_fqdn_hash:K(e.storeFqdn),store_domain:e.storeFqdn,cmd_theme_timings:JSON.stringify(o.timings),cmd_theme_errors:JSON.stringify(o.errors),cmd_theme_retries:JSON.stringify(o.retries),cmd_theme_events:JSON.stringify(o.events)})),await ee(()=>({store_fqdn:e.storeFqdn}))}};export{G as a,we as b,Ae as c,wt as d,At as e,B as f,He as g,ze as h,Ye as i,Je as j,We as k,Ke as l,Qe as m,Ve as n,Xe as o,O as p,qe as q,le as r,ct as s,ut as t,mt as u,z as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as s,y as d,z as a}from"./chunk-
|
|
1
|
+
import{A as s,y as d,z as a}from"./chunk-47IQIIFX.js";import{Ib as r}from"./chunk-UWI76E2L.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();function l(e){let i=e.status==="success"?{schemaVersion:1,...e.submission}:{schemaVersion:1,...e.submission,failure:e.failure};return JSON.stringify(i,null,2)}function p(e){return JSON.stringify({schemaVersion:1,outcomes:e.outcomes},null,2)}function D(e){f(e)}function R(e,i){return i.json?r(l(e)):e.status==="failed"?S(e):i.watch?d({headline:"Subscription migration operations.",body:e.submission.operations.map(({operation:o})=>c(o))}):f(e.submission),e.status==="failed"?1:0}function v(e,i){let o=e.outcomes.some(({status:n})=>n==="failed");return i.json?r(p(e)):o?s({headline:"Some subscription migration operations could not be canceled.",body:m(e.outcomes)}):a({headline:"Subscription migration operations canceled.",body:m(e.outcomes)}),o?1:0}function f(e){let i=e.action==="schedule"?"scheduled":"unscheduled";a({headline:`Subscription migrations ${i}.`,body:[`Shops: ${e.total}`,"Operation IDs:",...e.operations.map(({operation:o})=>o.id),"Save every operation ID. You will need them to check or cancel this submission."]})}function S(e){if(e.failure.type==="operations"){s({headline:"Some subscription migration operations failed.",body:["Failed operation IDs:",...e.failure.operationIds,"Terminal operation outcomes:",...e.submission.operations.map(({operation:o})=>c(o)),"Save every operation ID. You will need them to inspect this submission."]});return}let i=e.submission.operations.map(({operation:o})=>o.id);s({headline:i.length===0?"Subscription migration submission failed.":"Some subscription migration operations were accepted before submission failed.",body:[...i.length===0?["Accepted operation IDs: None."]:["Accepted operation IDs:",...i],`Batch index: ${e.failure.batchIndex}`,"Errors:",...e.failure.userErrors.map(({message:o})=>o),...i.length===0?[]:["Save every accepted operation ID. You will need them to check or cancel accepted operations."]]})}function m(e){let i=e.filter(n=>n.status==="success"),o=e.filter(n=>n.status==="failed");return[...i.length===0?["Canceled operations: None."]:["Canceled operations:",...i.map(({operation:n})=>c(n))],...o.length===0?[]:["Failed operations:",...o.map(({operationId:n,operation:u,userErrors:b})=>{let h=u?` (returned status: ${u.status})`:"";return`${n}: ${b.map(({message:g})=>g).join("; ")}${h}`})]]}function c(e){return`${e.id}: ${e.status} (${e.results.edges.length}/${e.total} settled)`}export{D as a,R as b,v as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Ge}from"./chunk-
|
|
1
|
+
import{c as Ge}from"./chunk-TFXUDHCP.js";import{D as $e,E as He,H as te,L as D,X as Be,Z as E,_ as je,a as Pe,ca as b,da as K,e as qe,ga as V,ha as Ke,ia as A,j as Oe,k as ie,q as y,r as Me,s as ae,u as U}from"./chunk-3V4VL3SD.js";import{b as We}from"./chunk-ZDF5N422.js";import{w as oe}from"./chunk-3C4WVKSO.js";import{b as Le}from"./chunk-QTLGMJDW.js";import{a as Ve}from"./chunk-XUUIBSLW.js";import{D as Je,E as Ze,F as Qe,I as Xe,J as en,T as nn,z as Ye}from"./chunk-47IQIIFX.js";import{e as Ue,g as Ee}from"./chunk-HILYTMVA.js";import{a as we}from"./chunk-7VAKNVFD.js";import{i as c,l as T}from"./chunk-Q37WAD6F.js";import{Cb as tn,Eb as P,Ib as on,Nb as se,R as C,X as W,Xa as ze,_a as Ce,b as t,ja as xe,qa as Re}from"./chunk-UWI76E2L.js";import{i as re}from"./chunk-B4OMIONW.js";import{g as an}from"./chunk-UEBUGSBT.js";import{c as Ie,i as j}from"./chunk-6IDEDOXW.js";import{e as B,g as s}from"./chunk-VKWPEFWQ.js";s();function q(e,{httpsOnly:n=!1,message:i="Invalid URL"}={}){return e.refine(a=>de(a,n),{message:i}).refine(a=>!a.includes(`
|
|
2
2
|
`),{message:i})}function it(e,{message:n="URL must be HTTPS URL or start with /"}={}){return e.refine(i=>i.startsWith("/")||de(i,!0),{message:n})}var rn=/[\r\n\t]/;function sn(e){return de(e,!0)}function de(e,n){try{let i=new URL(e);return n?i.protocol==="https:":["http:","https:"].includes(i.protocol)}catch{return!1}}function at(e){return typeof e=="string"&&!e.startsWith("/")?`/${e}`:e}var wi=30;function tt(e){return e.length<=wi}s();s();s();function dn(e){return qe`
|
|
3
3
|
query OrganizationBetaFlags($organizationId: OrganizationID!) {
|
|
4
4
|
organization(organizationId: $organizationId) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o,c as l,f as m}from"./chunk-
|
|
1
|
+
import{b as o,c as l,f as m}from"./chunk-UNHT4ZFP.js";import{A as a,S as h}from"./chunk-47IQIIFX.js";import{Xa as f,ra as c}from"./chunk-UWI76E2L.js";import{c as s}from"./chunk-6IDEDOXW.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();async function d(n){if(n.features.includes("function")&&n.isJavaScript){let e=await m(n);return o(e.functionRunner)}return o()}function p(n){return n.configuration.build?.path?s(n.directory,n.configuration.build.path):n.outputPath}async function y(n,e){try{if(!await f(e))return;let i=c(e);if(!WebAssembly.validate(i))return;let t=new WebAssembly.Module(i);if(WebAssembly.Module.customSections(t,"name").length>0)return;if(n.isJavaScript){a({headline:"The profile won't contain names for your function.",body:"JavaScript functions built with Javy don't include a WebAssembly function name section, regardless of the wasm_opt setting. Function names will appear as <unknown> in the profile."});return}a({headline:"The profile won't contain names for your function.",body:["The built WebAssembly module doesn't contain a function name section. The default wasm-opt step removes this section, and the function compiler can also omit it. To preserve function names, set ",{userInput:"wasm_opt = false"}," under ",{userInput:"[extensions.build]"}," in shopify.extension.toml, configure the compiler to emit function names, and rebuild the function."]})}catch{}}async function W(n){let e=n.functionExtension,i=await d(e);await l(i);let t=[];n.inputPath&&t.push("--input",n.inputPath),n.export&&t.push("--export",n.export),n.json&&t.push("--json"),n.profile&&t.push("--profile"),n.schemaPath&&n.queryPath&&(t.push("--schema-path",n.schemaPath),t.push("--query-path",n.queryPath));let r=p(e);return n.profile&&await y(e,r),h(i.path,["-f",r,...t],{cwd:n.functionExtension.directory,stdin:n.stdin,stdout:n.stdout??"inherit",stderr:n.stderr??"inherit",input:n.input})}export{W as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as N,c as S,d as A}from"./chunk-
|
|
1
|
+
import{b as N,c as S,d as A}from"./chunk-YYA5VGDW.js";import{a as T}from"./chunk-GN66BRYF.js";import{a as g}from"./chunk-PO5T44H3.js";import{Ia as x,b as P,c as y}from"./chunk-UNHT4ZFP.js";import{b as d,c as b}from"./chunk-NU5WLZ6Y.js";import{y as f}from"./chunk-47IQIIFX.js";import{Cb as h,Eb as l,Ib as m}from"./chunk-UWI76E2L.js";import{c as p}from"./chunk-6IDEDOXW.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();s();function C(n,t){let o={};return n.targeting?.forEach(e=>{e.target&&(o[e.target]={...e.input_query&&{inputQueryPath:`${t}/${e.input_query}`},...e.export&&{export:e.export}})}),o}function I(n,t,o,e,r,i){return JSON.stringify({handle:t.handle,name:n.name,apiVersion:t.api_version,targeting:o,schemaPath:i,wasmPath:r,functionRunnerPath:e},null,2)}function w(n,t){return{title:`CONFIGURATION
|
|
2
2
|
`,body:{tabularData:[["Handle",n.handle??"N/A"],["Name",t??"N/A"],["API Version",n.api_version??"N/A"]],firstColumnSubdued:!0}}}function j(n){if(Object.keys(n).length===0)return null;let t=[];return Object.entries(n).forEach(([o,e])=>{t.push([l`${h.cyan(o)}`.value,""]),e.inputQueryPath&&t.push([{subdued:" Input Query Path"},{filePath:e.inputQueryPath}]),e.export&&t.push([{subdued:" Export"},e.export])}),{title:`
|
|
3
3
|
TARGETING
|
|
4
4
|
`,body:{tabularData:t}}}function O(n,t){return{title:`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as A}from"./chunk-
|
|
1
|
+
import{b as A}from"./chunk-NU5WLZ6Y.js";import{b as w}from"./chunk-4ZNBEMRT.js";import{j as g}from"./chunk-3V4VL3SD.js";import{i as a}from"./chunk-Q37WAD6F.js";import{Aa as m,Ib as y,Kb as v,ya as u}from"./chunk-UWI76E2L.js";import{b as L}from"./chunk-I3J63RFV.js";import{e as h,h as f}from"./chunk-6IDEDOXW.js";import{e as x,g as s}from"./chunk-VKWPEFWQ.js";s();s();var U="text/markdown",b="X-Shopify-Surface",R="cli",F=["shopify.dev"];async function S(t,e,p){let c;try{c=new URL(t)}catch{throw new a(`Invalid URL: ${t}`)}let{hostname:d}=c;if(!F.some(o=>d===o||d.endsWith(`.${o}`)))throw new a(`Only documents from the following hosts can be fetched: ${F.join(", ")}.`);let i=await g(t,{headers:{Accept:U,[b]:R,...p?{"Accept-Language":p}:{}}});if(!i.ok)throw new a(`Failed to fetch ${t}: ${i.status} ${i.statusText}`);let l=await i.text();if(e){let o=h(e);await m(f(o)),await u(o,l),v(`Saved ${t} to ${o}`);return}y(l)}var n=x(L(),1),r=class t extends w{static description="Download a complete document from shopify.dev. Every page on shopify.dev has a Markdown version, and that is what this tool returns. Use this to pull an entire document verbatim \u2014 for example, a set of instructions an agent follows like a centrally-served skill. Pass `--language` for the language of the app you are building so code examples match your stack. For finding the relevant pieces of content across shopify.dev instead, use `doc search`.";static examples=[`# fetch the Markdown version of a Shopify.dev page
|
|
2
2
|
shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli`,`# filter code examples to the language of the app you are building
|
|
3
3
|
shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli --language ruby`,`# save the document to a file instead of printing it
|
|
4
4
|
shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli --output docs/shopify-cli.md`];static flags={...A,url:n.Flags.string({description:"The shopify.dev URL to fetch.",env:"SHOPIFY_FLAG_URL",required:!0}),language:n.Flags.string({description:"Filter code examples in the returned Markdown to this language. Supply the language of the app you are building so examples match your stack. Optional \u2014 if omitted, or if shopify.dev does not recognize the language for a given page, the document includes examples in every language.",env:"SHOPIFY_FLAG_LANGUAGE",options:["javascript","typescript","python","ruby","php","rust","curl","liquid","graphql","html"]}),output:n.Flags.string({description:"Write the document to this file path instead of printing it to stdout.",env:"SHOPIFY_FLAG_OUTPUT"})};async run(){let{flags:e}=await this.parse(t);await S(e.url,e.output,e.language)}};export{r as a};
|