@shopify/cli 4.8.0 → 4.8.2
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-3SII67XF.js +1 -0
- package/dist/{analytics-OOT5AB52.js → analytics-5K4B2DE4.js} +1 -1
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-XHKWITLA.js → chunk-26LLUNJJ.js} +1 -1
- package/dist/{chunk-F6X6OXXB.js → chunk-2AJKHY5T.js} +1 -1
- package/dist/{chunk-VD4XJ6BX.js → chunk-2D46X762.js} +1 -1
- package/dist/{chunk-YPWHD3NL.js → chunk-2GDXU42J.js} +1 -1
- package/dist/{chunk-Q6ADIMJM.js → chunk-2JORC3Q5.js} +1 -1
- package/dist/{chunk-NNZXKFOS.js → chunk-2JXH2CQB.js} +1 -1
- package/dist/{chunk-T7PJDT5O.js → chunk-2MMJVHYZ.js} +1 -1
- package/dist/{chunk-K42WBNJQ.js → chunk-2ZGU7VWR.js} +1 -1
- package/dist/{chunk-HP64ZTEJ.js → chunk-36ZTFNMR.js} +1 -1
- package/dist/{chunk-Q5LIJGT7.js → chunk-3EO3UEPZ.js} +1 -1
- package/dist/{chunk-H2TQ4ODI.js → chunk-3NSZBIHE.js} +1 -1
- package/dist/{chunk-5L63PRJL.js → chunk-3NVQTA2F.js} +1 -1
- package/dist/{chunk-ZYX7UHCQ.js → chunk-3QF47EX2.js} +1 -1
- package/dist/{chunk-OMHR423H.js → chunk-44OAVCF6.js} +1 -1
- package/dist/{chunk-FDYW3UQC.js → chunk-472T4YTY.js} +1 -1
- package/dist/{chunk-GNBRCK7L.js → chunk-4Y7WHAJX.js} +1 -1
- package/dist/{chunk-N65F7ET2.js → chunk-4YMU5WAG.js} +1 -1
- package/dist/{chunk-IT4HYLTY.js → chunk-564CWTLZ.js} +1 -1
- package/dist/{chunk-EX5GVHGE.js → chunk-5AFM6CVE.js} +1 -1
- package/dist/{chunk-XUYVJEZG.js → chunk-5EW33K5C.js} +1 -1
- package/dist/{chunk-U2DWBZK2.js → chunk-5FHTBBDR.js} +1 -1
- package/dist/{chunk-5SEEDOQ5.js → chunk-5GBIXC2Y.js} +1 -1
- package/dist/{chunk-CIWKN4HF.js → chunk-5GK7UKIP.js} +1 -1
- package/dist/{chunk-A6BMJISP.js → chunk-5LGEBELU.js} +1 -1
- package/dist/{chunk-7ISJRIPT.js → chunk-5NT2BNMB.js} +1 -1
- package/dist/{chunk-WBYAGS6B.js → chunk-65YY4727.js} +1 -1
- package/dist/{chunk-E55KS3GZ.js → chunk-6BNOQJHH.js} +1 -1
- package/dist/{chunk-ZL5LU4U2.js → chunk-6F6LL5UM.js} +1 -1
- package/dist/{chunk-OZL5FTT7.js → chunk-6ZCPQOWW.js} +1 -1
- package/dist/{chunk-S5FOQY35.js → chunk-73MCDHWW.js} +1 -1
- package/dist/{chunk-CULTZLC4.js → chunk-76PGSVVM.js} +1 -1
- package/dist/{chunk-R7T3LYJL.js → chunk-7BYWIVUZ.js} +1 -1
- package/dist/{chunk-UAETNFN4.js → chunk-7CV75WGB.js} +1 -1
- package/dist/{chunk-ZZRFG6ME.js → chunk-7LW23M5C.js} +1 -1
- package/dist/{chunk-VYDSOAV4.js → chunk-7MFISB2R.js} +1 -1
- package/dist/{chunk-2EAFYCCS.js → chunk-7MZEOTFK.js} +1 -1
- package/dist/{chunk-YKL3BLWC.js → chunk-7SHHNWHL.js} +1 -1
- package/dist/{chunk-O7DZXO3O.js → chunk-7VW2J53A.js} +1 -1
- package/dist/{chunk-NW6NUGN7.js → chunk-A27WKAFQ.js} +1 -1
- package/dist/{chunk-NGLMZYS7.js → chunk-A6FO2ZZW.js} +2 -2
- package/dist/{chunk-Z4AFEO36.js → chunk-AAEJL2TP.js} +1 -1
- package/dist/{chunk-H6XEESUN.js → chunk-AD6BC3N6.js} +1 -1
- package/dist/{chunk-UAFEFKAQ.js → chunk-AEUVT7IU.js} +1 -1
- package/dist/{chunk-VSDRNYA5.js → chunk-AFA4NLPV.js} +1 -1
- package/dist/{chunk-GRSF7456.js → chunk-AGKG5G6X.js} +1 -1
- package/dist/{chunk-PATTG7YZ.js → chunk-AHFOIPEK.js} +1 -1
- package/dist/{chunk-Q5JX23QU.js → chunk-ATFKBLMQ.js} +1 -1
- package/dist/{chunk-FX3L344E.js → chunk-ATMII5E5.js} +1 -1
- package/dist/{chunk-4ZNV5YSL.js → chunk-AXZG7H2F.js} +1 -1
- package/dist/{chunk-YZMY2CTU.js → chunk-BC42C35S.js} +1 -1
- package/dist/{chunk-6MWWJZFN.js → chunk-BCWKIFNX.js} +1 -1
- package/dist/chunk-BFL74TW2.js +1 -0
- package/dist/{chunk-PP4L2JJ6.js → chunk-BPI25I3Q.js} +1 -1
- package/dist/{chunk-36ROOKQB.js → chunk-BZC3KLVQ.js} +1 -1
- package/dist/{chunk-SYLHT42O.js → chunk-CAT3FQ6U.js} +1 -1
- package/dist/{chunk-T4QWK5GG.js → chunk-CEDXFKIK.js} +1 -1
- package/dist/{chunk-FEDVVYK2.js → chunk-CGYVLQCZ.js} +1 -1
- package/dist/{chunk-5N6HNQQ5.js → chunk-CLUMXUR5.js} +1 -1
- package/dist/{chunk-BZ73NV3L.js → chunk-D3DCP4OT.js} +1 -1
- package/dist/{chunk-R6ICQT2D.js → chunk-D7S4HEQE.js} +1 -1
- package/dist/{chunk-VFM2KQRM.js → chunk-DD7FQDTB.js} +3 -3
- package/dist/{chunk-3DCN3N23.js → chunk-DJGDJSXS.js} +1 -1
- package/dist/{chunk-CX75OKZK.js → chunk-DLCJRY3W.js} +1 -1
- package/dist/chunk-DWI2BHXZ.js +1 -0
- package/dist/{chunk-Y47C3LSX.js → chunk-DY64LYXB.js} +1 -1
- package/dist/{chunk-IKUSLRGD.js → chunk-EEKB5GN6.js} +1 -1
- package/dist/{chunk-QTJCCOAG.js → chunk-EJCBL2W2.js} +1 -1
- package/dist/{chunk-YFINLODF.js → chunk-ESTXKKAB.js} +1 -1
- package/dist/{chunk-OGBZTY2G.js → chunk-EUSOP35K.js} +1 -1
- package/dist/{chunk-6CXG3XLP.js → chunk-EVIITVUM.js} +1 -1
- package/dist/{chunk-HHN6KZXX.js → chunk-EZ6VGZXC.js} +1 -1
- package/dist/{chunk-IARCMH7G.js → chunk-F2X7F5QX.js} +1 -1
- package/dist/{chunk-E5FXOLQO.js → chunk-F4HKZVXJ.js} +1 -1
- package/dist/{chunk-6BDAJ6UD.js → chunk-F6SKKCKZ.js} +1 -1
- package/dist/{chunk-VVZSYHDG.js → chunk-FGZNKGW5.js} +1 -1
- package/dist/{chunk-N6RBRPGW.js → chunk-GJ34J3XJ.js} +1 -1
- package/dist/{chunk-ZDRIQC7O.js → chunk-GV2JI5PS.js} +1 -1
- package/dist/{chunk-YEVGLC5X.js → chunk-GZKEIUJT.js} +1 -1
- package/dist/{chunk-YNDIZCD2.js → chunk-H72B4Y5L.js} +1 -1
- package/dist/{chunk-LUKQ5HLC.js → chunk-HCTPSLRL.js} +1 -1
- package/dist/{chunk-DASVZTAX.js → chunk-HGJIYWXY.js} +1 -1
- package/dist/{chunk-VXEYO3ZP.js → chunk-HGRTQIGQ.js} +1 -1
- package/dist/{chunk-TEY4LRY7.js → chunk-HQHKCLIU.js} +1 -1
- package/dist/{chunk-NROVZETL.js → chunk-I2PSC3VF.js} +1 -1
- package/dist/chunk-ID3AR4VW.js +1 -0
- package/dist/{chunk-WYBTC356.js → chunk-IGRDJ4EC.js} +1 -1
- package/dist/{chunk-M2XHIN57.js → chunk-JADBWMQS.js} +1 -1
- package/dist/{chunk-HFSCXTJQ.js → chunk-JIZ3BECO.js} +1 -1
- package/dist/{chunk-Z65E4UAP.js → chunk-JP4O56VD.js} +1 -1
- package/dist/{chunk-YD2VQEN5.js → chunk-JVZ3VF4D.js} +1 -1
- package/dist/{chunk-Q5KVMLBK.js → chunk-KANWS6HC.js} +1 -1
- package/dist/{chunk-ULRJDKWQ.js → chunk-KKUA7VMA.js} +1 -1
- package/dist/{chunk-G5XIGN5D.js → chunk-KLXOMT3K.js} +1 -1
- package/dist/{chunk-EB574SY6.js → chunk-KQJBTX6K.js} +1 -1
- package/dist/{chunk-C3RUVXG2.js → chunk-KTILY5HE.js} +1 -1
- package/dist/{chunk-QTFUYKMF.js → chunk-LHLYEFO7.js} +1 -1
- package/dist/{chunk-7HFHL5SO.js → chunk-LQJMBNVQ.js} +1 -1
- package/dist/chunk-LX7W4GUD.js +1 -0
- package/dist/{chunk-ZH44BDUR.js → chunk-LY7PSCG4.js} +1 -1
- package/dist/{chunk-T4AA6TSF.js → chunk-LZC2EJLI.js} +1 -1
- package/dist/{chunk-XH5YGJQR.js → chunk-M47E7LE5.js} +1 -1
- package/dist/{chunk-KDU7VW3L.js → chunk-M6KOCZVH.js} +1 -1
- package/dist/{chunk-AWUX36VG.js → chunk-M6Z6NXCE.js} +1 -1
- package/dist/{chunk-N75VOJHO.js → chunk-MJ3WNVMQ.js} +1 -1
- package/dist/{chunk-NE3ZFSMS.js → chunk-MWJVYQVC.js} +1 -1
- package/dist/{chunk-C4YLE3NS.js → chunk-N4N35AQP.js} +1 -1
- package/dist/{chunk-J4T73EAS.js → chunk-N4WEI6JA.js} +1 -1
- package/dist/{chunk-HB347DXT.js → chunk-N6A3ISBE.js} +1 -1
- package/dist/{chunk-FDBHQLFK.js → chunk-N6SZTZNB.js} +1 -1
- package/dist/{chunk-YESGYUEL.js → chunk-N7VI7OWJ.js} +1 -1
- package/dist/{chunk-Y5PRPHLQ.js → chunk-NAIXUSEF.js} +1 -1
- package/dist/{chunk-CEYIZC3M.js → chunk-NEREVIKL.js} +1 -1
- package/dist/{chunk-XOCB4KNX.js → chunk-NL7WDQSR.js} +1 -1
- package/dist/{chunk-3JXPOOFV.js → chunk-NYHGIWKZ.js} +5 -5
- package/dist/{chunk-DX3JLOUA.js → chunk-O2FGO4CJ.js} +1 -1
- package/dist/{chunk-NQK2VCDA.js → chunk-OCT65FRG.js} +1 -1
- package/dist/{chunk-2O224ZPO.js → chunk-PEWR7SF6.js} +1 -1
- package/dist/chunk-PIYTMQRC.js +1 -0
- package/dist/{chunk-MYQUYU4U.js → chunk-PKGJTTCP.js} +1 -1
- package/dist/{chunk-742XXXGL.js → chunk-PPWJM7KE.js} +1 -1
- package/dist/{chunk-2KGPH7YG.js → chunk-Q4BTAXLS.js} +1 -1
- package/dist/{chunk-OV6SRRXR.js → chunk-QB6J3J6O.js} +1 -1
- package/dist/{chunk-TUVDJ3PG.js → chunk-QD2KPFUT.js} +1 -1
- package/dist/{chunk-NILETICC.js → chunk-QJW6UIRU.js} +1 -1
- package/dist/{chunk-GAYKYEIM.js → chunk-QYV62H24.js} +1 -1
- package/dist/{chunk-7LWUHQIF.js → chunk-R5EBKVQR.js} +1 -1
- package/dist/{chunk-6RQOEPEC.js → chunk-R5ONMTHY.js} +1 -1
- package/dist/{chunk-JIYSCWCG.js → chunk-R7XKECV5.js} +1 -1
- package/dist/{chunk-E6N4PZZR.js → chunk-RB7J7C3A.js} +1 -1
- package/dist/{chunk-XF2KTEID.js → chunk-RF54RVOL.js} +1 -1
- package/dist/{chunk-YSAFHVV6.js → chunk-RFYFI72S.js} +1 -1
- package/dist/{chunk-FJ6F4XRV.js → chunk-ROIASQF4.js} +1 -1
- package/dist/{chunk-PG5YNPJB.js → chunk-RR4KN46J.js} +1 -1
- package/dist/{chunk-TFBRVLDN.js → chunk-S67RM4AH.js} +1 -1
- package/dist/{chunk-GCY7LPEF.js → chunk-SNAIF3ST.js} +1 -1
- package/dist/{chunk-67Z34HN5.js → chunk-T4UZOUVM.js} +1 -1
- package/dist/{chunk-QOV43E26.js → chunk-T6M5V6RH.js} +1 -1
- package/dist/{chunk-RXQJCJDV.js → chunk-T7RMEJNE.js} +1 -1
- package/dist/{chunk-OZMQ2EJB.js → chunk-THEONODK.js} +1 -1
- package/dist/{chunk-NBFMP5XQ.js → chunk-TQRKW6W3.js} +1 -1
- package/dist/{chunk-2CIZE537.js → chunk-UXDW37V5.js} +1 -1
- package/dist/{chunk-S2TLBBSS.js → chunk-UXFTZHBG.js} +1 -1
- package/dist/{chunk-YLXPYXQP.js → chunk-VEVKY5LR.js} +1 -1
- package/dist/{chunk-NHAUJWEG.js → chunk-VNW2YMPM.js} +1 -1
- package/dist/{chunk-F3NYCSXT.js → chunk-W25XMFZJ.js} +1 -1
- package/dist/{chunk-U53OLUOE.js → chunk-WAVWKGSF.js} +1 -1
- package/dist/{chunk-OBYQSIYU.js → chunk-WJ6GLVIM.js} +1 -1
- package/dist/{chunk-KWVOJWO7.js → chunk-WKCXSP6V.js} +1 -1
- package/dist/{chunk-QERQARMC.js → chunk-WSPQWLOS.js} +1 -1
- package/dist/{chunk-MNOQAXJW.js → chunk-WU5HO6FZ.js} +1 -1
- package/dist/{chunk-IBI5UCJO.js → chunk-X3PGH5S4.js} +1 -1
- package/dist/{chunk-Z5WPP6ME.js → chunk-XLEGKHUM.js} +1 -1
- package/dist/{chunk-OVV5YGKN.js → chunk-XLSKATCP.js} +1 -1
- package/dist/{chunk-2AK44UYM.js → chunk-XMQJUFVE.js} +1 -1
- package/dist/{chunk-2XDUJQQN.js → chunk-XQIPACFV.js} +3 -3
- package/dist/{chunk-FOREMLFZ.js → chunk-XS6EKKTD.js} +1 -1
- package/dist/{chunk-OEG3N5PG.js → chunk-XTPBKTAX.js} +1 -1
- package/dist/{chunk-JWRK5KLD.js → chunk-XZSSBNGP.js} +1 -1
- package/dist/{chunk-XUUAKGEX.js → chunk-YAPH7GMC.js} +1 -1
- package/dist/{chunk-LANUJ7LX.js → chunk-YP35VTKI.js} +1 -1
- package/dist/{chunk-FUYDGK33.js → chunk-YRRGHHTP.js} +1 -1
- package/dist/{chunk-P57P7UAN.js → chunk-YXS4SFIN.js} +1 -1
- package/dist/{chunk-JX7FYWPO.js → chunk-ZG3I4COP.js} +1 -1
- package/dist/{chunk-7T6M7FAC.js → chunk-ZKWJX5GE.js} +1 -1
- package/dist/{chunk-GRPKF5ZB.js → chunk-ZQ4KG6U2.js} +1 -1
- package/dist/{chunk-72ZY3KTF.js → chunk-ZQQDUU3T.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/doctor/instructions.js +1 -1
- package/dist/cli/commands/app/doctor.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/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/command-registry.js +1 -1
- package/dist/{conf-store-ASDCTDQ4.js → conf-store-OFRC7GO7.js} +1 -1
- package/dist/{deprecations-VBQV7Q4O.js → deprecations-PSCEZAQH.js} +1 -1
- package/dist/dist-733YLWJN.js +1 -0
- package/dist/dist-KOFJQ4RY.js +1 -0
- package/dist/{environments-HSTNEQRG.js → environments-FFWXZPU5.js} +1 -1
- package/dist/{error-2LZYKRMA.js → error-UHLTMPVC.js} +1 -1
- package/dist/error-handler-PVVDX7WF.js +1 -0
- package/dist/{fs-BJHNJDDK.js → fs-N6AHVL6I.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-6SCOAJVG.js → is-global-DDGO2AWZ.js} +1 -1
- package/dist/{local-PZWPRFU7.js → local-JZRBCKAH.js} +1 -1
- package/dist/{metadata-VVBHB3HL.js → metadata-KYBVCKB5.js} +1 -1
- package/dist/{node-package-manager-ETYQN7OM.js → node-package-manager-O3DQCYJC.js} +1 -1
- package/dist/notifications-system-O7JENRRD.js +1 -0
- package/dist/os-ZZ47F6CA.js +1 -0
- package/dist/{output-74VDGYJD.js → output-VAVFLR73.js} +1 -1
- package/dist/{system-P5QIJALL.js → system-3PB7N6PP.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-H5I5YVKV.js → ui-YTGKLMHA.js} +1 -1
- package/dist/upgrade-XYGE5PDR.js +1 -0
- package/dist/{version-J2PYO6M5.js → version-5OTQ3U3D.js} +1 -1
- package/dist/version-P72VURM3.js +1 -0
- package/dist/{workerd-X4TGHEG3.js → workerd-GHAVFNOO.js} +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +7 -7
- package/dist/analytics-3IIUBZ3B.js +0 -1
- package/dist/chunk-BWJIZYAG.js +0 -1
- package/dist/chunk-JG4HH54Q.js +0 -1
- package/dist/chunk-UZARYOLN.js +0 -1
- package/dist/chunk-VASGXHYA.js +0 -1
- package/dist/chunk-WGAFCKGD.js +0 -1
- package/dist/dist-FZLOAKU7.js +0 -1
- package/dist/dist-HTY6UHG5.js +0 -1
- package/dist/error-handler-PIGEJ7BT.js +0 -1
- package/dist/notifications-system-652OG5KL.js +0 -1
- package/dist/os-7D6NT4O3.js +0 -1
- package/dist/upgrade-34HSYBXI.js +0 -1
- package/dist/version-EKXEAF6Q.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{b as g}from"./chunk-
|
|
1
|
+
import{b as g}from"./chunk-GZKEIUJT.js";import{b as y}from"./chunk-XQIPACFV.js";import{r as u}from"./chunk-NYHGIWKZ.js";import{h as r}from"./chunk-BFL74TW2.js";import{a as R}from"./chunk-CTNBSUVU.js";import{ua as l,wa as m,wb as v,xb as w}from"./chunk-DD7FQDTB.js";import{f as p,i as h}from"./chunk-773TIA5M.js";import{e as A,g as s}from"./chunk-VKWPEFWQ.js";s();s();var U="text/markdown",L="X-Shopify-Surface",E="cli",F=["shopify.dev"];async function S(t,e){let c;try{c=new URL(t)}catch{throw new r(`Invalid URL: ${t}`)}let{hostname:d}=c;if(!F.some(o=>d===o||d.endsWith(`.${o}`)))throw new r(`Only documents from the following hosts can be fetched: ${F.join(", ")}.`);let i=await u(t,{headers:{Accept:U,[L]:E}});if(!i.ok)throw new r(`Failed to fetch ${t}: ${i.status} ${i.statusText}`);let f=await i.text();if(e){let o=p(e);await m(h(o)),await l(o,f),w(`Saved ${t} to ${o}`);return}v(f)}var n=A(R(),1),a=class t extends y{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. 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`,`# save the document to a file instead of printing it
|
|
3
3
|
shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli --output docs/shopify-cli.md`];static flags={...g,url:n.Flags.string({description:"The shopify.dev URL to fetch.",env:"SHOPIFY_FLAG_URL",required:!0}),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)}};export{a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as C}from"./chunk-
|
|
1
|
+
import{a as C}from"./chunk-BZC3KLVQ.js";import{b as ne,c as re}from"./chunk-ZG3I4COP.js";import{c as ee,d as te}from"./chunk-2MMJVHYZ.js";import{A as M}from"./chunk-F2X7F5QX.js";import{a as Z}from"./chunk-ID3AR4VW.js";import{a as Q}from"./chunk-N7VI7OWJ.js";import{wa as X}from"./chunk-7LW23M5C.js";import{b as z,c as Y,f as V}from"./chunk-GZKEIUJT.js";import{F as K,a as b,d as v,e as l,f as s,g as j,h as G,i as H,l as J,m as q,n as x,t as R}from"./chunk-ESTXKKAB.js";import{h as O}from"./chunk-BFL74TW2.js";import{a as ye}from"./chunk-CTNBSUVU.js";import{a as B}from"./chunk-Q4BTAXLS.js";import{ma as N}from"./chunk-DD7FQDTB.js";import{f as U}from"./chunk-D7S4HEQE.js";import{d as I}from"./chunk-773TIA5M.js";import{e as S,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();c();c();var h=S(v(),1);import{Writable as oe}from"stream";function ie({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:i}){let a={type:"functionRun",input:e.payload.input,output:e.payload.output,logs:e.payload.logs,name:e.source,size:0,memory_usage:0,instructions:e.payload.fuelConsumed},[u,f]=(0,h.useState)([]),[p,m]=(0,h.useState)([a,a]),[y,d]=(0,h.useState)(void 0),{input:w,export:_}=e.payload,[fe,k]=(0,h.useState)(`Watching for changes to ${e.source}...`);return(0,h.useEffect)(()=>{let A=new b;t.signal.addEventListener("abort",()=>{A.abort()});let $=async()=>{let E=await we(r,JSON.stringify(w),_);m(g=>[E,g[0]]),k(`Watching for changes to ${e.source}...`),f(g=>[...g,E])},de=async()=>{k("Replaying log with local function..."),await $()},ge=async()=>{i.onEvent(async g=>{let F=g.extensionEvents.find(L=>L.extension.handle===r.handle);if(!(!F||F.type!==ee.Updated)){if(F.buildResult?.status==="error"){d(`Error while reloading and building extension: ${F.buildResult?.error}`);return}d(void 0),k("Re-running with latest changes..."),await $()}});let E=new oe({write(g,F,L){f(he=>[...he,{type:"systemMessage",message:g.toString()}]),L()}});await i.start({stdout:E,stderr:E,signal:A.signal},!1)};return de().then(()=>{ge()}),()=>{A.abort()}},[w,_,o,r]),R(t.signal,async()=>{setTimeout(()=>{U()||B(process.pid,"SIGINT",!1,()=>{process.exit(0)})},2e3)}),{logs:u,statusMessage:fe,recentFunctionRuns:p,error:y}}async function we(e,t,o){let r="",i=new oe({write(u,f,p){r+=u,p()}});return await C({functionExtension:e,input:t,export:o,stdout:i,json:!0}),{...JSON.parse(r),type:"functionRun"}}var n=S(v(),1);var ae=({selectedRun:e,abortController:t,app:o,extension:r})=>{let{isAborted:i}=R(t.signal),{isRawModeSupported:a}=G(),u=new te(o),{logs:f,statusMessage:p,recentFunctionRuns:m,error:y}=ie({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:u});return H((d,w)=>{q(d,w,()=>t.abort()),d==="q"&&t.abort()},{isActive:!!a}),n.default.createElement(n.default.Fragment,null,n.default.createElement(j,{items:f},(d,w)=>n.default.createElement(l,{key:`replayOutputScrollerLog${w}`,flexDirection:"column"},n.default.createElement(Re,{log:d}))),i?null:n.default.createElement(l,{marginY:1,paddingTop:1,flexDirection:"column",flexGrow:1,borderStyle:"single",borderBottom:!1,borderLeft:!1,borderRight:!1,borderTop:!0},a?n.default.createElement(l,{flexDirection:"column"},n.default.createElement(l,{flexDirection:"row"},n.default.createElement(s,null,x.pointerSmall," ",p)),n.default.createElement(be,{recentFunctionRuns:m}),n.default.createElement(s,null,x.pointerSmall," Press ",n.default.createElement(s,{bold:!0},"q")," ",x.lineVertical," quit")):null,y?n.default.createElement(s,{color:"red"},y):null))};function D({title:e,backgroundColor:t}){let o=Math.max(Math.round((28-e.length)/2),0),r=" ".repeat(o);return n.default.createElement(s,{backgroundColor:t,color:"black"},`
|
|
2
2
|
|
|
3
3
|
`,r,e,r,`
|
|
4
4
|
`)}function Ee({input:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(D,{title:"Input",backgroundColor:"yellow"}),n.default.createElement(s,null,M(e)))}function Fe({logs:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(D,{title:"Logs",backgroundColor:"blueBright"}),n.default.createElement(s,null,e))}function xe({output:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(D,{title:"Output",backgroundColor:"greenBright"}),n.default.createElement(s,null,M(e)))}function Se({functionRun:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(D,{title:"Benchmark Results",backgroundColor:"green"}),n.default.createElement(s,null,"Name: ",e.name),n.default.createElement(s,null,"Linear Memory Usage: ",e.memory_usage,"KB"),n.default.createElement(s,null,"Instructions: ",e.instructions/1e3,"K"),n.default.createElement(s,null,"Size: ",e.size,"KB"))}function be({recentFunctionRuns:e}){let t=e[0].instructions-e[1].instructions;return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(s,null,x.pointerSmall," Instruction count change: ",t>0?"+":"",t))}function Re({log:e}){switch(e.type){case"functionRun":return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(Ee,{input:e.input}),n.default.createElement(Fe,{logs:e.logs}),n.default.createElement(xe,{output:e.output}),n.default.createElement(Se,{functionRun:e}),n.default.createElement(s,null,"\xA0"));case"systemMessage":return n.default.createElement(s,null,e.message);default:return null}}var se=S(v(),1);async function ce({selectedRun:e,abortController:t,app:o,extension:r}){return J(se.default.createElement(ae,{selectedRun:e,abortController:t,app:o,extension:r}),{exitOnCtrlC:!1})}c();async function le(e){if(e.length===0)return;let t=i=>({label:`${i.logTimestamp} (${i.status}) - ${i.identifier}`,value:i}),o=e.map(t);return await K({message:"Which function run would you like to replay locally?",choices:o})}import{existsSync as Ce,readdirSync as De}from"fs";var T=100;async function ue(e){let{watch:t,extension:o,app:r}=e,i=new b;try{let a=r.getLogsDir(),u=e.log?await ke(a,o.handle,e.log):await Le(a,o.handle),{input:f,export:p}=u.payload;t?await ce({selectedRun:u,abortController:i,app:r,extension:o}):await C({functionExtension:o,json:e.json,input:JSON.stringify(f),export:p})}catch(a){throw i.abort(),a}}async function ke(e,t,o){let r=await Ae(e,t,o);if(r===void 0)throw new O(`No log found for '${o}'.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as r}from"./chunk-
|
|
1
|
+
import{b as r}from"./chunk-KANWS6HC.js";import{b as a}from"./chunk-XQIPACFV.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var i=class extends a{static summary="Upgrades Shopify CLI.";static descriptionWithMarkdown="Upgrades Shopify CLI using your package manager.";static description=this.descriptionWithoutMarkdown();async run(){await r()}};export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as b}from"./chunk-
|
|
1
|
+
import{f as b}from"./chunk-D7S4HEQE.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();import{performance as u}from"node:perf_hooks";function w(){return b()?"bubble":"mute-and-report"}function h(g={}){let i={sensitive:{},public:{...g}},p=t=>{Object.assign(i.public,t)},M=t=>{Object.assign(i.sensitive,t)},l=async(t,e,n)=>{let r=n==="auto"?w():n,s=async()=>{let c=await e();t(c)};if(r==="bubble")await s();else try{await s()}catch(c){let{sendErrorToBugsnag:o}=await import("./error-handler-PVVDX7WF.js");await o(c,"unexpected_error")}},a=[];return{getAllPublicMetadata:()=>({...i.public}),getAllSensitiveMetadata:()=>({...i.sensitive}),addPublicMetadata:async(t,e="auto")=>l(p,t,e),addSensitiveMetadata:async(t,e="auto")=>l(M,t,e),runWithTimer:t=>async e=>{a.push(0);let n=u.now();try{return await e()}finally{let r=u.now();r=Math.max(n,r);let s=Math.max(r-n,0),c=a.pop(),o=Math.max(s-c,0);a.length>0&&(a[a.length-1]=(a[a.length-1]??0)+s),u.measure(`${t}#measurable`,{start:n,duration:o}),u.measure(`${t}#wall`,{start:n,end:r});let d=i.public[t]||0;d+=o,i.public[t]=d}}}}var y=h({cmd_all_timing_network_ms:0,cmd_all_timing_prompts_ms:0}),{getAllPublicMetadata:S,getAllSensitiveMetadata:f,addPublicMetadata:x,addSensitiveMetadata:A,runWithTimer:P}=y;export{h as a,S as b,f as c,x as d,A as e,P as f};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Zw}from"./chunk-IWOTLFOY.js";import{a as B$}from"./chunk-FFSDGRAN.js";import{a as Xw,b as F$,c as V$}from"./chunk-F3TMLDLC.js";import{Ca as j$,Da as Yw,m as Qw}from"./chunk-
|
|
1
|
+
import{a as Zw}from"./chunk-IWOTLFOY.js";import{a as B$}from"./chunk-FFSDGRAN.js";import{a as Xw,b as F$,c as V$}from"./chunk-F3TMLDLC.js";import{Ca as j$,Da as Yw,m as Qw}from"./chunk-NYHGIWKZ.js";import{q as Kw}from"./chunk-TR4OWSEX.js";import{a as ce,b as Te,c as x,d as Ey,e as oa,f as Ay,g as p}from"./chunk-VKWPEFWQ.js";var Ny=x(Oy=>{"use strict";p();Object.defineProperty(Oy,"__esModule",{value:!0});Oy.deepGet=$$;function $$(e,t){return t.reduce((r,n)=>r?.[n],e)}});var ex=x(Xi=>{"use strict";p();Object.defineProperty(Xi,"__esModule",{value:!0});Xi.first=U$;Xi.last=H$;Xi.findLast=W$;Xi.findLastIndex=Py;Xi.findLastAndIndex=z$;function U$(e){return e[0]}function H$(e,t=0){return e[e.length-1+t]}function W$(e,t){return e[Py(e,t)]}function Py(e,t){for(let r=e.length-1;r>=0;r--)if(t(e[r]))return r;return-1}function z$(e,t){let r=Py(e,t);return[e[r],r]}});var rx=x((Hde,tx)=>{"use strict";p();var G$=Xw();tx.exports=function(t){return t!=null&&typeof t=="object"&&G$(t)===!1}});var qy=x((Gde,nx)=>{"use strict";p();var J$=Xw(),K$=rx(),zde=Array.prototype.slice;nx.exports=ca;function ca(e,t){if(!(this instanceof ca))return typeof t=="number"?new ca(e).fromIndex(t):new ca(e,t);this.str=e||"",this.lineToIndex=Q$(this.str),t=t||{},this.origin=typeof t.origin>"u"?1:t.origin}ca.prototype.fromIndex=function(e){if(e<0||e>=this.str.length||isNaN(e))return null;var t=Y$(e,this.lineToIndex);return{line:t+this.origin,col:e-this.lineToIndex[t]+this.origin}};ca.prototype.toIndex=function(e,t){if(typeof t>"u")return J$(e)&&e.length>=2?this.toIndex(e[0],e[1]):K$(e)&&"line"in e&&("col"in e||"column"in e)?this.toIndex(e.line,"col"in e?e.col:e.column):-1;if(isNaN(e)||isNaN(t))return-1;if(e-=this.origin,t-=this.origin,e>=0&&t>=0&&e<this.lineToIndex.length){var r=this.lineToIndex[e],n=e===this.lineToIndex.length-1?this.str.length:this.lineToIndex[e+1];if(t<n-r)return r+t}return-1};function Q$(e){for(var t=e.split(`
|
|
2
2
|
`),r=new Array(t.length),n=0,i=0,s=t.length;i<s;i++)r[i]=n,n+=t[i].length+1;return r}function Y$(e,t){if(e>=t[t.length-1])return t.length-1;for(var r=0,n=t.length-2,i;r<n;)if(i=r+(n-r>>1),e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}return r}});var sx=x(ua=>{"use strict";p();var X$=ua&&ua.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ua,"__esModule",{value:!0});ua.getPosition=Z$;ua.getOffset=e3;var ix=X$(qy());function Z$(e,t){let r=(0,ix.default)(e,{origin:0}).fromIndex(Math.min(t,e.length-1));return{index:t,line:r?r.line:-1,character:r?r.col:-1}}function e3(e,t,r){return(0,ix.default)(e,{origin:1}).toIndex(t,r)}});var rf=x(tf=>{"use strict";p();Object.defineProperty(tf,"__esModule",{value:!0});tf.isError=r3;tf.asError=n3;var t3={1:"Invalid symbol found in the input.",2:"Invalid number format detected.",3:"Property name expected but not found.",4:"A value was expected but not found.",5:"Colon `:` expected after the property name.",6:"Comma `,` expected between elements and properties.",7:"Closing brace `}` expected.",8:"Closing bracket `]` expected.",9:"End of file expected.",10:"Invalid comment token found.",11:"Unexpected end of comment.",12:"Unexpected end of string.",13:"Unexpected end of number.",14:"Invalid Unicode escape sequence.",15:"Invalid escape character found.",16:"Invalid character found in the input."};function r3(e){return e instanceof Error}function n3(e){return e instanceof Error?e:typeof e=="string"?new Error(e):e&&typeof e=="object"&&"error"in e?new Error(i3(e)):e&&typeof e.toString=="function"?new Error(e.toString()):new Error("An unknown error occurred")}function i3(e){return t3[e.error]||"Unknown parse error."}});var Cy=x(Ly=>{"use strict";p();Object.defineProperty(Ly,"__esModule",{value:!0});Ly.assertNever=s3;function s3(e){throw new Error(`We should never reach this code, you are missing a case for ${e}`)}});var My=x(nf=>{"use strict";p();Object.defineProperty(nf,"__esModule",{value:!0});nf.memo=a3;nf.memoize=o3;var Iy=Symbol("Unset");function a3(e){let t=Iy,r=(...n)=>(t===Iy&&(t=e(...n)),t);return r.clearCache=()=>{t=Iy},r}function o3(e,t){let r={},n=(...i)=>{let s=t(...i);return r[s]||(r[s]=e(...i)),r[s]};return n.force=(...i)=>(n.invalidate(...i),n(...i)),n.invalidate=(...i)=>{let s=t(...i);delete r[s]},n.clearCache=()=>{r={}},n}});var Dy=x(Ry=>{"use strict";p();Object.defineProperty(Ry,"__esModule",{value:!0});Ry.indexBy=c3;function c3(e,t){let r={};for(let n of t)r[e(n)]=n;return r}});function Zi(e,t=!1){let r=e.length,n=0,i="",s=0,a=16,o=0,c=0,l=0,f=0,m=0;function d(T,y){let A=0,O=0;for(;A<T||!y;){let N=e.charCodeAt(n);if(N>=48&&N<=57)O=O*16+N-48;else if(N>=65&&N<=70)O=O*16+N-65+10;else if(N>=97&&N<=102)O=O*16+N-97+10;else break;n++,A++}return A<T&&(O=-1),O}function g(T){n=T,i="",s=0,a=16,m=0}function _(){let T=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&la(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&la(e.charCodeAt(n)))for(n++;n<e.length&&la(e.charCodeAt(n));)n++;else return m=3,e.substring(T,n);let y=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&la(e.charCodeAt(n))){for(n++;n<e.length&&la(e.charCodeAt(n));)n++;y=n}else m=3;return e.substring(T,y)}function k(){let T="",y=n;for(;;){if(n>=r){T+=e.substring(y,n),m=2;break}let A=e.charCodeAt(n);if(A===34){T+=e.substring(y,n),n++;break}if(A===92){if(T+=e.substring(y,n),n++,n>=r){m=2;break}switch(e.charCodeAt(n++)){case 34:T+='"';break;case 92:T+="\\";break;case 47:T+="/";break;case 98:T+="\b";break;case 102:T+="\f";break;case 110:T+=`
|
|
3
3
|
`;break;case 114:T+="\r";break;case 116:T+=" ";break;case 117:let N=d(4,!0);N>=0?T+=String.fromCharCode(N):m=4;break;default:m=5}y=n;continue}if(A>=0&&A<=31)if(Yo(A)){T+=e.substring(y,n),m=2;break}else m=6;n++}return T}function b(){if(i="",m=0,s=n,c=o,f=l,n>=r)return s=r,a=17;let T=e.charCodeAt(n);if(jy(T)){do n++,i+=String.fromCharCode(T),T=e.charCodeAt(n);while(jy(T));return a=15}if(Yo(T))return n++,i+=String.fromCharCode(T),T===13&&e.charCodeAt(n)===10&&(n++,i+=`
|
|
4
4
|
`),o++,l=n,a=14;switch(T){case 123:return n++,a=1;case 125:return n++,a=2;case 91:return n++,a=3;case 93:return n++,a=4;case 58:return n++,a=6;case 44:return n++,a=5;case 34:return n++,i=k(),a=10;case 47:let y=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<r&&!Yo(e.charCodeAt(n));)n++;return i=e.substring(y,n),a=12}if(e.charCodeAt(n+1)===42){n+=2;let A=r-1,O=!1;for(;n<A;){let N=e.charCodeAt(n);if(N===42&&e.charCodeAt(n+1)===47){n+=2,O=!0;break}n++,Yo(N)&&(N===13&&e.charCodeAt(n)===10&&n++,o++,l=n)}return O||(n++,m=1),i=e.substring(y,n),a=13}return i+=String.fromCharCode(T),n++,a=16;case 45:if(i+=String.fromCharCode(T),n++,n===r||!la(e.charCodeAt(n)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=_(),a=11;default:for(;n<r&&v(T);)n++,T=e.charCodeAt(n);if(s!==n){switch(i=e.substring(s,n),i){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(T),n++,a=16}}function v(T){if(jy(T)||Yo(T))return!1;switch(T){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function w(){let T;do T=b();while(T>=12&&T<=15);return T}return{setPosition:g,getPosition:()=>n,scan:t?w:b,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>n-s,getTokenStartLine:()=>c,getTokenStartCharacter:()=>s-f,getTokenError:()=>m}}function jy(e){return e===32||e===9}function Yo(e){return e===10||e===13}function la(e){return e>=48&&e<=57}var ax,sf=Te(()=>{"use strict";p();(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(ax||(ax={}))});var sr,fa,Fy,ox,cx=Te(()=>{p();sr=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),fa=200,Fy={" ":{"\n":new Array(fa).fill(0).map((e,t)=>`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as I}from"./chunk-LFOBYEWG.js";import{i as d,r as w,v as n}from"./chunk-
|
|
1
|
+
import{a as I}from"./chunk-LFOBYEWG.js";import{i as d,r as w,v as n}from"./chunk-NYHGIWKZ.js";import{w as l}from"./chunk-NAIXUSEF.js";import{A as y,B as N,S,y as g}from"./chunk-ESTXKKAB.js";import{a as h}from"./chunk-LX7W4GUD.js";import{m as u,n as m}from"./chunk-BC42C35S.js";import{j as _}from"./chunk-BFL74TW2.js";import{Ab as a}from"./chunk-DD7FQDTB.js";import{a as f}from"./chunk-JD5P5RAJ.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();var C="https://cdn.shopify.com/static/cli/notifications.json",T="Cache is empty",O=["notifications:list","notifications:generate","init","app:init","theme:init","hydrogen:init","cache:clear","send-analytics"],$=["127.0.0.1","localhost","::1","[::1]"];function c(){let e=process.env.SHOPIFY_CLI_NOTIFICATIONS_URL;if(e)try{let t=new globalThis.URL(e);if(v(t))return e;a(`The notifications URL provided via SHOPIFY_CLI_NOTIFICATIONS_URL (${e}) must use https, or http with a loopback host. Falling back to default.`)}catch{a(`The notifications URL provided via SHOPIFY_CLI_NOTIFICATIONS_URL (${e}) is not a valid URL. Falling back to default.`)}return C}function v(e){return e.protocol==="https:"?!0:e.protocol==="http:"&&$.includes(e.hostname)}var E=n.object({id:n.string(),message:n.string(),type:n.enum(["info","warning","error"]),frequency:n.enum(["always","once","once_a_day","once_a_week"]),ownerChannel:n.string(),cta:n.object({label:n.string(),url:n.string().url()}).optional(),title:n.string().optional(),minVersion:n.string().optional(),maxVersion:n.string().optional(),minDate:n.string().optional(),maxDate:n.string().optional(),commands:n.array(n.string()).optional(),surface:n.string().optional()}),x=n.object({notifications:n.array(E)});async function Z(e,t=process.env){try{let r=I();if(D(r,t)||d(t))return;let o=await k(),i=A(o.notifications,r,e);a(`Notifications to show: ${i.length}`),await L(i)}catch(r){if(r.message===T){a("Notifications to show: 0 (Cache is empty)");return}if(r.message==="abort")throw new _;let o=`Error showing notifications: ${r.message}`;a(o);let{sendErrorToBugsnag:i}=await import("./error-handler-PVVDX7WF.js");await i(o,"unexpected_error")}}function D(e,t=process.env){return f(t.CI)||f(t.SHOPIFY_UNIT_TEST)||O.includes(e)}async function L(e){e.slice(0,2).forEach(t=>{let r={headline:t.title,body:t.message.replace(/\\n/g,`
|
|
2
2
|
`),link:t.cta};switch(t.type){case"info":{g(r);break}case"warning":{y(r);break}case"error":throw N(r),new Error("abort")}u(`notification-${t.id}`,new Date().getTime().toString())})}async function k(){let e=`notifications-${c()}`,t=m(e)?.value;if(!t)throw new Error(T);let r=JSON.parse(t);return x.parse(r)}async function ee(){a("Fetching notifications...");let e=await w(c(),void 0,{useNetworkLevelRetry:!1,useAbortSignal:!0,timeoutMs:3*1e3});if(e.status!==200)throw new Error(`Failed to fetch notifications: ${e.statusText}`);let t=await e.text(),r=JSON.parse(t),o=x.parse(r);return await F(t),o}async function F(e){u(`notifications-${c()}`,e),a(`Notifications from ${c()} stored in the cache`)}function te(e,t=process.argv,r=process.env){if(D(e,r)||!t[1])return;let o=process.execPath,s=[t[1],"notifications","list","--ignore-errors"];S(o,s,{background:!0,env:{...process.env,SHOPIFY_CLI_NO_ANALYTICS:"1"},externalErrorHandler:async b=>{a(`Failed to fetch notifications in background: ${b.message}`)}})}function A(e,t,r,o=new Date(new Date().setUTCHours(0,0,0,0)),i=h){return e.filter(s=>V(s,i)).filter(s=>B(s,o)).filter(s=>R(s,t)).filter(s=>U(s,t,r)).filter(s=>H(s))}function V(e,t){let r=!e.minVersion||l(t,`>=${e.minVersion}`),o=!e.maxVersion||l(t,`<=${e.maxVersion}`);return r&&o}function B(e,t){let r=!e.minDate||new Date(e.minDate)<=t,o=!e.maxDate||new Date(e.maxDate)>=t;return r&&o}function R(e,t){return t===""?!0:!e.commands||e.commands.includes(t)}function U(e,t,r){let o=t.split(":")[0]??"all",i=e.surface??"all";return r?r.includes(i):i===o||i==="all"}function H(e){if(!e.frequency)return!0;let t=`notification-${e.id}`,r=m(t)?.value;if(!r)return!0;switch(e.frequency){case"always":return!0;case"once":return!1;case"once_a_day":return new Date().getTime()-Number(r)>24*3600*1e3;case"once_a_week":return new Date().getTime()-Number(r)>168*3600*1e3}}function re(e){let t=[];return e.minDate&&t.push(`from ${e.minDate}`),e.maxDate&&t.push(`to ${e.maxDate}`),e.minVersion&&t.push(`from v${e.minVersion}`),e.maxVersion&&t.push(`to v${e.maxVersion}`),e.frequency==="once"&&t.push("show only once"),e.frequency==="once_a_day"&&t.push("show once a day"),e.frequency==="once_a_week"&&t.push("show once a week"),e.surface&&t.push(`surface = ${e.surface}`),e.commands&&t.push(`commands = ${e.commands.join(", ")}`),t.join(`
|
|
3
3
|
`)}export{Z as a,k as b,ee as c,te as d,A as e,re as f};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as A,b as S,c as E,d as i,e as k,f as F,g as L,h as M,i as _}from"./chunk-
|
|
1
|
+
import{a as A,b as S,c as E,d as i,e as k,f as F,g as L,h as M,i as _}from"./chunk-73MCDHWW.js";import{a as I}from"./chunk-ID3AR4VW.js";import{a as b}from"./chunk-N7VI7OWJ.js";import{aa as P,wa as T}from"./chunk-7LW23M5C.js";import{f as l}from"./chunk-GZKEIUJT.js";import{D as p,F as g,J as v}from"./chunk-ESTXKKAB.js";import{a as G}from"./chunk-CTNBSUVU.js";import{Bb as u,Db as w,yb as h}from"./chunk-DD7FQDTB.js";import{j as y}from"./chunk-773TIA5M.js";import{e as q,g as a}from"./chunk-VKWPEFWQ.js";a();a();a();a();async function H(e,t,r){let o={api_version:t},{webhookTopics:s}=await e.topics(o,r);return s}a();async function V(e){let t=e.map(o=>({label:o,value:o}));return await g({message:"Webhook Topic",choices:t})}async function C(e){return p({message:"Webhook ApiVersion",choices:e.map(t=>({label:t,value:t}))})}async function R(){return p({message:"Delivery method",choices:[{label:"HTTP",value:i.HTTP},{label:"Google Pub/Sub",value:i.PUBSUB},{label:"Amazon EventBridge",value:i.EVENTBRIDGE}]})}async function D(e){return(await v({message:"Address for delivery",validate:r=>{let o=r.trim();if(o.length===0)return"Address can't be empty";if(!k(o,e))return`Invalid address.
|
|
2
2
|
${d(e)}`}})).trim()}function U(e){return e===i.HTTP?["For remote HTTP testing, use a URL that starts with https://","For local HTTP testing, use http://localhost:{port}/{url-path}"]:e===i.PUBSUB?["For Google Pub/Sub, use pubsub://{project-id}:{topic-id}"]:e===i.EVENTBRIDGE?["For Amazon EventBridge, use an Amazon Resource Name (ARN) starting with arn:aws:events:"]:[]}function d(e){return U(e).map(t=>` \xB7 ${w(t)}`).join(`
|
|
3
3
|
`)}async function x(e,t){let{clientSecret:r,clientId:o,remoteApp:s,app:c}=e;return r&&(o||t!==i.EVENTBRIDGE)?{clientSecret:r,apiKey:o}:(P({appName:s.title,configFile:y(c.configPath)}),{clientSecret:s.apiSecretKeys.find(f=>f.secret).secret,apiKey:s.apiKey})}async function O(e,t,r){let o=await A(e,r);return t?L(t,o):C(o)}async function B(e,t,r,o){let s=await H(e,t,o);return r?M(r,t,s):V(s)}async function N(e,t){let r=e??_(t)??await R(),o=t??await D(r);return F(o,r)}async function Y(e){let t=await W(e);await z(t)}async function W(e){let t=await O(e.developerPlatformClient,e.apiVersion,e.organizationId),r=await B(e.developerPlatformClient,t,e.topic,e.organizationId),[o,s]=await N(e.deliveryMethod,e.address),c=await x(e,s);return{topic:r,apiVersion:t,deliveryMethod:s,address:o,apiKey:c.apiKey,clientSecret:c.clientSecret,developerPlatformClient:e.developerPlatformClient,organizationId:e.organizationId}}async function z(e){let t={topic:e.topic,api_version:e.apiVersion,address:e.address,delivery_method:e.deliveryMethod,shared_secret:e.clientSecret,api_key:e.apiKey},r=await S(e.developerPlatformClient,t,e.organizationId);if(!r.success){u(`Request errors:
|
|
4
4
|
${K(r.userErrors)}`);return}if(e.deliveryMethod===i.LOCALHOST){if(await E(e.address,r.samplePayload,r.headers)){h("Localhost delivery sucessful");return}u("Localhost delivery failed");return}r.samplePayload===JSON.stringify({})&&h("Webhook has been enqueued for delivery")}function K(e){try{return e.map(t=>JSON.parse(t.message).map(r=>` \xB7 ${r}`).join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J as f,ka as v,l as d,la as A,o as w,w as m}from"./chunk-
|
|
1
|
+
import{J as f,ka as v,l as d,la as A,o as w,w as m}from"./chunk-NYHGIWKZ.js";import{b as l}from"./chunk-BC42C35S.js";import{h as p,k as F}from"./chunk-BFL74TW2.js";import{qb as V,sb as h}from"./chunk-DD7FQDTB.js";import{i as q}from"./chunk-DPNZWBT5.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();c();var g={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 W(t,r,e,o){let a="Admin",u=o??await b(r),n=r.storeFqdn,s=$(r);l()==="local"&&(s["x-forwarded-host"]=n,n=new m().host("app"));let i=x(n,u,r);return v({query:t,api:a,addedHeaders:s,url:i,token:r.token,variables:e})}async function E(t){let{query:r,session:e,variables:o,version:a,responseOptions:u,preferredBehaviour:n}=t,s=a??S.get(e.storeFqdn);s??=await b(e,n);let i=e.storeFqdn,k=$(e);l()==="local"&&(k["x-forwarded-host"]=i,i=new m().host("app"));let D={url:x(i,s,e),api:"Admin",token:e.token,addedHeaders:k},y;return"refresh"in e&&(y={type:"token_refresh",handler:e.refresh}),A({...D,query:r,variables:o,responseOptions:u,unauthorizedHandler:y,preferredBehaviour:n})}function $(t){return f(t)?{"X-Shopify-Shop":t.storeFqdn,"X-Shopify-Access-Token":t.token}:{}}async function b(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 E({query:g,session:t,variables:{},version:"unstable",responseOptions:{handleErrors:!1},preferredBehaviour:r})).publicApiVersions}catch(e){if(e instanceof d&&e.response.status===403){let o=t.storeFqdn.replace(".myshopify.com","");throw new p(h`Looks like you don't have access to this dev store: (${V.link(o,`https://${t.storeFqdn}`)})`,h`If you're not the owner, create a dev store staff account for yourself`)}throw e instanceof d&&(e.response.status===401||e.response.status===404)?new p(`Error connecting to your store ${t.storeFqdn}: ${e.message} ${e.response.status} ${e.response.data}`):w(e)?new p(`Network error connecting to your store ${t.storeFqdn}: ${e instanceof Error?e.message:String(e)}`,"Check your internet connection and try again."):new F(`Unknown error connecting to your store ${t.storeFqdn}: ${e instanceof Error?e.message:String(e)}`)}}function x(t,r,e){let o=r??"unstable";return e&&f(e)?`https://${q}/cli/admin/api/${o}/graphql.json`:`https://${t}/admin/api/${o}/graphql.json`}export{W as a,E as b,N as c,R as d,x as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as C}from"./chunk-
|
|
1
|
+
import{a as C}from"./chunk-ID3AR4VW.js";import{a as y}from"./chunk-N7VI7OWJ.js";import{sa as k,ua as w,va as A,wa as P}from"./chunk-7LW23M5C.js";import{b as h}from"./chunk-GZKEIUJT.js";import{z as g}from"./chunk-ESTXKKAB.js";import{h as u}from"./chunk-BFL74TW2.js";import{j as r}from"./chunk-773TIA5M.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();async function s(p){let{directory:t,configName:o,configPath:e,configuration:a,remoteApp:i}=p;if(!a.client_id)throw new u("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,l=await k({developerPlatformClient:c,app:i}),m=i.flags,b={directory:t,configName:o,developerPlatformClient:c,apiKey:a.client_id},d=await w(b,l,m,i.apiKey),v=r(e),x=await A({remoteApp:i,developerPlatformClient:c,specifications:l,flags:m,configFileName:v,appDirectory:d.appDirectory??t,localAppOptions:d});return{configPath:e,configuration:x,remoteApp:i}}var f=class p extends C{static summary="Refresh an already-linked app configuration without prompts.";static 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.";static description=this.descriptionWithoutMarkdown();static flags={...h,...y};async run(){let{flags:t}=await this.parse(p),{app:o,remoteApp:e}=await P({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),{configuration:a,configPath:i}=await s({directory:t.path,configName:t.config,configPath:o.configPath,configuration:o.configuration,remoteApp:e});return g({headline:`Pulled latest configuration for "${a.name}"`,body:`Updated ${r(i)} with the remote data.`}),{app:o}}};export{f as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as j}from"./chunk-
|
|
1
|
+
import{a as j}from"./chunk-OCT65FRG.js";import{c as O,i as k,o as x}from"./chunk-7SHHNWHL.js";import{a as E}from"./chunk-3QF47EX2.js";import{e as R}from"./chunk-ZQ4KG6U2.js";import{p as v,v as A}from"./chunk-4Y7WHAJX.js";import{b as F,c as L}from"./chunk-GZKEIUJT.js";import{N as y}from"./chunk-ESTXKKAB.js";import{h as T}from"./chunk-BFL74TW2.js";import{a as D}from"./chunk-CTNBSUVU.js";import{$a as $,Ab as n,la as w,ua as P,wb as S}from"./chunk-DD7FQDTB.js";import{d as l,i as u}from"./chunk-773TIA5M.js";import{e as q,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();import{fileURLToPath as U}from"node:url";async function _(...r){let e=await $("package.json",{cwd:U(import.meta.url),type:"file"});if(!e)throw new Error("Failed to find CLI root path");return e.endsWith("/packages/theme/package.json")?l(u(e),"assets",...r):l(u(e),"dist","assets",...r)}async function b(r,e,i,t,a,m){let c=await O(r)?await j(m,r.storeFqdn):void 0;if(a)throw new T("Unable to use Admin API or Theme Access tokens with the profile command","You must authenticate manually by not passing the --password flag.");let f=await x(e,r,a,c),o=await k(f,{method:"GET",path:i,query:[],themeId:e,headers:{Accept:"application/vnd.speedscope+json"}});if(o.status!==200){let h=await o.text();throw new Error(`Bad response: ${o.status}: ${h}`)}let s=await o.text();t?S(s):await I(s)}async function I(r){let e=process.env.WSL_DISTRO_NAME,i=e?`//wsl$/${e}`:"",t=await _("speedscope","index.html");n(`[Theme Profile] Resolved URL to open: ${t}`);let a="liquid-profile",m=Buffer.from(r).toString("base64"),c=`speedscope.loadFileFromBase64(${JSON.stringify(a)}, ${JSON.stringify(m)})`,f=`speedscope-${Number(new Date)}-${process.pid}`,o=l(w(),`${f}.js`);n(`[Theme Profile] writing JS file to: ${o}`),await P(o,c),n(`[Theme Profile] JS file created successfully: ${o}`),t=`${i}${t}`,o=`${i}${o}`,t+=`#localProfilePath=${o}`;let s=l(w(),`${f}.html`);n(`[Theme Profile] writing HTML file to: ${s}`),await P(s,`<script>window.location=${JSON.stringify(t)}</script>`),n(`[Theme Profile] HTML file created successfully: ${s}`),s=`${i}${s}`,t=`file://${s}`,n(`[Theme Profile] Opening URL: ${t}`);let h=await y(t);n(`[Theme Profile] URL opened successfully: ${h}`)}var d=q(D(),1);var g=class extends A{static summary="Profile the Liquid rendering of a theme page.";static usage=["theme profile","theme profile --url /products/classic-leather-jacket"];static descriptionWithMarkdown=`Profile the Shopify Liquid on a given page.
|
|
2
2
|
|
|
3
3
|
This command will open a web page with the Speedscope profiler detailing the time spent executing Liquid on the given page.`;static description=this.descriptionWithoutMarkdown();static flags={...F,...v,theme:d.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"}),url:d.Flags.string({description:"The url to be used as context",env:"SHOPIFY_FLAG_URL",default:"/"}),"store-password":d.Flags.string({description:"The password for storefronts with password protection.",env:"SHOPIFY_FLAG_STORE_PASSWORD"}),...L};static multiEnvironmentsFlags=null;async command(e,i){let{password:t}=e,a;e.theme?a={filter:{theme:e.theme}}:a={filter:{live:!0}};let m=await E(i,a),c=[{title:`Generating Liquid profile for ${i.storeFqdn} ${e.url}`,task:async()=>{await b(i,m.id.toString(),e.url,e.json,t,e["store-password"])}}];await R(c)}};export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as m,c as u}from"./chunk-
|
|
1
|
+
import{b as m,c as u}from"./chunk-ZG3I4COP.js";import{a as p}from"./chunk-DWI2BHXZ.js";import{a as e}from"./chunk-N7VI7OWJ.js";import{o as a,xa as c}from"./chunk-7LW23M5C.js";import{b as n}from"./chunk-GZKEIUJT.js";import{z as i}from"./chunk-ESTXKKAB.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();var s=class d extends p{static summary="Compile a function to wasm.";static descriptionWithMarkdown="Compiles the function in your current directory to WebAssembly (Wasm) for testing purposes.";static description=this.descriptionWithoutMarkdown();static flags={...n,...e,...m};async run(){let{flags:t}=await this.parse(d),{app:o}=await c({directory:t.path,userProvidedConfigName:t.config}),l=await u(o,t.path);return await a(l,{app:o,stdout:process.stdout,stderr:process.stderr,useTasks:!0,environment:"production"}),i({headline:"Function built successfully."}),{app:o}}};export{s as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
1
|
+
import{a as s}from"./chunk-5FHTBBDR.js";import{a as e}from"./chunk-HQHKCLIU.js";import{a as o}from"./chunk-5GK7UKIP.js";import{b as i}from"./chunk-XQIPACFV.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var t=class extends i{static description="View all the available UI kit components";static hiddenAliases=["kitchen-sink all"];static hidden=!0;async run(){await o(),await e(),await s()}};export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-D3DCP4OT.js";import{b as i}from"./chunk-XQIPACFV.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends i{static description="Generate a notifications.json file for the the CLI, appending a new notification to the current file.";static hidden=!0;async run(){await n()}};export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c}from"./chunk-
|
|
1
|
+
import{e as c}from"./chunk-DJGDJSXS.js";import{W as s}from"./chunk-NYHGIWKZ.js";import{h as p,k as a}from"./chunk-BFL74TW2.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function v(e,t){let o=e.apiSecretKeys[0]?.secret;if(!o)throw new a("No API secret keys found for app");return s(t,e.apiKey,o)}function y(e){let{organization:t,remoteApp:o,storeFqdn:u,version:r}=e,n=[`Organization: ${t.businessName}`,`App: ${o.title}`,`Store: ${u}`];return r&&n.push(`API version: ${r}`),n}function S(e,t){if(c(e)&&t.storeType!=="APP_DEVELOPMENT")throw new p("Mutations can only be executed on dev stores.")}export{v as a,y as b,S as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as N}from"./chunk-LFOBYEWG.js";import{L as E,b}from"./chunk-
|
|
1
|
+
import{b as N}from"./chunk-LFOBYEWG.js";import{L as E,b}from"./chunk-NYHGIWKZ.js";import{V as O}from"./chunk-ESTXKKAB.js";import{d as _}from"./chunk-VNW2YMPM.js";import{h as f}from"./chunk-BFL74TW2.js";import{a as q}from"./chunk-CTNBSUVU.js";import{$ as F,qb as d,sb as g,wb as $}from"./chunk-DD7FQDTB.js";import{c as P}from"./chunk-D7S4HEQE.js";import{a as T}from"./chunk-JD5P5RAJ.js";import{e as j,g as w}from"./chunk-VKWPEFWQ.js";w();var u=j(q()),h=class extends u.Command{static baseFlags={};static get requiresSyncAnalytics(){return!1}static nonTTYFlagRequirements(e){return[]}static descriptionWithoutMarkdown(){return(this.descriptionWithMarkdown??"").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm,'"$2" ($5)')}static analyticsNameOverride(){}static analyticsStopCommand(){}async catch(e){e.skipOclifErrorHandling=!0;let{errorHandler:t}=await import("./error-handler-PVVDX7WF.js");return await t(e,this.config),u.Errors.handle(e)}async init(){if(this.exitWithTimestampWhenEnvVariablePresent(),N(this.id??""),!P()){let{registerCleanBugsnagErrorsFromWithinPlugins:t}=await import("./error-handler-PVVDX7WF.js");await t(this.config)}await M(this.config),this.showNpmFlagWarning();let{showNotificationsIfNeeded:e}=await import("./notifications-system-O7JENRRD.js");return await e(),super.init()}showNpmFlagWarning(){let e=this.constructor;Object.keys(e.flags||{}).map(r=>`npm_config_${F(r).replace(/^no_/,"")}`).some(r=>process.env[r]!==void 0)&&import("./ui-YTGKLMHA.js").then(({renderWarning:r})=>{r({body:["NPM scripts require an extra",{command:"--"},"separator to pass the flags. Example:",{command:"npm run dev -- --reset"}]})})}exitWithTimestampWhenEnvVariablePresent(){T(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN)&&($(`
|
|
2
2
|
SHOPIFY_CLI_TIMESTAMP_START
|
|
3
3
|
{ "timestamp": ${Date.now()} }
|
|
4
4
|
SHOPIFY_CLI_TIMESTAMP_END
|
|
@@ -7,6 +7,6 @@ import{b as N}from"./chunk-LFOBYEWG.js";import{L as E,b}from"./chunk-3JXPOOFV.js
|
|
|
7
7
|
|
|
8
8
|
${d.cyan(i)}
|
|
9
9
|
|
|
10
|
-
${a} in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the options in the command, or run the command in an interactive environment such as your local terminal.")}applicableNonTTYFlagRequirements(e){let t=this.constructor,n={...t.baseFlags,...t.flags},r=Object.entries(n).filter(([,a])=>!!a.requiredIfNonInteractive).map(([a])=>({flags:[a]})),i=(t.nonTTYFlagRequirements?.(e)??[]).filter(a=>a.when?.(e)??!0);return[...r,...i]}async resultWithEnvironment(e,t,n){let r=e.flags,i=this.environmentsFilename();if(!i)return e;let{environmentFilePath:a}=await import("./environments-
|
|
11
|
-
`),{renderWarning:a}=await import("./ui-
|
|
10
|
+
${a} in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the options in the command, or run the command in an interactive environment such as your local terminal.")}applicableNonTTYFlagRequirements(e){let t=this.constructor,n={...t.baseFlags,...t.flags},r=Object.entries(n).filter(([,a])=>!!a.requiredIfNonInteractive).map(([a])=>({flags:[a]})),i=(t.nonTTYFlagRequirements?.(e)??[]).filter(a=>a.when?.(e)??!0);return[...r,...i]}async resultWithEnvironment(e,t,n){let r=e.flags,i=this.environmentsFilename();if(!i)return e;let{environmentFilePath:a}=await import("./environments-FFWXZPU5.js"),o=await a(i,{from:r.path}),l=[];r.environment&&(l=Array.isArray(r.environment)?r.environment:[r.environment]);let c=l.length>0;if(!o&&!c||c&&l.length>1)return e;let{environment:m,isDefaultEnvironment:p}=await this.loadEnvironmentForCommand(r.path,i,l[0]);if(!m||p&&!S(t?.flags,"environment"))return e;let v=await super.parse(A(t),n),y=await super.parse(t,[...n??this.argv,...R(m,t,v),...p?["--environment","default"]:[]]);return I(v.flags,y.flags,p?"default":l[0],m),y}async loadEnvironmentForCommand(e,t,n){let{loadEnvironment:r}=await import("./environments-FFWXZPU5.js");return n?{environment:await r(n,t,{from:e}),isDefaultEnvironment:!1}:{environment:await r("default",t,{from:e,silent:!0}),isDefaultEnvironment:!0}}};async function C(s){await _(()=>({cmd_all_verbose:s.verbose,cmd_all_path_override:s.path!==void 0,cmd_all_path_override_hash:s.path===void 0?void 0:b(s.path)}))}function I(s,e,t,n){let r={};for(let[a,o]of Object.entries(e)){let l=Object.prototype.hasOwnProperty.call(s,a),c=Object.prototype.hasOwnProperty.call(n,a);if(!l&&c){let m=a==="password"?`********${o.substr(-4)}`:o;r[a]=m}}if(Object.keys(r).length===0)return;let i=Object.entries(r).map(([a,o])=>`${a}: ${o}`);import("./ui-YTGKLMHA.js").then(({renderInfo:a})=>{a({headline:["Using applicable flags from",{userInput:t},"environment:"],body:[{list:{items:i}}]})})}function A(s){return s?.flags?{...s,flags:Object.fromEntries(Object.entries(s.flags).map(([e,t])=>{let n={...t};return delete n.default,[e,n]}))}:s}function R(s,e,t){let n=[];for(let[r,i]of Object.entries(s)){let a=S(e?.flags,r),o=t.flags&&Object.prototype.hasOwnProperty.call(t.flags,r);if(a&&!o)if(typeof i=="boolean")if(i)n.push(`--${r}`);else throw new f(g`Environments can only specify true for boolean flags. Attempted to set ${d.yellow(r)} to false.`);else Array.isArray(i)?i.forEach(l=>n.push(`--${r}`,`${l}`)):n.push(`--${r}`,`${i}`)}return n}function S(s,e){return!!s&&Object.prototype.hasOwnProperty.call(s,e)}async function M(s){let e=Array.from(s.plugins.values()),t=["@shopify/app","@shopify/plugin-cloudflare"],n=e.filter(i=>t.includes(i.name));if(n.length>0){let i=n.map(o=>` - shopify plugins remove ${o.name}`).join(`
|
|
11
|
+
`),{renderWarning:a}=await import("./ui-YTGKLMHA.js");a({headline:`Unsupported plugins detected: ${n.map(o=>o.name).join(", ")}`,body:["They are already included in the CLI and installing them as custom plugins can cause conflicts.",`You can fix it by running:
|
|
12
12
|
${i}`]})}let r=e.filter(i=>!t.includes(i.name));s.plugins=new Map(r.map(i=>[i.name,i]))}var z=h;export{A as a,z as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
1
|
+
import{a as u}from"./chunk-Q4BTAXLS.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-KYBVCKB5.js"),{commandStartOptions:e}=t.getAllSensitiveMetadata();e&&await t.addSensitiveMetadata(()=>({commandStartOptions:{...e,endTime:new Date().getTime()}}));let{postrun:i}=await import("./deprecations-PSCEZAQH.js");i(o);let{outputDebug:n}=await import("./output-VAVFLR73.js"),r=o.id.replace(/:/g," ");n(`Completed command ${r}`),!r.includes("notifications")&&!r.includes("upgrade")&&!r.includes("send-analytics")&&await M();let{reportAnalyticsEvent:c}=await import("./analytics-5K4B2DE4.js");await c({config:a,exitMode:"ok"}),m=!0};async function M(){let{versionToAutoUpgrade:a,warnIfUpgradeAvailable:o}=await import("./upgrade-XYGE5PDR.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-OFRC7GO7.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:c},s]=await Promise.all([import("./version-P72VURM3.js"),import("./version-5OTQ3U3D.js"),import("./output-VAVFLR73.js"),import("./upgrade-XYGE5PDR.js"),import("./metadata-KYBVCKB5.js")]);if(t(o,a)){e(n(a,!0)),await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"major_version"}));return}if(await c()){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 p=`Auto-upgrade failed: ${f}`;i(p),e(n(a)),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!1}));let[{sendErrorToBugsnag:g},{inferPackageManagerForGlobalCLI:w}]=await Promise.all([import("./error-handler-PVVDX7WF.js"),import("./is-global-DDGO2AWZ.js")]),_=Object.assign(new Error(p),{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-KYBVCKB5.js"),{commandStartOptions:i}=e.getAllSensitiveMetadata();if(!i)return;await e.addSensitiveMetadata(()=>({commandStartOptions:{...i,startTime:o,startCommand:t}}))}}}export{y as a,k as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as P}from"./chunk-
|
|
1
|
+
import{a as P}from"./chunk-OCT65FRG.js";import{c as I,i as _,n as k}from"./chunk-7SHHNWHL.js";import{a as O}from"./chunk-TQRKW6W3.js";import{b as S,m as b}from"./chunk-5GBIXC2Y.js";import{j as g,k as T,l as L,p as R,v as q}from"./chunk-4Y7WHAJX.js";import{b as E}from"./chunk-GZKEIUJT.js";import{Aa as x}from"./chunk-NYHGIWKZ.js";import{a as v}from"./chunk-LX7W4GUD.js";import{h as a}from"./chunk-BFL74TW2.js";import{a as V}from"./chunk-CTNBSUVU.js";import{Ab as c,qb as l,sb as d,xb as o}from"./chunk-DD7FQDTB.js";import{e as U,g as r}from"./chunk-VKWPEFWQ.js";r();r();r();var m=class extends O{context="REPL";constructor(t){super(t),this.themeId=g()}async create(t,n){let s=await super.create(t,n);return await this.uploadThemeAssets(s),s}async findOrCreate(){let t=await this.fetch();if(!t){let n=`Liquid Console (${v})`;t=await this.create(S,n)}return t}setTheme(t){T(t)}removeTheme(){L()}async uploadThemeAssets(t){let n=[{key:"config/settings_data.json",value:"{}"},{key:"config/settings_schema.json",value:"[]"},{key:"snippets/eval.liquid",value:""},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"sections/announcement-bar.liquid",value:""},{key:"templates/index.json",value:JSON.stringify({sections:{announcement:{type:"announcement-bar",settings:{}}},order:["announcement"]})}];await b(t.id,n,this.adminSession)}};r();r();async function A(e){return await G(e)??await $(e)??await H(e)??await Y(e)??void 0}async function G(e){c(`Evaluating snippet - ${e.snippet}`);let t=`{ "type": "display", "value": {{ ${e.snippet} | json }} }`,n=await f({...e,snippet:t}),s=await n.text();return C(n.status,s)?K(s):void 0}async function $(e){c(`Evaluating context - ${e.snippet}`);let t=`{ "type": "context", "value": "{% ${e.snippet.replace(/"/g,'\\"')} %}" }`,n=await f({...e,snippet:t}),s=await n.text();C(n.status,s)&&e.replSession.push(JSON.parse(t))}async function H(e){if(c(`Evaluating assignment context - ${e.snippet}`),re(e.snippet))return e.snippet=`assign ${e.snippet}`,o(d`${l.gray(`> ${e.snippet}`)}`),$(e)}async function Y(e){c(`Evaluating syntax error - ${e.snippet}`);let t="";if(Q(e.snippet)||(t=await(await f({...e,snippet:`{{ ${e.snippet} }}`})).text()),h(t)||(t=await(await f({...e,snippet:`{% ${e.snippet} %}`})).text()),h(t)){let n=t.replace(/ \(snippets\/eval line \d+\)/,"");z(e.snippet,n)}}function z(e,t){if(t.includes("Unknown tag")){o(d`${l.errorText(`Unknown object, property, tag, or filter: '${e}'`)}`);return}let n=j(t);n&&o(d`${l.errorText(n)}`)}async function f(e){let t=B(e);e.url.startsWith("/")||(e.url=`/${e.url}`);let n=await _(e.themeSession,{method:"GET",path:e.url,query:[],themeId:e.themeId,sectionId:"announcement-bar",headers:{},replaceTemplates:{"sections/announcement-bar.liquid":"{% render 'eval' %}","snippets/eval.liquid":`
|
|
2
2
|
${t}
|
|
3
3
|
`}});return X(n)&&te(),Z(n)&&ne(),ee(n)&&se(),n}function B(e){return`[${[...e.replSession.map(n=>JSON.stringify(n)),e.snippet].join(",").replace(/\\"/g,'"')}]`}function K(e){let t=j(e);if(t)return JSON.parse(t)?.find(s=>s.type==="display")?.value}function j(e){let t=e.split(`
|
|
4
4
|
`).slice(1,-1);if(t.length!==0)return t.join("")}function h(e){return e.includes("Liquid syntax error")}function Q(e){return/^\s*assign\s*((?:\(?[\w\-.[\]]\)?)+)\s*=\s*(.*)\s*/m.test(e)}function X(e){return e.status===401||e.status===403}function Z(e){return e.status===430||e.status===429}function ee(e){return e.headers.get("server-timing")?.includes('pageType;desc="404"')??!1}function te(){throw new a("Session expired. Please initiate a new one.")}function ne(){throw new a("Evaluations limit reached. Try again later.")}function se(){throw new a("Page not found. Please provide a valid --url value!")}function re(e){return/^\s*((?:\(?[\w\-.[\]]\)?)+)\s*=\s*(.*)\s*/m.test(e)}function C(e,t){return e===200&&!h(t)}r();function F(e){if(N(e)){o("Object can't be printed, but you can access its fields. Read more at https://shopify.dev/docs/api/liquid.");return}if(e==null){M("null");return}let t=JSON.stringify(e,null,2);M(t)}function N(e){if(Array.isArray(e))return e.length>0?N(e[0]):!1;if(e&&typeof e=="object"){let n=e.error;return typeof n=="string"&&n.includes("json not allowed for this object")}return!1}function M(e){return o(d`${l.cyan(e)}`)}import{createInterface as oe}from"readline";var ie=`Liquid Console doesn't support Liquid delimiters such as '{{ ... }}' or '{% ... %}'.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{v as ay}from"./chunk-GNBRCK7L.js";import{A as wy,B as si,C as Sy,D as Pn,E as xy,F as ky,G as Oa,H as Cy,I as Aa,J as _y,K as rs,L as MT,M as Ty,N as La,O as is,P as os,Q as Mn,R as Ey,S as an,T as qa,U as Wa,V as G,W as IT,X as NT,a as Z,aa as Mu,b as Pa,c as ly,d as Fn,e as Ce,f as Ma,g as cy,h as dy,i as hy,j as uy,k as py,l as ns,m as my,n as Ia,o as J,p as Na,q as fy,r as za,s as Kt,t as gy,u as V,v as lt,w as Cr,x as by,y as vy,z as yy}from"./chunk-F3NYCSXT.js";import{b as sy}from"./chunk-YEVGLC5X.js";import{a as Bt,b as ee,c as w,d as oy,e as Vt,f as Gt,g as h}from"./chunk-VKWPEFWQ.js";var qi=w(ct=>{"use strict";h();Object.defineProperty(ct,"__esModule",{value:!0});ct.stringArray=ct.array=ct.func=ct.error=ct.number=ct.string=ct.boolean=void 0;function zT(n){return n===!0||n===!1}ct.boolean=zT;function Ry(n){return typeof n=="string"||n instanceof String}ct.string=Ry;function OT(n){return typeof n=="number"||n instanceof Number}ct.number=OT;function AT(n){return n instanceof Error}ct.error=AT;function LT(n){return typeof n=="function"}ct.func=LT;function Dy(n){return Array.isArray(n)}ct.array=Dy;function qT(n){return Dy(n)&&n.every(e=>Ry(e))}ct.stringArray=qT});var np=w($=>{"use strict";h();Object.defineProperty($,"__esModule",{value:!0});$.Message=$.NotificationType9=$.NotificationType8=$.NotificationType7=$.NotificationType6=$.NotificationType5=$.NotificationType4=$.NotificationType3=$.NotificationType2=$.NotificationType1=$.NotificationType0=$.NotificationType=$.RequestType9=$.RequestType8=$.RequestType7=$.RequestType6=$.RequestType5=$.RequestType4=$.RequestType3=$.RequestType2=$.RequestType1=$.RequestType=$.RequestType0=$.AbstractMessageSignature=$.ParameterStructures=$.ResponseError=$.ErrorCodes=void 0;var ai=qi(),Fy;(function(n){n.ParseError=-32700,n.InvalidRequest=-32600,n.MethodNotFound=-32601,n.InvalidParams=-32602,n.InternalError=-32603,n.jsonrpcReservedErrorRangeStart=-32099,n.serverErrorStart=-32099,n.MessageWriteError=-32099,n.MessageReadError=-32098,n.PendingResponseRejected=-32097,n.ConnectionInactive=-32096,n.ServerNotInitialized=-32002,n.UnknownErrorCode=-32001,n.jsonrpcReservedErrorRangeEnd=-32e3,n.serverErrorEnd=-32e3})(Fy=$.ErrorCodes||($.ErrorCodes={}));var Iu=class n extends Error{constructor(e,t,r){super(t),this.code=ai.number(e)?e:Fy.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,n.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};$.ResponseError=Iu;var Rt=class n{constructor(e){this.kind=e}static is(e){return e===n.auto||e===n.byName||e===n.byPosition}toString(){return this.kind}};$.ParameterStructures=Rt;Rt.auto=new Rt("auto");Rt.byPosition=new Rt("byPosition");Rt.byName=new Rt("byName");var _e=class{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return Rt.auto}};$.AbstractMessageSignature=_e;var Nu=class extends _e{constructor(e){super(e,0)}};$.RequestType0=Nu;var zu=class extends _e{constructor(e,t=Rt.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};$.RequestType=zu;var Ou=class extends _e{constructor(e,t=Rt.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};$.RequestType1=Ou;var Au=class extends _e{constructor(e){super(e,2)}};$.RequestType2=Au;var Lu=class extends _e{constructor(e){super(e,3)}};$.RequestType3=Lu;var qu=class extends _e{constructor(e){super(e,4)}};$.RequestType4=qu;var Wu=class extends _e{constructor(e){super(e,5)}};$.RequestType5=Wu;var Hu=class extends _e{constructor(e){super(e,6)}};$.RequestType6=Hu;var Uu=class extends _e{constructor(e){super(e,7)}};$.RequestType7=Uu;var ju=class extends _e{constructor(e){super(e,8)}};$.RequestType8=ju;var $u=class extends _e{constructor(e){super(e,9)}};$.RequestType9=$u;var Bu=class extends _e{constructor(e,t=Rt.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};$.NotificationType=Bu;var Vu=class extends _e{constructor(e){super(e,0)}};$.NotificationType0=Vu;var Gu=class extends _e{constructor(e,t=Rt.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};$.NotificationType1=Gu;var Ku=class extends _e{constructor(e){super(e,2)}};$.NotificationType2=Ku;var Ju=class extends _e{constructor(e){super(e,3)}};$.NotificationType3=Ju;var Xu=class extends _e{constructor(e){super(e,4)}};$.NotificationType4=Xu;var Qu=class extends _e{constructor(e){super(e,5)}};$.NotificationType5=Qu;var Yu=class extends _e{constructor(e){super(e,6)}};$.NotificationType6=Yu;var Zu=class extends _e{constructor(e){super(e,7)}};$.NotificationType7=Zu;var ep=class extends _e{constructor(e){super(e,8)}};$.NotificationType8=ep;var tp=class extends _e{constructor(e){super(e,9)}};$.NotificationType9=tp;var WT;(function(n){function e(i){let o=i;return o&&ai.string(o.method)&&(ai.string(o.id)||ai.number(o.id))}n.isRequest=e;function t(i){let o=i;return o&&ai.string(o.method)&&i.id===void 0}n.isNotification=t;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(ai.string(o.id)||ai.number(o.id)||o.id===null)}n.isResponse=r})(WT=$.Message||($.Message={}))});var ip=w(Xn=>{"use strict";h();var Py;Object.defineProperty(Xn,"__esModule",{value:!0});Xn.LRUCache=Xn.LinkedMap=Xn.Touch=void 0;var gt;(function(n){n.None=0,n.First=1,n.AsOld=n.First,n.Last=2,n.AsNew=n.Last})(gt=Xn.Touch||(Xn.Touch={}));var Ha=class{constructor(){this[Py]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=gt.None){let r=this._map.get(e);if(r)return t!==gt.None&&this.touch(r,t),r.value}set(e,t,r=gt.None){let i=this._map.get(e);if(i)i.value=t,r!==gt.None&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case gt.None:this.addItemLast(i);break;case gt.First:this.addItemFirst(i);break;case gt.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let r=this._state,i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let i={value:t.key,done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}values(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let i={value:t.value,done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}entries(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let i={value:[t.key,t.value],done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}[(Py=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,r=this.size;for(;t&&r>e;)this._map.delete(t.key),t=t.next,r--;this._head=t,this._size=r,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,r=e.previous;if(!t||!r)throw new Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==gt.First&&t!==gt.Last)){if(t===gt.First){if(e===this._head)return;let r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===gt.Last){if(e===this._tail)return;let r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,r)=>{e.push([r,t])}),e}fromJSON(e){this.clear();for(let[t,r]of e)this.set(t,r)}};Xn.LinkedMap=Ha;var rp=class extends Ha{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=gt.AsNew){return super.get(e,t)}peek(e){return super.get(e,gt.None)}set(e,t){return super.set(e,t,gt.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Xn.LRUCache=rp});var My=w(ss=>{"use strict";h();Object.defineProperty(ss,"__esModule",{value:!0});ss.Disposable=void 0;var HT;(function(n){function e(t){return{dispose:t}}n.create=e})(HT=ss.Disposable||(ss.Disposable={}))});var _r=w(ap=>{"use strict";h();Object.defineProperty(ap,"__esModule",{value:!0});var op;function sp(){if(op===void 0)throw new Error("No runtime abstraction layer installed");return op}(function(n){function e(t){if(t===void 0)throw new Error("No runtime abstraction layer provided");op=t}n.install=e})(sp||(sp={}));ap.default=sp});var Wi=w(li=>{"use strict";h();Object.defineProperty(li,"__esModule",{value:!0});li.Emitter=li.Event=void 0;var UT=_r(),jT;(function(n){let e={dispose(){}};n.None=function(){return e}})(jT=li.Event||(li.Event={}));var lp=class{add(e,t=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===e)if(this._contexts[i]===t){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let t=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,s=r.length;o<s;o++)try{t.push(r[o].apply(i[o],e))}catch(a){(0,UT.default)().console.error(a)}return t}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Ua=class n{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,r)=>{this._callbacks||(this._callbacks=new lp),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=n._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};li.Emitter=Ua;Ua._noop=function(){}});var $a=w(ci=>{"use strict";h();Object.defineProperty(ci,"__esModule",{value:!0});ci.CancellationTokenSource=ci.CancellationToken=void 0;var $T=_r(),BT=qi(),cp=Wi(),dp;(function(n){n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:cp.Event.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:cp.Event.None});function e(t){let r=t;return r&&(r===n.None||r===n.Cancelled||BT.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}n.is=e})(dp=ci.CancellationToken||(ci.CancellationToken={}));var VT=Object.freeze(function(n,e){let t=(0,$T.default)().timer.setTimeout(n.bind(e),0);return{dispose(){t.dispose()}}}),ja=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?VT:(this._emitter||(this._emitter=new cp.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},hp=class{get token(){return this._token||(this._token=new ja),this._token}cancel(){this._token?this._token.cancel():this._token=dp.Cancelled}dispose(){this._token?this._token instanceof ja&&this._token.dispose():this._token=dp.None}};ci.CancellationTokenSource=hp});var Iy=w(Hi=>{"use strict";h();Object.defineProperty(Hi,"__esModule",{value:!0});Hi.SharedArrayReceiverStrategy=Hi.SharedArraySenderStrategy=void 0;var GT=$a(),as;(function(n){n.Continue=0,n.Cancelled=1})(as||(as={}));var up=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let t=new SharedArrayBuffer(4),r=new Int32Array(t,0,1);r[0]=as.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){let r=this.buffers.get(t);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,as.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};Hi.SharedArraySenderStrategy=up;var pp=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===as.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},mp=class{constructor(e){this.token=new pp(e)}cancel(){}dispose(){}},fp=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let t=e.$cancellationData;return t===void 0?new GT.CancellationTokenSource:new mp(t)}};Hi.SharedArrayReceiverStrategy=fp});var bp=w(Ba=>{"use strict";h();Object.defineProperty(Ba,"__esModule",{value:!0});Ba.Semaphore=void 0;var KT=_r(),gp=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,r)=>{this._waiting.push({thunk:e,resolve:t,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,KT.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let t=e.thunk();t instanceof Promise?t.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}};Ba.Semaphore=gp});var Ny=w(Qn=>{"use strict";h();Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ReadableStreamMessageReader=Qn.AbstractMessageReader=Qn.MessageReader=void 0;var yp=_r(),Ui=qi(),vp=Wi(),JT=bp(),XT;(function(n){function e(t){let r=t;return r&&Ui.func(r.listen)&&Ui.func(r.dispose)&&Ui.func(r.onError)&&Ui.func(r.onClose)&&Ui.func(r.onPartialMessage)}n.is=e})(XT=Qn.MessageReader||(Qn.MessageReader={}));var Va=class{constructor(){this.errorEmitter=new vp.Emitter,this.closeEmitter=new vp.Emitter,this.partialMessageEmitter=new vp.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${Ui.string(e.message)?e.message:"unknown"}`)}};Qn.AbstractMessageReader=Va;var wp;(function(n){function e(t){let r,i,o,s=new Map,a,l=new Map;if(t===void 0||typeof t=="string")r=t??"utf-8";else{if(r=t.charset??"utf-8",t.contentDecoder!==void 0&&(o=t.contentDecoder,s.set(o.name,o)),t.contentDecoders!==void 0)for(let c of t.contentDecoders)s.set(c.name,c);if(t.contentTypeDecoder!==void 0&&(a=t.contentTypeDecoder,l.set(a.name,a)),t.contentTypeDecoders!==void 0)for(let c of t.contentTypeDecoders)l.set(c.name,c)}return a===void 0&&(a=(0,yp.default)().applicationJson.decoder,l.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:l}}n.fromOptions=e})(wp||(wp={}));var Sp=class extends Va{constructor(e,t){super(),this.readable=e,this.options=wp.fromOptions(t),this.buffer=(0,yp.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new JT.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),t}onData(e){for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error("Header must provide a Content-Length property."));return}let o=parseInt(i);if(isNaN(o)){this.fireError(new Error("Content-Length value must be a number."));return}this.nextMessageLength=o}let t=this.buffer.tryReadBody(this.nextMessageLength);if(t===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(t):t,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,yp.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};Qn.ReadableStreamMessageReader=Sp});var Ly=w(Yn=>{"use strict";h();Object.defineProperty(Yn,"__esModule",{value:!0});Yn.WriteableStreamMessageWriter=Yn.AbstractMessageWriter=Yn.MessageWriter=void 0;var zy=_r(),ls=qi(),QT=bp(),Oy=Wi(),YT="Content-Length: ",Ay=`\r
|
|
1
|
+
import{v as ay}from"./chunk-4Y7WHAJX.js";import{A as wy,B as si,C as Sy,D as Pn,E as xy,F as ky,G as Oa,H as Cy,I as Aa,J as _y,K as rs,L as MT,M as Ty,N as La,O as is,P as os,Q as Mn,R as Ey,S as an,T as qa,U as Wa,V as G,W as IT,X as NT,a as Z,aa as Mu,b as Pa,c as ly,d as Fn,e as Ce,f as Ma,g as cy,h as dy,i as hy,j as uy,k as py,l as ns,m as my,n as Ia,o as J,p as Na,q as fy,r as za,s as Kt,t as gy,u as V,v as lt,w as Cr,x as by,y as vy,z as yy}from"./chunk-W25XMFZJ.js";import{b as sy}from"./chunk-GZKEIUJT.js";import{a as Bt,b as ee,c as w,d as oy,e as Vt,f as Gt,g as h}from"./chunk-VKWPEFWQ.js";var qi=w(ct=>{"use strict";h();Object.defineProperty(ct,"__esModule",{value:!0});ct.stringArray=ct.array=ct.func=ct.error=ct.number=ct.string=ct.boolean=void 0;function zT(n){return n===!0||n===!1}ct.boolean=zT;function Ry(n){return typeof n=="string"||n instanceof String}ct.string=Ry;function OT(n){return typeof n=="number"||n instanceof Number}ct.number=OT;function AT(n){return n instanceof Error}ct.error=AT;function LT(n){return typeof n=="function"}ct.func=LT;function Dy(n){return Array.isArray(n)}ct.array=Dy;function qT(n){return Dy(n)&&n.every(e=>Ry(e))}ct.stringArray=qT});var np=w($=>{"use strict";h();Object.defineProperty($,"__esModule",{value:!0});$.Message=$.NotificationType9=$.NotificationType8=$.NotificationType7=$.NotificationType6=$.NotificationType5=$.NotificationType4=$.NotificationType3=$.NotificationType2=$.NotificationType1=$.NotificationType0=$.NotificationType=$.RequestType9=$.RequestType8=$.RequestType7=$.RequestType6=$.RequestType5=$.RequestType4=$.RequestType3=$.RequestType2=$.RequestType1=$.RequestType=$.RequestType0=$.AbstractMessageSignature=$.ParameterStructures=$.ResponseError=$.ErrorCodes=void 0;var ai=qi(),Fy;(function(n){n.ParseError=-32700,n.InvalidRequest=-32600,n.MethodNotFound=-32601,n.InvalidParams=-32602,n.InternalError=-32603,n.jsonrpcReservedErrorRangeStart=-32099,n.serverErrorStart=-32099,n.MessageWriteError=-32099,n.MessageReadError=-32098,n.PendingResponseRejected=-32097,n.ConnectionInactive=-32096,n.ServerNotInitialized=-32002,n.UnknownErrorCode=-32001,n.jsonrpcReservedErrorRangeEnd=-32e3,n.serverErrorEnd=-32e3})(Fy=$.ErrorCodes||($.ErrorCodes={}));var Iu=class n extends Error{constructor(e,t,r){super(t),this.code=ai.number(e)?e:Fy.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,n.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};$.ResponseError=Iu;var Rt=class n{constructor(e){this.kind=e}static is(e){return e===n.auto||e===n.byName||e===n.byPosition}toString(){return this.kind}};$.ParameterStructures=Rt;Rt.auto=new Rt("auto");Rt.byPosition=new Rt("byPosition");Rt.byName=new Rt("byName");var _e=class{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return Rt.auto}};$.AbstractMessageSignature=_e;var Nu=class extends _e{constructor(e){super(e,0)}};$.RequestType0=Nu;var zu=class extends _e{constructor(e,t=Rt.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};$.RequestType=zu;var Ou=class extends _e{constructor(e,t=Rt.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};$.RequestType1=Ou;var Au=class extends _e{constructor(e){super(e,2)}};$.RequestType2=Au;var Lu=class extends _e{constructor(e){super(e,3)}};$.RequestType3=Lu;var qu=class extends _e{constructor(e){super(e,4)}};$.RequestType4=qu;var Wu=class extends _e{constructor(e){super(e,5)}};$.RequestType5=Wu;var Hu=class extends _e{constructor(e){super(e,6)}};$.RequestType6=Hu;var Uu=class extends _e{constructor(e){super(e,7)}};$.RequestType7=Uu;var ju=class extends _e{constructor(e){super(e,8)}};$.RequestType8=ju;var $u=class extends _e{constructor(e){super(e,9)}};$.RequestType9=$u;var Bu=class extends _e{constructor(e,t=Rt.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};$.NotificationType=Bu;var Vu=class extends _e{constructor(e){super(e,0)}};$.NotificationType0=Vu;var Gu=class extends _e{constructor(e,t=Rt.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};$.NotificationType1=Gu;var Ku=class extends _e{constructor(e){super(e,2)}};$.NotificationType2=Ku;var Ju=class extends _e{constructor(e){super(e,3)}};$.NotificationType3=Ju;var Xu=class extends _e{constructor(e){super(e,4)}};$.NotificationType4=Xu;var Qu=class extends _e{constructor(e){super(e,5)}};$.NotificationType5=Qu;var Yu=class extends _e{constructor(e){super(e,6)}};$.NotificationType6=Yu;var Zu=class extends _e{constructor(e){super(e,7)}};$.NotificationType7=Zu;var ep=class extends _e{constructor(e){super(e,8)}};$.NotificationType8=ep;var tp=class extends _e{constructor(e){super(e,9)}};$.NotificationType9=tp;var WT;(function(n){function e(i){let o=i;return o&&ai.string(o.method)&&(ai.string(o.id)||ai.number(o.id))}n.isRequest=e;function t(i){let o=i;return o&&ai.string(o.method)&&i.id===void 0}n.isNotification=t;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(ai.string(o.id)||ai.number(o.id)||o.id===null)}n.isResponse=r})(WT=$.Message||($.Message={}))});var ip=w(Xn=>{"use strict";h();var Py;Object.defineProperty(Xn,"__esModule",{value:!0});Xn.LRUCache=Xn.LinkedMap=Xn.Touch=void 0;var gt;(function(n){n.None=0,n.First=1,n.AsOld=n.First,n.Last=2,n.AsNew=n.Last})(gt=Xn.Touch||(Xn.Touch={}));var Ha=class{constructor(){this[Py]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=gt.None){let r=this._map.get(e);if(r)return t!==gt.None&&this.touch(r,t),r.value}set(e,t,r=gt.None){let i=this._map.get(e);if(i)i.value=t,r!==gt.None&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case gt.None:this.addItemLast(i);break;case gt.First:this.addItemFirst(i);break;case gt.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let r=this._state,i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let i={value:t.key,done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}values(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let i={value:t.value,done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}entries(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let i={value:[t.key,t.value],done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}[(Py=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,r=this.size;for(;t&&r>e;)this._map.delete(t.key),t=t.next,r--;this._head=t,this._size=r,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,r=e.previous;if(!t||!r)throw new Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==gt.First&&t!==gt.Last)){if(t===gt.First){if(e===this._head)return;let r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===gt.Last){if(e===this._tail)return;let r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,r)=>{e.push([r,t])}),e}fromJSON(e){this.clear();for(let[t,r]of e)this.set(t,r)}};Xn.LinkedMap=Ha;var rp=class extends Ha{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=gt.AsNew){return super.get(e,t)}peek(e){return super.get(e,gt.None)}set(e,t){return super.set(e,t,gt.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Xn.LRUCache=rp});var My=w(ss=>{"use strict";h();Object.defineProperty(ss,"__esModule",{value:!0});ss.Disposable=void 0;var HT;(function(n){function e(t){return{dispose:t}}n.create=e})(HT=ss.Disposable||(ss.Disposable={}))});var _r=w(ap=>{"use strict";h();Object.defineProperty(ap,"__esModule",{value:!0});var op;function sp(){if(op===void 0)throw new Error("No runtime abstraction layer installed");return op}(function(n){function e(t){if(t===void 0)throw new Error("No runtime abstraction layer provided");op=t}n.install=e})(sp||(sp={}));ap.default=sp});var Wi=w(li=>{"use strict";h();Object.defineProperty(li,"__esModule",{value:!0});li.Emitter=li.Event=void 0;var UT=_r(),jT;(function(n){let e={dispose(){}};n.None=function(){return e}})(jT=li.Event||(li.Event={}));var lp=class{add(e,t=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===e)if(this._contexts[i]===t){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let t=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,s=r.length;o<s;o++)try{t.push(r[o].apply(i[o],e))}catch(a){(0,UT.default)().console.error(a)}return t}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Ua=class n{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,r)=>{this._callbacks||(this._callbacks=new lp),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=n._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};li.Emitter=Ua;Ua._noop=function(){}});var $a=w(ci=>{"use strict";h();Object.defineProperty(ci,"__esModule",{value:!0});ci.CancellationTokenSource=ci.CancellationToken=void 0;var $T=_r(),BT=qi(),cp=Wi(),dp;(function(n){n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:cp.Event.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:cp.Event.None});function e(t){let r=t;return r&&(r===n.None||r===n.Cancelled||BT.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}n.is=e})(dp=ci.CancellationToken||(ci.CancellationToken={}));var VT=Object.freeze(function(n,e){let t=(0,$T.default)().timer.setTimeout(n.bind(e),0);return{dispose(){t.dispose()}}}),ja=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?VT:(this._emitter||(this._emitter=new cp.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},hp=class{get token(){return this._token||(this._token=new ja),this._token}cancel(){this._token?this._token.cancel():this._token=dp.Cancelled}dispose(){this._token?this._token instanceof ja&&this._token.dispose():this._token=dp.None}};ci.CancellationTokenSource=hp});var Iy=w(Hi=>{"use strict";h();Object.defineProperty(Hi,"__esModule",{value:!0});Hi.SharedArrayReceiverStrategy=Hi.SharedArraySenderStrategy=void 0;var GT=$a(),as;(function(n){n.Continue=0,n.Cancelled=1})(as||(as={}));var up=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let t=new SharedArrayBuffer(4),r=new Int32Array(t,0,1);r[0]=as.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){let r=this.buffers.get(t);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,as.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};Hi.SharedArraySenderStrategy=up;var pp=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===as.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},mp=class{constructor(e){this.token=new pp(e)}cancel(){}dispose(){}},fp=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let t=e.$cancellationData;return t===void 0?new GT.CancellationTokenSource:new mp(t)}};Hi.SharedArrayReceiverStrategy=fp});var bp=w(Ba=>{"use strict";h();Object.defineProperty(Ba,"__esModule",{value:!0});Ba.Semaphore=void 0;var KT=_r(),gp=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,r)=>{this._waiting.push({thunk:e,resolve:t,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,KT.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let t=e.thunk();t instanceof Promise?t.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}};Ba.Semaphore=gp});var Ny=w(Qn=>{"use strict";h();Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ReadableStreamMessageReader=Qn.AbstractMessageReader=Qn.MessageReader=void 0;var yp=_r(),Ui=qi(),vp=Wi(),JT=bp(),XT;(function(n){function e(t){let r=t;return r&&Ui.func(r.listen)&&Ui.func(r.dispose)&&Ui.func(r.onError)&&Ui.func(r.onClose)&&Ui.func(r.onPartialMessage)}n.is=e})(XT=Qn.MessageReader||(Qn.MessageReader={}));var Va=class{constructor(){this.errorEmitter=new vp.Emitter,this.closeEmitter=new vp.Emitter,this.partialMessageEmitter=new vp.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${Ui.string(e.message)?e.message:"unknown"}`)}};Qn.AbstractMessageReader=Va;var wp;(function(n){function e(t){let r,i,o,s=new Map,a,l=new Map;if(t===void 0||typeof t=="string")r=t??"utf-8";else{if(r=t.charset??"utf-8",t.contentDecoder!==void 0&&(o=t.contentDecoder,s.set(o.name,o)),t.contentDecoders!==void 0)for(let c of t.contentDecoders)s.set(c.name,c);if(t.contentTypeDecoder!==void 0&&(a=t.contentTypeDecoder,l.set(a.name,a)),t.contentTypeDecoders!==void 0)for(let c of t.contentTypeDecoders)l.set(c.name,c)}return a===void 0&&(a=(0,yp.default)().applicationJson.decoder,l.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:l}}n.fromOptions=e})(wp||(wp={}));var Sp=class extends Va{constructor(e,t){super(),this.readable=e,this.options=wp.fromOptions(t),this.buffer=(0,yp.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new JT.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),t}onData(e){for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error("Header must provide a Content-Length property."));return}let o=parseInt(i);if(isNaN(o)){this.fireError(new Error("Content-Length value must be a number."));return}this.nextMessageLength=o}let t=this.buffer.tryReadBody(this.nextMessageLength);if(t===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(t):t,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,yp.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};Qn.ReadableStreamMessageReader=Sp});var Ly=w(Yn=>{"use strict";h();Object.defineProperty(Yn,"__esModule",{value:!0});Yn.WriteableStreamMessageWriter=Yn.AbstractMessageWriter=Yn.MessageWriter=void 0;var zy=_r(),ls=qi(),QT=bp(),Oy=Wi(),YT="Content-Length: ",Ay=`\r
|
|
2
2
|
`,ZT;(function(n){function e(t){let r=t;return r&&ls.func(r.dispose)&&ls.func(r.onClose)&&ls.func(r.onError)&&ls.func(r.write)}n.is=e})(ZT=Yn.MessageWriter||(Yn.MessageWriter={}));var Ga=class{constructor(){this.errorEmitter=new Oy.Emitter,this.closeEmitter=new Oy.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,r){this.errorEmitter.fire([this.asError(e),t,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${ls.string(e.message)?e.message:"unknown"}`)}};Yn.AbstractMessageWriter=Ga;var xp;(function(n){function e(t){return t===void 0||typeof t=="string"?{charset:t??"utf-8",contentTypeEncoder:(0,zy.default)().applicationJson.encoder}:{charset:t.charset??"utf-8",contentEncoder:t.contentEncoder,contentTypeEncoder:t.contentTypeEncoder??(0,zy.default)().applicationJson.encoder}}n.fromOptions=e})(xp||(xp={}));var kp=class extends Ga{constructor(e,t){super(),this.writable=e,this.options=xp.fromOptions(t),this.errorCount=0,this.writeSemaphore=new QT.Semaphore(1),this.writable.onError(r=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(r=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(r):r).then(r=>{let i=[];return i.push(YT,r.byteLength.toString(),Ay),i.push(Ay),this.doWrite(e,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(e,t,r){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,e),Promise.reject(i)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}};Yn.WriteableStreamMessageWriter=kp});var qy=w(Ka=>{"use strict";h();Object.defineProperty(Ka,"__esModule",{value:!0});Ka.AbstractMessageBuffer=void 0;var e0=13,t0=10,n0=`\r
|
|
3
3
|
`,Cp=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let t=0,r=0,i=0,o=0;e:for(;r<this._chunks.length;){let c=this._chunks[r];for(i=0;i<c.length;){switch(c[i]){case e0:switch(t){case 0:t=1;break;case 2:t=3;break;default:t=0}break;case t0:switch(t){case 1:t=2;break;case 3:t=4,i++;break e;default:t=0}break;default:t=0}i++}o+=c.byteLength,r++}if(t!==4)return;let s=this._read(o+i),a=new Map,l=this.toString(s,"ascii").split(n0);if(l.length<2)return a;for(let c=0;c<l.length-2;c++){let d=l[c],p=d.indexOf(":");if(p===-1)throw new Error("Message header must separate key and value using :");let m=d.substr(0,p),g=d.substr(p+1).trim();a.set(e?m.toLowerCase():m,g)}return a}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(o)}if(this._chunks[0].byteLength>e){let o=this._chunks[0],s=this.asNative(o,e);return this._chunks[0]=o.slice(e),this._totalLength-=e,s}let t=this.allocNative(e),r=0,i=0;for(;e>0;){let o=this._chunks[i];if(o.byteLength>e){let s=o.slice(0,e);t.set(s,r),r+=e,this._chunks[i]=o.slice(e),this._totalLength-=e,e-=e}else t.set(o,r),r+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,e-=o.byteLength}return t}};Ka.AbstractMessageBuffer=Cp});var Vy=w(j=>{"use strict";h();Object.defineProperty(j,"__esModule",{value:!0});j.createMessageConnection=j.ConnectionOptions=j.MessageStrategy=j.CancellationStrategy=j.CancellationSenderStrategy=j.CancellationReceiverStrategy=j.RequestCancellationReceiverStrategy=j.IdCancellationReceiverStrategy=j.ConnectionStrategy=j.ConnectionError=j.ConnectionErrors=j.LogTraceNotification=j.SetTraceNotification=j.TraceFormat=j.TraceValues=j.Trace=j.NullLogger=j.ProgressType=j.ProgressToken=void 0;var Wy=_r(),Me=qi(),X=np(),Hy=ip(),cs=Wi(),_p=$a(),hs;(function(n){n.type=new X.NotificationType("$/cancelRequest")})(hs||(hs={}));var Uy;(function(n){function e(t){return typeof t=="string"||typeof t=="number"}n.is=e})(Uy=j.ProgressToken||(j.ProgressToken={}));var ds;(function(n){n.type=new X.NotificationType("$/progress")})(ds||(ds={}));var Tp=class{constructor(){}};j.ProgressType=Tp;var Ep;(function(n){function e(t){return Me.func(t)}n.is=e})(Ep||(Ep={}));j.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var fe;(function(n){n[n.Off=0]="Off",n[n.Messages=1]="Messages",n[n.Compact=2]="Compact",n[n.Verbose=3]="Verbose"})(fe=j.Trace||(j.Trace={}));var r0;(function(n){n.Off="off",n.Messages="messages",n.Compact="compact",n.Verbose="verbose"})(r0=j.TraceValues||(j.TraceValues={}));(function(n){function e(r){if(!Me.string(r))return n.Off;switch(r=r.toLowerCase(),r){case"off":return n.Off;case"messages":return n.Messages;case"compact":return n.Compact;case"verbose":return n.Verbose;default:return n.Off}}n.fromString=e;function t(r){switch(r){case n.Off:return"off";case n.Messages:return"messages";case n.Compact:return"compact";case n.Verbose:return"verbose";default:return"off"}}n.toString=t})(fe=j.Trace||(j.Trace={}));var ln;(function(n){n.Text="text",n.JSON="json"})(ln=j.TraceFormat||(j.TraceFormat={}));(function(n){function e(t){return Me.string(t)?(t=t.toLowerCase(),t==="json"?n.JSON:n.Text):n.Text}n.fromString=e})(ln=j.TraceFormat||(j.TraceFormat={}));var jy;(function(n){n.type=new X.NotificationType("$/setTrace")})(jy=j.SetTraceNotification||(j.SetTraceNotification={}));var Rp;(function(n){n.type=new X.NotificationType("$/logTrace")})(Rp=j.LogTraceNotification||(j.LogTraceNotification={}));var Ja;(function(n){n[n.Closed=1]="Closed",n[n.Disposed=2]="Disposed",n[n.AlreadyListening=3]="AlreadyListening"})(Ja=j.ConnectionErrors||(j.ConnectionErrors={}));var ji=class n extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,n.prototype)}};j.ConnectionError=ji;var $y;(function(n){function e(t){let r=t;return r&&Me.func(r.cancelUndispatched)}n.is=e})($y=j.ConnectionStrategy||(j.ConnectionStrategy={}));var Pp;(function(n){function e(t){let r=t;return r&&(r.kind===void 0||r.kind==="id")&&Me.func(r.createCancellationTokenSource)&&(r.dispose===void 0||Me.func(r.dispose))}n.is=e})(Pp=j.IdCancellationReceiverStrategy||(j.IdCancellationReceiverStrategy={}));var By;(function(n){function e(t){let r=t;return r&&r.kind==="request"&&Me.func(r.createCancellationTokenSource)&&(r.dispose===void 0||Me.func(r.dispose))}n.is=e})(By=j.RequestCancellationReceiverStrategy||(j.RequestCancellationReceiverStrategy={}));var Dp;(function(n){n.Message=Object.freeze({createCancellationTokenSource(t){return new _p.CancellationTokenSource}});function e(t){return Pp.is(t)||By.is(t)}n.is=e})(Dp=j.CancellationReceiverStrategy||(j.CancellationReceiverStrategy={}));var Fp;(function(n){n.Message=Object.freeze({sendCancellation(t,r){return t.sendNotification(hs.type,{id:r})},cleanup(t){}});function e(t){let r=t;return r&&Me.func(r.sendCancellation)&&Me.func(r.cleanup)}n.is=e})(Fp=j.CancellationSenderStrategy||(j.CancellationSenderStrategy={}));var Mp;(function(n){n.Message=Object.freeze({receiver:Dp.Message,sender:Fp.Message});function e(t){let r=t;return r&&Dp.is(r.receiver)&&Fp.is(r.sender)}n.is=e})(Mp=j.CancellationStrategy||(j.CancellationStrategy={}));var Ip;(function(n){function e(t){let r=t;return r&&Me.func(r.handleMessage)}n.is=e})(Ip=j.MessageStrategy||(j.MessageStrategy={}));var i0;(function(n){function e(t){let r=t;return r&&(Mp.is(r.cancellationStrategy)||$y.is(r.connectionStrategy)||Ip.is(r.messageStrategy))}n.is=e})(i0=j.ConnectionOptions||(j.ConnectionOptions={}));var cn;(function(n){n[n.New=1]="New",n[n.Listening=2]="Listening",n[n.Closed=3]="Closed",n[n.Disposed=4]="Disposed"})(cn||(cn={}));function o0(n,e,t,r){let i=t!==void 0?t:j.NullLogger,o=0,s=0,a=0,l="2.0",c,d=new Map,p,m=new Map,g=new Map,S,F=new Hy.LinkedMap,P=new Map,N=new Set,x=new Map,y=fe.Off,E=ln.Text,O,W=cn.New,xe=new cs.Emitter,Fe=new cs.Emitter,Ut=new cs.Emitter,Mt=new cs.Emitter,_t=new cs.Emitter,Tt=r&&r.cancellationStrategy?r.cancellationStrategy:Mp.Message;function Sr(v){if(v===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+v.toString()}function ii(v){return v===null?"res-unknown-"+(++a).toString():"res-"+v.toString()}function jt(){return"not-"+(++s).toString()}function It(v,R){X.Message.isRequest(R)?v.set(Sr(R.id),R):X.Message.isResponse(R)?v.set(ii(R.id),R):v.set(jt(),R)}function xr(v){}function $t(){return W===cn.Listening}function Rn(){return W===cn.Closed}function mt(){return W===cn.Disposed}function kr(){(W===cn.New||W===cn.Listening)&&(W=cn.Closed,Fe.fire(void 0))}function Zo(v){xe.fire([v,void 0,void 0])}function Ni(v){xe.fire(v)}n.onClose(kr),n.onError(Zo),e.onClose(kr),e.onError(Ni);function zi(){S||F.size===0||(S=(0,Wy.default)().timer.setImmediate(()=>{S=void 0,Eu()}))}function Oi(v){X.Message.isRequest(v)?Ru(v):X.Message.isNotification(v)?Fu(v):X.Message.isResponse(v)?Du(v):Fa(v)}function Eu(){if(F.size===0)return;let v=F.shift();try{let R=r?.messageStrategy;Ip.is(R)?R.handleMessage(v,Oi):Oi(v)}finally{zi()}}let oi=v=>{try{if(X.Message.isNotification(v)&&v.method===hs.type.method){let R=v.params.id,z=Sr(R),U=F.get(z);if(X.Message.isRequest(U)){let be=r?.connectionStrategy,ze=be&&be.cancelUndispatched?be.cancelUndispatched(U,xr):void 0;if(ze&&(ze.error!==void 0||ze.result!==void 0)){F.delete(z),x.delete(R),ze.id=U.id,K(ze,v.method,Date.now()),e.write(ze).catch(()=>i.error("Sending response for canceled message failed."));return}}let ke=x.get(R);if(ke!==void 0){ke.cancel(),Et(v);return}else N.add(R)}It(F,v)}finally{zi()}};function Ru(v){if(mt())return;function R(ce,Pe,me){let Ve={jsonrpc:l,id:v.id};ce instanceof X.ResponseError?Ve.error=ce.toJson():Ve.result=ce===void 0?null:ce,K(Ve,Pe,me),e.write(Ve).catch(()=>i.error("Sending response failed."))}function z(ce,Pe,me){let Ve={jsonrpc:l,id:v.id,error:ce.toJson()};K(Ve,Pe,me),e.write(Ve).catch(()=>i.error("Sending response failed."))}function U(ce,Pe,me){ce===void 0&&(ce=null);let Ve={jsonrpc:l,id:v.id,result:ce};K(Ve,Pe,me),e.write(Ve).catch(()=>i.error("Sending response failed."))}Re(v);let ke=d.get(v.method),be,ze;ke&&(be=ke.type,ze=ke.handler);let Ae=Date.now();if(ze||c){let ce=v.id??String(Date.now()),Pe=Pp.is(Tt.receiver)?Tt.receiver.createCancellationTokenSource(ce):Tt.receiver.createCancellationTokenSource(v);v.id!==null&&N.has(v.id)&&Pe.cancel(),v.id!==null&&x.set(ce,Pe);try{let me;if(ze)if(v.params===void 0){if(be!==void 0&&be.numberOfParams!==0){z(new X.ResponseError(X.ErrorCodes.InvalidParams,`Request ${v.method} defines ${be.numberOfParams} params but received none.`),v.method,Ae);return}me=ze(Pe.token)}else if(Array.isArray(v.params)){if(be!==void 0&&be.parameterStructures===X.ParameterStructures.byName){z(new X.ResponseError(X.ErrorCodes.InvalidParams,`Request ${v.method} defines parameters by name but received parameters by position`),v.method,Ae);return}me=ze(...v.params,Pe.token)}else{if(be!==void 0&&be.parameterStructures===X.ParameterStructures.byPosition){z(new X.ResponseError(X.ErrorCodes.InvalidParams,`Request ${v.method} defines parameters by position but received parameters by name`),v.method,Ae);return}me=ze(v.params,Pe.token)}else c&&(me=c(v.method,v.params,Pe.token));let Ve=me;me?Ve.then?Ve.then(ft=>{x.delete(ce),R(ft,v.method,Ae)},ft=>{x.delete(ce),ft instanceof X.ResponseError?z(ft,v.method,Ae):ft&&Me.string(ft.message)?z(new X.ResponseError(X.ErrorCodes.InternalError,`Request ${v.method} failed with message: ${ft.message}`),v.method,Ae):z(new X.ResponseError(X.ErrorCodes.InternalError,`Request ${v.method} failed unexpectedly without providing any details.`),v.method,Ae)}):(x.delete(ce),R(me,v.method,Ae)):(x.delete(ce),U(me,v.method,Ae))}catch(me){x.delete(ce),me instanceof X.ResponseError?R(me,v.method,Ae):me&&Me.string(me.message)?z(new X.ResponseError(X.ErrorCodes.InternalError,`Request ${v.method} failed with message: ${me.message}`),v.method,Ae):z(new X.ResponseError(X.ErrorCodes.InternalError,`Request ${v.method} failed unexpectedly without providing any details.`),v.method,Ae)}}else z(new X.ResponseError(X.ErrorCodes.MethodNotFound,`Unhandled method ${v.method}`),v.method,Ae)}function Du(v){if(!mt())if(v.id===null)v.error?i.error(`Received response message without id: Error is:
|
|
4
4
|
${JSON.stringify(v.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let R=v.id,z=P.get(R);if(RT(v,z),z!==void 0){P.delete(R);try{if(v.error){let U=v.error;z.reject(new X.ResponseError(U.code,U.message,U.data))}else if(v.result!==void 0)z.resolve(v.result);else throw new Error("Should never happen.")}catch(U){U.message?i.error(`Response handler '${z.method}' failed with message: ${U.message}`):i.error(`Response handler '${z.method}' failed unexpectedly.`)}}}}function Fu(v){if(mt())return;let R,z;if(v.method===hs.type.method){let U=v.params.id;N.delete(U),Et(v);return}else{let U=m.get(v.method);U&&(z=U.handler,R=U.type)}if(z||p)try{if(Et(v),z)if(v.params===void 0)R!==void 0&&R.numberOfParams!==0&&R.parameterStructures!==X.ParameterStructures.byName&&i.error(`Notification ${v.method} defines ${R.numberOfParams} params but received none.`),z();else if(Array.isArray(v.params)){let U=v.params;v.method===ds.type.method&&U.length===2&&Uy.is(U[0])?z({token:U[0],value:U[1]}):(R!==void 0&&(R.parameterStructures===X.ParameterStructures.byName&&i.error(`Notification ${v.method} defines parameters by name but received parameters by position`),R.numberOfParams!==v.params.length&&i.error(`Notification ${v.method} defines ${R.numberOfParams} params but received ${U.length} arguments`)),z(...U))}else R!==void 0&&R.parameterStructures===X.ParameterStructures.byPosition&&i.error(`Notification ${v.method} defines parameters by position but received parameters by name`),z(v.params);else p&&p(v.method,v.params)}catch(U){U.message?i.error(`Notification handler '${v.method}' failed with message: ${U.message}`):i.error(`Notification handler '${v.method}' failed unexpectedly.`)}else Ut.fire(v)}function Fa(v){if(!v){i.error("Received empty message.");return}i.error(`Received message which is neither a response nor a notification message:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as i,i as r,p as s}from"./chunk-773TIA5M.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as f,readFileSync as u}from"fs";import{fileURLToPath as p,pathToFileURL as g}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(p(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"app:logs:sources":"dist/cli/commands/app/app-logs/sources.js","demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function l(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=l(n),e=i(d,o);return f(e)?d:y(t)}async function j(n,t){let o=l(n),e=w(n,t);return(await import(g(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-
|
|
1
|
+
import{d as i,i as r,p as s}from"./chunk-773TIA5M.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as f,readFileSync as u}from"fs";import{fileURLToPath as p,pathToFileURL as g}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(p(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"app:logs:sources":"dist/cli/commands/app/app-logs/sources.js","demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function l(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=l(n),e=i(d,o);return f(e)?d:y(t)}async function j(n,t){let o=l(n),e=w(n,t);return(await import(g(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-KOFJQ4RY.js");return o?.[n]}if(t==="@oclif/plugin-commands"){let{commands:o}=await import("./lib-M72BVWQ3.js");return o[n]}if(t==="@oclif/plugin-plugins"){let{commands:o}=await import("./lib-P3APEIHY.js");return o[n]}if(t==="@shopify/plugin-did-you-mean"){let{DidYouMeanCommands:o}=await import("./dist-733YLWJN.js");return o[n]}}export{D as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as s}from"./chunk-
|
|
1
|
+
import{b as s}from"./chunk-XQIPACFV.js";import{C,E as x,y as a}from"./chunk-ESTXKKAB.js";import{e as w}from"./chunk-BC42C35S.js";import{h as S}from"./chunk-BFL74TW2.js";import{Ab as I}from"./chunk-DD7FQDTB.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=A()){return!!o.get("autocorrectEnabled")}function y(o,e=A()){e.set("autocorrectEnabled",o)}function A(){return W??=new w({projectName:"did-you-mean"}),W}var W;var u=class extends s{static summary="Enable autocorrect. Off by default.";static descriptionWithMarkdown=`Enable autocorrect. Off by default.
|
|
2
2
|
|
|
3
3
|
When autocorrection is enabled, Shopify CLI automatically runs a corrected version of your command if a correction is available.
|
|
4
4
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{w as d}from"./chunk-
|
|
1
|
+
import{w as d}from"./chunk-F2X7F5QX.js";import{a as l}from"./chunk-ID3AR4VW.js";import{a as m}from"./chunk-N7VI7OWJ.js";import{wa as f}from"./chunk-7LW23M5C.js";import{b as u}from"./chunk-GZKEIUJT.js";import{Ib as p,wb as c}from"./chunk-DD7FQDTB.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();i();function h(a){let o=d(a),t=new Map;o.forEach(s=>{let e=s.split(".");if(e.length>=2){let r=e[0];t.has(r)||t.set(r,[]),t.set(r,[...t.get(r),s])}});for(let[s,e]of t)c(p(s,e.join(`
|
|
2
2
|
`)))}var n=class a extends l{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 description=this.descriptionWithoutMarkdown();static flags={...u,...m};async run(){let{flags:o}=await this.parse(a),{app:t}=await f({directory:o.path,clientId:o["client-id"],forceRelink:o.reset,userProvidedConfigName:o.config});return t.errors.isEmpty()?h(t):process.exit(2),{app:t}}};export{n as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as h}from"./chunk-
|
|
1
|
+
import{a as h}from"./chunk-LY7PSCG4.js";import{p as m,v as a}from"./chunk-4Y7WHAJX.js";import{b as n}from"./chunk-GZKEIUJT.js";import{xa as t}from"./chunk-NYHGIWKZ.js";import{a as w}from"./chunk-CTNBSUVU.js";import{S as s}from"./chunk-DD7FQDTB.js";import{e as u,g as i}from"./chunk-VKWPEFWQ.js";i();var r=u(w(),1);var o=class extends a{static summary="Creates a shareable, unpublished, and new theme on your theme library with a randomized name.";static descriptionWithMarkdown=`Uploads your theme as a new, unpublished theme in your theme library. The theme is given a randomized name.
|
|
2
2
|
|
|
3
3
|
This command returns a [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with others.`;static description=this.descriptionWithoutMarkdown();static flags={...n,...m,force:r.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"}),listing:r.Flags.string({description:"The listing preset to use for multi-preset themes. Applies preset files from listings/[preset-name] directory.",env:"SHOPIFY_FLAG_LISTING"})};static multiEnvironmentsFlags=["store","password","path"];async command(e,d,p,g,c){let l={environment:e.environment,force:e.force,noColor:e["no-color"],password:e.password,path:e.path,store:e.store,theme:s("creative"),unpublished:!0,listing:e.listing};t("theme-command:share"),await h(l,d,p,c),t("theme-command:share")}};export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as A,wa as x}from"./chunk-
|
|
1
|
+
import{n as A,wa as x}from"./chunk-7LW23M5C.js";import{F}from"./chunk-ESTXKKAB.js";import{h as s}from"./chunk-BFL74TW2.js";import{a as D}from"./chunk-CTNBSUVU.js";import{Ta as p,sb as f,ua as v,wb as I,xb as P}from"./chunk-DD7FQDTB.js";import{a as S}from"./chunk-D7S4HEQE.js";import{d as m,f as y,q as w}from"./chunk-773TIA5M.js";import{e as E,g as l}from"./chunk-VKWPEFWQ.js";l();async function b(n){let{extension:e,stdout:o,developerPlatformClient:i,app:r,orgId:t}=n,c=r.configuration.client_id,{api_version:a,type:u,targeting:d}=e.configuration,T=await(!!d?.length?_({localIdentifier:e.localIdentifier,developerPlatformClient:i,apiKey:c,target:d[0].target,version:a,orgId:t}):$({localIdentifier:e.localIdentifier,developerPlatformClient:i,apiKey:c,type:u,version:a,orgId:t})),h=A(T,a);if(o)I(h);else{let g=m(e.directory,"schema.graphql");await v(g,h),P(`GraphQL Schema for ${e.localIdentifier} written to ${g}`)}}async function _({localIdentifier:n,developerPlatformClient:e,apiKey:o,target:i,version:r,orgId:t}){let c={handle:i,version:r},a=await e.targetSchemaDefinition(c,o,t);if(!a)throw new s(f`A schema could not be generated for ${n}`,f`Check that the Function targets and version are valid.`);return a}async function $({localIdentifier:n,developerPlatformClient:e,apiKey:o,version:i,type:r,orgId:t}){let c={version:i,type:r},a=await e.apiSchemaDefinition(c,o,t);if(!a)throw new s(f`A schema could not be generated for ${n}`,f`Check that the Function API type and version are valid.`);return a}l();var C=E(D(),1);var J={path:C.Flags.string({hidden:!1,description:"The path to your function directory.",parse:async n=>y(n),default:async()=>w(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"})};async function M(n,e){let o=n.allExtensions.filter(r=>r.isFunctionExtension),i=o.find(r=>r.directory===e);if(i)return i;if(o.length===1&&o[0])return o[0];if(S())return await F({message:"Which function?",choices:o.map(t=>({label:t.handle,value:t}))});throw new s("Run this command from a function directory or use `--path` to specify a function directory.")}async function N(n,e,o,i,r){let t=m(n.directory,"schema.graphql");if(await p(t))return t;let{app:c,developerPlatformClient:a,organization:u}=await x({directory:e,clientId:o,forceRelink:i,userProvidedConfigName:r});return await b({app:c,developerPlatformClient:a,extension:n,stdout:!1,orgId:u.id}),await p(t)?t:void 0}export{b as a,J as b,M as c,N as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as U,b as xt}from"./chunk-JLGA3B7P.js";import{a as ht,b as ft,f as Ie,g as ae,h as A,i as ce,k as Et,n as Tt}from"./chunk-
|
|
1
|
+
import{a as U,b as xt}from"./chunk-JLGA3B7P.js";import{a as ht,b as ft,f as Ie,g as ae,h as A,i as ce,k as Et,n as Tt}from"./chunk-7SHHNWHL.js";import{a as M,l as gt,m as yt}from"./chunk-5GBIXC2Y.js";import{s as ie,t as W}from"./chunk-4Y7WHAJX.js";import{a as O,b as N,e as nt,g as rt,i as ot,j as it,k as at,n as ct,p as lt,q as dt,r as oe,s as $,u as ut,w as pt}from"./chunk-Q7BOSHWX.js";import{aa as mt}from"./chunk-W25XMFZJ.js";import{Aa as H,c as Ke,ya as L}from"./chunk-NYHGIWKZ.js";import{A as I,B as te,C as tt,T as st,y as et}from"./chunk-ESTXKKAB.js";import{h as se}from"./chunk-BFL74TW2.js";import{Ab as F,Bb as D,O as Xe,Ta as P,Wa as C,Z as $e,bb as ke,ma as k,qb as j,sb as ne,ua as be,wa as Ze,xb as re,ya as Qe}from"./chunk-DD7FQDTB.js";import{d as E,g as V,j as Ve,k as q}from"./chunk-773TIA5M.js";import{e as Ge,g as h}from"./chunk-VKWPEFWQ.js";h();h();h();var rs=".shopifyignore",Rt=/templates\/\*(\.(json|liquid))?$/,St=new Set;function Le(e,t={}){let s=t.ignoreFromFile??[],n=t.ignore??[],r=t.only??[],[o=[],i=[]]=_e(s),[a=[],p=[]]=_e(n),[m=[],c=[]]=_e(r),l=e.filter(B(o,".shopifyignore"));return l=l.filter(B(a,"--ignore")),l=l.filter(B(m,"--only",!0)),i.length>0&&(l=l.concat(e.filter(B(i,".shopifyignore",!0)))),p.length>0&&(l=l.concat(e.filter(B(p,"--ignore",!0)))),c.length>0&&(l=l.filter(B(c,"--only"))),Xe(l,f=>f.key)}function B(e,t,s=!1){return({key:n})=>{if(e.length===0)return!0;let r=e.some(i=>os(n,i)||cs(i)&&as(n,ls(i)));return(s?!r:r)?(F(`Ignoring theme file ${n} via ${t}...`),!1):!0}}async function wt(e){let t=E(e,rs);return await P(t)?(await k(t,{encoding:"utf8"})).split(/(\r\n|\r|\n)/).map(r=>r.trim()).filter(r=>r&&!r.startsWith("#")):[]}function _e(e){let t=e.filter(n=>n.startsWith("!")).map(n=>n.slice(1));return[e.filter(n=>!n.startsWith("!")),t]}function os(e,t){let s={matchBase:!0,noglobstar:!0};return ke(e,t,s)?!0:(!t.includes("*")&&t.endsWith("/")&&!St.has(t)&&(St.add(t),I({headline:"Directory pattern may be misleading.",body:`For more reliable matching, consider using "${t}*" or "${t}*.<file_extension>" instead.`})),is(t)?ke(e,t.replace(Rt,"templates/**/*$1"),s):!1)}function is(e){return Rt.test(e)}function as(e,t){return t.test(e)}function cs(e){return e.startsWith("/")&&e.endsWith("/")}function ls(e){return new RegExp(e.slice(1,-1))}h();import Ft from"fs/promises";var le=class{notifyPath;isValidUrl;constructor(t){this.notifyPath=t,this.isValidUrl=this.validateUrl(t),this.notifyPath===""&&D("Notification skipped: notifyPath is an empty string")}async notify(t){if(this.notifyPath!=="")try{F(`Notifying filechange listener at ${this.notifyPath}...`),this.isValidUrl?await this.notifyUrl(t):await this.notifyFile(t)}catch(s){L(s);let n=`Failed to notify filechange listener at ${this.notifyPath}`;s instanceof Error&&(n=n.concat(`: ${s.message}`)),D(n)}}async notifyUrl(t){let s=await fetch(this.notifyPath,{method:"POST",body:JSON.stringify({files:[t]}),headers:{"Content-Type":"application/json"}});if(!s.ok)throw new Error(s.statusText)}async notifyFile(t){await Ft.writeFile(this.notifyPath,t),await Ft.utimes(this.notifyPath,new Date,new Date)}validateUrl(t){try{let s=new URL(t);return s.protocol==="http:"||s.protocol==="https:"}catch{return!1}}};h();h();h();import ds from"node:events";var Pt=["assets/**/*.*","locales/**/*.json","blocks/**/*.liquid","snippets/**/*.liquid"];function vt(e){let t=new Map,s=new Set,n=new ds,r=(c,l)=>{n.emit(c,l)},o=async c=>{let l=await ue(e,c),u=de(c,l),f=typeof l=="string"?l:"",T=Buffer.isBuffer(l)?l.toString("base64"):"";return t.set(c,M({key:c,checksum:u,value:f,attachment:T})),l},i=C(Pt,{cwd:e,deep:3,ignore:W}).then(c=>Promise.all(c.map(o))),a=(c,l)=>{let u=V(e,l),f=o(u).then(()=>{let T=t.get(u);return s.add(T.key),T.value??T.attachment??""});st(5).then(()=>{s.delete(u)}).catch(()=>{}),r(c,{fileKey:u,onContent:T=>{f.then(v=>{v&&T(v)}).catch(()=>{})},onSync:T=>{}})},p=c=>{let l=V(e,c);s.delete(l),t.delete(l),r("unlink",{fileKey:l,onSync:u=>u()})},m=new Set(Pt.map(c=>E(e,c.split("/").shift()??"")));return{root:e,files:t,unsyncedFileKeys:s,ready:async()=>i.then(()=>{}),delete:async c=>{t.delete(c)},write:async c=>{t.set(c.key,c)},read:o,addEventListener:(c,l)=>{n.on(c,l)},startWatcher:async()=>{let{default:c}=await import("./chokidar-5RWEYTNQ.js");c.watch([...m],{ignored:W,persistent:!process.env.SHOPIFY_UNIT_TEST,ignoreInitial:!0}).on("add",a.bind(null,"add")).on("change",a.bind(null,"change")).on("unlink",p.bind(null))}}}h();h();var us="https://unpkg.com/@shopify/polaris@13.9.2/build/esm/styles.css";function $t(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function bt(e){return(0,String.raw)`<!DOCTYPE html>
|
|
2
2
|
<html>
|
|
3
3
|
<head>
|
|
4
4
|
<title>${e.title}</title>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d}from"./chunk-
|
|
1
|
+
import{c as d}from"./chunk-5GBIXC2Y.js";import{Aa as i}from"./chunk-NYHGIWKZ.js";import{A as m,B as u,E as s,H as a}from"./chunk-ESTXKKAB.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();function f(e){return[`'${e.name}'`,{subdued:`(#${e.id})`}]}function y(e){return{list:{items:e.map(f)}}}async function T(e,r="It doesn't seem like you're running this command in a theme directory.",o,n){if(e)return!0;if(n)return u({headline:o?`Environment: ${o}`:"",body:r}),!1;if(m({body:r}),!process.stdout.isTTY)return!0;let t=await s({message:"Do you want to proceed?"});return i(`theme-service:confirm-directory:${t}`),t}async function v(e,r,o){if(e.role!==d||!process.stdout.isTTY||o)return!0;let n=`You're about to ${r} on your live theme "${e.name}". This will make changes visible to customers. Are you sure you want to proceed?`,t=await s({message:n,confirmationMessage:"Yes, proceed with live theme",cancellationMessage:"No, cancel"});return i(`theme-service:confirm-live-theme:${t}`),t}async function E(e,r,o=!1){e.length>0&&await a(e,{renderOptions:{stdout:r??process.stderr},noProgressBar:o})}export{f as a,y as b,T as c,v as d,E as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as o}from"./chunk-
|
|
1
|
+
import{g as o}from"./chunk-GZKEIUJT.js";import{b as s}from"./chunk-XQIPACFV.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends s{static description="Clear the CLI cache, used to store some API responses and handle notifications status";static hidden=!0;async run(){await o()}};export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../../chunk-
|
|
1
|
+
import{a}from"../../../../chunk-YRRGHHTP.js";import"../../../../chunk-F2X7F5QX.js";import"../../../../chunk-TYMYIUIQ.js";import"../../../../chunk-ID3AR4VW.js";import"../../../../chunk-A27WKAFQ.js";import"../../../../chunk-N7VI7OWJ.js";import"../../../../chunk-7LW23M5C.js";import"../../../../chunk-5LGEBELU.js";import"../../../../chunk-YLQ3LNNY.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-QD2KPFUT.js";import"../../../../chunk-MJ3WNVMQ.js";import"../../../../chunk-WKCXSP6V.js";import"../../../../chunk-NEREVIKL.js";import"../../../../chunk-NL7WDQSR.js";import"../../../../chunk-W25XMFZJ.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-FFSDGRAN.js";import"../../../../chunk-F3TMLDLC.js";import"../../../../chunk-4QBJ5JBX.js";import"../../../../chunk-R5ONMTHY.js";import"../../../../chunk-WAVWKGSF.js";import"../../../../chunk-I2PSC3VF.js";import"../../../../chunk-GZKEIUJT.js";import"../../../../chunk-XQIPACFV.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-NYHGIWKZ.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-NAIXUSEF.js";import"../../../../chunk-ESTXKKAB.js";import"../../../../chunk-7Y7AZRL3.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-AEUVT7IU.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-LX7W4GUD.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-BC42C35S.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-VNW2YMPM.js";import"../../../../chunk-RF54RVOL.js";import"../../../../chunk-BFL74TW2.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-CTNBSUVU.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-TR4OWSEX.js";import"../../../../chunk-2KD4LHRT.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-CX5CC6P5.js";import"../../../../chunk-ET2CGROE.js";import"../../../../chunk-TOLPNBZK.js";import"../../../../chunk-Q4BTAXLS.js";import"../../../../chunk-DD7FQDTB.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-BOAGJ6P5.js";import"../../../../chunk-LD6ZCTZ3.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-D7S4HEQE.js";import"../../../../chunk-DPNZWBT5.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-773TIA5M.js";import"../../../../chunk-CRALWNNO.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
|