shopify 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-23GM6KJU.js +1 -0
- package/dist/analytics-743FYOAE.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-HSTZV6H7.js → chunk-2EQRXSF6.js} +1 -1
- package/dist/{chunk-AY3AAV77.js → chunk-2IXP3IPE.js} +1 -1
- package/dist/{chunk-OTMYJWIP.js → chunk-2KACAQJS.js} +1 -1
- package/dist/{chunk-24Q6X53V.js → chunk-2OCSYLKZ.js} +1 -1
- package/dist/{chunk-QCLE5REL.js → chunk-2PILNMHJ.js} +1 -1
- package/dist/{chunk-WPDJVUTY.js → chunk-36S6MFJQ.js} +1 -1
- package/dist/{chunk-YNZLLZU2.js → chunk-3DB4EC62.js} +1 -1
- package/dist/{chunk-FQLXQ7WN.js → chunk-3GL3IT4K.js} +1 -1
- package/dist/{chunk-JALDNBTU.js → chunk-3JRB7Q3T.js} +1 -1
- package/dist/{chunk-7A77JCED.js → chunk-3OYMK5X6.js} +1 -1
- package/dist/{chunk-ORMXPSJM.js → chunk-422BGHXN.js} +1 -1
- package/dist/{chunk-ZMU4EYXT.js → chunk-43C32FUQ.js} +1 -1
- package/dist/{chunk-ELR6AZT4.js → chunk-4AN7ECPE.js} +1 -1
- package/dist/chunk-4AWVU2OV.js +1 -0
- package/dist/chunk-4KBOLN7Q.js +8 -0
- package/dist/{chunk-YYWSHRO2.js → chunk-4LJERO23.js} +3 -3
- package/dist/{chunk-4FWPOGPQ.js → chunk-4M5WHOZW.js} +1 -1
- package/dist/{chunk-OWQEFORZ.js → chunk-4RO35FFQ.js} +1 -1
- package/dist/{chunk-6I7DT7QR.js → chunk-4ZS5354G.js} +1 -1
- package/dist/{chunk-ZXZWMXXK.js → chunk-55AWBPKU.js} +1 -1
- package/dist/{chunk-7PHDEILV.js → chunk-5BUYR23E.js} +1 -1
- package/dist/{chunk-AHYI27QL.js → chunk-5EDA7PVE.js} +3 -3
- package/dist/{chunk-5C6CXU74.js → chunk-5P6OELKZ.js} +1 -1
- package/dist/{chunk-SPJM7RTD.js → chunk-5PVXLQNX.js} +1 -1
- package/dist/{chunk-FU7PYW7H.js → chunk-5S2P4MHJ.js} +1 -1
- package/dist/{chunk-SBN3ILXO.js → chunk-5TJJVSCI.js} +1 -1
- package/dist/{chunk-VE3IIC7H.js → chunk-5TOK5OJS.js} +1 -1
- package/dist/{chunk-LGDWE3H3.js → chunk-5ZG2SWU2.js} +1 -1
- package/dist/{chunk-DDZYIC76.js → chunk-62F4ZMSC.js} +1 -1
- package/dist/{chunk-4NFX7YCT.js → chunk-652NT7OW.js} +1 -1
- package/dist/{chunk-5534MHZW.js → chunk-6B5KM3A4.js} +1 -1
- package/dist/{chunk-CRQQCT7F.js → chunk-6LCESSY3.js} +1 -1
- package/dist/chunk-6QHDMCAA.js +1 -0
- package/dist/{chunk-2KUM2RU4.js → chunk-7A4ZE5IS.js} +2 -2
- package/dist/{chunk-R6US7F33.js → chunk-7AQZKPJU.js} +1 -1
- package/dist/{chunk-HMPRWNGG.js → chunk-7FBOMPO5.js} +2 -2
- package/dist/{chunk-DGIIUQH3.js → chunk-7UK565VJ.js} +1 -1
- package/dist/{chunk-DOLVBTCB.js → chunk-A5BSUUNQ.js} +1 -1
- package/dist/{chunk-SCDGLREP.js → chunk-ADGE7MKB.js} +1 -1
- package/dist/{chunk-65NCQJYR.js → chunk-AEWRZ7AE.js} +1 -1
- package/dist/chunk-ALDJTWCO.js +1 -0
- package/dist/chunk-ARL5WBDK.js +1 -0
- package/dist/chunk-AXFEIJC7.js +1 -0
- package/dist/{chunk-JNSVKDBY.js → chunk-AYGL6F3P.js} +1 -1
- package/dist/{chunk-F6IQWX2F.js → chunk-AYTTE7X5.js} +1 -1
- package/dist/{chunk-JIYCZXK5.js → chunk-BDIZUTKC.js} +1 -1
- package/dist/{chunk-Z5WFRYVQ.js → chunk-BQKF4SRH.js} +1 -1
- package/dist/{chunk-7ART2IKU.js → chunk-C2AOCLEZ.js} +1 -1
- package/dist/{chunk-NYMKGE3J.js → chunk-C2SGJ5IG.js} +1 -1
- package/dist/{chunk-LPPEAMI6.js → chunk-C3S3UMV3.js} +1 -1
- package/dist/{chunk-S3RROJGG.js → chunk-C5DKLOW4.js} +1 -1
- package/dist/{chunk-DC7ITY6T.js → chunk-CA3GVT4D.js} +1 -1
- package/dist/{chunk-KFR7HWCG.js → chunk-CCLU5ZRK.js} +1 -1
- package/dist/{chunk-3FZ4LE6A.js → chunk-CE6XQDAG.js} +2 -2
- package/dist/{chunk-RKNVTEO3.js → chunk-CEJ5WS4I.js} +1 -1
- package/dist/chunk-CIBBQO2L.js +6 -0
- package/dist/{chunk-L2PUDV7Y.js → chunk-CKJXJ6HD.js} +1 -1
- package/dist/{chunk-KHZF73BL.js → chunk-COGKVNQB.js} +1 -1
- package/dist/{chunk-OY5M52EF.js → chunk-CQPZOXWO.js} +1 -1
- package/dist/{chunk-AVJJGQOP.js → chunk-CZYQIWNL.js} +1 -1
- package/dist/{chunk-VA2S7W7H.js → chunk-DA5RQFXA.js} +1 -1
- package/dist/{chunk-NUBJ2HK7.js → chunk-DESZFFOK.js} +1 -1
- package/dist/{chunk-WLYXBQ2M.js → chunk-DKR7562G.js} +1 -1
- package/dist/{chunk-KM4LE7K4.js → chunk-DNNTAMC5.js} +1 -1
- package/dist/{chunk-V4FC72R6.js → chunk-DUPQUQ2Z.js} +1 -1
- package/dist/{chunk-FHKK3QU7.js → chunk-DUTIWCJ2.js} +1 -1
- package/dist/chunk-E6JEBSHZ.js +20 -0
- package/dist/{chunk-VQSRU5XL.js → chunk-E6KNAPIY.js} +1 -1
- package/dist/{chunk-MTT6EAQO.js → chunk-E7XCCLQH.js} +1 -1
- package/dist/chunk-EE72PCKT.js +1 -0
- package/dist/{chunk-AGTUAQHX.js → chunk-EEYXBKR7.js} +1 -1
- package/dist/{chunk-H2KGP2FM.js → chunk-EGLA3WLZ.js} +1 -1
- package/dist/{chunk-JMSAHCBU.js → chunk-FDFE3SSG.js} +1 -1
- package/dist/{chunk-TSPJAMYB.js → chunk-FI5TQHUA.js} +1 -1
- package/dist/{chunk-QKPAB245.js → chunk-FIKZQ4RA.js} +1 -1
- package/dist/chunk-FJOVMEPN.js +3 -0
- package/dist/{chunk-5PSQFQL6.js → chunk-FLARCZ5F.js} +1 -1
- package/dist/{chunk-WE5KY6T6.js → chunk-FOMMPAWZ.js} +1 -1
- package/dist/chunk-G3DXNSA2.js +1 -0
- package/dist/{chunk-HYCNYUHW.js → chunk-G7JO3W2R.js} +1 -1
- package/dist/{chunk-C2HJEGTS.js → chunk-GABIWYY3.js} +1 -1
- package/dist/{chunk-OXZR2MB4.js → chunk-GFSEU7PF.js} +1 -1
- package/dist/{chunk-AMVWKHNY.js → chunk-GFVUWVEM.js} +1 -1
- package/dist/{chunk-D7IMC2G4.js → chunk-GHNSXX7R.js} +1 -1
- package/dist/{chunk-7N7KRZOM.js → chunk-GQ3LY7BY.js} +1 -1
- package/dist/{chunk-PJZZZNWR.js → chunk-H45S4MGC.js} +1 -1
- package/dist/{chunk-OJOF6IYG.js → chunk-HEB4YYM6.js} +4 -4
- package/dist/{chunk-I3WRA2LH.js → chunk-HI5FTI3M.js} +1 -1
- package/dist/{chunk-WFPVT2IY.js → chunk-HJ24NEP5.js} +1 -1
- package/dist/{chunk-LFBFPK22.js → chunk-HQFXVVTB.js} +1 -1
- package/dist/{chunk-27JT4NA4.js → chunk-HR6R7JXN.js} +1 -1
- package/dist/{chunk-JVY6CCLE.js → chunk-HRHJA5ZP.js} +1 -1
- package/dist/{chunk-5HOZDOJ7.js → chunk-HT5JQJMB.js} +1 -1
- package/dist/chunk-HT7273V7.js +1 -0
- package/dist/{chunk-ONZULPQH.js → chunk-HUB4HDWN.js} +75 -75
- package/dist/{chunk-HGZ2HRPO.js → chunk-IATNIWOC.js} +1 -1
- package/dist/{chunk-T6C4WC3Z.js → chunk-IHVWDKDV.js} +1 -1
- package/dist/{chunk-DMOLPSXF.js → chunk-IKXUYCK7.js} +1 -1
- package/dist/{chunk-HP4QYSBQ.js → chunk-IVQN2RUP.js} +1 -1
- package/dist/{chunk-FYQE5E6U.js → chunk-J324ZPO6.js} +1 -1
- package/dist/{chunk-3MZ7ELHS.js → chunk-JJQ3DJG5.js} +1 -1
- package/dist/{chunk-RLOEI6VE.js → chunk-JLAN6JXJ.js} +1 -1
- package/dist/{chunk-XRNBCV2B.js → chunk-K2GCCCCV.js} +1 -1
- package/dist/{chunk-ASKBYEO7.js → chunk-K4KKSBUW.js} +1 -1
- package/dist/{chunk-JC37YZ4I.js → chunk-K5UVCBIP.js} +1 -1
- package/dist/{chunk-3C72S6LO.js → chunk-KN2JIDNO.js} +1 -1
- package/dist/{chunk-WBJFTCEJ.js → chunk-KORVOCNN.js} +1 -1
- package/dist/{chunk-MGWCXTGD.js → chunk-KRQCQ57O.js} +1 -1
- package/dist/{chunk-3GD5ESWN.js → chunk-KT2AMFVW.js} +1 -1
- package/dist/{chunk-VRIFLMA3.js → chunk-L23Q53FM.js} +1 -1
- package/dist/{chunk-OXPEBT4I.js → chunk-L3DTONOI.js} +1 -1
- package/dist/{chunk-CEQGOCKX.js → chunk-LRETOC6P.js} +1 -1
- package/dist/{chunk-F5QKMDP3.js → chunk-LXFWK3O2.js} +1 -1
- package/dist/{chunk-KCAWHJGF.js → chunk-LZ2TN7EZ.js} +1 -1
- package/dist/{chunk-EDWIWZWM.js → chunk-MBAPM5HA.js} +1 -1
- package/dist/{chunk-IRLYC626.js → chunk-MGZK5EQW.js} +1 -1
- package/dist/{chunk-GSFWBFFH.js → chunk-MKUXSM33.js} +1 -1
- package/dist/chunk-MQ55QUOJ.js +276 -0
- package/dist/{chunk-A2NSORBM.js → chunk-NAQJMRPT.js} +1 -1
- package/dist/{chunk-Z5QEXS6F.js → chunk-NMXRDF4T.js} +1 -1
- package/dist/{chunk-SODCXZ5U.js → chunk-NOWM3CCG.js} +1 -1
- package/dist/{chunk-TXP6KFWO.js → chunk-NVDFXEQ5.js} +1 -1
- package/dist/{chunk-TP7CTMMT.js → chunk-OCILF2DD.js} +1 -1
- package/dist/{chunk-XWLNCBAG.js → chunk-OGBMFGYC.js} +1 -1
- package/dist/{chunk-ZMOW2YZ4.js → chunk-OIQ5NQ5I.js} +3 -3
- package/dist/{chunk-YTL45RXR.js → chunk-OKRKVVTK.js} +1 -1
- package/dist/{chunk-JQU2BJDH.js → chunk-ONNUEQGR.js} +1 -1
- package/dist/chunk-OSASE35V.js +6 -0
- package/dist/{chunk-6IMTMS2S.js → chunk-OTMTS5L4.js} +1 -1
- package/dist/{chunk-MKFRKNHF.js → chunk-OWPAHXDF.js} +1 -1
- package/dist/{chunk-YVPB7OT6.js → chunk-P7HZGJRU.js} +1 -1
- package/dist/{chunk-5T3ZT6CC.js → chunk-PIU3GVJ4.js} +1 -1
- package/dist/{chunk-DVD7I2TX.js → chunk-PSNCWS3Q.js} +1 -1
- package/dist/{chunk-XEZPN5TR.js → chunk-PSREELSQ.js} +4 -4
- package/dist/{chunk-SURFUFAZ.js → chunk-Q2CKRCPM.js} +1 -1
- package/dist/{chunk-WWCYEZUU.js → chunk-QA2D7DT2.js} +1 -1
- package/dist/{chunk-G3EWGBXR.js → chunk-QDMTJKQ3.js} +1 -1
- package/dist/{chunk-NY5N4ANL.js → chunk-QIJ7D2JS.js} +1 -1
- package/dist/{chunk-7DBKSSDK.js → chunk-QLN6IOOY.js} +1 -1
- package/dist/{chunk-A54TADAZ.js → chunk-QU3USVKT.js} +1 -1
- package/dist/chunk-R2E6TMBE.js +22 -0
- package/dist/chunk-R5COVIJM.js +1 -0
- package/dist/{chunk-S4KNPCW3.js → chunk-RFJ2LI64.js} +1 -1
- package/dist/chunk-RNF6T6IO.js +5 -0
- package/dist/{chunk-DVFVO6ZE.js → chunk-RSNFNZ6F.js} +1 -1
- package/dist/{chunk-7BPT5V24.js → chunk-RZ3UGOV4.js} +2 -2
- package/dist/{chunk-GGCP2TIK.js → chunk-S23ZG2RG.js} +1 -1
- package/dist/{chunk-3PS52ZT4.js → chunk-SAK42CAY.js} +1 -1
- package/dist/{chunk-G3RNO2TC.js → chunk-SBX7CMHM.js} +1 -1
- package/dist/{chunk-TUSS6PXB.js → chunk-SGQTRKYZ.js} +1 -1
- package/dist/{chunk-SQL67BKI.js → chunk-SNPJVVVE.js} +1 -1
- package/dist/{chunk-QUPZOBTB.js → chunk-SNRGS3YU.js} +1 -1
- package/dist/{chunk-FKKJQGYX.js → chunk-SUTSCIXU.js} +1 -1
- package/dist/{chunk-SHOMIS6Q.js → chunk-SWFCT5B7.js} +1 -1
- package/dist/{chunk-WZBZ7FWP.js → chunk-SZ64GAVG.js} +1 -1
- package/dist/{chunk-DTKGI43P.js → chunk-TDHIOONG.js} +1 -1
- package/dist/{chunk-7NRHZG5Y.js → chunk-TLN4BKXJ.js} +1 -1
- package/dist/{chunk-XLMKHTJ5.js → chunk-TXMZPF2U.js} +1 -1
- package/dist/{chunk-6BYHL3DS.js → chunk-TZOB52QK.js} +1 -1
- package/dist/{chunk-HVUMVDUG.js → chunk-U5BKU3OL.js} +1 -1
- package/dist/chunk-UK3BDOHR.js +7 -0
- package/dist/{chunk-YKDRUAY3.js → chunk-UORSJB4A.js} +90 -90
- package/dist/{chunk-Z6ZRS256.js → chunk-UY44O4IZ.js} +1 -1
- package/dist/{chunk-JG4FAT2T.js → chunk-V3H6SYK3.js} +1 -1
- package/dist/{chunk-AE3IQG7S.js → chunk-VBPMVVLV.js} +1 -1
- package/dist/{chunk-SVQDMZJO.js → chunk-VGBCG3I5.js} +1 -1
- package/dist/{chunk-MYMBHVC4.js → chunk-VHRUPKWH.js} +1 -1
- package/dist/{chunk-CZNUBAAG.js → chunk-VVHJ2AUF.js} +1 -1
- package/dist/{chunk-T4ZOTYOY.js → chunk-WB5GRBHW.js} +1 -1
- package/dist/{chunk-YNFQBYSL.js → chunk-WBKQSSWW.js} +1 -1
- package/dist/{chunk-MU7IVBGI.js → chunk-WDXDT7XY.js} +2 -2
- package/dist/{chunk-FAVPTYIR.js → chunk-WHOD5I7N.js} +1 -1
- package/dist/{chunk-7CT3NIXI.js → chunk-WL3M63DG.js} +1 -1
- package/dist/{chunk-25MYHE4W.js → chunk-WLJDMI7E.js} +1 -1
- package/dist/{chunk-VJG7VXFU.js → chunk-WZ3QWPK5.js} +2 -2
- package/dist/{chunk-BPKQA2EO.js → chunk-X5V7AGVU.js} +1 -1
- package/dist/{chunk-UFY4L5KQ.js → chunk-X76AYO36.js} +1 -1
- package/dist/{chunk-WBPP6PO7.js → chunk-XB7H2RYV.js} +1 -1
- package/dist/chunk-XHHAVKKV.js +1 -0
- package/dist/{chunk-4TCXPHKN.js → chunk-XKNDU62O.js} +1 -1
- package/dist/{chunk-7KID5BIR.js → chunk-XVJRGOJA.js} +1 -1
- package/dist/{chunk-CDSDQTNB.js → chunk-Y3ZAQZPH.js} +1 -1
- package/dist/{chunk-Q2LQJYRK.js → chunk-YGN65N6W.js} +1 -1
- package/dist/{chunk-UC4TOM36.js → chunk-YTC367JI.js} +1 -1
- package/dist/{chunk-TTAT62N3.js → chunk-Z2FGYMJ6.js} +1 -1
- package/dist/chunk-Z3QZNLT5.js +1 -0
- package/dist/{chunk-TSVEV2UD.js → chunk-ZC3EDADH.js} +1 -1
- package/dist/{chunk-O7HZ3EIP.js → chunk-ZLITAXPT.js} +1 -1
- package/dist/{chunk-WWVDZ3GC.js → chunk-ZNEQZV5K.js} +1 -1
- package/dist/{chunk-OVJVFB5E.js → chunk-ZOU6SOXW.js} +1 -1
- package/dist/{chunk-KFO2JNF5.js → chunk-ZQNGYJKJ.js} +1 -1
- package/dist/{chunk-MZDBH4XV.js → chunk-ZRM7ESSS.js} +1 -1
- package/dist/{chunk-ORYEDUKM.js → chunk-ZX33FUW3.js} +1 -1
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import/channel-config.js +1 -1
- package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/security/check.js +1 -1
- package/dist/cli/commands/app/security/clean.js +1 -1
- package/dist/cli/commands/app/security/instructions.js +1 -1
- package/dist/cli/commands/app/security/record.js +1 -1
- package/dist/cli/commands/app/security/review.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/send-analytics.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/{cli-version-check-V25AVSZ6.js → cli-version-check-BW2CUMX4.js} +1 -1
- package/dist/{command-json-schema-C5UZXP2W.js → command-json-schema-LGR44Q2G.js} +1 -1
- package/dist/command-registry.js +1 -1
- package/dist/{conf-store-OCGEEV4U.js → conf-store-TODPQ2LC.js} +1 -1
- package/dist/configs/all.yml +9 -0
- package/dist/configs/recommended.yml +9 -0
- package/dist/{custom-oclif-loader-ZVUKMRGH.js → custom-oclif-loader-BPE2TH4B.js} +1 -1
- package/dist/data/objects.json +204 -11
- package/dist/data/section.json +14 -0
- package/dist/data/setting.json +9 -5
- package/dist/data/shopify_system_translations.json +84 -21
- package/dist/{deprecations-A5AXXKIK.js → deprecations-5CSI24TV.js} +1 -1
- package/dist/dist-LPKYTX3M.js +1 -0
- package/dist/dist-WT6MPTKJ.js +1 -0
- package/dist/{environments-Y5JEI3U3.js → environments-3HTT5CVC.js} +1 -1
- package/dist/error-PFOKPWFX.js +1 -0
- package/dist/error-handler-23FASAEU.js +1 -0
- package/dist/{fs-UOOLPOHJ.js → fs-RA25PWSJ.js} +1 -1
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/http-EVDTYINS.js +1 -0
- package/dist/index.js +12 -12
- package/dist/{is-global-CI77T7NE.js → is-global-3DNAMKUU.js} +1 -1
- package/dist/{json-error-6PBUR4LQ.js → json-error-HGCRNJRF.js} +1 -1
- package/dist/{lib-4JVADMNT.js → lib-4ZA53LTZ.js} +1 -1
- package/dist/{lib-L4STV5B2.js → lib-F3MES3XF.js} +1 -1
- package/dist/{lib-LEEN55OD.js → lib-XPJABU24.js} +1 -1
- package/dist/{local-5NIWPWDS.js → local-LNGPIGLG.js} +1 -1
- package/dist/{metadata-IXPNNPNJ.js → metadata-VHLSUKCW.js} +1 -1
- package/dist/{node-package-manager-ALFEGGD6.js → node-package-manager-SSFNUVWB.js} +1 -1
- package/dist/notifications-system-3NQRYYKW.js +1 -0
- package/dist/{os-6TNQTEUN.js → os-KIKVJONE.js} +1 -1
- package/dist/{output-LEOB5LAM.js → output-DUJTSURG.js} +1 -1
- package/dist/{prettier-VLTY4MIE.js → prettier-NOE3TJJ5.js} +1 -1
- package/dist/{system-J4CTESP5.js → system-CGOZSROX.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-YDUI56E3.js → ui-YMBFS3NG.js} +1 -1
- package/dist/upgrade-73RRPDSC.js +1 -0
- package/dist/version-AMUEEBIG.js +1 -0
- package/dist/{version-2YL4YEQ2.js → version-S4MGCKDO.js} +1 -1
- package/dist/{workerd-5UPTEWNI.js → workerd-DRWNY3S4.js} +1 -1
- package/oclif.manifest.json +23 -62
- package/package.json +7 -7
- package/dist/analytics-QFDTQYPM.js +0 -1
- package/dist/analytics-XADBBHOH.js +0 -1
- package/dist/chunk-2BYW3BYX.js +0 -1
- package/dist/chunk-2PD7TNFS.js +0 -275
- package/dist/chunk-3Z75BVGJ.js +0 -1
- package/dist/chunk-4WBWZIN5.js +0 -6
- package/dist/chunk-62NW4EPI.js +0 -17
- package/dist/chunk-ALINJ6J2.js +0 -1
- package/dist/chunk-BFAOTQGH.js +0 -1
- package/dist/chunk-CIGWIKOW.js +0 -1
- package/dist/chunk-DXEMSLI6.js +0 -1
- package/dist/chunk-H4K3F7PP.js +0 -5
- package/dist/chunk-JGLLABZR.js +0 -8
- package/dist/chunk-JIY6XWSC.js +0 -1
- package/dist/chunk-LXIWMYM4.js +0 -1
- package/dist/chunk-MGX7UG44.js +0 -1
- package/dist/chunk-QGQWVA7N.js +0 -1
- package/dist/chunk-RSZAAN37.js +0 -1
- package/dist/chunk-SN3PMWUF.js +0 -6
- package/dist/chunk-TD6JBHUS.js +0 -1
- package/dist/chunk-TIM4CIXZ.js +0 -22
- package/dist/chunk-WNVOEE6T.js +0 -7
- package/dist/chunk-YOYPYB4H.js +0 -1
- package/dist/cli/commands/app/logs-next.js +0 -1
- package/dist/dist-NORLLIHQ.js +0 -1
- package/dist/dist-XBM4XZS4.js +0 -1
- package/dist/error-GI4DXVDU.js +0 -1
- package/dist/error-handler-BS2ZENQV.js +0 -1
- package/dist/http-2OXOS2AW.js +0 -1
- package/dist/notifications-system-FQW3GKH2.js +0 -1
- package/dist/upgrade-LBCZORG2.js +0 -1
- package/dist/version-X2CPQVWQ.js +0 -1
- /package/dist/{chunk-2S3FHQFS.js → chunk-HVECVOIO.js} +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Ab as S,Hb as d,db as E,sb as h}from"./chunk-OIQ5NQ5I.js";import{b as _}from"./chunk-VBPMVVLV.js";import{d as m}from"./chunk-IWTNUJGY.js";import{e as I,g as i}from"./chunk-VKWPEFWQ.js";i();i();i();var L=new Set(["THROTTLED","429"]),C=new Set(["ACCESS_DENIED","access_denied"]),P=new Set(["INTERNAL_SERVER_ERROR"]);function g(e){return Array.isArray(e)?e.flatMap(t=>{let s=[],n=t,o=n?.extensions?.code;typeof o=="string"&&s.push(o);let r=n?.extensions?.app_errors?.errors;if(Array.isArray(r))for(let p of r){let l=p?.category;typeof l=="string"&&s.push(l)}return s}):[]}function b(e){return e!==void 0&&L.has(e)}function B(e){return e!==void 0&&C.has(e)}function v(e){return e!==void 0&&P.has(e)}function y(e){return g(e).some(b)}function j(e){return g(e).some(v)}i();var N=new Set([502,503,504,520,521,522,523,524]);function x(e){return e!==void 0&&N.has(e)}i();var w="Log in with a different account";var O=I(_(),1),a;(function(e){e[e.Abort=0]="Abort",e[e.AbortSilent=1]="AbortSilent",e[e.Bug=2]="Bug"})(a||(a={}));var R=class extends Error{},c=class extends Error{tryMessage;type;nextSteps;formattedMessage;customSections;code;details;skipOclifErrorHandling;constructor(t,s,n=null,o,r){let p=typeof t=="string"||"value"in t;super(p?d(t):E(t)),n?n instanceof h?this.tryMessage=d(n):this.tryMessage=n:this.tryMessage=null,this.type=s,this.nextSteps=o,this.customSections=r,this.skipOclifErrorHandling=!0,p||(this.formattedMessage=t)}},f=class extends c{constructor(t,s=null,n,o){super(t,a.Abort,s,n,o)}},A=class extends f{constructor(t){let s="This action requires you to log in with a secure method, like a passkey or two-step authentication.";super(t?`${s}
|
|
2
|
+
|
|
3
|
+
Request ID: ${t}`:s,`Set up a passkey or two-step authentication for your Shopify account if you haven't already, sign out of Shopify in your browser, then run \`shopify auth login\` and select '${w}'.`),this.code="MFA_REQUIRED"}},k=class extends c{command;args;constructor(t,s,n,o=null){super(t,a.Abort,o),this.command=s,this.args=n}},M=class extends c{constructor(){super("",a.AbortSilent)}},u=class extends c{constructor(t,s=null){super(t,a.Bug,s)}};async function K(e){let t;if(T(e))t=e;else if(typeof e=="string")t=new u(e);else if(e instanceof Error)t=new u(e.message),t.stack=e.stack;else{let r=e;t=new u(r?.message??"Unknown error"),r?.stack&&(t.stack=r?.stack)}let{jsonOutputEnabled:s}=await import("./environment-5P7JJ3GI.js"),{commandEventOutputMode:n}=await import("./command-event-context-ILIANB5Q.js");if((n()??(s()?"json":"text"))==="json"){let{renderFatalErrorAsJson:r}=await import("./json-error-HGCRNJRF.js");return r(t),await S(),e}let{renderFatalError:o}=await import("./ui-YMBFS3NG.js");return o(t),Promise.resolve(e)}function X(e){if(e instanceof O.Errors.CLIError){let t=new f(e.message);return t.stack=e.stack,Promise.resolve(t)}else return Promise.resolve(e)}function T(e){try{return Object.prototype.hasOwnProperty.call(e,"type")}catch{return!1}}function ee(e){if(!T(e)){if(e instanceof Error){if(D(e))return!1;let t=e.message;return!U(t)}return!0}return e.type===a.Bug}function D(e){let t=e;if(typeof t.response!="object"||t.response===null||t.request===void 0)return!1;let s=t.response.status;return s===401||s===429||x(s)?!0:y(t.response.errors)}function te(e){return m(e).replace("file:/","/").replace(/^\/?[A-Z]:/,"")}function U(e){return["EPERM: operation not permitted, scandir","EPERM: operation not permitted, rename","EACCES: permission denied","EPERM: operation not permitted, symlink","This version of npm supports the following node versions","EBUSY: resource busy or locked","ENOTEMPTY: directory not empty","getaddrinfo ENOTFOUND","Client network socket disconnected before secure TLS connection was established","spawn EPERM","socket hang up","The user aborted a request.","write EPIPE","Unsupported platform"].some(n=>e.includes(n))}export{g as a,b,B as c,j as d,x as e,w as f,a as g,R as h,c as i,f as j,A as k,k as l,M as m,u as n,K as o,X as p,ee as q,te as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-MKUXSM33.js";import{b as e}from"./chunk-PSREELSQ.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class extends e{static description="View the UI kit components prompts";static hidden=!0;async run(){await i()}};export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as u}from"./chunk-
|
|
1
|
+
import{R as u}from"./chunk-7A4ZE5IS.js";import{Bb as s}from"./chunk-OIQ5NQ5I.js";import{k as i}from"./chunk-3PYDIBTX.js";import{g as d}from"./chunk-VKWPEFWQ.js";d();import{Writable as m}from"node:stream";import{StringDecoder as f}from"node:string_decoder";function p(){return i()!=="json"?{stdout:process.stdout,stderr:process.stderr}:{stdout:c(),stderr:c()}}function c(){let o=new f("utf8");return new m({write(r,e,t){let n=o.write(r);n&&s(n),t()},final(r){let e=o.end();e&&s(e),r()}})}async function y(o,r,e={}){let t=p();try{await u(o,r,{...e,...t.stdout===process.stdout?{stdio:"inherit"}:{stdin:"inherit",...t}})}finally{t.stdout!==process.stdout&&t.stdout.end(),t.stderr!==process.stderr&&t.stderr.end()}}export{p as a,y as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h,b as w}from"./chunk-L23Q53FM.js";import{p as f}from"./chunk-UORSJB4A.js";import{S as d}from"./chunk-7A4ZE5IS.js";import{j as i}from"./chunk-FJOVMEPN.js";import{Fa as m,ma as p}from"./chunk-OIQ5NQ5I.js";import{c as u}from"./chunk-IWTNUJGY.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();import{writeFile as g}from"fs/promises";var S=1024*1024,y=100,U=y*S,E=3,_=new Set([408,429,500,502,503,504]);async function j(o,e){let t=u(e,"manifest.json");await g(t,JSON.stringify(o,null,2))}var A=["!**/*.js.map","!**/*.metafile.json"];async function k(o,e,t){let n=t??["**/*",...A];e.endsWith(".br")?await w({inputDirectory:o,outputPath:e,matchFilePattern:n}):await h({inputDirectory:o,outputZipPath:e,matchFilePattern:n})}async function C(o,e){let t=await m(e);if(t>U){let s=`${(Math.ceil(t/S*100)/100).toFixed(2)} MB`;throw new i(`Your app bundle exceeds the ${y} MB upload limit (it is ${s}).`,"Check the asset paths in your extension configuration \u2014 a misconfigured source can pull in much more than intended. Exclude large files or directories from your bundle, then try again.")}let n=p(e),r;for(let s=1;s<=E;s++){if(r=await f(o,{method:"put",body:n},"slow-request"),r.ok)return;let T=s===E;if(_.has(r.status)&&!T){await r.text().catch(()=>{}),await d(2**s*.1);continue}break}let a=r?.status,c=(await r?.text().catch(()=>""))?.trim();throw new i(`Failed to upload your app bundle to storage${a?` (HTTP ${a})`:""}.`,"This is usually transient. Please try again, and check your network connection if it persists.",c?[`Storage responded with: ${c.slice(0,300)}`]:void 0)}async function D(o,e){let t=await o.generateSignedUploadUrl(e);if(!t.assetUrl||t.userErrors?.length>0){let n=t.userErrors.map(r=>r.message).join(", ");throw new i(n)}return t.assetUrl}export{j as a,A as b,k as c,C as d,D as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as r,t as a}from"./chunk-
|
|
1
|
+
import{s as r,t as a}from"./chunk-CE6XQDAG.js";import{x as p}from"./chunk-7A4ZE5IS.js";import{a as u}from"./chunk-LG3KEHGD.js";import{zb as n}from"./chunk-OIQ5NQ5I.js";import{b as o}from"./chunk-3PYDIBTX.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();function l(){return{enabled:r()}}function f(t){return a(t),{enabled:t}}e();var d=u({name:"AutoUpgradeResult",schema:o.object({enabled:o.boolean()}).strict()});e();function S(t,m){if(m==="json"){n(d.encode({enabled:t.enabled}));return}p({body:t.enabled?"Auto-upgrade on. Shopify CLI will update automatically after each command.":"Auto-upgrade off. You'll need to run `shopify upgrade` to update manually."})}export{l as a,f as b,d as c,S as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-DKR7562G.js";import{a as t}from"./chunk-EEYXBKR7.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var a=class extends t{static hidden=!0;static flags={...t.flags};static baseFlags={...t.baseFlags};async run(){return r({from:"app import-custom-data-definitions",to:"app import custom-data-definitions"}),super.run()}};export{a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as e,c as r,d as p}from"./chunk-
|
|
1
|
+
import{b as e,c as r,d as p}from"./chunk-G7JO3W2R.js";import{b as o}from"./chunk-PSREELSQ.js";import{b as s,c as i}from"./chunk-IKXUYCK7.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var t=class u extends o{static summary="Disable automatic upgrades for Shopify CLI.";static descriptionWithMarkdown=`Disable automatic upgrades for Shopify CLI.
|
|
2
2
|
|
|
3
3
|
When auto-upgrade is disabled, Shopify CLI won't automatically update. Run \`shopify upgrade\` to update manually.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f,b as h}from"./chunk-
|
|
1
|
+
import{a as f,b as h}from"./chunk-5S2P4MHJ.js";import{f as d,k as u,r as l}from"./chunk-6B5KM3A4.js";import{a as m}from"./chunk-R5COVIJM.js";import{P as c}from"./chunk-7FBOMPO5.js";import{c as p}from"./chunk-IKXUYCK7.js";import{j as s}from"./chunk-FJOVMEPN.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();e();async function g({clientId:a,operationIds:t,getOperation:n=l}){return Promise.all(t.map(async i=>{let o=await n({clientId:a,operationId:i});if(!o)throw new s(`Migration operation not found: ${i}`);return o}))}var r=class a extends m{static summary="Checks the status of app subscription migration operations.";static descriptionWithMarkdown="Checks app subscription migration operation status.\n\nRepeat `--id` for every operation GID returned by a multi-batch submission. With `--watch`, the command displays the current state while polling and outputs the final state after all requested operations reach a terminal status.\n\n`RUNNING` means an operation is still processing. `COMPLETED` means processing finished, but you must inspect the per-shop results to confirm each outcome. `FAILED` means the operation failed, and `CANCELED` means cancellation stopped further processing.\n\nUse `--json` to output every operation and its per-shop results as structured JSON.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static jsonOutputSchema=u;static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --id <operation-id>","<%= config.bin %> <%= command.id %> --path ../my-app --config staging --id <operation-id-1> --id <operation-id-2> --watch","<%= config.bin %> <%= command.id %> --client-id <client-id> --id <operation-id> --json"];static flags={...d,...p};async run(){let{flags:t}=await this.parse(a),{app:n,remoteApp:i}=await c({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),o=t.watch?await h({clientId:i.apiKey,operationIds:t.id}):await g({clientId:i.apiKey,operationIds:t.id});return f(o,t.json),{app:n}}};export{r as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-DKR7562G.js";import{a}from"./chunk-HQFXVVTB.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var r=class extends a{static hidden=!0;static flags={...a.flags};static baseFlags={...a.baseFlags};async run(){return e({from:"app import-extensions",to:"app import dashboard-extensions"}),super.run()}};export{r as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m,d as f,e as u}from"./chunk-
|
|
1
|
+
import{c as m,d as f,e as u}from"./chunk-ZLITAXPT.js";import{d as c,f as w,j as T}from"./chunk-RSNFNZ6F.js";import{g as d}from"./chunk-VVHJ2AUF.js";import{E as s}from"./chunk-7A4ZE5IS.js";import{j as l}from"./chunk-FJOVMEPN.js";import{T as i}from"./chunk-OIQ5NQ5I.js";import{g as h}from"./chunk-VKWPEFWQ.js";h();async function q(e,r){let n=await m(e),t=new u(r.filter),a=e.storeFqdn;if(t.any())return f(a,n,t)[0];let y=r.header??"",p=n.map(o=>{let S=o.id.toString()===d()?" [current]":"";return{value:async()=>o,label:`${o.name}${S}`,group:i(o.role)}});return r.create&&p.unshift(g(e)),(await s({message:y,choices:p}))()}async function B(e,r){return(await m(e)).find(t=>t.id.toString()===r)}async function C(e,r){let n=await m(e),t=new u(r),a=e.storeFqdn;return t.any()?f(a,n,t):[]}function g(e){return{value:async()=>{let r=c,n=await w("Name of the new theme"),t=await T({name:n,role:r},e);if(!t)throw new l("The theme could not be created.");return{...t,createdAtRuntime:!0}},label:"[Create a new theme]",group:i(c)}}export{q as a,B as b,C as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as N}from"./chunk-
|
|
1
|
+
import{a as N}from"./chunk-7AQZKPJU.js";import{a as J,b as L}from"./chunk-YY6TFARF.js";import{a as V}from"./chunk-GQ3LY7BY.js";import{a as O,b as F,d as u,e as x,f as C,g as a,h as R}from"./chunk-7HECBXSP.js";import{f as j,g as E,p as w,v as D}from"./chunk-VVHJ2AUF.js";import{Ea as h,Ha as I}from"./chunk-UORSJB4A.js";import{b,c as g}from"./chunk-IKXUYCK7.js";import{x as d}from"./chunk-7A4ZE5IS.js";import{c as _}from"./chunk-RNF6T6IO.js";import{j as S}from"./chunk-FJOVMEPN.js";import{zb as c}from"./chunk-OIQ5NQ5I.js";import{b as o}from"./chunk-3PYDIBTX.js";import{b as U}from"./chunk-VBPMVVLV.js";import{e as P,g as i}from"./chunk-VKWPEFWQ.js";i();i();function G(t,e){return{theme:{id:t.id,name:t.name,role:t.role,shop:e.storeFqdn,preview_url:J(t,e),editor_url:L(t,e)}}}function $(t){let{platform:e,arch:n}=_(),r=j(),m=r?E():void 0,s=Number(m)||null;return{result:{store:r??"Not configured",development_theme_id:s,cli_version:t.cliVersion,os:`${e}-${n}`,shell:process.env.SHELL??"unknown",node_version:process.version},developmentTheme:m}}async function y(t,e){let n;if(e.development)n=await new N(t).findOrCreate();else{let r={filter:{theme:e.theme}};n=await V(t,r)}return n?G(n,t):void 0}i();i();var Y=o.object({id:o.number(),name:o.string(),role:o.string(),shop:o.string(),preview_url:o.string(),editor_url:o.string()}),q=o.object({theme:Y}),z=o.object({store:o.string(),development_theme_id:o.number().nullable(),cli_version:o.string(),os:o.string(),shell:o.string(),node_version:o.string()}),K=o.union([q,z]),A=o.object({storeDomain:F,developmentThemeId:O.nullable(),cliVersion:o.string(),os:o.string(),shell:o.string().nullable(),nodeVersion:o.string()}).strict(),l=x({name:"ThemeInfoResult",schema:o.union([o.object({theme:u}).strict(),A]),definitions:{Theme:u,ThemeEnvironmentInfo:A},project(t){let e=K.parse(t);return"theme"in e?{theme:{...R(e.theme),storeDomain:a(e.theme.shop),previewUrl:e.theme.preview_url,editorUrl:e.theme.editor_url}}:{storeDomain:a(e.store),developmentThemeId:e.development_theme_id===null?null:C(e.development_theme_id),cliVersion:e.cli_version,os:e.os,shell:e.shell==="unknown"?null:e.shell,nodeVersion:e.node_version}}});function p(t,e,n={}){if(e==="json"){c(l.encode(t));return}"theme"in t?d(W(t,n)):d({customSections:B(t,n)})}function W(t,e){let n=Object.entries(t.theme).map(([r,m])=>{if(r==="editor_url"||r==="preview_url"){let s=String(m),H=r==="editor_url"?"Open in Theme Editor":"Preview Theme";return[f(r),{link:{url:s,label:H}}]}return r==="id"?[f(r),`#${m}`]:[f(r),`${m}`]});return{customSections:[...e.environment?[{title:"Theme information",body:[{subdued:`Environment name: ${e.environment}`}]}]:[],{title:"Theme Details",body:{tabularData:n,firstColumnSubdued:!0}}]}}function B(t,e){let n=Object.hasOwn(e,"developmentTheme")?e.developmentTheme:t.development_theme_id;return I(`theme-command:info:dev-theme-loaded:${n}`),[M("Theme Configuration",[["Store",t.store],["Development Theme ID",n?`#${n}`:{subdued:"Not set"}]]),M("Tooling and System",[["Shopify CLI",t.cli_version],["OS",t.os],["Shell",t.shell],["Node version",t.node_version]])]}function M(t,e){return{title:t,body:{tabularData:e,firstColumnSubdued:!0}}}function f(t){return t.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}var v=P(U(),1);var T=class extends D{static jsonOutputSchema=l;static descriptionWithMarkdown="Displays information about your theme environment, including your current store. Can also retrieve information about a specific theme.";static description=this.descriptionForHelp();static flags={...b,...g,...w,development:v.Flags.boolean({char:"d",description:"Retrieve info from your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),theme:v.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"})};static multiEnvironmentsFlags=["store","password"];async command(e,n,r=!1){if(h("theme-command:info"),e.theme||e.development){let m=await y(n,e);if(!m)throw new S("Theme not found!");if(e.json&&r)return h("theme-command:info"),m;p(m,e.json?"json":"text",e)}else{let{result:m,developmentTheme:s}=$({cliVersion:this.config.version});if(e.json&&r)return h("theme-command:info"),m;p(m,e.json?"json":"text",{developmentTheme:s})}h("theme-command:info")}renderEnvironmentResults(e){c(l.encode({environments:e}))}};export{T as a};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{V as g,W as X,a as J,ha as Q,ja as y,ka as ee,
|
|
2
|
-
`),{message:o})}function Gt(e,{message:n="URL must be HTTPS URL or start with /"}={}){return e.refine(o=>o.startsWith("/")||F(o,!0),{message:n})}var me=/[\r\n\t]/;function fe(e){return F(e,!0)}function F(e,n){try{let o=new URL(e);return n?o.protocol==="https:":["http:","https:"].includes(o.protocol)}catch{return!1}}function Yt(e){return typeof e=="string"&&!e.startsWith("/")?`/${e}`:e}var Be=30;function Kt(e){return e.length<=Be}r();function $(e){let n=e.match(/\/(\d+)$/);return n?n[1]:void 0}function he(e){return $(Buffer.from(e,"base64").toString("utf8"))}function ge(e){return Buffer.from(e).toString("base64")}r();async function V(e){if(e.length===1)return e[0];let o=new Set(e.map(a=>a.businessName)).size<e.length,i=await se({message:"Which organization do you want to use?",choices:e.map(a=>({label:o?`${a.businessName} (${a.id})`:a.businessName,value:a.id}))});return e.find(a=>a.id===i)}r();var Ge=["ACTIVE","LOCKED"];r();r();r();var W={basic:"BASIC_APP_DEVELOPMENT",grow:"PROFESSIONAL_APP_DEVELOPMENT",advanced:"UNLIMITED_APP_DEVELOPMENT",plus:"SHOPIFY_PLUS_APP_DEVELOPMENT"},v=Object.keys(W);r();r();var N=t.object({id:t.string(),name:t.string(),subdomain:t.string(),country:t.string().optional(),type:t.string().optional(),authScopes:t.array(t.string()).optional(),plan:t.string().optional(),organizationId:t.string(),organizationName:t.string()}),C=t.object({id:t.string(),name:t.string()});var Se=N.pick({name:!0}).extend({domain:N.shape.subdomain,adminUrl:t.string().nullish(),plan:t.enum(v),featurePreview:t.string().optional(),country:N.shape.country,demoData:t.boolean()}),H=q({name:"CreateDevStoreResult",schema:t.object({store:Se,organization:C}),definitions:{CreatedDevStore:Se,StoreOrganization:C}});r();var ke={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateAppDevelopmentStore"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shopName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"priceLookupKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"prepopulateTestData"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"developerPreviewHandle"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createAppDevelopmentStore"},arguments:[{kind:"Argument",name:{kind:"Name",value:"shopName"},value:{kind:"Variable",name:{kind:"Name",value:"shopName"}}},{kind:"Argument",name:{kind:"Name",value:"priceLookupKey"},value:{kind:"Variable",name:{kind:"Name",value:"priceLookupKey"}}},{kind:"Argument",name:{kind:"Name",value:"prepopulateTestData"},value:{kind:"Variable",name:{kind:"Name",value:"prepopulateTestData"}}},{kind:"Argument",name:{kind:"Name",value:"developerPreviewHandle"},value:{kind:"Variable",name:{kind:"Name",value:"developerPreviewHandle"}}},{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"shopAdminUrl"}},{kind:"Field",name:{kind:"Name",value:"shopDomain"}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};r();var ve={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PollStoreCreation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shopDomain"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"organization"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"storeCreation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"shopDomain"},value:{kind:"Variable",name:{kind:"Name",value:"shopDomain"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};r();function b(e={}){return{type:"token_refresh",handler:async()=>({token:await g([],{noPrompt:e.noPrompt,allowAutomationToken:!0})})}}function Ye(e){if(typeof e!="object"||e===null)return!1;let{statusCode:n,response:o}=e,i=n??o?.status;return i===401||i===403}var R=class extends c{constructor(n){let o=n.businessName??`organization ${n.id}`,i="in your organization's settings in the Shopify admin";X()?super(`This service account can't manage dev stores in ${o}.`,null,[`Give the service account Dev store management access ${i}.`,"Or use a token from a service account that has that access."]):Z()?super(`This automation token can't manage dev stores in ${o}.`,null,[`Create a service account with Dev store management access ${i}.`,"Set its token in the SHOPIFY_SERVICE_ACCOUNT_TOKEN environment variable."]):super(`You don't have permission to manage dev stores in ${o}.`,null,["Check that you're logged in to the right account.","Or ask an organization admin for access."])}};async function E(e,n){try{return await oe({...n,organizationId:e.id})}catch(o){throw Ye(o)?new R(e):o}}var Ke=2,Ze=300*1e3;function Je(e){switch(e){case"CALLING_CORE":return"Initiating store creation";case"AWAITING_CORE_STORE_READY":return"Waiting for store to be ready";case"FINALIZING":return"Finalizing store setup";case"COMPLETE":return"Store creation complete!";case"FAILED":return"Store creation failed.";case"TIMED_OUT":return"Store creation timed out.";case"USER_ERROR":return"Store creation encountered a user error.";default:return`Store creation status: ${e}`}}async function Xe(e){let{organization:n,name:o,plan:i}=e,a=await g([],{allowAutomationToken:!0}),s=b(),u=(await E(n,{query:ke,token:a,variables:{shopName:o,priceLookupKey:W[i],prepopulateTestData:e.withDemoData??!1,developerPreviewHandle:e.featurePreview,country:e.country},unauthorizedHandler:s})).createAppDevelopmentStore;if(!u)throw new c("Store creation failed: unexpected empty response.");let d=u.userErrors;if(d&&d.length>0){let p=d.map(k=>k.message).join(", ");throw new c(`Failed to create dev store: ${p}`)}let{shopDomain:m,shopAdminUrl:S}=u;if(!m)throw new c("Store creation succeeded but no shop domain was returned.");if(await ce({title:z`Waiting for store to be ready`,task:async p=>{let k=Date.now(),D=!1;for(;;){if(Date.now()-k>Ze)throw D?new c("Store creation timed out after 5 minutes."):new c("Store creation timed out after 5 minutes without reporting a status.",null,[`Check whether ${m} was created with \`shopify store list\` before trying again.`]);let f=(await E(n,{query:ve,token:a,variables:{shopDomain:m},unauthorizedHandler:s})).organization?.storeCreation?.status;if(f){if(D=!0,f==="COMPLETE")return;if(f==="FAILED"||f==="TIMED_OUT"||f==="USER_ERROR")throw new c(`Store creation failed with status: ${f}`)}p(z`${f?Je(f):"Waiting for store creation to start"}`),await pe(Ke)}},renderOptions:{stdout:process.stderr}}),e.json)de(H.encode({store:{name:o,domain:m,adminUrl:S,plan:i,...e.featurePreview?{featurePreview:e.featurePreview}:{},...e.country?{country:e.country}:{},demoData:e.withDemoData??!1},organization:{id:n.id,name:n.businessName}}));else if(e.summary!==!1){let p=[];x(p,"Domain",m),p.push(["Admin",S?{link:{label:S,url:S}}:"N/A"]),x(p,"Plan",i),x(p,"Feature preview",e.featurePreview),x(p,"Country",e.country),x(p,"Demo data",e.withDemoData?"enabled":"disabled"),ie({headline:`Dev store "${o}" created successfully.`,customSections:[{body:{tabularData:p,firstColumnSubdued:!0}}]})}return m}function x(e,n,o){o!=null&&o!==""&&e.push([n,o])}var Qe={basic:"Basic",grow:"Grow",advanced:"Advanced",plus:"Plus"};function et(){return le({message:"Name for the new dev store"})}function tt(){return ae({message:"Which Shopify plan do you want to use?",choices:v.map(e=>({label:Qe[e],value:e}))})}function nt(){return re({message:"Populate the store with demo data?",confirmationMessage:"Yes, add demo data",cancellationMessage:"No, start with an empty store",defaultValue:!0})}r();r();r();var be={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindOrganization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OrganizationID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUserAccount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"organization"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"organizationId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};r();var _e={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListOrganizations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUserAccount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uuid"}},{kind:"Field",name:{kind:"Name",value:"organizationsWithAccessToDestination"},arguments:[{kind:"Argument",name:{kind:"Name",value:"destination"},value:{kind:"EnumValue",value:"APPS_CLI"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"shopCount"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function M(){return(await ye()).organizations}async function ot(e){return ye(e)}async function it(e,n,o){let i=n??await g([],{allowAutomationToken:!0}),s=(await U({query:be,token:i,variables:{organizationId:at(e)},unauthorizedHandler:o??b(),cacheOptions:{cacheTTL:{hours:6},cacheExtraKey:K(i)}})).currentUserAccount?.organization;if(s)return{id:e,businessName:s.name}}function at(e){let n=e.startsWith("gid://")?$(e):e;if(n===void 0||!/^\d+$/.test(n))throw new c(`Invalid organization ID: ${e}`);return ge(`gid://organization/Organization/${n}`)}async function ye(e){let n=e??await g([],{allowAutomationToken:!0}),o=await U({query:_e,token:n,unauthorizedHandler:b()});return o.currentUserAccount?{organizations:o.currentUserAccount.organizationsWithAccessToDestination.nodes.map(a=>{let s=he(a.id);if(s===void 0)throw new c(`Failed to decode organization ID from: ${a.id}`);return{id:s,businessName:a.name,status:a.status,shopCount:a.shopCount??null,url:a.url}}),currentUserResolved:!0}:{organizations:[],currentUserResolved:!1}}r();async function rt(e){let n=await M();if(n.length===0)throw new c("No organizations found.","Make sure you have access to a Shopify organization.");if(e){let o=n.find(i=>i.id===e);if(!o)throw new c(`Organization with ID ${e} not found.`,`Available organizations: ${n.map(i=>`${i.businessName} (${i.id})`).join(", ")}`);return o}return V(n)}r();var _o={skipEsbuildReactDedeuplication:"SHOPIFY_CLI_SKIP_ESBUILD_REACT_DEDUPLICATION",disableGraphiQLExplorer:"SHOPIFY_CLI_DISABLE_GRAPHIQL",useDynamicConfigSpecifications:"SHOPIFY_CLI_DYNAMIC_CONFIG",enableAppLogPolling:"SHOPIFY_CLI_ENABLE_APP_LOG_POLLING",templatesJsonPath:"SHOPIFY_CLI_APP_TEMPLATES_JSON_PATH",mkcertBinaryPath:"SHOPIFY_CLI_MKCERT_BINARY",disableMinificationOnDev:"SHOPIFY_CLI_DISABLE_MINIFICATION_ON_DEV"},st={app:"shopify.app.toml",web:"shopify.web.toml",appEnvironments:"shopify.environments.toml",lockFile:".shopify.lock",hiddenConfig:"project.json",hiddenFolder:".shopify"},yo={production:".env"},No={reactTypes:"17.0.30"},Ne={extensions:{directoryName:"extensions",defaultRegistrationLimit:1},web:{directoryName:"web",configurationName:st.web}},xo={graphiql:3457,localhost:3458},wo=/^([a-zA-Z_$])([a-zA-Z0-9_$])*$/;r();var xe=50,we=250,ct=t.object({namespace:t.string(),key:t.string(),owner_type:t.string().optional()}),lt=t.object({sms_marketing:t.boolean().optional(),customer_privacy:t.boolean().optional()}),ut=t.object({sources:t.array(t.string()).optional()}),pt=t.object({network_access:t.boolean().optional(),block_progress:t.boolean().optional(),api_access:t.boolean().optional(),collect_buyer_consent:lt.optional(),iframe:ut.optional(),bundle_size_exception:t.boolean().optional()}),dt=t.object({runs_offline:t.boolean().optional()}),Po=t.object({type:t.string().optional(),extensions:t.array(t.any()).optional()}),mt=t.object({event:t.string(),blocking:t.boolean().default(!1),applies_to:t.array(t.string()).optional()}),ft=t.object({allow_direct_linking:t.boolean().optional(),intercepts:t.array(mt).optional()}),ht=t.object({module:t.string()}),gt=t.object({target:t.string(),module:t.string(),should_render:ht.optional(),tools:t.string().optional(),instructions:t.string().optional(),intents:t.array(t.object({type:t.string(),action:t.string(),schema:t.string(),name:t.string().optional(),description:t.string().optional()})).optional(),metafields:t.array(ct).optional(),default_placement:t.string().optional(),urls:t.object({edit:t.string().optional()}).optional(),capabilities:ft.optional(),preloads:t.object({chat:t.string().optional()}).optional(),assets:t.string().optional()}),Co=t.array(gt),De=t.string(),St=t.object({key:t.string().optional(),name:t.string().optional(),description:t.string().optional(),required:t.boolean().optional(),default_value:t.any().optional(),type:t.string(),validations:t.array(t.any()).optional(),marketingActivityCreateUrl:t.string().optional(),marketingActivityDeleteUrl:t.string().optional()}),Ae=t.object({fields:t.array(St).optional()}),Te=t.string().trim().nonempty("Handle can't be empty").max(xe,`Handle can't exceed ${xe} characters`).regex(/^[a-zA-Z0-9-]*$/,"Handle can only contain alphanumeric characters and hyphens").refine(e=>!e.startsWith("-")&&!e.endsWith("-"),"Handle can't start or end with a hyphen"),kt=t.string().trim().nonempty("UID can't be empty").max(we,`UID can't exceed ${we} characters`).regex(/^[a-zA-Z0-9-${}.()_`]*$/,"UID can only contain alphanumeric characters and hyphens").refine(e=>!e.startsWith("-")&&!e.endsWith("-"),"UID can't start or end with a hyphen"),O=t.object({name:t.string().optional(),type:t.string().optional(),handle:Te.optional(),uid:kt.optional(),description:t.string().optional(),api_version:De.optional(),extension_points:t.any().optional(),capabilities:pt.optional(),supported_features:dt.optional(),settings:Ae.optional()}),Ro=O.extend({handle:Te}),Pe=O.omit({handle:!0}),Eo=t.object({api_version:De.optional(),description:t.string().optional(),extensions:t.array(t.any()),settings:Ae.optional()});r();r();r();r();var vt=/^(https:\/\/)/,bt=/^pubsub:\/\/(?<gcp_project_id>[^:]+):(?<gcp_topic>.+)$/,_t=/^arn:aws:events:(?<aws_region>[a-z]{2}-[a-z]+-[0-9]+)::event-source\/aws\.partner\/shopify\.com(\.test)?\/(?<api_client_id>\d+)\/(?<event_source_name>.+)$/,yt=/^kafka:\/\/(?<kafka_topic>[a-zA-Z0-9_.-]+)$/;function _(e){return typeof e=="string"&&e.endsWith("/")?e.replace(/\/+$/,""):e}var h=t.string({invalid_type_error:"Value must be string"}).refine(e=>e.startsWith("/")?!0:vt.test(e)||bt.test(e)||_t.test(e)||yt.test(e),{message:"URI format isn't correct. Valid formats include: relative path starting with a slash, HTTPS URL, pubsub://{project-id}:{topic-id}, kafka://{topic-id} or Eventbridge ARN"});function L(e,n){return!n||!e.startsWith("/")?e:`${_(n)}${e}`}var Nt=(e,n,o,i)=>{if(o.startsWith("//"))throw new c(`${e} ${n} is invalid: a URL relative to the app URL must start with a single slash.`);if(me.test(o))throw new c(`${e} ${n} is invalid: a URL must not contain control characters such as newlines or tabs.`);let a=L(o,i);if(a.startsWith("/"))throw new c(`${e} ${n} is a relative URL, but no application_url is configured. Set application_url in your app configuration or use an absolute HTTPS URL.`);if(!fe(a))throw new c(`${e} ${n} must resolve to an HTTPS URL. Set application_url to an HTTPS URL or use an absolute HTTPS URL.`);return a};function j(e,n,o,i){let a=o;for(let s of n){let l=a[s];typeof l=="string"&&l.startsWith("/")&&(a[s]=Nt(e,s,l,i))}}r();import{isUtf8 as xt}from"node:buffer";import Ce from"fs";async function Re(e,n){let o=await Y(B(e,"locales/*.json"));if(!o||o.length===0)return{};let i=wt(o);if(i.length===0)throw new c(`Missing default language in ${n} configuration`,"Make sure to have a {locale}.default.json file in your locales directory");if(i.length>1)throw new c(`Error loading ${n}`,'There must be one (and only one) locale identified as the default locale: e.g. "en.default.json"');for(let a of o)if(Ce.statSync(a).size===0)throw new c(`Error loading ${n}`,`Locale file ${a} can't be empty`);return{default_locale:i[0],translations:Dt(o,n)}}function wt(e){return e.filter(o=>A(o).endsWith(".default.json")).map(o=>A(o).split(".")[0])}function Dt(e,n){let o={};for(let i of e){let a=At(A(i).split(".")[0],"Locale code is unset"),s=Ce.readFileSync(i);if(!xt(s))throw new c(`Error loading ${n}`,`Locale file ${i} contains invalid UTF-8 byte sequences. Re-save the file using UTF-8 encoding.`);o[a]=s.toString("base64")}return o}function At(e,n){if(e===void 0)throw new ue(n);return e}function Tt(e){return e.experience==="configuration"}var Ee;(function(e){e.ShouldRender="should_render",e.Main="main",e.Tools="tools",e.Instructions="instructions",e.Intents="intents"})(Ee||(Ee={}));function Oe(e){let o={...{externalIdentifier:`${e.identifier}_external`,additionalIdentifiers:[],externalName:T(e.identifier.replace(/_/g," ")),surface:"test-surface",partnersWebIdentifier:e.identifier,schema:O,registrationLimit:Ne.extensions.defaultRegistrationLimit,transform:e.transformLocalToRemote,reverseTransform:e.transformRemoteToLocal,experience:e.experience??"extension",uidStrategy:e.uidStrategy??(e.experience==="configuration"?"single":"uuid"),getDevSessionUpdateMessages:e.getDevSessionUpdateMessages,clientSteps:e.clientSteps},...e};return{...o,contributeToAppConfigurationSchema:i=>{let a=Tt(o),s=o.schema._def.shape!==void 0,l=o.uidStrategy==="single";return a&&s&&l?i.merge(o.schema):i},parseConfigurationObject:i=>{let a=o.schema.safeParse(i);return a.success?{state:"ok",data:a.data,errors:void 0}:{state:"error",data:void 0,errors:a.error.errors}}}}function Le(e){let n=e.appModuleFeatures??(()=>[]);return Oe({identifier:e.identifier,schema:e.schema,appModuleFeatures:n,transformLocalToRemote:Pt(e.transformConfig),transformRemoteToLocal:Ct(e.schema,e.transformConfig),experience:"configuration",uidStrategy:e.uidStrategy??"single",expandConfig:e.expandConfig,getIdentity:e.getIdentity,getTarget:e.getTarget,clientSteps:e.clientSteps,getDevSessionUpdateMessages:e.getDevSessionUpdateMessages,patchWithAppDevURLs:e.patchWithAppDevURLs})}function ri(e){let n=e.appRelativeUrlFields;return Oe({identifier:e.identifier,schema:t.any({}),appModuleFeatures:e.appModuleFeatures,experience:e.experience,clientSteps:e.clientSteps,uidStrategy:e.uidStrategy,transformRemoteToLocal:e.transformRemoteToLocal,devSessionWatchConfig:e.devSessionWatchConfig,appRelativeUrlFields:n,patchWithAppDevURLs:n?.length?(o,i)=>{j(T(e.identifier.replace(/_/g," ")),n,o,i.applicationUrl)}:void 0,deployConfig:async(o,i,a,s,l)=>{let u=Rt(o);if(n?.length){let d=l?.appConfiguration?.application_url,m=typeof d=="string"?d:void 0;j(T(e.identifier.replace(/_/g," ")),n,u,m)}if(e.appModuleFeatures().includes("localization")){let d=await Re(i,e.identifier);u={...u,localization:d}}return u}})}function Pt(e){return Object.keys(e).includes("forward")?e.forward:n=>Ue(n,e)}function Ct(e,n){return n?Object.keys(n).includes("reverse")?n.reverse:o=>Ue(o,n,!0):o=>Ie(e,o)}function Ue(e,n,o=!1){let i={};for(let[a,s]of Object.entries(n)){let l=o?a:s,u=o?s:a,d=y(e,l);d!==void 0&&ee(i,u,d)}return i}function Ie(e,n){return Object.keys(e._def.shape()).reduce((o,i)=>{let a=e._def.shape()[i];return a instanceof t.ZodOptional&&(a=a._def.innerType),a instanceof t.ZodObject?o[i]=Ie(a,n):(n[i]!==void 0&&(o[i]=n[i]),delete n[i]),o},{})}function Rt(e){let{type:n,handle:o,uid:i,path:a,extensions:s,...l}=e;return l}r();var Et="webhook_subscription",Ot=t.object({topic:t.string(),actions:t.array(t.string({invalid_type_error:"Value must be a string"})).optional(),api_version:t.string(),uri:t.preprocess(_,h,{required_error:"Missing value at"}),include_fields:t.array(t.string({invalid_type_error:"Value must be a string"})).optional(),filter:t.string({invalid_type_error:"Value must be a string"}).optional(),payload_query:t.string({invalid_type_error:"Value must be a string"}).trim().min(1).optional(),name:t.string({invalid_type_error:"Value must be a string"}).trim().min(1).max(50).optional()});function Lt(e){let{api_version:n,topic:o,...i}=e;return{webhooks:{subscriptions:[{topics:[o],...i}]}}}var Ut={forward:(e,n)=>{let o=e,i;return"application_url"in n&&(i=n?.application_url),{...o,uri:L(o.uri,i)}},reverse:Lt},It=Le({identifier:Et,schema:Ot,transformConfig:Ut,uidStrategy:"dynamic"}),mi=It;r();r();var w;(function(e){e.CustomersRedact="customers/redact",e.CustomersDataRequest="customers/data_request",e.ShopRedact="shop/redact"})(w||(w={}));var ze=t.object({topics:t.array(t.string({invalid_type_error:"Values within array must be a string"}),{invalid_type_error:"Value must be string[]"}).optional(),actions:t.array(t.string({invalid_type_error:"Value must be a string"})).optional(),uri:t.preprocess(e=>_(e),h,{required_error:"Missing value at"}),include_fields:t.array(t.string({invalid_type_error:"Value must be a string"})).optional(),filter:t.string({invalid_type_error:"Value must be a string"}).optional(),payload_query:t.string({invalid_type_error:"Value must be a string"}).trim().min(1).optional(),name:t.string({invalid_type_error:"Value must be a string"}).trim().min(1).max(50).optional(),compliance_topics:t.array(t.enum([w.CustomersRedact,w.CustomersDataRequest,w.ShopRedact]),{invalid_type_error:"Value must be an array containing values: customers/redact, customers/data_request or shop/redact"}).optional()});r();function Fe(e,n){let o=zt(e);if(o)return n.addIssue(o),t.NEVER}function zt(e){let{subscriptions:n=[]}=e,o=new Set,i=[];if(!n.length)return;if(e.privacy_compliance&&e.subscriptions?.some(s=>s.compliance_topics))return{code:t.ZodIssueCode.custom,message:"The privacy_compliance section can't be used if there are subscriptions including compliance_topics"};let a=n.flatMap(s=>s.compliance_topics).filter(Boolean);if(G(a).length!==a.length)return{code:t.ZodIssueCode.custom,message:"You can\u2019t have multiple subscriptions with the same compliance topic",fatal:!0,path:["subscriptions"]};for(let[s,{uri:l,topics:u=[],compliance_topics:d=[],filter:m=""}]of n.entries()){let S=["subscriptions",s];if(!u.length&&!d.length)return{code:t.ZodIssueCode.custom,message:"Either topics or compliance_topics must be added to the webhook subscription",path:S};u.forEach(p=>{let k=`${p}::${l}::${m}`;if(o.has(k)){let D=m?I.dim(`
|
|
1
|
+
import{V as g,W as X,a as J,ha as Q,ja as y,ka as ee,sa as te,ta as qe,wa as I,x as P,ya as oe}from"./chunk-UORSJB4A.js";import{b as ne}from"./chunk-ZDF5N422.js";import{C as ae,D as re,E as se,H as ce,I as le,S as pe,y as ie}from"./chunk-7A4ZE5IS.js";import{f as Z}from"./chunk-2KFYIYLI.js";import{e as K}from"./chunk-QBRRFFMZ.js";import{a as q}from"./chunk-LG3KEHGD.js";import{j as c,n as ue}from"./chunk-FJOVMEPN.js";import{N as G,T,Va as Y,vb as z,zb as de}from"./chunk-OIQ5NQ5I.js";import{i as U}from"./chunk-B4OMIONW.js";import{b as t}from"./chunk-3PYDIBTX.js";import{c as B,i as D}from"./chunk-IWTNUJGY.js";import{e as je,g as r}from"./chunk-VKWPEFWQ.js";r();function Bt(e,{httpsOnly:n=!1,message:o="Invalid URL"}={}){return e.refine(i=>F(i,n),{message:o}).refine(i=>!i.includes(`
|
|
2
|
+
`),{message:o})}function Gt(e,{message:n="URL must be HTTPS URL or start with /"}={}){return e.refine(o=>o.startsWith("/")||F(o,!0),{message:n})}var me=/[\r\n\t]/;function fe(e){return F(e,!0)}function F(e,n){try{let o=new URL(e);return n?o.protocol==="https:":["http:","https:"].includes(o.protocol)}catch{return!1}}function Yt(e){return typeof e=="string"&&!e.startsWith("/")?`/${e}`:e}var Be=30;function Kt(e){return e.length<=Be}r();function $(e){let n=e.match(/\/(\d+)$/);return n?n[1]:void 0}function he(e){return $(Buffer.from(e,"base64").toString("utf8"))}function ge(e){return Buffer.from(e).toString("base64")}r();async function V(e){if(e.length===1)return e[0];let o=new Set(e.map(a=>a.businessName)).size<e.length,i=await se({message:"Which organization do you want to use?",choices:e.map(a=>({label:o?`${a.businessName} (${a.id})`:a.businessName,value:a.id}))});return e.find(a=>a.id===i)}r();var Ge=["ACTIVE","LOCKED"];r();r();r();var W={basic:"BASIC_APP_DEVELOPMENT",grow:"PROFESSIONAL_APP_DEVELOPMENT",advanced:"UNLIMITED_APP_DEVELOPMENT",plus:"SHOPIFY_PLUS_APP_DEVELOPMENT"},v=Object.keys(W);r();r();var N=t.object({id:t.string(),name:t.string(),subdomain:t.string(),country:t.string().optional(),type:t.string().optional(),authScopes:t.array(t.string()).optional(),plan:t.string().optional(),organizationId:t.string(),organizationName:t.string()}),C=t.object({id:t.string(),name:t.string()});var Se=N.pick({name:!0}).extend({domain:N.shape.subdomain,adminUrl:t.string().nullish(),plan:t.enum(v),featurePreview:t.string().optional(),country:N.shape.country,demoData:t.boolean()}),H=q({name:"CreateDevStoreResult",schema:t.object({store:Se,organization:C}),definitions:{CreatedDevStore:Se,StoreOrganization:C}});r();var ke={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateAppDevelopmentStore"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shopName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"priceLookupKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"prepopulateTestData"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"developerPreviewHandle"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createAppDevelopmentStore"},arguments:[{kind:"Argument",name:{kind:"Name",value:"shopName"},value:{kind:"Variable",name:{kind:"Name",value:"shopName"}}},{kind:"Argument",name:{kind:"Name",value:"priceLookupKey"},value:{kind:"Variable",name:{kind:"Name",value:"priceLookupKey"}}},{kind:"Argument",name:{kind:"Name",value:"prepopulateTestData"},value:{kind:"Variable",name:{kind:"Name",value:"prepopulateTestData"}}},{kind:"Argument",name:{kind:"Name",value:"developerPreviewHandle"},value:{kind:"Variable",name:{kind:"Name",value:"developerPreviewHandle"}}},{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"shopAdminUrl"}},{kind:"Field",name:{kind:"Name",value:"shopDomain"}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};r();var ve={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PollStoreCreation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shopDomain"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"organization"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"storeCreation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"shopDomain"},value:{kind:"Variable",name:{kind:"Name",value:"shopDomain"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};r();function b(e={}){return{type:"token_refresh",handler:async()=>({token:await g([],{noPrompt:e.noPrompt,allowAutomationToken:!0})})}}function Ye(e){if(typeof e!="object"||e===null)return!1;let{statusCode:n,response:o}=e,i=n??o?.status;return i===401||i===403}var R=class extends c{constructor(n){let o=n.businessName??`organization ${n.id}`,i="in your organization's settings in the Shopify admin";X()?super(`This service account can't manage dev stores in ${o}.`,null,[`Give the service account Dev store management access ${i}.`,"Or use a token from a service account that has that access."]):Z()?super(`This automation token can't manage dev stores in ${o}.`,null,[`Create a service account with Dev store management access ${i}.`,"Set its token in the SHOPIFY_SERVICE_ACCOUNT_TOKEN environment variable."]):super(`You don't have permission to manage dev stores in ${o}.`,null,["Check that you're logged in to the right account.","Or ask an organization admin for access."])}};async function E(e,n){try{return await oe({...n,organizationId:e.id})}catch(o){throw Ye(o)?new R(e):o}}var Ke=2,Ze=300*1e3;function Je(e){switch(e){case"CALLING_CORE":return"Initiating store creation";case"AWAITING_CORE_STORE_READY":return"Waiting for store to be ready";case"FINALIZING":return"Finalizing store setup";case"COMPLETE":return"Store creation complete!";case"FAILED":return"Store creation failed.";case"TIMED_OUT":return"Store creation timed out.";case"USER_ERROR":return"Store creation encountered a user error.";default:return`Store creation status: ${e}`}}async function Xe(e){let{organization:n,name:o,plan:i}=e,a=await g([],{allowAutomationToken:!0}),s=b(),u=(await E(n,{query:ke,token:a,variables:{shopName:o,priceLookupKey:W[i],prepopulateTestData:e.withDemoData??!1,developerPreviewHandle:e.featurePreview,country:e.country},unauthorizedHandler:s})).createAppDevelopmentStore;if(!u)throw new c("Store creation failed: unexpected empty response.");let d=u.userErrors;if(d&&d.length>0){let p=d.map(k=>k.message).join(", ");throw new c(`Failed to create dev store: ${p}`)}let{shopDomain:m,shopAdminUrl:S}=u;if(!m)throw new c("Store creation succeeded but no shop domain was returned.");if(await ce({title:z`Waiting for store to be ready`,task:async p=>{let k=Date.now(),A=!1;for(;;){if(Date.now()-k>Ze)throw A?new c("Store creation timed out after 5 minutes."):new c("Store creation timed out after 5 minutes without reporting a status.",null,[`Check whether ${m} was created with \`shopify store list\` before trying again.`]);let f=(await E(n,{query:ve,token:a,variables:{shopDomain:m},unauthorizedHandler:s})).organization?.storeCreation?.status;if(f){if(A=!0,f==="COMPLETE")return;if(f==="FAILED"||f==="TIMED_OUT"||f==="USER_ERROR")throw new c(`Store creation failed with status: ${f}`)}p(z`${f?Je(f):"Waiting for store creation to start"}`),await pe(Ke)}},renderOptions:{stdout:process.stderr}}),e.json)de(H.encode({store:{name:o,domain:m,adminUrl:S,plan:i,...e.featurePreview?{featurePreview:e.featurePreview}:{},...e.country?{country:e.country}:{},demoData:e.withDemoData??!1},organization:{id:n.id,name:n.businessName}}));else if(e.summary!==!1){let p=[];x(p,"Domain",m),p.push(["Admin",S?{link:{label:S,url:S}}:"N/A"]),x(p,"Plan",i),x(p,"Feature preview",e.featurePreview),x(p,"Country",e.country),x(p,"Demo data",e.withDemoData?"enabled":"disabled"),ie({headline:`Dev store "${o}" created successfully.`,customSections:[{body:{tabularData:p,firstColumnSubdued:!0}}]})}return m}function x(e,n,o){o!=null&&o!==""&&e.push([n,o])}var Qe={basic:"Basic",grow:"Grow",advanced:"Advanced",plus:"Plus"};function et(){return le({message:"Name for the new dev store"})}function tt(){return ae({message:"Which Shopify plan do you want to use?",choices:v.map(e=>({label:Qe[e],value:e}))})}function nt(){return re({message:"Populate the store with demo data?",confirmationMessage:"Yes, add demo data",cancellationMessage:"No, start with an empty store",defaultValue:!0})}r();r();r();var be={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindOrganization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OrganizationID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUserAccount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"organization"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"organizationId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};r();var _e={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListOrganizations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUserAccount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uuid"}},{kind:"Field",name:{kind:"Name",value:"organizationsWithAccessToDestination"},arguments:[{kind:"Argument",name:{kind:"Name",value:"destination"},value:{kind:"EnumValue",value:"APPS_CLI"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"shopCount"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function M(){return(await ye()).organizations}async function ot(e){return ye(e)}async function it(e,n,o){let i=n??await g([],{allowAutomationToken:!0}),s=(await I({query:be,token:i,variables:{organizationId:at(e)},unauthorizedHandler:o??b(),cacheOptions:{cacheTTL:{hours:6},cacheExtraKey:K(i)}})).currentUserAccount?.organization;if(s)return{id:e,businessName:s.name}}function at(e){let n=e.startsWith("gid://")?$(e):e;if(n===void 0||!/^\d+$/.test(n))throw new c(`Invalid organization ID: ${e}`);return ge(`gid://organization/Organization/${n}`)}async function ye(e){let n=e??await g([],{allowAutomationToken:!0}),o=await I({query:_e,token:n,unauthorizedHandler:b()});return o.currentUserAccount?{organizations:o.currentUserAccount.organizationsWithAccessToDestination.nodes.map(a=>{let s=he(a.id);if(s===void 0)throw new c(`Failed to decode organization ID from: ${a.id}`);return{id:s,businessName:a.name,status:a.status,shopCount:a.shopCount??null,url:a.url}}),currentUserResolved:!0}:{organizations:[],currentUserResolved:!1}}r();async function rt(e){let n=await M();if(n.length===0)throw new c("No organizations found.","Make sure you have access to a Shopify organization.");if(e){let o=n.find(i=>i.id===e);if(!o)throw new c(`Organization with ID ${e} not found.`,`Available organizations: ${n.map(i=>`${i.businessName} (${i.id})`).join(", ")}`);return o}return V(n)}r();var _o={skipEsbuildReactDedeuplication:"SHOPIFY_CLI_SKIP_ESBUILD_REACT_DEDUPLICATION",disableGraphiQLExplorer:"SHOPIFY_CLI_DISABLE_GRAPHIQL",useDynamicConfigSpecifications:"SHOPIFY_CLI_DYNAMIC_CONFIG",enableAppLogPolling:"SHOPIFY_CLI_ENABLE_APP_LOG_POLLING",templatesJsonPath:"SHOPIFY_CLI_APP_TEMPLATES_JSON_PATH",mkcertBinaryPath:"SHOPIFY_CLI_MKCERT_BINARY",disableMinificationOnDev:"SHOPIFY_CLI_DISABLE_MINIFICATION_ON_DEV",appClientSecret:"SHOPIFY_CLI_APP_CLIENT_SECRET"},st={app:"shopify.app.toml",web:"shopify.web.toml",appEnvironments:"shopify.environments.toml",lockFile:".shopify.lock",hiddenConfig:"project.json",hiddenFolder:".shopify"},yo={production:".env"},No={reactTypes:"17.0.30"},Ne={extensions:{directoryName:"extensions",defaultRegistrationLimit:1},web:{directoryName:"web",configurationName:st.web}},xo={graphiql:3457,localhost:3458},wo=/^([a-zA-Z_$])([a-zA-Z0-9_$])*$/;r();var xe=50,we=250,ct=t.object({namespace:t.string(),key:t.string(),owner_type:t.string().optional()}),lt=t.object({sms_marketing:t.boolean().optional(),customer_privacy:t.boolean().optional()}),ut=t.object({sources:t.array(t.string()).optional()}),pt=t.object({network_access:t.boolean().optional(),block_progress:t.boolean().optional(),api_access:t.boolean().optional(),collect_buyer_consent:lt.optional(),iframe:ut.optional(),bundle_size_exception:t.boolean().optional()}),dt=t.object({runs_offline:t.boolean().optional()}),Po=t.object({type:t.string().optional(),extensions:t.array(t.any()).optional()}),mt=t.object({event:t.string(),blocking:t.boolean().default(!1),applies_to:t.array(t.string()).optional()}),ft=t.object({allow_direct_linking:t.boolean().optional(),intercepts:t.array(mt).optional()}),ht=t.object({module:t.string()}),gt=t.object({target:t.string(),module:t.string(),should_render:ht.optional(),tools:t.string().optional(),instructions:t.string().optional(),intents:t.array(t.object({type:t.string(),action:t.string(),schema:t.string(),name:t.string().optional(),description:t.string().optional()})).optional(),metafields:t.array(ct).optional(),default_placement:t.string().optional(),urls:t.object({edit:t.string().optional()}).optional(),capabilities:ft.optional(),preloads:t.object({chat:t.string().optional()}).optional(),assets:t.string().optional()}),Co=t.array(gt),Ae=t.string(),St=t.object({key:t.string().optional(),name:t.string().optional(),description:t.string().optional(),required:t.boolean().optional(),default_value:t.any().optional(),type:t.string(),validations:t.array(t.any()).optional(),marketingActivityCreateUrl:t.string().optional(),marketingActivityDeleteUrl:t.string().optional()}),De=t.object({fields:t.array(St).optional()}),Te=t.string().trim().nonempty("Handle can't be empty").max(xe,`Handle can't exceed ${xe} characters`).regex(/^[a-zA-Z0-9-]*$/,"Handle can only contain alphanumeric characters and hyphens").refine(e=>!e.startsWith("-")&&!e.endsWith("-"),"Handle can't start or end with a hyphen"),kt=t.string().trim().nonempty("UID can't be empty").max(we,`UID can't exceed ${we} characters`).regex(/^[a-zA-Z0-9-${}.()_`]*$/,"UID can only contain alphanumeric characters and hyphens").refine(e=>!e.startsWith("-")&&!e.endsWith("-"),"UID can't start or end with a hyphen"),O=t.object({name:t.string().optional(),type:t.string().optional(),handle:Te.optional(),uid:kt.optional(),description:t.string().optional(),api_version:Ae.optional(),extension_points:t.any().optional(),capabilities:pt.optional(),supported_features:dt.optional(),settings:De.optional()}),Ro=O.extend({handle:Te}),Pe=O.omit({handle:!0}),Eo=t.object({api_version:Ae.optional(),description:t.string().optional(),extensions:t.array(t.any()),settings:De.optional()});r();r();r();r();var vt=/^(https:\/\/)/,bt=/^pubsub:\/\/(?<gcp_project_id>[^:]+):(?<gcp_topic>.+)$/,_t=/^arn:aws:events:(?<aws_region>[a-z]{2}-[a-z]+-[0-9]+)::event-source\/aws\.partner\/shopify\.com(\.test)?\/(?<api_client_id>\d+)\/(?<event_source_name>.+)$/,yt=/^kafka:\/\/(?<kafka_topic>[a-zA-Z0-9_.-]+)$/;function _(e){return typeof e=="string"&&e.endsWith("/")?e.replace(/\/+$/,""):e}var h=t.string({invalid_type_error:"Value must be string"}).refine(e=>e.startsWith("/")?!0:vt.test(e)||bt.test(e)||_t.test(e)||yt.test(e),{message:"URI format isn't correct. Valid formats include: relative path starting with a slash, HTTPS URL, pubsub://{project-id}:{topic-id}, kafka://{topic-id} or Eventbridge ARN"});function L(e,n){return!n||!e.startsWith("/")?e:`${_(n)}${e}`}var Nt=(e,n,o,i)=>{if(o.startsWith("//"))throw new c(`${e} ${n} is invalid: a URL relative to the app URL must start with a single slash.`);if(me.test(o))throw new c(`${e} ${n} is invalid: a URL must not contain control characters such as newlines or tabs.`);let a=L(o,i);if(a.startsWith("/"))throw new c(`${e} ${n} is a relative URL, but no application_url is configured. Set application_url in your app configuration or use an absolute HTTPS URL.`);if(!fe(a))throw new c(`${e} ${n} must resolve to an HTTPS URL. Set application_url to an HTTPS URL or use an absolute HTTPS URL.`);return a};function j(e,n,o,i){let a=o;for(let s of n){let l=a[s];typeof l=="string"&&l.startsWith("/")&&(a[s]=Nt(e,s,l,i))}}r();import{isUtf8 as xt}from"node:buffer";import Ce from"fs";async function Re(e,n){let o=await Y(B(e,"locales/*.json"));if(!o||o.length===0)return{};let i=wt(o);if(i.length===0)throw new c(`Missing default language in ${n} configuration`,"Make sure to have a {locale}.default.json file in your locales directory");if(i.length>1)throw new c(`Error loading ${n}`,'There must be one (and only one) locale identified as the default locale: e.g. "en.default.json"');for(let a of o)if(Ce.statSync(a).size===0)throw new c(`Error loading ${n}`,`Locale file ${a} can't be empty`);return{default_locale:i[0],translations:At(o,n)}}function wt(e){return e.filter(o=>D(o).endsWith(".default.json")).map(o=>D(o).split(".")[0])}function At(e,n){let o={};for(let i of e){let a=Dt(D(i).split(".")[0],"Locale code is unset"),s=Ce.readFileSync(i);if(!xt(s))throw new c(`Error loading ${n}`,`Locale file ${i} contains invalid UTF-8 byte sequences. Re-save the file using UTF-8 encoding.`);o[a]=s.toString("base64")}return o}function Dt(e,n){if(e===void 0)throw new ue(n);return e}function Tt(e){return e.experience==="configuration"}var Ee;(function(e){e.ShouldRender="should_render",e.Main="main",e.Tools="tools",e.Instructions="instructions",e.Intents="intents"})(Ee||(Ee={}));function Oe(e){let o={...{externalIdentifier:`${e.identifier}_external`,additionalIdentifiers:[],externalName:T(e.identifier.replace(/_/g," ")),surface:"test-surface",partnersWebIdentifier:e.identifier,schema:O,registrationLimit:Ne.extensions.defaultRegistrationLimit,transform:e.transformLocalToRemote,reverseTransform:e.transformRemoteToLocal,experience:e.experience??"extension",uidStrategy:e.uidStrategy??(e.experience==="configuration"?"single":"uuid"),getDevSessionUpdateMessages:e.getDevSessionUpdateMessages,clientSteps:e.clientSteps},...e};return{...o,contributeToAppConfigurationSchema:i=>{let a=Tt(o),s=o.schema._def.shape!==void 0,l=o.uidStrategy==="single";return a&&s&&l?i.merge(o.schema):i},parseConfigurationObject:i=>{let a=o.schema.safeParse(i);return a.success?{state:"ok",data:a.data,errors:void 0}:{state:"error",data:void 0,errors:a.error.errors}}}}function Le(e){let n=e.appModuleFeatures??(()=>[]);return Oe({identifier:e.identifier,schema:e.schema,appModuleFeatures:n,transformLocalToRemote:Pt(e.transformConfig),transformRemoteToLocal:Ct(e.schema,e.transformConfig),experience:"configuration",uidStrategy:e.uidStrategy??"single",expandConfig:e.expandConfig,getIdentity:e.getIdentity,getTarget:e.getTarget,clientSteps:e.clientSteps,getDevSessionUpdateMessages:e.getDevSessionUpdateMessages,patchWithAppDevURLs:e.patchWithAppDevURLs})}function ri(e){let n=e.appRelativeUrlFields;return Oe({identifier:e.identifier,schema:t.any({}),appModuleFeatures:e.appModuleFeatures,experience:e.experience,clientSteps:e.clientSteps,uidStrategy:e.uidStrategy,transformRemoteToLocal:e.transformRemoteToLocal,devSessionWatchConfig:e.devSessionWatchConfig,appRelativeUrlFields:n,patchWithAppDevURLs:n?.length?(o,i)=>{j(T(e.identifier.replace(/_/g," ")),n,o,i.applicationUrl)}:void 0,deployConfig:async(o,i,a,s,l)=>{let u=Rt(o);if(n?.length){let d=l?.appConfiguration?.application_url,m=typeof d=="string"?d:void 0;j(T(e.identifier.replace(/_/g," ")),n,u,m)}if(e.appModuleFeatures().includes("localization")){let d=await Re(i,e.identifier);u={...u,localization:d}}return u}})}function Pt(e){return Object.keys(e).includes("forward")?e.forward:n=>Ie(n,e)}function Ct(e,n){return n?Object.keys(n).includes("reverse")?n.reverse:o=>Ie(o,n,!0):o=>Ue(e,o)}function Ie(e,n,o=!1){let i={};for(let[a,s]of Object.entries(n)){let l=o?a:s,u=o?s:a,d=y(e,l);d!==void 0&&ee(i,u,d)}return i}function Ue(e,n){return Object.keys(e._def.shape()).reduce((o,i)=>{let a=e._def.shape()[i];return a instanceof t.ZodOptional&&(a=a._def.innerType),a instanceof t.ZodObject?o[i]=Ue(a,n):(n[i]!==void 0&&(o[i]=n[i]),delete n[i]),o},{})}function Rt(e){let{type:n,handle:o,uid:i,path:a,extensions:s,...l}=e;return l}r();var Et="webhook_subscription",Ot=t.object({topic:t.string(),actions:t.array(t.string({invalid_type_error:"Value must be a string"})).optional(),api_version:t.string(),uri:t.preprocess(_,h,{required_error:"Missing value at"}),include_fields:t.array(t.string({invalid_type_error:"Value must be a string"})).optional(),filter:t.string({invalid_type_error:"Value must be a string"}).optional(),payload_query:t.string({invalid_type_error:"Value must be a string"}).trim().min(1).optional(),name:t.string({invalid_type_error:"Value must be a string"}).trim().min(1).max(50).optional()});function Lt(e){let{api_version:n,topic:o,...i}=e;return{webhooks:{subscriptions:[{topics:[o],...i}]}}}var It={forward:(e,n)=>{let o=e,i;return"application_url"in n&&(i=n?.application_url),{...o,uri:L(o.uri,i)}},reverse:Lt},Ut=Le({identifier:Et,schema:Ot,transformConfig:It,uidStrategy:"dynamic"}),mi=Ut;r();r();var w;(function(e){e.CustomersRedact="customers/redact",e.CustomersDataRequest="customers/data_request",e.ShopRedact="shop/redact"})(w||(w={}));var ze=t.object({topics:t.array(t.string({invalid_type_error:"Values within array must be a string"}),{invalid_type_error:"Value must be string[]"}).optional(),actions:t.array(t.string({invalid_type_error:"Value must be a string"})).optional(),uri:t.preprocess(e=>_(e),h,{required_error:"Missing value at"}),include_fields:t.array(t.string({invalid_type_error:"Value must be a string"})).optional(),filter:t.string({invalid_type_error:"Value must be a string"}).optional(),payload_query:t.string({invalid_type_error:"Value must be a string"}).trim().min(1).optional(),name:t.string({invalid_type_error:"Value must be a string"}).trim().min(1).max(50).optional(),compliance_topics:t.array(t.enum([w.CustomersRedact,w.CustomersDataRequest,w.ShopRedact]),{invalid_type_error:"Value must be an array containing values: customers/redact, customers/data_request or shop/redact"}).optional()});r();function Fe(e,n){let o=zt(e);if(o)return n.addIssue(o),t.NEVER}function zt(e){let{subscriptions:n=[]}=e,o=new Set,i=[];if(!n.length)return;if(e.privacy_compliance&&e.subscriptions?.some(s=>s.compliance_topics))return{code:t.ZodIssueCode.custom,message:"The privacy_compliance section can't be used if there are subscriptions including compliance_topics"};let a=n.flatMap(s=>s.compliance_topics).filter(Boolean);if(G(a).length!==a.length)return{code:t.ZodIssueCode.custom,message:"You can\u2019t have multiple subscriptions with the same compliance topic",fatal:!0,path:["subscriptions"]};for(let[s,{uri:l,topics:u=[],compliance_topics:d=[],filter:m=""}]of n.entries()){let S=["subscriptions",s];if(!u.length&&!d.length)return{code:t.ZodIssueCode.custom,message:"Either topics or compliance_topics must be added to the webhook subscription",path:S};u.forEach(p=>{let k=`${p}::${l}::${m}`;if(o.has(k)){let A=m?U.dim(`
|
|
3
3
|
|
|
4
4
|
topic: ${p}
|
|
5
5
|
uri: ${l}
|
|
6
|
-
filter: ${m}`):
|
|
6
|
+
filter: ${m}`):U.dim(`
|
|
7
7
|
|
|
8
8
|
topic: ${p}
|
|
9
|
-
uri: ${l}`);i.push(
|
|
9
|
+
uri: ${l}`);i.push(A)}o.add(k)})}if(i.length>0){let s=i.join("");return{code:t.ZodIssueCode.custom,message:`Multiple subscriptions with the exact same topic, uri, and filter. To resolve, remove or edit the duplicates ${s}`,path:["subscriptions"]}}}r();function Ai(e){let n=y(e,"webhooks");if(!n)return e;let{api_version:o}=n;return{api_version:o}}function Di(e){let n={},o=y(e,"api_version");return n={...o?{webhooks:{api_version:o}}:{}},n}function Ve(e){if(e.length===0)return;let n=e.filter(s=>s.topics!==void 0).flatMap(({compliance_topics:s,topics:l,...u})=>We(l)?.map(m=>({topics:[m],...u}))??[]),o=e.filter(s=>s.topics===void 0||s.compliance_topics!==void 0).map(({compliance_topics:s,topics:l,...u})=>({compliance_topics:s,...u})),i=Vt(o,"compliance_topics"),a=Ft(i);return[...$e(a),...$e(n)]}function We(e){return e?.sort((n,o)=>n.localeCompare(o))}function $e(e){return e.sort((n,o)=>n.uri.localeCompare(o.uri))}function Ft(e){return e.forEach(n=>n.compliance_topics=We(n.compliance_topics)),e}function $t(e,n){return e.find(o=>o.uri===n.uri&&Q(o.include_fields??[],n.include_fields??[])&&o.filter===n.filter)}function Vt(e,n){return e.reduce((o,i)=>{let a=$t(o,i);return a?n&&i?.[n]?.length?a[n]?.push(...i[n]):(i.topics&&(a.topics??=[],a.topics.push(...i.topics)),i.compliance_topics&&(a.compliance_topics??=[],a.compliance_topics.push(...i.compliance_topics))):o.push(i),o},[])}var Wt=t.object({api_version:t.string({required_error:"String is required"}),privacy_compliance:t.object({customer_deletion_url:h.optional(),customer_data_request_url:h.optional(),shop_deletion_url:h.optional()}).optional(),subscriptions:t.array(ze).optional().transform(e=>Ve(e??[]))}),Ui=Pe.extend({webhooks:Wt.superRefine(Fe)});r();r();var He=(e,n,o)=>{let i=new URL(e);return n&&i.searchParams.append("cursor",n),o?.status&&i.searchParams.append("status",o.status),o?.source&&i.searchParams.append("source",o.source),i.toString()};var Me=je(qe()),Ht=new Me.default({minTime:150,maxConcurrent:10});async function Mt(e){let n="App Management",i=`https://${await P()}/app_management/unstable/graphql.json`;return{token:e,api:n,url:i,responseOptions:{onResponse:jt}}}var Bi=e=>J(e),Gi=async(e,n,o)=>{let a=`https://${await P()}/app_management/unstable/organizations/${e}/app_logs/poll`;return He(a,n,o)},Yi=async(e,n)=>`https://${await P()}/app_management/unstable/organizations/${encodeURIComponent(e)}/apps/${encodeURIComponent(n)}/channel_spec_export.json`;async function Ki(e){let n=e.cacheOptions?.cacheExtraKey??"",o=e.cacheOptions?{...e.cacheOptions,cacheExtraKey:n}:void 0;return Ht.schedule(async()=>te({...await Mt(e.token),query:e.query,variables:e.variables,cacheOptions:o,preferredBehaviour:e.requestOptions?.requestMode,unauthorizedHandler:e.unauthorizedHandler}))}function jt(e){if(!e.extensions)return;let n=[];for(let o of e.extensions.deprecations)o.supportedUntilDate&&n.push(new Date(o.supportedUntilDate));ne(n)}export{b as a,E as b,$ as c,he as d,ge as e,M as f,ot as g,it as h,V as i,rt as j,Ge as k,v as l,N as m,C as n,H as o,Xe as p,et as q,tt as r,nt as s,_o as t,st as u,yo as v,No as w,Ne as x,xo as y,wo as z,Bt as A,Gt as B,me as C,Yt as D,Be as E,Kt as F,_ as G,L as H,xe as I,ct as J,Po as K,Co as L,St as M,O as N,Ro as O,Pe as P,Eo as Q,Nt as R,Re as S,Tt as T,Ee as U,Oe as V,Le as W,ri as X,Ie as Y,Et as Z,mi as _,w as $,ze as aa,Ai as ba,Di as ca,Ve as da,Vt as ea,Ui as fa,Bi as ga,Gi as ha,Yi as ia,Ki as ja,jt as ka};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as b}from"./chunk-
|
|
1
|
+
import{g as b}from"./chunk-A5BSUUNQ.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-23FASAEU.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 +1 @@
|
|
|
1
|
-
import{a as f}from"./chunk-
|
|
1
|
+
import{a as f}from"./chunk-2IXP3IPE.js";import{g as w}from"./chunk-VKWPEFWQ.js";w();var _=!1;function h(){return _}function P(){let a=0,r=!1,o=setInterval(()=>{if(!r){if(h()||a>=12e4){r=!0,clearInterval(o),f(process.pid,"SIGINT",!1,()=>{process.exit(0)});return}a+=100}},100)}var x=async({config:e,Command:t})=>{await A(t);let a=await import("./metadata-VHLSUKCW.js"),{commandStartOptions:r}=a.getAllSensitiveMetadata();r&&await a.addSensitiveMetadata(()=>({commandStartOptions:{...r,endTime:new Date().getTime()}}));let{postrun:o}=await import("./deprecations-5CSI24TV.js");o(t);let{outputDebug:p}=await import("./output-DUJTSURG.js"),s=t.id.replace(/:/g," ");p(`Completed command ${s}`),!s.includes("notifications")&&!s.includes("upgrade")&&!s.includes("send-analytics")&&await k();let{reportAnalyticsEvent:u}=await import("./analytics-23GM6KJU.js");await u({config:e,exitMode:"ok"}),_=!0};async function k(){let{versionToAutoUpgrade:e,warnIfUpgradeAvailable:t}=await import("./upgrade-73RRPDSC.js");await t();let a=e();if(!a)return;if(process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1")await g(a);else{let{runAtMinimumInterval:o}=await import("./conf-store-TODPQ2LC.js");await o("auto-upgrade",{days:1},async()=>{await g(a)})}}async function g(e){let[{CLI_KIT_VERSION:t},{isMajorVersionChange:a,availableHomebrewCLIVersion:r},{outputWarn:o,outputDebug:p,outputContent:s,outputToken:u},{getOutputUpdateCLIReminder:c,runCLIUpgrade:v,hasBlockingAutoUpgradeNotification:b},i,{inferPackageManagerForGlobalCLI:m,getHomebrewCLIFormula:I},{lt:M,SemVer:S}]=await Promise.all([import("./version-AMUEEBIG.js"),import("./version-S4MGCKDO.js"),import("./output-DUJTSURG.js"),import("./upgrade-73RRPDSC.js"),import("./metadata-VHLSUKCW.js"),import("./is-global-3DNAMKUU.js"),import("./semver-HHZRKD6Y.js")]);if(a(t,e)){o(c(e,!0)),await i.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"major_version"}));return}let l=e;if(m()==="homebrew"){let n=await r();if(!n){p("Auto-upgrade: Could not read the available Homebrew version."),await i.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"homebrew_version_unavailable"}));return}if(a(t,n)){if(I()==="shopify-cli"){let d=new S(t).major;o(s`To keep receiving Shopify CLI ${String(d)}.x updates with Homebrew, run ${u.genericShellCommand(`brew install shopify-cli@${d}`)} and use ${u.genericShellCommand(`shopify${d}`)}.`)}else o(c(n,!0));await i.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"major_version"}));return}if(!M(t,n)){p("Auto-upgrade: No newer Homebrew version available."),await i.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"homebrew_already_up_to_date"}));return}l=n}if(await b()){await i.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"blocked_by_notification"}));return}try{await v({autoupgrade:!0,version:l}),await i.addPublicMetadata(()=>({env_auto_upgrade_success:!0}))}catch(n){let d=`Auto-upgrade failed: ${n}`;p(d),o(c(l)),await i.addPublicMetadata(()=>({env_auto_upgrade_success:!1}));let{sendErrorToBugsnag:y}=await import("./error-handler-23FASAEU.js"),C=Object.assign(new Error(d),{packageManager:m(),platform:process.platform,cliVersion:t});await y(C,"expected_error")}}async function A(e){let t=new Date().getTime();if(e&&"analyticsStopCommand"in e&&typeof e.analyticsStopCommand=="function"){let a=e.analyticsStopCommand();if(a){let r=await import("./metadata-VHLSUKCW.js"),{commandStartOptions:o}=r.getAllSensitiveMetadata();if(!o)return;await r.addSensitiveMetadata(()=>({commandStartOptions:{...o,startTime:t,startCommand:a}}))}}}export{P as a,x as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as K,b as _,c as z,d as N,e as f,f as d,g as W,h as G,j as H}from"./chunk-
|
|
1
|
+
import{a as K,b as _,c as z,d as N,e as f,f as d,g as W,h as G,j as H}from"./chunk-V3H6SYK3.js";import{a as x}from"./chunk-3JRB7Q3T.js";import{b as S,c as j}from"./chunk-ZNEPRGFY.js";import{a as R}from"./chunk-R5COVIJM.js";import{a as P}from"./chunk-K4KKSBUW.js";import{P as J,g as L}from"./chunk-7FBOMPO5.js";import{Da as U,Oa as A}from"./chunk-UORSJB4A.js";import{b as D,c as v}from"./chunk-IKXUYCK7.js";import{y as F}from"./chunk-7A4ZE5IS.js";import{a as C}from"./chunk-LG3KEHGD.js";import{m as O,p as k,q as M}from"./chunk-FJOVMEPN.js";import{Ab as g,zb as s}from"./chunk-OIQ5NQ5I.js";import{b as t}from"./chunk-3PYDIBTX.js";import{b as $}from"./chunk-VBPMVVLV.js";import{g as T}from"./chunk-IWTNUJGY.js";import{e as Z,g as m}from"./chunk-VKWPEFWQ.js";m();m();var B=t.string().refine(T,"Expected an absolute native filesystem path"),Y=t.object({id:t.string().uuid().describe("The dashboard extension registration UUID, not a Shopify GID."),name:t.string(),type:t.string().min(1).describe("The upstream dashboard extension type."),directory:B.describe("The absolute local extension directory."),configurationPath:B.nullable().describe("The absolute local TOML path, or null when no TOML file exists in a kept directory."),changed:t.boolean().describe("Whether this import wrote the local extension TOML.")}).strict(),q=t.object({extensionId:t.string().uuid().nullable().describe("The registration UUID, or null for identifier persistence."),error:S}).strict(),n=C({name:"ImportDashboardExtensionsResult",schema:t.object({status:t.enum(["success","partial","skipped","cancelled"]),reason:t.enum(["no-extensions","directory-selection-cancelled"]).nullable(),extensions:t.array(Y).describe("Completed extension imports and kept local directories, in selection order."),errors:t.array(q).describe("Failed selected imports or identifier persistence."),identifiersUpdated:t.boolean().describe("Whether the extension identifier persistence step completed.")}).strict(),definitions:{ImportedDashboardExtension:Y,ExtensionImportFailure:q,...j.definitions}});var Q=Z($(),1);var E=class u extends R{static descriptionWithMarkdown="Import dashboard-managed extensions into your app.";static jsonOutputSchema=n;static description=this.descriptionForHelp();static flags={...D,...P,...v,"client-id":Q.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]})};async run(){let{flags:o}=await this.parse(u),r=await J({directory:o.path,clientId:o["client-id"],forceRelink:o.reset,userProvidedConfigName:o.config}),a=await H({developerPlatformClient:r.developerPlatformClient,apiKey:r.remoteApp.apiKey,organizationId:r.remoteApp.organizationId,extensionTypes:N}),l=_(o.json?G(r.app,a):a);if(l.length===0)o.json?s(n.encode({status:"skipped",reason:"no-extensions",extensions:[],errors:[],identifiersUpdated:!1})):F({headline:["No extensions to migrate."]});else{let y=await z(l),i;try{if(i=await W({...r,extensions:a,extensionTypes:y.extensionTypes,buildExtensionConfig:y.buildExtensionConfig}),o.json&&i.status==="skipped")return s(n.encode({status:i.status,reason:i.reason,extensions:[],errors:[],identifiersUpdated:!1})),{app:r.app};o.json||K(i),await L({app:r.app,appApiKey:r.remoteApp.apiKey,extensionUuids:i.extensionUuids,command:"import-extensions"})}catch(e){if(!o.json)throw e instanceof d?e.originalError:e;let I=e instanceof d?e.originalError:e;if(e instanceof f||e instanceof d){let p=await e.completedImports();if(e instanceof d&&p.extensions.length===0)throw e.originalError;let h=e instanceof f&&p.failures.length===0;if(s(n.encode({status:h?"cancelled":"partial",reason:h?"directory-selection-cancelled":null,extensions:b(p.extensions),errors:p.failures.map(({extension:V,error:X})=>({extensionId:V.uuid,error:x(X)})),identifiersUpdated:!1})),h)throw await g(),e;e instanceof f&&(I=p.failures[0].error)}else if(i)s(n.encode({status:"partial",reason:null,extensions:b(i.extensions),errors:[{extensionId:null,error:x(e)}],identifiersUpdated:!1}));else throw e;let c=await k(I),w=M(c)?"unexpected_error":"expected_error";throw await U({config:this.config,errorMessage:c instanceof Error?c.message:void 0,exitMode:w}),await A(c,w),await g(),new O}o.json&&s(n.encode({status:"success",reason:null,extensions:b(i.extensions),errors:[],identifiersUpdated:!0}))}return{app:r.app}}};function b(u){return u.map(({extension:o,directory:r,configurationPath:a,changed:l})=>({id:o.uuid,name:o.title,type:o.type,directory:r,configurationPath:a,changed:l}))}export{E as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as k}from"./chunk-FJOVMEPN.js";import{Sa as j,la as w,ta as R}from"./chunk-OIQ5NQ5I.js";import{a as H,c as f,e as G,g as o}from"./chunk-VKWPEFWQ.js";var ee=f((Tt,X)=>{"use strict";o();var m=class e extends Error{constructor(t,s,r){super("[ParserError] "+t,s,r),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}},E=class{constructor(t){this.parser=t,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}},A=class{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new E(this.parseStart)}parse(t){if(t.length===0||t.length==null)return;this._buf=String(t),this.ii=-1,this.char=-1;let s;for(;s===!1||this.nextChar();)s=this.runOne();this._buf=null}nextChar(){return this.char===10&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){this.char=1114112;let t;do t=this.state.parser,this.runOne();while(this.state.parser!==t);return this.ctx=null,this.state=null,this._buf=null,this.obj}next(t){if(typeof t!="function")throw new m("Tried to set state to non-existent state: "+JSON.stringify(t));this.state.parser=t}goto(t){return this.next(t),this.runOne()}call(t,s){s&&this.next(s),this.stack.push(this.state),this.state=new E(t)}callNow(t,s){return this.call(t,s),this.runOne()}return(t){if(this.stack.length===0)throw this.error(new m("Stack underflow"));t===void 0&&(t=this.state.buf),this.state=this.stack.pop(),this.state.returned=t}returnNow(t){return this.return(t),this.runOne()}consume(){if(this.char===1114112)throw this.error(new m("Unexpected end-of-buffer"));this.state.buf+=this._buf[this.ii]}error(t){return t.line=this.line,t.col=this.col,t.pos=this.pos,t}parseStart(){throw new m("Must declare a parseStart method")}};A.END=1114112;A.Error=m;X.exports=A});var re=f((Rt,te)=>{"use strict";o();te.exports=e=>{let t=new Date(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var y=f((xt,se)=>{"use strict";o();se.exports=(e,t)=>{for(t=String(t);t.length<e;)t="0"+t;return t}});var ne=f((Ht,ie)=>{"use strict";o();var C=y(),K=class extends Date{constructor(t){super(t+"Z"),this.isFloating=!0}toISOString(){let t=`${this.getUTCFullYear()}-${C(2,this.getUTCMonth()+1)}-${C(2,this.getUTCDate())}`,s=`${C(2,this.getUTCHours())}:${C(2,this.getUTCMinutes())}:${C(2,this.getUTCSeconds())}.${C(3,this.getUTCMilliseconds())}`;return`${t}T${s}`}};ie.exports=e=>{let t=new K(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var oe=f((yt,ae)=>{"use strict";o();var he=y(),$e=global.Date,W=class extends $e{constructor(t){super(t),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${he(2,this.getUTCMonth()+1)}-${he(2,this.getUTCDate())}`}};ae.exports=e=>{let t=new W(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var ce=f((It,le)=>{"use strict";o();var N=y(),q=class extends Date{constructor(t){super(`0000-01-01T${t}Z`),this.isTime=!0}toISOString(){return`${N(2,this.getUTCHours())}:${N(2,this.getUTCMinutes())}:${N(2,this.getUTCSeconds())}.${N(3,this.getUTCMilliseconds())}`}};le.exports=e=>{let t=new q(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var I=f((exports,module)=>{"use strict";o();module.exports=makeParserClass(ee());module.exports.makeParserClass=makeParserClass;var TomlError=class e extends Error{constructor(t){super(t),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,e),this.fromTOML=!0,this.wrapped=null}};TomlError.wrap=e=>{let t=new TomlError(e.message);return t.code=e.code,t.wrapped=e,t};module.exports.TomlError=TomlError;var createDateTime=re(),createDateTimeFloat=ne(),createDate=oe(),createTime=ce(),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:" ",[CHAR_n]:`
|
|
2
2
|
`,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}var _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(e,t){return hasOwnProperty.call(e,t)?!0:(t==="__proto__"&&defineProperty(e,"__proto__",descriptor),!1)}var INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){return e===null||typeof e!="object"?!1:e[_type]===INLINE_TABLE}var TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(e){return e===null||typeof e!="object"?!1:e[_type]===TABLE}var _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){return e===null||typeof e!="object"?!1:e[_type]===INLINE_LIST}var LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){return e===null||typeof e!="object"?!1:e[_type]===LIST}var _custom;try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}var _inspect=_custom||"inspect",BoxedBigInt=class{constructor(t){try{this.value=global.BigInt.asIntN(64,t)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol("integer");function Integer(e){let t=Number(e);return Object.is(t,-0)&&(t=0),global.BigInt&&!Number.isSafeInteger(t)?new BoxedBigInt(e):Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}function isInteger(e){return e===null||typeof e!="object"?!1:e[_type]===INTEGER}var FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){return e===null||typeof e!="object"?!1:e[_type]===FLOAT}function tomlType(e){let t=typeof e;if(t==="object"){if(e===null)return"null";if(e instanceof Date)return"datetime";if(_type in e)switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return t}function makeParserClass(e){class t extends e{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===e.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(r){let i=this.ctx,h=r.key.pop();for(let n of r.key){if(hasKey(i,n)&&(!isTable(i[n])||i[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));i=i[n]=i[n]||Table()}if(hasKey(i,h))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(r.value)||isFloat(r.value)?i[h]=r.value.valueOf():i[h]=r.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(r){return this.state.resultTable?this.state.resultTable.push(r):this.state.resultTable=[r],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){if(this.char===CHAR_PERIOD)return this.next(this.parseAssignKeywordPostDot);if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.goto(this.parseAssignEqual)}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(r){return this.returnNow({key:this.state.resultTable,value:r})}parseComment(){do if(this.char===e.END||this.char===CTRL_J)return this.return();while(this.nextChar())}parseTableOrList(){if(this.char===CHAR_LSQB)this.next(this.parseList);else return this.goto(this.parseTable)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(r){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,r)&&(!isTable(this.ctx[r])||this.ctx[r][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[r]=this.ctx[r]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,r))this.ctx=this.ctx[r]=Table();else if(isTable(this.ctx[r]))this.ctx=this.ctx[r];else if(isList(this.ctx[r]))this.ctx=this.ctx[r][this.ctx[r].length-1];else throw this.error(new TomlError("Can't redefine existing key"));return this.next(this.parseTableNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(r){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,r)||(this.ctx[r]=List()),isInlineList(this.ctx[r]))throw this.error(new TomlError("Can't extend an inline array"));if(isList(this.ctx[r])){let i=Table();this.ctx[r].push(i),this.ctx=i}else throw this.error(new TomlError("Can't redefine an existing key"));return this.next(this.parseListEnd)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,r))this.ctx=this.ctx[r]=Table();else{if(isInlineList(this.ctx[r]))throw this.error(new TomlError("Can't extend an inline array"));if(isInlineTable(this.ctx[r]))throw this.error(new TomlError("Can't extend an inline table"));if(isList(this.ctx[r]))this.ctx=this.ctx[r][this.ctx[r].length-1];else if(isTable(this.ctx[r]))this.ctx=this.ctx[r];else throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(r){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===e.END)throw this.error(new TomlError("Key without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(r){return this.returnNow(r)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)return this.state.buf==="-"?this.return(-1/0):this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===e.END)throw this.error(new TomlError("Key ended without value"));if(isAlphaNumHyphen(this.char))this.consume();else{if(this.state.buf.length===0)throw this.error(new TomlError("Empty bare keys are not allowed"));return this.returnNow()}}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(r){return this.state.buf+=r,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let r="\\u00";return this.char<16&&(r+="0"),r+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${r} instead`))}recordMultiEscapeReplacement(r){return this.state.buf+=r,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(r){try{let i=parseInt(r,16);if(i>=SURROGATE_FIRST&&i<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(i))}catch(i){throw this.error(TomlError.wrap(i))}}parseSmallUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=4)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseLargeUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=8)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(isDigit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{let r=Integer(this.state.buf);if(r.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(r)}}}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberFloat);if(isDigit(this.char))this.consume();else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent);else throw this.error(new TomlError("Unexpected character, expected -, + or digit"))}parseNumberExponent(){if(isDigit(this.char))this.consume();else return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder):this.returnNow(Float(this.state.buf))}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberInteger);if(isDigit(this.char))this.consume(),this.state.buf.length>4&&this.next(this.parseNumberInteger);else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_HYPHEN?this.goto(this.parseDateTime):this.char===CHAR_COLON?this.goto(this.parseOnlyTimeHour):this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError("Expected digit while parsing year part of a date"))}else{if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(isHexit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let r=Integer(this.state.buf);if(r.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(r)}}}parseIntegerOct(){if(isOctit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let r=Integer(this.state.buf);if(r.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(r)}}}parseIntegerBin(){if(isBit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let r=Integer(this.state.buf);if(r.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(r)}}}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}else{if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new TomlError("Incomplete datetime"))}}parseTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}else throw this.error(new TomlError("Incomplete datetime"))}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.next(this.parseOnlyTimeFractionMaybe)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char===CHAR_PERIOD)this.state.buf="",this.next(this.parseOnlyTimeFraction);else return this.return(createTime(this.state.result))}parseOnlyTimeFraction(){if(isDigit(this.char))this.consume();else if(this.atEndOfWord()){if(this.state.buf.length===0)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else{if(this.state.buf.length===1)throw this.error(new TomlError("Expected digit in milliseconds"));if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}}parseTimeZoneHour(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseTimeZoneSep(){if(this.char===CHAR_COLON)this.consume(),this.next(this.parseTimeZoneMin);else throw this.error(new TomlError("Unexpected character in datetime, expected colon"))}parseTimeZoneMin(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseBoolean(){if(this.char===CHAR_t)return this.consume(),this.next(this.parseTrue_r);if(this.char===CHAR_f)return this.consume(),this.next(this.parseFalse_a)}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===e.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(r){if(this.state.resultArr){let i=this.state.resultArr[_contentType],h=tomlType(r);if(i!==h)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${i} and ${h}`))}else this.state.resultArr=InlineList(tomlType(r));return isFloat(r)||isInteger(r)?this.state.resultArr.push(r.valueOf()):this.state.resultArr.push(r),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(r){let i=this.state.resultTable,h=r.key.pop();for(let n of r.key){if(hasKey(i,n)&&(!isTable(i[n])||i[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));i=i[n]=i[n]||Table()}if(hasKey(i,h))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(r.value)||isFloat(r.value)?i[h]=r.value.valueOf():i[h]=r.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}return t}});var L=f((Ot,ue)=>{"use strict";o();ue.exports=Ke;function Ke(e,t){if(e.pos==null||e.line==null)return e;let s=e.message;if(s+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:
|
|
3
3
|
`,t&&t.split){let r=t.split(/\n/),i=String(Math.min(r.length,e.line+3)).length,h=" ";for(;h.length<i;)h+=" ";for(let n=Math.max(0,e.line-1);n<Math.min(r.length,e.line+2);++n){let a=String(n+1);if(a.length<i&&(a=" "+a),e.line===n){s+=a+"> "+r[n]+`
|
|
4
4
|
`,s+=h+" ";for(let l=0;l<e.col;++l)s+=" ";s+=`^
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as P}from"./chunk-FRWQJAW2.js";import{a as N}from"./chunk-
|
|
1
|
+
import{a as P}from"./chunk-FRWQJAW2.js";import{a as N}from"./chunk-UY44O4IZ.js";import{a as l}from"./chunk-TXMZPF2U.js";import{a as U}from"./chunk-YY6TFARF.js";import{a as J,b as _}from"./chunk-GQ3LY7BY.js";import{r as O}from"./chunk-RSNFNZ6F.js";import{b as E,c as h,e as R,g as C,h as T}from"./chunk-7HECBXSP.js";import{p as c,v as x}from"./chunk-VVHJ2AUF.js";import{b as S,c as j,f as F}from"./chunk-IKXUYCK7.js";import{A as u,D,V as a,y}from"./chunk-7A4ZE5IS.js";import{j as v}from"./chunk-FJOVMEPN.js";import{zb as q}from"./chunk-OIQ5NQ5I.js";import{b as t}from"./chunk-3PYDIBTX.js";import{b as k}from"./chunk-VBPMVVLV.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();var d=t.object({id:t.number(),name:t.string(),role:t.string()}),G=d.extend({shop:t.string(),preview_url:t.string().optional()}),B=t.object({status:t.literal("failed"),message:t.string(),errors:t.array(t.string()),requestId:t.string().optional()}),z=t.discriminatedUnion("status",[P.extend({originalTheme:d,theme:G}),B]),p=R({name:"ThemeDuplicateResult",schema:t.object({status:t.literal("success"),changed:t.boolean(),originalTheme:h,theme:h.extend({storeDomain:E,previewUrl:t.string().url().nullable()}).strict()}).strict(),definitions:{Theme:h},project(e){let r=z.parse(e);if(r.status==="failed")throw new TypeError("Failed duplications use the shared fatal error document.");return{status:r.status,changed:!0,originalTheme:T(r.originalTheme),theme:{...T(r.theme),storeDomain:C(r.theme.shop),previewUrl:r.theme.preview_url??null}}}}),A=t.discriminatedUnion("status",[t.object({status:t.literal("missing-theme-id")}),t.object({status:t.literal("not-found"),themeId:t.string()}),t.object({status:t.literal("development-theme")}),t.object({status:t.literal("cancelled")}),t.object({status:t.literal("completed"),originalTheme:d.extend({createdAtRuntime:t.boolean().default(!1),processing:t.boolean().default(!1)}),shop:t.string(),previewUrl:t.string().optional(),theme:d.optional(),userErrors:t.array(t.object({field:t.array(t.string()).nullish(),message:t.string()})),requestId:t.string().optional()})]);i();function w(e){if(e.status==="cancelled")return{status:"cancelled"};let r=M(e);if(r.status==="failed"){let o=new v(r.message.trim());throw o.details={errors:r.errors,...r.requestId?{requestId:r.requestId}:{}},o}return r}function Y(e,r){if(r==="json"){q(p.encode(w(e)));return}if(e.status==="cancelled")return;let o=M(e);o.status==="failed"&&(process.exitCode=1),e.status==="completed"?V(e):"message"in o&&u({body:[o.message]})}function M(e){switch(e.status){case"missing-theme-id":return{status:"failed",message:"A theme ID is required to duplicate a theme, specify one with the --theme flag",errors:[]};case"not-found":return{status:"failed",message:`No theme with ID ${e.themeId} could be found. Use shopify theme list to find a theme ID.`,errors:[]};case"development-theme":return{status:"failed",message:"Development themes can't be duplicated. Use shopify theme push to upload it to the store first.",errors:[]};case"completed":{if(e.userErrors.length>0)return{status:"failed",message:`The theme '${e.originalTheme.name}' could not be duplicated due to errors`,errors:e.userErrors.map(r=>r.message),requestId:e.requestId};if(e.theme){let{id:r,name:o,role:s}=e.theme;return{status:"success",originalTheme:e.originalTheme,theme:{id:r,name:o,role:s,shop:e.shop,preview_url:e.previewUrl}}}return{status:"failed",message:`The theme '${e.originalTheme.name}' unexpectedly could not be duplicated `,errors:[],requestId:e.requestId}}}}function V(e){let r=e.originalTheme;if(e.userErrors&&e.userErrors.length>0){let o=e.userErrors.map(s=>s.message).join(", ");u({body:["The theme",...l(r),"could not be duplicated due to errors: ",{subdued:o},{char:"."},...e.requestId?[`
|
|
2
2
|
Request ID: `,{subdued:e.requestId}]:[]]})}else e.theme?y({body:["The theme",...l(r),"has been duplicated",{char:"."}],nextSteps:[[{link:{label:"View the duplicated theme",url:e.previewUrl}}]]}):u({body:["The theme",...l(r),"unexpectedly could not be duplicated",{char:"."},...e.requestId?[`
|
|
3
3
|
Request ID: `,{subdued:e.requestId}]:[]]})}i();async function $(e,r,o,s=!1){let{name:m,force:H}=o,I=a()||!!H||s;if(I&&!r)return{status:"missing-theme-id"};let n=r?await _(e,r):await J(e,{header:"Select a theme to duplicate",filter:{theme:r}});if(!n)return{status:"not-found",themeId:r};if(n?.role==="development")return{status:"development-theme"};if(!I&&!await D({message:`Do you want to duplicate '${n.name}' on ${e.storeFqdn}?`,confirmationMessage:`Yes, duplicate '${n.name}'`,cancellationMessage:"No, cancel duplicate"}))return{status:"cancelled"};let g=await O(n.id,m,e);return A.parse({status:"completed",originalTheme:n,shop:e.storeFqdn,previewUrl:g.theme?U(g.theme,e):void 0,...g})}var f=L(k(),1);var b=class extends x{static jsonOutputSchema=p;static summary="Duplicates a theme from your theme library.";static usage=["theme duplicate","theme duplicate --theme 10 --name 'New Theme'"];static descriptionWithMarkdown="If you want to duplicate your local theme, you need to run `shopify theme push` first.\n\nIf no theme ID is specified, you're prompted to select the theme that you want to duplicate from the list of themes in your store. You're asked to confirm that you want to duplicate the specified theme.\n\nPrompts and confirmations are not shown when duplicate is run in a CI environment or the `--force` flag is used, therefore you must specify a theme ID using the `--theme` flag.\n\nYou can optionally name the duplicated theme using the `--name` flag.\n\nIf you use the `--json` flag, then theme information is returned in JSON format, which can be used as a machine-readable input for scripts or continuous integration.\n\nSuccessful JSON results include `status`, `changed`, and explicit `originalTheme` and `theme` resources with decimal string IDs. Failures use the shared `{error}` document.";static description=this.descriptionForHelp();static flags={...S,...j,password:c.password,theme:F(f.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"})),name:f.Flags.string({char:"n",description:"Name of the newly duplicated theme.",env:"SHOPIFY_FLAG_NAME"}),store:c.store,environment:c.environment,force:f.Flags.boolean({char:"f",description:"Force the duplicate operation to run without prompts or confirmations. Required if non interactive outside CI.",env:"SHOPIFY_FLAG_FORCE"})};static multiEnvironmentsFlags=["store","password","theme"];static nonTTYFlagRequirements(){return[{flags:["force"],when:()=>!a()}]}async command(r,o,s=!1){N(r);let m=await $(o,r.theme,r,s);if(r.json&&s)return w(m);Y(m,r.json?"json":"text")}requiresEnvironmentConfirmation(r){return!a()&&super.requiresEnvironmentConfirmation(r)}};export{b as a};
|