@shopify/cli 0.0.0-snapshot-20260722210655 → 0.0.0-snapshot-20260723152140
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-JBPJLL57.js → analytics-OHVOANBW.js} +1 -1
- package/dist/analytics-WLBH4AWX.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-WYT437LJ.js → chunk-22KSTELG.js} +1 -1
- package/dist/{chunk-N54QOQ2V.js → chunk-25XKE6QJ.js} +1 -1
- package/dist/{chunk-FDQNY7RF.js → chunk-2CUUHTG4.js} +1 -1
- package/dist/{chunk-VFU5YYTM.js → chunk-2HWXT3HB.js} +1 -1
- package/dist/{chunk-EL5U7452.js → chunk-33HDJ4C4.js} +1 -1
- package/dist/{chunk-2OBG4WT7.js → chunk-33RNTQU7.js} +1 -1
- package/dist/{chunk-XKMLKEYX.js → chunk-33Y5T275.js} +1 -1
- package/dist/{chunk-SH5VEQ7F.js → chunk-34AF5YGB.js} +1 -1
- package/dist/{chunk-ONCEFPYP.js → chunk-3AENHXGF.js} +1 -1
- package/dist/{chunk-CNOGRHAB.js → chunk-3B25ERQH.js} +1 -1
- package/dist/{chunk-AK4NPOQG.js → chunk-3I3XLKOW.js} +1 -1
- package/dist/{chunk-FS37ZPWQ.js → chunk-3QPMYF5Z.js} +1 -1
- package/dist/{chunk-MSDNBGRH.js → chunk-42CCXYWK.js} +1 -1
- package/dist/{chunk-6NRRHHK5.js → chunk-467KVJG7.js} +1 -1
- package/dist/{chunk-RXO77IC5.js → chunk-4NZLJIGL.js} +1 -1
- package/dist/chunk-4QJM243J.js +1 -0
- package/dist/{chunk-B3XKHB4G.js → chunk-4VPYU2R7.js} +1 -1
- package/dist/{chunk-CFZVZFVH.js → chunk-4WUX5CPT.js} +1 -1
- package/dist/{chunk-3I6ZVKZ2.js → chunk-4XQU3SLH.js} +1 -1
- package/dist/{chunk-MXATGPGZ.js → chunk-55CGOSP6.js} +1 -1
- package/dist/{chunk-XBFXB6S6.js → chunk-5ACGB45Y.js} +1 -1
- package/dist/{chunk-AMLHR2HO.js → chunk-5B4ZJFFV.js} +1 -1
- package/dist/{chunk-SXWAECCX.js → chunk-5EIDBUBM.js} +1 -1
- package/dist/{chunk-Q37I33P7.js → chunk-5IRJQ5XE.js} +1 -1
- package/dist/{chunk-GJGKVHUR.js → chunk-6NOY7LTB.js} +1 -1
- package/dist/{chunk-OPHCAOPB.js → chunk-6OUAYFVK.js} +1 -1
- package/dist/{chunk-4GWHZ4RW.js → chunk-7CIGXMZR.js} +1 -1
- package/dist/{chunk-H2Z3SST2.js → chunk-7LWP4FVK.js} +1 -1
- package/dist/{chunk-JNAAHGJ6.js → chunk-7QMA6EVS.js} +1 -1
- package/dist/{chunk-IV3S4JU6.js → chunk-A3DD7GW4.js} +1 -1
- package/dist/{chunk-WKJNCJUV.js → chunk-A72CPM4D.js} +1 -1
- package/dist/{chunk-3XBPV64S.js → chunk-A7LAO76V.js} +1 -1
- package/dist/{chunk-BPRY3O4N.js → chunk-AAG2JILI.js} +1 -1
- package/dist/{chunk-IPKYIHDV.js → chunk-AC5ZFC7W.js} +1 -1
- package/dist/{chunk-ZDKGQCIZ.js → chunk-AI4SAUYF.js} +1 -1
- package/dist/{chunk-LX3NHWCT.js → chunk-AJUNWJ5D.js} +1 -1
- package/dist/{chunk-ISVXQQ4E.js → chunk-B6WWMMWI.js} +1 -1
- package/dist/{chunk-CT5MMCRM.js → chunk-BB4GRHB5.js} +1 -1
- package/dist/{chunk-JBIXZWT6.js → chunk-BB4YLNGX.js} +1 -1
- package/dist/{chunk-MH6UDGGS.js → chunk-BNFVFPDX.js} +1 -1
- package/dist/{chunk-X5GZF33W.js → chunk-BNXEW2MP.js} +1 -1
- package/dist/{chunk-34CCAMTT.js → chunk-BO7B4F2D.js} +1 -1
- package/dist/{chunk-5Y33JTFD.js → chunk-BQJJADGF.js} +1 -1
- package/dist/{chunk-LZO2JTZS.js → chunk-BY25ZK2A.js} +1 -1
- package/dist/{chunk-M3FOYFPN.js → chunk-BYZ6LYUD.js} +1 -1
- package/dist/{chunk-2CMSXRZ5.js → chunk-BZXBSUZU.js} +1 -1
- package/dist/{chunk-3R45SEUK.js → chunk-CLJWB3TR.js} +1 -1
- package/dist/{chunk-EIEHPIWJ.js → chunk-CMF7QBZH.js} +1 -1
- package/dist/{chunk-NDVET7BL.js → chunk-CN6UV4PQ.js} +1 -1
- package/dist/{chunk-KNLPWHHJ.js → chunk-CUIOWLG3.js} +2 -2
- package/dist/{chunk-P4LA3M5S.js → chunk-CXYYGVNK.js} +1 -1
- package/dist/{chunk-OLQN2OBC.js → chunk-D2SN4X4Z.js} +1 -1
- package/dist/{chunk-EI6ZQXTF.js → chunk-D6JK3NBM.js} +1 -1
- package/dist/{chunk-POYWH3PD.js → chunk-D6NP4EQA.js} +1 -1
- package/dist/{chunk-SP7NSQ6G.js → chunk-DMOOB5AD.js} +1 -1
- package/dist/{chunk-W2RZY64W.js → chunk-EASRLGCZ.js} +1 -1
- package/dist/{chunk-GAUJKBLY.js → chunk-ECZRDNHP.js} +1 -1
- package/dist/{chunk-FFC42T6R.js → chunk-EHXVJUFD.js} +1 -1
- package/dist/{chunk-OYOTLGGD.js → chunk-EIP2MGZD.js} +1 -1
- package/dist/{chunk-CFXL555E.js → chunk-EZCNFSEC.js} +1 -1
- package/dist/{chunk-PPHJ4F2Z.js → chunk-FDG2PMS3.js} +1 -1
- package/dist/{chunk-SQVJGTTD.js → chunk-FGYV4PZF.js} +3 -3
- package/dist/{chunk-WFCP2AG5.js → chunk-FKWHO42M.js} +1 -1
- package/dist/{chunk-O7HL63YP.js → chunk-FMEVIGO7.js} +1 -1
- package/dist/{chunk-VBL7DLY7.js → chunk-FN2VTF24.js} +1 -1
- package/dist/{chunk-VQ44LFBY.js → chunk-FNDHJQWJ.js} +1 -1
- package/dist/{chunk-MTGARKCQ.js → chunk-G6T6BS3M.js} +1 -1
- package/dist/{chunk-X2NVFYY6.js → chunk-GBSEJYPY.js} +1 -1
- package/dist/{chunk-YKAMTVJM.js → chunk-GVQNF7CD.js} +1 -1
- package/dist/{chunk-FW732EHN.js → chunk-HEFOYZXX.js} +1 -1
- package/dist/{chunk-UA2432YR.js → chunk-HIIYIR25.js} +1 -1
- package/dist/{chunk-P5KLFBCI.js → chunk-HJ7VE3TC.js} +1 -1
- package/dist/{chunk-XGJH3HBA.js → chunk-HRO72CFJ.js} +1 -1
- package/dist/{chunk-XYV4QXQT.js → chunk-HW2F22DE.js} +1 -1
- package/dist/{chunk-3GQ6AVHU.js → chunk-IKXP72LE.js} +1 -1
- package/dist/{chunk-SW3DP3GU.js → chunk-IO2VHLX6.js} +1 -1
- package/dist/{chunk-33AVVFWW.js → chunk-IQLFGDUD.js} +1 -1
- package/dist/{chunk-IDRP7BXW.js → chunk-IT4OI5SI.js} +1 -1
- package/dist/{chunk-RUV5AE3N.js → chunk-IVMBGXXG.js} +1 -1
- package/dist/{chunk-I7QJGHS6.js → chunk-IZJ2EYCZ.js} +1 -1
- package/dist/{chunk-SACH2YSZ.js → chunk-J3XPLRPC.js} +1 -1
- package/dist/{chunk-PNYIQOOE.js → chunk-J4ZWORDQ.js} +1 -1
- package/dist/{chunk-FVQG4KLI.js → chunk-JAAIVKUX.js} +1 -1
- package/dist/{chunk-SY3LXLT2.js → chunk-JQNR75BG.js} +1 -1
- package/dist/{chunk-UZR7JB5B.js → chunk-K6E6AF77.js} +1 -1
- package/dist/{chunk-32KQUYFF.js → chunk-K6UNSDIM.js} +1 -1
- package/dist/{chunk-GVHVEYNG.js → chunk-KHCWSUJW.js} +1 -1
- package/dist/{chunk-VSPM4VES.js → chunk-KLY5BRZ2.js} +1 -1
- package/dist/{chunk-LANGOUPS.js → chunk-KYHMD54O.js} +1 -1
- package/dist/{chunk-Q3DRVTVJ.js → chunk-L5MGTMEH.js} +1 -1
- package/dist/{chunk-O5FUKS5D.js → chunk-LFCQ2FTD.js} +1 -1
- package/dist/{chunk-5VKFEYZK.js → chunk-LLNBH7KL.js} +1 -1
- package/dist/{chunk-KHOW6SXW.js → chunk-LPU7WQMQ.js} +1 -1
- package/dist/{chunk-5N6YKJLU.js → chunk-LTS6P5CN.js} +1 -1
- package/dist/{chunk-L6C3DLKN.js → chunk-M3RPZHYI.js} +1 -1
- package/dist/{chunk-E7Z7KYBR.js → chunk-MBIOMVRS.js} +1 -1
- package/dist/{chunk-OQ6WYWG4.js → chunk-MCP5CY6B.js} +2 -2
- package/dist/{chunk-UMMEUYHM.js → chunk-MEAQR6KA.js} +1 -1
- package/dist/{chunk-H3QSHKNT.js → chunk-MFJ2MXJG.js} +1 -1
- package/dist/{chunk-HXJ7HJFS.js → chunk-MGTKKOH3.js} +1 -1
- package/dist/{chunk-HPH7WWMW.js → chunk-MJR4HUGN.js} +1 -1
- package/dist/{chunk-X4JRQETX.js → chunk-MSGB47Q3.js} +1 -1
- package/dist/{chunk-4NSHAMD3.js → chunk-MW4QZJ7O.js} +1 -1
- package/dist/{chunk-2FNJZPYC.js → chunk-MZJ4WD2U.js} +2 -2
- package/dist/{chunk-6CZ7WGE2.js → chunk-NLQYXIR2.js} +1 -1
- package/dist/{chunk-HG5QVQ2T.js → chunk-NPOXJODC.js} +1 -1
- package/dist/{chunk-XEHMXJ5J.js → chunk-NTPMJHGK.js} +1 -1
- package/dist/{chunk-NIQWXTKA.js → chunk-NWELNZNO.js} +1 -1
- package/dist/{chunk-2RLFO4KD.js → chunk-OCAOSOGF.js} +1 -1
- package/dist/{chunk-5RMFBXP6.js → chunk-OEWEKEMD.js} +1 -1
- package/dist/{chunk-35Z5TIZM.js → chunk-OLCQ2V53.js} +1 -1
- package/dist/{chunk-HS7TCC4I.js → chunk-P6IDCK2B.js} +1 -1
- package/dist/{chunk-5HGRHX2Z.js → chunk-PKTSTP4J.js} +1 -1
- package/dist/{chunk-J2JMKTPR.js → chunk-PT3YH2M5.js} +1 -1
- package/dist/{chunk-ZKNONN2F.js → chunk-Q2YBCQEB.js} +1 -1
- package/dist/{chunk-65H3LZJA.js → chunk-QDGUOAOA.js} +1 -1
- package/dist/{chunk-SNK55FY2.js → chunk-QFJOCR7V.js} +1 -1
- package/dist/{chunk-74DZVIJF.js → chunk-QTLLDO6I.js} +1 -1
- package/dist/{chunk-ALKT4HX7.js → chunk-QTOMCGDI.js} +1 -1
- package/dist/{chunk-DC3JYNAG.js → chunk-R4SUXHX6.js} +1 -1
- package/dist/{chunk-6SVMZEJO.js → chunk-RB652QBR.js} +1 -1
- package/dist/{chunk-HFGB7XAM.js → chunk-SGFYNQLI.js} +1 -1
- package/dist/{chunk-J5D222UG.js → chunk-SQIG56JP.js} +1 -1
- package/dist/{chunk-ROBYXQMW.js → chunk-SQK5434I.js} +1 -1
- package/dist/{chunk-FS4HIL62.js → chunk-T5RTIJJQ.js} +1 -1
- package/dist/{chunk-L6VQZJM4.js → chunk-T6JRM4L6.js} +1 -1
- package/dist/{chunk-SUOXR2CE.js → chunk-TM4YHWMX.js} +1 -1
- package/dist/{chunk-O6BUPYXH.js → chunk-TYCR45XU.js} +2 -2
- package/dist/{chunk-ZZ5M5IMF.js → chunk-U36IMQ6Y.js} +1 -1
- package/dist/{chunk-VURVVLVE.js → chunk-V6GRT7OB.js} +1 -1
- package/dist/{chunk-5EDRU7YU.js → chunk-V7FAV65W.js} +2 -2
- package/dist/{chunk-N2UVYELM.js → chunk-V7FUMPKJ.js} +1 -1
- package/dist/{chunk-A35F74KC.js → chunk-V7QR5DU6.js} +1 -1
- package/dist/{chunk-2VVXGQ36.js → chunk-VD6G7MGQ.js} +1 -1
- package/dist/{chunk-GWUDVP3Q.js → chunk-VQMEJM7F.js} +1 -1
- package/dist/{chunk-BKMZCB6M.js → chunk-VSL6SVQS.js} +1 -1
- package/dist/{chunk-R56CBH7G.js → chunk-VX7XXDC2.js} +1 -1
- package/dist/{chunk-W6BBFBOM.js → chunk-WD3XHU3U.js} +1 -1
- package/dist/{chunk-QAMPDFZB.js → chunk-WDZN65TW.js} +1 -1
- package/dist/{chunk-IP2ZMDG4.js → chunk-WNAIL2B2.js} +1 -1
- package/dist/{chunk-22YTDD56.js → chunk-WQ5BPVZ5.js} +1 -1
- package/dist/{chunk-PNCF5LNZ.js → chunk-WWWGG5QP.js} +1 -1
- package/dist/{chunk-HJH672U6.js → chunk-WY2LFBPL.js} +1 -1
- package/dist/{chunk-3GPUBV4D.js → chunk-WZPCH34H.js} +1 -1
- package/dist/{chunk-V4CPWXJP.js → chunk-XD5DGSUM.js} +1 -1
- package/dist/{chunk-FOQ2RDEI.js → chunk-XHGGS5MV.js} +1 -1
- package/dist/{chunk-W6KRZTDH.js → chunk-XKZU2QHQ.js} +1 -1
- package/dist/{chunk-ZKIIMXKC.js → chunk-Y2GJEZSL.js} +1 -1
- package/dist/{chunk-NUCUZBO3.js → chunk-Y2VJUEJJ.js} +1 -1
- package/dist/chunk-Y3IZPAA6.js +1 -0
- package/dist/{chunk-IDMJWVJC.js → chunk-Y5RHZU3E.js} +1 -1
- package/dist/{chunk-OM3YN7ZK.js → chunk-YAZ5ARS3.js} +1 -1
- package/dist/{chunk-3RUWUOIR.js → chunk-YIO2MRPY.js} +1 -1
- package/dist/{chunk-AROEKWUX.js → chunk-YULNHJMG.js} +1 -1
- package/dist/{chunk-3PFIBTES.js → chunk-ZGI4ZRVE.js} +3 -3
- package/dist/{chunk-IKP2EM5F.js → chunk-ZHK5TYOH.js} +1 -1
- package/dist/{chunk-BQ2752RO.js → chunk-ZKOUILK2.js} +1 -1
- package/dist/{chunk-IZCDEDIM.js → chunk-ZPW4N66L.js} +1 -1
- package/dist/chunk-ZXAEYDNN.js +1 -0
- package/dist/{chunk-YZQYDTO7.js → chunk-ZZO5S7O5.js} +1 -1
- package/dist/cli/commands/app/app-logs/sources.js +1 -1
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/skill/install.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/validate/components.js +1 -1
- package/dist/cli/commands/validate/functions.js +1 -1
- package/dist/cli/commands/validate/graphql.js +1 -1
- package/dist/cli/commands/validate/theme.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/command-registry.js +1 -1
- package/dist/{conf-store-OHJSRXSL.js → conf-store-U5CTOBFQ.js} +1 -1
- package/dist/{deprecations-SA4HEVBI.js → deprecations-4AFWWDIT.js} +1 -1
- package/dist/dist-35NERBRB.js +1 -0
- package/dist/{dist-MIUGJGUW.js → dist-OUY4DTL3.js} +1 -1
- package/dist/{environments-LDSGQHXC.js → environments-KUUXFDHZ.js} +1 -1
- package/dist/{error-YY774ESQ.js → error-MTDZ34GJ.js} +1 -1
- package/dist/{error-handler-QHCOZUC7.js → error-handler-VOQ4EOTX.js} +1 -1
- package/dist/{fs-EIM4AORY.js → fs-DJ47BQPK.js} +1 -1
- package/dist/hooks/app-init.js +1 -1
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{is-global-USYUXR55.js → is-global-EKWTAVNX.js} +1 -1
- package/dist/{local-INRMOHAI.js → local-DZ2BTC3Y.js} +1 -1
- package/dist/{local-storage-7THURD3W.js → local-storage-RFBYTOUL.js} +1 -1
- package/dist/{metadata-WJ637XA2.js → metadata-SXK43PNH.js} +1 -1
- package/dist/{node-package-manager-4X2YQGFC.js → node-package-manager-FYFEYRNX.js} +1 -1
- package/dist/{notifications-system-ZSZWUJIZ.js → notifications-system-2RA4AYYM.js} +1 -1
- package/dist/{output-CLCX5WU7.js → output-S7SSOWA2.js} +1 -1
- package/dist/skills-YJ6XERLJ.js +1 -0
- package/dist/{system-J4OPHQAQ.js → system-L6ZQLKGR.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-ZC5QZT4J.js → ui-YLD5CNOR.js} +1 -1
- package/dist/upgrade-5U2HTZZY.js +1 -0
- package/dist/{version-EYLYG4JK.js → version-2JQNZMI4.js} +1 -1
- package/dist/version-PEZ4TEFU.js +1 -0
- package/dist/{workerd-VC3MCYDV.js → workerd-YTIIEADS.js} +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +7 -7
- package/dist/analytics-QVTQTZFT.js +0 -1
- package/dist/chunk-G3CPHVML.js +0 -1
- package/dist/chunk-WMKVFUMY.js +0 -1
- package/dist/chunk-X2ZCC772.js +0 -1
- package/dist/dist-XVWDWM2Y.js +0 -1
- package/dist/skills-OXV2TD42.js +0 -1
- package/dist/upgrade-VSILBOCY.js +0 -1
- package/dist/version-FEVNX3F6.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ta as a,ua as b,va as c,wa as d,xa as e,ya as f}from"./chunk-
|
|
1
|
+
import{ta as a,ua as b,va as c,wa as d,xa as e,ya as f}from"./chunk-MCP5CY6B.js";import"./chunk-ZDF5N422.js";import"./chunk-34AF5YGB.js";import"./chunk-FGYV4PZF.js";import"./chunk-EJDWYASP.js";import"./chunk-MVPRNGNO.js";import"./chunk-GB3YC4TI.js";import"./chunk-MPW2YJWU.js";import"./chunk-4QJM243J.js";import"./chunk-7QMA6EVS.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-HIIYIR25.js";import"./chunk-FKWHO42M.js";import"./chunk-MW4QZJ7O.js";import"./chunk-Y5RHZU3E.js";import"./chunk-TYCR45XU.js";import"./chunk-CUIOWLG3.js";import"./chunk-A4SBXDZB.js";import"./chunk-BOAGJ6P5.js";import"./chunk-LD6ZCTZ3.js";import"./chunk-JJZNUFPD.js";import"./chunk-MBIOMVRS.js";import"./chunk-T7KHS6RF.js";import"./chunk-UKQ7NE5V.js";import"./chunk-773TIA5M.js";import"./chunk-M5GXA5W4.js";import"./chunk-636CTEW7.js";import"./chunk-TR4OWSEX.js";import"./chunk-2KD4LHRT.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{f as compileData,c as recordError,e as recordEvent,d as recordRetry,b as recordTiming,a as reportAnalyticsEvent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{qa as a,ra as b,sa as c}from"./chunk-MCP5CY6B.js";import"./chunk-ZDF5N422.js";import"./chunk-34AF5YGB.js";import"./chunk-FGYV4PZF.js";import"./chunk-EJDWYASP.js";import"./chunk-MVPRNGNO.js";import"./chunk-GB3YC4TI.js";import"./chunk-MPW2YJWU.js";import"./chunk-4QJM243J.js";import"./chunk-7QMA6EVS.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-HIIYIR25.js";import"./chunk-FKWHO42M.js";import"./chunk-MW4QZJ7O.js";import"./chunk-Y5RHZU3E.js";import"./chunk-TYCR45XU.js";import"./chunk-CUIOWLG3.js";import"./chunk-A4SBXDZB.js";import"./chunk-BOAGJ6P5.js";import"./chunk-LD6ZCTZ3.js";import"./chunk-JJZNUFPD.js";import"./chunk-MBIOMVRS.js";import"./chunk-T7KHS6RF.js";import"./chunk-UKQ7NE5V.js";import"./chunk-773TIA5M.js";import"./chunk-M5GXA5W4.js";import"./chunk-636CTEW7.js";import"./chunk-TR4OWSEX.js";import"./chunk-2KD4LHRT.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{b as getEnvironmentData,c as getSensitiveEnvironmentData,a as startAnalytics};
|
package/dist/bootstrap.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as p}from"./chunk-6QDOCBD4.js";import{a as e}from"./chunk-
|
|
1
|
+
import{a as p}from"./chunk-6QDOCBD4.js";import{a as e}from"./chunk-AAG2JILI.js";import{a as s}from"./chunk-467KVJG7.js";import"./chunk-T7KHS6RF.js";import"./chunk-UKQ7NE5V.js";import"./chunk-773TIA5M.js";import"./chunk-M5GXA5W4.js";import"./chunk-TR4OWSEX.js";import"./chunk-2KD4LHRT.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-CRALWNNO.js";import{e as m,g as t}from"./chunk-VKWPEFWQ.js";t();var r=m(p(),1);import n from"fs";(0,r.createGlobalProxyAgent)({environmentVariableNamespace:"SHOPIFY_",forceGlobalAgent:!0,socketConnectionTimeout:6e4});process.on("uncaughtException",async o=>{try{let{FatalError:c}=await import("./error-MTDZ34GJ.js");if(o instanceof c){let{renderFatalError:i}=await import("./ui-YLD5CNOR.js");i(o)}else n.writeSync(process.stderr.fd,`${o.stack??o.message??o}
|
|
2
2
|
`)}catch{n.writeSync(process.stderr.fd,`${o.stack??o.message??o}
|
|
3
3
|
`)}process.exit(1)});var f=["SIGINT","SIGTERM","SIGQUIT"];f.forEach(o=>{process.on(o,()=>{process.exit(1)})});var a=Number(process.env.SHOPIFY_CLI_COLUMNS);isNaN(a)||(process.stdout.columns=a);async function l({development:o}){await e({moduleURL:import.meta.url,development:o,lazyCommandLoader:s})}var S=l;export{S as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as xt}from"./chunk-UOHNRH6E.js";import{a as br}from"./chunk-PPHJ4F2Z.js";import{a as Ur}from"./chunk-5RMFBXP6.js";import{b as Tr}from"./chunk-A35F74KC.js";import{a as Ar}from"./chunk-CFZVZFVH.js";import{a as _r}from"./chunk-FFC42T6R.js";import{a as Cr}from"./chunk-L6VQZJM4.js";import{a as fr}from"./chunk-N2UVYELM.js";import{a as hr}from"./chunk-B3XKHB4G.js";import{a as gr}from"./chunk-MSDNBGRH.js";import{a as wr,b as yr,c as vr,d as Pr}from"./chunk-AMLHR2HO.js";import{a as Sr}from"./chunk-EIEHPIWJ.js";import{a as xr}from"./chunk-VBL7DLY7.js";import{a as Er}from"./chunk-X5GZF33W.js";import{a as Rr}from"./chunk-QAMPDFZB.js";import{a as uo,b as mo}from"./chunk-LZO2JTZS.js";import{a as ar}from"./chunk-H2Z3SST2.js";import{a as lr}from"./chunk-PNYIQOOE.js";import{a as pr}from"./chunk-JBIXZWT6.js";import{a as dr}from"./chunk-WKJNCJUV.js";import{g as ur}from"./chunk-GVHVEYNG.js";import{a as Ze}from"./chunk-3XBPV64S.js";import{c as Xe,m as et}from"./chunk-HS7TCC4I.js";import{a as cr}from"./chunk-GAUJKBLY.js";import{a as mr}from"./chunk-UZR7JB5B.js";import{b as ir,g as Ce,j as Je}from"./chunk-VQ44LFBY.js";import{c as kr}from"./chunk-ROBYXQMW.js";import{a as to,b as rt,c as te,d as ro}from"./chunk-PNCF5LNZ.js";import{a as ho,f as go,g as wo,h as nt,i as yo,j as vo,k as Po,l as xo,m as Eo,n as bo,o as Uo,p as So,q as Ro,v as To,x as Ao,z as st}from"./chunk-NUCUZBO3.js";import{a as nr,b as sr,c as co,d as lo,e as ot,f as po,g as fo}from"./chunk-VURVVLVE.js";import{a as $,b as Qe}from"./chunk-ZZ5M5IMF.js";import{a as Xt,b as Zt,d as Ae,f as er,m as _e,n as H,s as O,u as tr,v as rr,w as or}from"./chunk-Q7BOSHWX.js";import{a as Jt}from"./chunk-I7QJGHS6.js";import{a as oo,b as no,c as so,d as ao,e as io}from"./chunk-VSPM4VES.js";import{a as Lr}from"./chunk-6SVMZEJO.js";import{a as eo}from"./chunk-IV3S4JU6.js";import{a as Zr}from"./chunk-X2ZCC772.js";import{a as Ir}from"./chunk-33AVVFWW.js";import{a as _o}from"./chunk-5HGRHX2Z.js";import{$ as Jr,C as Br,E as Kr,G as ee,N as jr,O as Yr,R as Vr,S as Qr,i as $r,j as N,k as Mr,m as Fr,p as tt,q as Or,qa as Ie,ra as Le,s as Nr,t as qr,u as Wr,v as Hr,w as Gr,wa as Xr}from"./chunk-LANGOUPS.js";import{Y as zr,e as ke,j as ce,p as Dr}from"./chunk-FDQNY7RF.js";import{c as Vt}from"./chunk-5EDRU7YU.js";import{a as j}from"./chunk-XKMLKEYX.js";import{b as Qt,e as Te}from"./chunk-BPRY3O4N.js";import{$ as $t,N as Lt,Z as X,a as ze,c as Rt,e as Tt,g as At,k as _t,m as Ct,p as kt,s as It,t as xe,ta as Mt,y as Ee}from"./chunk-OQ6WYWG4.js";import{D as Ue,H as Gt,J as Se,O as Re,P as ie,Q as Ve,R as Kt,T as jt,a as St,i as Ft,j as Ot,k as Nt,l as D,m as qt,n as Ye,o as Wt,p as Ht,u as be,w as ae}from"./chunk-SQVJGTTD.js";import{a as Cn}from"./chunk-7UNQOKZW.js";import{d as Dt}from"./chunk-4NSHAMD3.js";import{f as Ut,m as T,p as Z,u as Bt}from"./chunk-O6BUPYXH.js";import{$a as vt,Ea as yt,Fb as P,Hb as b,Mb as K,Na as ge,P as Ke,Pb as h,Qb as C,Ta as W,Wa as we,cb as Pt,eb as ye,fb as k,gb as L,jb as ve,kb as Pe,ma as I,mb as Et,nb as bt,tb as je,ua as fe,wa as he}from"./chunk-KNLPWHHJ.js";import{d as zt,f as Yt}from"./chunk-E7Z7KYBR.js";import{a as ft}from"./chunk-UKQ7NE5V.js";import{d as S,f as Be,g as ht,i as de,k as me,o as gt,p as wt}from"./chunk-773TIA5M.js";import{a as _n}from"./chunk-M5GXA5W4.js";import{e as J,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();p();p();p();var kn=300*1e3,In='The host theme could not be created to host your theme app extension. Please try again or use the "--theme" flag to use an existing theme as the host theme.';async function Co(t,e,r=Date.now()){for(;await Ln(t,e,r););}async function Ln(t,e,r){let o=await Ce(t,e);if(!o||$n(o,r))throw new T(In);return await ie(3),o.processing}function $n(t,e){return t.processing&&Date.now()-e>=kn}var Mn="https://codeload.github.com/Shopify/dawn/zip/refs/tags/v15.0.0",Dn="https://cdn.shopify.com/theme-store/uhrdefhlndzaoyrgylhto59sx2i7.jpg",at=3,$e=class extends cr{constructor(e,r={devPreview:!1}){super(e),this.context="App Ext. Host",this.themeId=wr(e.storeFqdn),this.devPreview=r.devPreview}async findOrCreate(){let e=await this.fetch();return e??(e=this.devPreview?await this.createHostTheme():await this.create()),e}setTheme(e){yr(this.adminSession.storeFqdn,e)}removeTheme(){vr(this.adminSession.storeFqdn)}async createHostTheme(){let e={role:ir,name:this.generateThemeName(this.context),src:Mn};for(let o=0;o<at;o++){h(`Attempt ${o}/${at}: Creating theme with name "${e.name}" and role "${e.role}"`);try{let n=await Je(e,this.adminSession);if(n)return this.setTheme(n.id.toString()),h(`Waiting for theme with id "${n.id}" to be processed`),await Co(n.id,this.adminSession),n;throw new Error}catch{h(`Failed to create theme with name "${e.name}" and role "${e.role}". Retrying...`)}}h(`Theme creation failed after ${at} retries. Creating theme using fallback theme zip`);let r=await Je({...e,src:Dn},this.adminSession);if(!r)throw h("Theme creation failed. Exiting process."),new Z(`Could not create theme with name "${e.name}" and role "${e.role}"`);return r}};p();var Fn={"theme:init":hr,"theme:check":ar,"theme:console":lr,"theme:delete":pr,"theme:dev":dr,"theme:duplicate":mr,"theme:info":fr,"theme:language-server":gr,"theme:list":Pr,"theme:metafields:pull":Sr,"theme:open":xr,"theme:package":Er,"theme:profile":br,"theme:publish":Ur,"theme:preview":Rr,"theme:pull":Tr,"theme:push":Ar,"theme:rename":_r,"theme:share":Cr},Ca=Fn;async function ko(t){let{remoteApp:e,localApp:r}=t,n=r.allExtensions.filter(U=>U.isThemeExtension);if(n.length===0)return;let a=n[0].directory,i=t.themeExtensionPort??9293,[c,d]=await Promise.all([Lt(t.storeFqdn),qn(e)]),l=c.storeFqdn,[u,g]=await Promise.all([et(c),Xe(c)]),w=g?await Ze(t.storePassword,l,u):void 0,m=await Nn(c,t.theme),f=m.id.toString();return be({headline:"The theme app extension development server is ready.",orderedNextSteps:!0,nextSteps:[[{link:{label:"Install your app in your development store",url:d}}],[{link:{label:"Setup your theme app extension in the host theme",url:`https://${l}/admin/themes/${f}/editor`}}],["Preview your theme app extension at",{link:{label:`http://127.0.0.1:${i}`,url:`http://127.0.0.1:${i}`}}]]}),{type:"theme-app-extensions",prefix:"theme-extensions",function:On,options:{theme:m,adminSession:c,storefrontPassword:w,crawlerSignatureHeaders:u,themeExtensionDirectory:a,themeExtensionPort:i}}}var On=async(t,{theme:e,adminSession:r,storefrontPassword:o,crawlerSignatureHeaders:n,themeExtensionDirectory:s,themeExtensionPort:a})=>{await(await ur(e,{adminSession:r,storefrontPassword:o,crawlerSignatureHeaders:n,themeExtensionDirectory:s,themeExtensionPort:a})).start()};async function Nn(t,e){let r;if(e)h(`Fetching theme with provided id ${e}`),r=await Ce(parseInt(e,10),t);else{let o=new $e(t,{devPreview:!0});await Ue([{title:"Configuring host theme for theme app extension",task:async()=>{h("Finding or creating host theme for theme app extensions"),r=await o.findOrCreate()}}])}if(!r)throw new T("Could not find or create a host theme for theme app extensions");return r}async function qn(t){return t.developerPlatformClient?.clientName===zr.AppManagement?`https://${await xe()}/?organization_id=${t.organizationId}&no_redirect=true&redirect=/oauth/redirect_from_developer_dashboard?client_id%3D${t.apiKey}`:`https://${await It()}/${t.organizationId}/apps/${t.id}/test`}p();p();p();p();p();p();async function Wn(t){let e=S(t.directory,"locales");return we([S(e,"*.json")])}async function Io(t,e){let r=await Wn(t);if(!r.length)return{localization:void 0,status:""};let o=e.currentLocalizationPayload??{defaultLocale:"en",translations:{},lastUpdated:0},n="success";try{await Promise.all(r.map(async s=>{let[a,...i]=s.split("/").pop().split(".");if(a)return i[0]==="default"&&(o.defaultLocale=a),Hn(a,s,o,t,e)})),o.lastUpdated=Date.now(),h(`Parsed locales for extension ${t.handle} at ${t.directory}`,e.stdout)}catch{n="error"}return{localization:o,status:n}}async function Hn(t,e,r,o,n){let s;try{s=await I(e),r.translations[t]=JSON.parse(s)}catch(a){let i=`Error parsing ${t} locale for ${o.handle} at ${e}: ${a.message}`;throw C(i,n.stderr),new Bt.ExtendableError(i)}}p();function Me(t,e){switch(t){case"checkout_ui_extension":return{url:e.checkoutCartUrl};case"checkout_post_purchase":return{url:e.checkoutCartUrl};case"product_subscription":return{url:e.subscriptionProductUrl??""};default:return{url:""}}}async function re(t,e,r,o){return D({outputPrefix:t.outputPrefix},async()=>{o?.clear();let n=t.getOutputPathForDirectory(e),s=`${r.url}/extensions/${t.devUUID}`,{localization:a,status:i}=await Io(t,r),c=await Mr(t),d=t.outputRelativePath?de(n):n,l=await Gn(t,s,d,o),u=null;return"metafields"in t.configuration&&Array.isArray(t.configuration.metafields)&&t.configuration.metafields.length>0&&(u=t.configuration.metafields),{assets:{main:le(l)&&l[0]?.assets?.main?l[0].assets.main:{name:"main",url:`${s}/assets/${t.outputFileName}`,lastUpdated:await ge(n)??0}},supportedFeatures:{runsOffline:t.configuration.supported_features?.runs_offline??!1},capabilities:{blockProgress:t.configuration.capabilities?.block_progress??!1,networkAccess:t.configuration.capabilities?.network_access??!1,apiAccess:t.configuration.capabilities?.api_access??!1,collectBuyerConsent:{smsMarketing:t.configuration.capabilities?.collect_buyer_consent?.sms_marketing??!1,customerPrivacy:t.configuration.capabilities?.collect_buyer_consent?.customer_privacy??!1},iframe:{sources:t.configuration.capabilities?.iframe?.sources??[]}},development:{...r.currentDevelopmentPayload,resource:Me(t.type,r),root:{url:s},hidden:r.currentDevelopmentPayload?.hidden??!1,localizationStatus:i,status:r.currentDevelopmentPayload?.status??"success",...r.currentDevelopmentPayload??{status:"success"}},extensionPoints:l,localization:a??null,metafields:u,type:t.type,externalType:t.externalType,uuid:t.devUUID,surface:t.surface,version:c?.version,title:t.name,handle:t.handle,name:t.name,description:t.configuration.description,apiVersion:t.configuration.api_version,approvalScopes:r.grantedScopes,settings:t.configuration.settings}})}async function Gn(t,e,r,o){let n=t.configuration,s=n.extension_points??n.targeting;if(t.type==="checkout_post_purchase"&&(s=[{target:"purchase.post.render"}]),le(s)){let a=await Bn(r);return Promise.all(s.map(async i=>{let{target:c,resource:d}=i,l={...i,surface:Le(c),root:{url:`${e}/${c}`},resource:d||{url:""}},u=a?.[c];if(!u)return l;let w=await Vn(u,{target:c,extensionPoint:i,url:e,extension:t,buildDirectory:r,resolver:o});return{...l,...w}}))}return s}async function Bn(t){try{let e=S(t,"manifest.json"),r=await I(e);return JSON.parse(r)}catch(e){if(e instanceof SyntaxError)throw new Error(`Invalid manifest.json in ${t}: ${e.message}`);return null}}async function Kn({target:t,extensionPoint:e,url:r,extension:o,resolver:n},s,a){let i=`${t}/${s}`,c=e[s];if(typeof c=="string"){let w=await De(s,i,typeof a=="string"?a:c,r,o,n,typeof a=="string"?c:void 0);return{assets:{[w.name]:w}}}let l=e.build_manifest?.assets?.[s];if(l?.filepath){let u=await De(s,i,l.filepath,r,o,n,l.module);return{assets:{[u.name]:u}}}return{}}async function jn({target:t,url:e,buildDirectory:r,resolver:o},n,s){if(s.length===0)return{};for(let i of s)o?.set(`${t}/${i}`,i);let a=await Promise.all(s.map(async i=>await ge(S(r,i))??0));return{assets:{[n]:{name:n,url:`${e}/assets/${t}/`,lastUpdated:Math.max(...a)}}}}async function zn({target:t,extensionPoint:e,url:r,extension:o,resolver:n},s){return e.intents?{intents:await Promise.all(e.intents.map(async(i,c)=>{let d=i.schema,l=s[c]?.schema,u=typeof l=="string"?l:d,g=typeof l=="string"?d:void 0;return{...i,schema:await De("schema",`${t}/intents/${c}/schema`,u,r,o,n,g)}}))}:{}}async function Yn({target:t,url:e,extension:r,resolver:o},n,s){let a=await De(n,`${t}/${n}`,s,e,r,o);return{assets:{[a.name]:a}}}async function Vn(t,e){return(await Promise.all(Object.keys(t).map(async o=>{let n=t[o];return Qn(o,n)?zn(e,n):Jn(o,n)?Yn(e,o,n):Xn(o,n)?jn(e,o,n):Kn(e,o,n)}))).reduce((o,n)=>({...o,...n,assets:{...o.assets,...n.assets}}),{})}function le(t){return Array.isArray(t)&&t.every(e=>typeof e=="object")}async function De(t,e,r,o,n,s,a){let i=`${e}${me(r)}`;return s?.set(i,r),{name:t,url:`${o}/assets/${i}`,lastUpdated:await ge(S(n.directory,a??r))??0}}function Qn(t,e){return t==="intents"&&Array.isArray(e)}function Jn(t,e){return(t==="main"||t==="should_render")&&typeof e=="string"}function Xn(t,e){return t==="assets"&&Array.isArray(e)&&e.every(r=>typeof r=="string")}import{EventEmitter as Zn}from"events";var pe;(function(t){t.Update="PayloadUpdatedEvent:UPDATE"})(pe||(pe={}));async function Lo(t,e,r){return{app:{title:t.appName,apiKey:t.apiKey,url:co(t.storeFqdn,t.apiKey),mobileUrl:po(t.storeFqdn,t.apiKey)},appId:t.id,version:t.manifestVersion,root:{url:new URL("/extensions",t.url).toString()},socket:{url:t.websocketURL},devConsole:{url:new URL("/extensions/dev-console",t.url).toString()},store:t.storeFqdn,extensions:await Promise.all(t.extensions.filter(n=>n.isPreviewable).map(n=>re(n,e,t,r&&it(r,n.devUUID))))}}function it(t,e){let r=t.get(e);return r||(r=new Map,t.set(e,r)),r}var Fe=class extends Zn{constructor(e,r,o=new Map){super(),this.rawPayload=e,this.options=r,this.assetResolvers=o}getAssetResolver(e){return this.assetResolvers.get(e)}getConnectedPayload(){let e=this.getRawPayload();return{app:e.app,appId:e.appId,store:e.store,extensions:e.extensions}}getRawPayloadFilteredByExtensionIds(e){return{...this.rawPayload,extensions:this.rawPayload.extensions.filter(r=>e.includes(r.uuid))}}getRawPayload(){return this.rawPayload}updateApp(e){this.rawPayload=X(this.rawPayload,{app:e}),this.emitUpdate([])}updateExtensions(e){let r=this.rawPayload.extensions.map(o=>{let n=e.find(s=>s.uuid===o.uuid);if(n){if(le(n.extensionPoints)&&le(o.extensionPoints)){let s=n.extensionPoints.reduce((c,d)=>({...c,[d.target]:d}),{});o.extensionPoints=X(o.extensionPoints,n.extensionPoints,c=>c.map(d=>{let l=s[d.target];return l?X(d,l,(u,g)=>g):d}));let{extensionPoints:a,...i}=n;return X(o,i)}return X(o,n)}return o});this.rawPayload={...this.rawPayload,extensions:r},this.emitUpdate(e.map(o=>o.uuid))}async updateExtension(e,r,o,n){let s=this.rawPayload.extensions,a=s.findIndex(i=>i.uuid===e.devUUID);if(a===-1){h(b`Could not updateExtension() for extension with uuid: ${e.devUUID}`,r.stderr);return}s[a]=await re(e,o,{...this.options,currentDevelopmentPayload:n??{status:s[a]?.development.status},currentLocalizationPayload:s[a]?.localization},it(this.assetResolvers,e.devUUID)),this.rawPayload.extensions=s,this.emitUpdate([e.devUUID])}deleteExtension(e){let r=this.rawPayload.extensions.findIndex(o=>o.uuid===e.devUUID);r!==-1&&(this.rawPayload.extensions.splice(r,1),this.assetResolvers.delete(e.devUUID),this.emitUpdate([e.devUUID]))}async addExtension(e,r){this.rawPayload.extensions.push(await re(e,r,this.options,it(this.assetResolvers,e.devUUID))),this.emitUpdate([e.devUUID])}emitUpdate(e){this.emit(pe.Update,e)}};p();p();var z;(function(t){t.Update="update",t.Dispatch="dispatch",t.Log="log"})(z||(z={}));function $o(t,e){return(r,o,n)=>{r.url==="/extensions"&&(h("Upgrading HTTP request to a websocket connection",e.stdout),t.handleUpgrade(r,o,n,es(t,e)))}}function es(t,e){return r=>{h("Websocket connection successfully established",e.stdout);let o={event:"connected",data:e.payloadStore.getConnectedPayload(),version:e.manifestVersion};h(b`Sending connected payload: ${P.json(o)}`,e.stdout),r.send(JSON.stringify(o)),r.on("message",ss(t,e))}}function ts(t){try{let e=JSON.parse(t);if(!Array.isArray(e))return t;let r=e.map(o=>typeof o=="object"&&o!==null?P.json(o).output():String(o)).join(" ");return b`${r}`.value}catch(e){if(e instanceof SyntaxError)return t;throw e}}var rs={debug:t=>P.gray(t),warn:t=>P.yellow(t),error:t=>P.errorText(t)};function os({type:t,message:e}){let r=ts(e);switch(t){case"debug":case"warn":case"error":return b`${rs[t](t.toUpperCase())}: ${r}`.value;case"log":case"info":return r;default:return`${t.toUpperCase()}: ${r}`}}function ns(t,e){D({outputPrefix:t.extensionName,stripAnsi:!1},()=>{e.stdout.write(os(t))})}function ss(t,e){return r=>{let o=JSON.parse(r.toString()),{event:n,data:s}=o;if(h(b`Received websocket message with event type ${n} and data:
|
|
1
|
+
import{a as xt}from"./chunk-UOHNRH6E.js";import{a as br}from"./chunk-FDG2PMS3.js";import{a as Ur}from"./chunk-OEWEKEMD.js";import{b as Tr}from"./chunk-V7QR5DU6.js";import{a as Ar}from"./chunk-4WUX5CPT.js";import{a as _r}from"./chunk-EHXVJUFD.js";import{a as Cr}from"./chunk-T6JRM4L6.js";import{a as fr}from"./chunk-V7FUMPKJ.js";import{a as hr}from"./chunk-4VPYU2R7.js";import{a as gr}from"./chunk-42CCXYWK.js";import{a as wr,b as yr,c as vr,d as Pr}from"./chunk-5B4ZJFFV.js";import{a as Sr}from"./chunk-CMF7QBZH.js";import{a as xr}from"./chunk-FN2VTF24.js";import{a as Er}from"./chunk-BNXEW2MP.js";import{a as Rr}from"./chunk-WDZN65TW.js";import{a as uo,b as mo}from"./chunk-BY25ZK2A.js";import{a as ar}from"./chunk-7LWP4FVK.js";import{a as lr}from"./chunk-J4ZWORDQ.js";import{a as pr}from"./chunk-BB4YLNGX.js";import{a as dr}from"./chunk-A72CPM4D.js";import{g as ur}from"./chunk-KHCWSUJW.js";import{a as Ze}from"./chunk-A7LAO76V.js";import{c as Xe,m as et}from"./chunk-P6IDCK2B.js";import{a as cr}from"./chunk-ECZRDNHP.js";import{a as mr}from"./chunk-K6E6AF77.js";import{b as ir,g as Ce,j as Je}from"./chunk-FNDHJQWJ.js";import{c as kr}from"./chunk-SQK5434I.js";import{a as to,b as rt,c as te,d as ro}from"./chunk-WWWGG5QP.js";import{a as ho,f as go,g as wo,h as nt,i as yo,j as vo,k as Po,l as xo,m as Eo,n as bo,o as Uo,p as So,q as Ro,v as To,x as Ao,z as st}from"./chunk-Y2VJUEJJ.js";import{a as nr,b as sr,c as co,d as lo,e as ot,f as po,g as fo}from"./chunk-V6GRT7OB.js";import{a as $,b as Qe}from"./chunk-U36IMQ6Y.js";import{a as Xt,b as Zt,d as Ae,f as er,m as _e,n as H,s as O,u as tr,v as rr,w as or}from"./chunk-Q7BOSHWX.js";import{a as Jt}from"./chunk-IZJ2EYCZ.js";import{a as oo,b as no,c as so,d as ao,e as io}from"./chunk-KLY5BRZ2.js";import{a as Lr}from"./chunk-RB652QBR.js";import{a as eo}from"./chunk-A3DD7GW4.js";import{a as Zr}from"./chunk-ZXAEYDNN.js";import{a as Ir}from"./chunk-IQLFGDUD.js";import{a as _o}from"./chunk-PKTSTP4J.js";import{$ as Jr,C as Br,E as Kr,G as ee,N as jr,O as Yr,R as Vr,S as Qr,i as $r,j as N,k as Mr,m as Fr,p as tt,q as Or,qa as Ie,ra as Le,s as Nr,t as qr,u as Wr,v as Hr,w as Gr,wa as Xr}from"./chunk-KYHMD54O.js";import{Y as zr,e as ke,j as ce,p as Dr}from"./chunk-2CUUHTG4.js";import{c as Vt}from"./chunk-V7FAV65W.js";import{a as j}from"./chunk-33Y5T275.js";import{b as Qt,e as Te}from"./chunk-AAG2JILI.js";import{$ as $t,N as Lt,Z as X,a as ze,c as Rt,e as Tt,g as At,k as _t,m as Ct,p as kt,s as It,t as xe,ta as Mt,y as Ee}from"./chunk-MCP5CY6B.js";import{D as Ue,H as Gt,J as Se,O as Re,P as ie,Q as Ve,R as Kt,T as jt,a as St,i as Ft,j as Ot,k as Nt,l as D,m as qt,n as Ye,o as Wt,p as Ht,u as be,w as ae}from"./chunk-FGYV4PZF.js";import{a as Cn}from"./chunk-7UNQOKZW.js";import{d as Dt}from"./chunk-MW4QZJ7O.js";import{f as Ut,m as T,p as Z,u as Bt}from"./chunk-TYCR45XU.js";import{$a as vt,Ea as yt,Fb as P,Hb as b,Mb as K,Na as ge,P as Ke,Pb as h,Qb as C,Ta as W,Wa as we,cb as Pt,eb as ye,fb as k,gb as L,jb as ve,kb as Pe,ma as I,mb as Et,nb as bt,tb as je,ua as fe,wa as he}from"./chunk-CUIOWLG3.js";import{d as zt,f as Yt}from"./chunk-MBIOMVRS.js";import{a as ft}from"./chunk-UKQ7NE5V.js";import{d as S,f as Be,g as ht,i as de,k as me,o as gt,p as wt}from"./chunk-773TIA5M.js";import{a as _n}from"./chunk-M5GXA5W4.js";import{e as J,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();p();p();p();var kn=300*1e3,In='The host theme could not be created to host your theme app extension. Please try again or use the "--theme" flag to use an existing theme as the host theme.';async function Co(t,e,r=Date.now()){for(;await Ln(t,e,r););}async function Ln(t,e,r){let o=await Ce(t,e);if(!o||$n(o,r))throw new T(In);return await ie(3),o.processing}function $n(t,e){return t.processing&&Date.now()-e>=kn}var Mn="https://codeload.github.com/Shopify/dawn/zip/refs/tags/v15.0.0",Dn="https://cdn.shopify.com/theme-store/uhrdefhlndzaoyrgylhto59sx2i7.jpg",at=3,$e=class extends cr{constructor(e,r={devPreview:!1}){super(e),this.context="App Ext. Host",this.themeId=wr(e.storeFqdn),this.devPreview=r.devPreview}async findOrCreate(){let e=await this.fetch();return e??(e=this.devPreview?await this.createHostTheme():await this.create()),e}setTheme(e){yr(this.adminSession.storeFqdn,e)}removeTheme(){vr(this.adminSession.storeFqdn)}async createHostTheme(){let e={role:ir,name:this.generateThemeName(this.context),src:Mn};for(let o=0;o<at;o++){h(`Attempt ${o}/${at}: Creating theme with name "${e.name}" and role "${e.role}"`);try{let n=await Je(e,this.adminSession);if(n)return this.setTheme(n.id.toString()),h(`Waiting for theme with id "${n.id}" to be processed`),await Co(n.id,this.adminSession),n;throw new Error}catch{h(`Failed to create theme with name "${e.name}" and role "${e.role}". Retrying...`)}}h(`Theme creation failed after ${at} retries. Creating theme using fallback theme zip`);let r=await Je({...e,src:Dn},this.adminSession);if(!r)throw h("Theme creation failed. Exiting process."),new Z(`Could not create theme with name "${e.name}" and role "${e.role}"`);return r}};p();var Fn={"theme:init":hr,"theme:check":ar,"theme:console":lr,"theme:delete":pr,"theme:dev":dr,"theme:duplicate":mr,"theme:info":fr,"theme:language-server":gr,"theme:list":Pr,"theme:metafields:pull":Sr,"theme:open":xr,"theme:package":Er,"theme:profile":br,"theme:publish":Ur,"theme:preview":Rr,"theme:pull":Tr,"theme:push":Ar,"theme:rename":_r,"theme:share":Cr},Ca=Fn;async function ko(t){let{remoteApp:e,localApp:r}=t,n=r.allExtensions.filter(U=>U.isThemeExtension);if(n.length===0)return;let a=n[0].directory,i=t.themeExtensionPort??9293,[c,d]=await Promise.all([Lt(t.storeFqdn),qn(e)]),l=c.storeFqdn,[u,g]=await Promise.all([et(c),Xe(c)]),w=g?await Ze(t.storePassword,l,u):void 0,m=await Nn(c,t.theme),f=m.id.toString();return be({headline:"The theme app extension development server is ready.",orderedNextSteps:!0,nextSteps:[[{link:{label:"Install your app in your development store",url:d}}],[{link:{label:"Setup your theme app extension in the host theme",url:`https://${l}/admin/themes/${f}/editor`}}],["Preview your theme app extension at",{link:{label:`http://127.0.0.1:${i}`,url:`http://127.0.0.1:${i}`}}]]}),{type:"theme-app-extensions",prefix:"theme-extensions",function:On,options:{theme:m,adminSession:c,storefrontPassword:w,crawlerSignatureHeaders:u,themeExtensionDirectory:a,themeExtensionPort:i}}}var On=async(t,{theme:e,adminSession:r,storefrontPassword:o,crawlerSignatureHeaders:n,themeExtensionDirectory:s,themeExtensionPort:a})=>{await(await ur(e,{adminSession:r,storefrontPassword:o,crawlerSignatureHeaders:n,themeExtensionDirectory:s,themeExtensionPort:a})).start()};async function Nn(t,e){let r;if(e)h(`Fetching theme with provided id ${e}`),r=await Ce(parseInt(e,10),t);else{let o=new $e(t,{devPreview:!0});await Ue([{title:"Configuring host theme for theme app extension",task:async()=>{h("Finding or creating host theme for theme app extensions"),r=await o.findOrCreate()}}])}if(!r)throw new T("Could not find or create a host theme for theme app extensions");return r}async function qn(t){return t.developerPlatformClient?.clientName===zr.AppManagement?`https://${await xe()}/?organization_id=${t.organizationId}&no_redirect=true&redirect=/oauth/redirect_from_developer_dashboard?client_id%3D${t.apiKey}`:`https://${await It()}/${t.organizationId}/apps/${t.id}/test`}p();p();p();p();p();p();async function Wn(t){let e=S(t.directory,"locales");return we([S(e,"*.json")])}async function Io(t,e){let r=await Wn(t);if(!r.length)return{localization:void 0,status:""};let o=e.currentLocalizationPayload??{defaultLocale:"en",translations:{},lastUpdated:0},n="success";try{await Promise.all(r.map(async s=>{let[a,...i]=s.split("/").pop().split(".");if(a)return i[0]==="default"&&(o.defaultLocale=a),Hn(a,s,o,t,e)})),o.lastUpdated=Date.now(),h(`Parsed locales for extension ${t.handle} at ${t.directory}`,e.stdout)}catch{n="error"}return{localization:o,status:n}}async function Hn(t,e,r,o,n){let s;try{s=await I(e),r.translations[t]=JSON.parse(s)}catch(a){let i=`Error parsing ${t} locale for ${o.handle} at ${e}: ${a.message}`;throw C(i,n.stderr),new Bt.ExtendableError(i)}}p();function Me(t,e){switch(t){case"checkout_ui_extension":return{url:e.checkoutCartUrl};case"checkout_post_purchase":return{url:e.checkoutCartUrl};case"product_subscription":return{url:e.subscriptionProductUrl??""};default:return{url:""}}}async function re(t,e,r,o){return D({outputPrefix:t.outputPrefix},async()=>{o?.clear();let n=t.getOutputPathForDirectory(e),s=`${r.url}/extensions/${t.devUUID}`,{localization:a,status:i}=await Io(t,r),c=await Mr(t),d=t.outputRelativePath?de(n):n,l=await Gn(t,s,d,o),u=null;return"metafields"in t.configuration&&Array.isArray(t.configuration.metafields)&&t.configuration.metafields.length>0&&(u=t.configuration.metafields),{assets:{main:le(l)&&l[0]?.assets?.main?l[0].assets.main:{name:"main",url:`${s}/assets/${t.outputFileName}`,lastUpdated:await ge(n)??0}},supportedFeatures:{runsOffline:t.configuration.supported_features?.runs_offline??!1},capabilities:{blockProgress:t.configuration.capabilities?.block_progress??!1,networkAccess:t.configuration.capabilities?.network_access??!1,apiAccess:t.configuration.capabilities?.api_access??!1,collectBuyerConsent:{smsMarketing:t.configuration.capabilities?.collect_buyer_consent?.sms_marketing??!1,customerPrivacy:t.configuration.capabilities?.collect_buyer_consent?.customer_privacy??!1},iframe:{sources:t.configuration.capabilities?.iframe?.sources??[]}},development:{...r.currentDevelopmentPayload,resource:Me(t.type,r),root:{url:s},hidden:r.currentDevelopmentPayload?.hidden??!1,localizationStatus:i,status:r.currentDevelopmentPayload?.status??"success",...r.currentDevelopmentPayload??{status:"success"}},extensionPoints:l,localization:a??null,metafields:u,type:t.type,externalType:t.externalType,uuid:t.devUUID,surface:t.surface,version:c?.version,title:t.name,handle:t.handle,name:t.name,description:t.configuration.description,apiVersion:t.configuration.api_version,approvalScopes:r.grantedScopes,settings:t.configuration.settings}})}async function Gn(t,e,r,o){let n=t.configuration,s=n.extension_points??n.targeting;if(t.type==="checkout_post_purchase"&&(s=[{target:"purchase.post.render"}]),le(s)){let a=await Bn(r);return Promise.all(s.map(async i=>{let{target:c,resource:d}=i,l={...i,surface:Le(c),root:{url:`${e}/${c}`},resource:d||{url:""}},u=a?.[c];if(!u)return l;let w=await Vn(u,{target:c,extensionPoint:i,url:e,extension:t,buildDirectory:r,resolver:o});return{...l,...w}}))}return s}async function Bn(t){try{let e=S(t,"manifest.json"),r=await I(e);return JSON.parse(r)}catch(e){if(e instanceof SyntaxError)throw new Error(`Invalid manifest.json in ${t}: ${e.message}`);return null}}async function Kn({target:t,extensionPoint:e,url:r,extension:o,resolver:n},s,a){let i=`${t}/${s}`,c=e[s];if(typeof c=="string"){let w=await De(s,i,typeof a=="string"?a:c,r,o,n,typeof a=="string"?c:void 0);return{assets:{[w.name]:w}}}let l=e.build_manifest?.assets?.[s];if(l?.filepath){let u=await De(s,i,l.filepath,r,o,n,l.module);return{assets:{[u.name]:u}}}return{}}async function jn({target:t,url:e,buildDirectory:r,resolver:o},n,s){if(s.length===0)return{};for(let i of s)o?.set(`${t}/${i}`,i);let a=await Promise.all(s.map(async i=>await ge(S(r,i))??0));return{assets:{[n]:{name:n,url:`${e}/assets/${t}/`,lastUpdated:Math.max(...a)}}}}async function zn({target:t,extensionPoint:e,url:r,extension:o,resolver:n},s){return e.intents?{intents:await Promise.all(e.intents.map(async(i,c)=>{let d=i.schema,l=s[c]?.schema,u=typeof l=="string"?l:d,g=typeof l=="string"?d:void 0;return{...i,schema:await De("schema",`${t}/intents/${c}/schema`,u,r,o,n,g)}}))}:{}}async function Yn({target:t,url:e,extension:r,resolver:o},n,s){let a=await De(n,`${t}/${n}`,s,e,r,o);return{assets:{[a.name]:a}}}async function Vn(t,e){return(await Promise.all(Object.keys(t).map(async o=>{let n=t[o];return Qn(o,n)?zn(e,n):Jn(o,n)?Yn(e,o,n):Xn(o,n)?jn(e,o,n):Kn(e,o,n)}))).reduce((o,n)=>({...o,...n,assets:{...o.assets,...n.assets}}),{})}function le(t){return Array.isArray(t)&&t.every(e=>typeof e=="object")}async function De(t,e,r,o,n,s,a){let i=`${e}${me(r)}`;return s?.set(i,r),{name:t,url:`${o}/assets/${i}`,lastUpdated:await ge(S(n.directory,a??r))??0}}function Qn(t,e){return t==="intents"&&Array.isArray(e)}function Jn(t,e){return(t==="main"||t==="should_render")&&typeof e=="string"}function Xn(t,e){return t==="assets"&&Array.isArray(e)&&e.every(r=>typeof r=="string")}import{EventEmitter as Zn}from"events";var pe;(function(t){t.Update="PayloadUpdatedEvent:UPDATE"})(pe||(pe={}));async function Lo(t,e,r){return{app:{title:t.appName,apiKey:t.apiKey,url:co(t.storeFqdn,t.apiKey),mobileUrl:po(t.storeFqdn,t.apiKey)},appId:t.id,version:t.manifestVersion,root:{url:new URL("/extensions",t.url).toString()},socket:{url:t.websocketURL},devConsole:{url:new URL("/extensions/dev-console",t.url).toString()},store:t.storeFqdn,extensions:await Promise.all(t.extensions.filter(n=>n.isPreviewable).map(n=>re(n,e,t,r&&it(r,n.devUUID))))}}function it(t,e){let r=t.get(e);return r||(r=new Map,t.set(e,r)),r}var Fe=class extends Zn{constructor(e,r,o=new Map){super(),this.rawPayload=e,this.options=r,this.assetResolvers=o}getAssetResolver(e){return this.assetResolvers.get(e)}getConnectedPayload(){let e=this.getRawPayload();return{app:e.app,appId:e.appId,store:e.store,extensions:e.extensions}}getRawPayloadFilteredByExtensionIds(e){return{...this.rawPayload,extensions:this.rawPayload.extensions.filter(r=>e.includes(r.uuid))}}getRawPayload(){return this.rawPayload}updateApp(e){this.rawPayload=X(this.rawPayload,{app:e}),this.emitUpdate([])}updateExtensions(e){let r=this.rawPayload.extensions.map(o=>{let n=e.find(s=>s.uuid===o.uuid);if(n){if(le(n.extensionPoints)&&le(o.extensionPoints)){let s=n.extensionPoints.reduce((c,d)=>({...c,[d.target]:d}),{});o.extensionPoints=X(o.extensionPoints,n.extensionPoints,c=>c.map(d=>{let l=s[d.target];return l?X(d,l,(u,g)=>g):d}));let{extensionPoints:a,...i}=n;return X(o,i)}return X(o,n)}return o});this.rawPayload={...this.rawPayload,extensions:r},this.emitUpdate(e.map(o=>o.uuid))}async updateExtension(e,r,o,n){let s=this.rawPayload.extensions,a=s.findIndex(i=>i.uuid===e.devUUID);if(a===-1){h(b`Could not updateExtension() for extension with uuid: ${e.devUUID}`,r.stderr);return}s[a]=await re(e,o,{...this.options,currentDevelopmentPayload:n??{status:s[a]?.development.status},currentLocalizationPayload:s[a]?.localization},it(this.assetResolvers,e.devUUID)),this.rawPayload.extensions=s,this.emitUpdate([e.devUUID])}deleteExtension(e){let r=this.rawPayload.extensions.findIndex(o=>o.uuid===e.devUUID);r!==-1&&(this.rawPayload.extensions.splice(r,1),this.assetResolvers.delete(e.devUUID),this.emitUpdate([e.devUUID]))}async addExtension(e,r){this.rawPayload.extensions.push(await re(e,r,this.options,it(this.assetResolvers,e.devUUID))),this.emitUpdate([e.devUUID])}emitUpdate(e){this.emit(pe.Update,e)}};p();p();var z;(function(t){t.Update="update",t.Dispatch="dispatch",t.Log="log"})(z||(z={}));function $o(t,e){return(r,o,n)=>{r.url==="/extensions"&&(h("Upgrading HTTP request to a websocket connection",e.stdout),t.handleUpgrade(r,o,n,es(t,e)))}}function es(t,e){return r=>{h("Websocket connection successfully established",e.stdout);let o={event:"connected",data:e.payloadStore.getConnectedPayload(),version:e.manifestVersion};h(b`Sending connected payload: ${P.json(o)}`,e.stdout),r.send(JSON.stringify(o)),r.on("message",ss(t,e))}}function ts(t){try{let e=JSON.parse(t);if(!Array.isArray(e))return t;let r=e.map(o=>typeof o=="object"&&o!==null?P.json(o).output():String(o)).join(" ");return b`${r}`.value}catch(e){if(e instanceof SyntaxError)return t;throw e}}var rs={debug:t=>P.gray(t),warn:t=>P.yellow(t),error:t=>P.errorText(t)};function os({type:t,message:e}){let r=ts(e);switch(t){case"debug":case"warn":case"error":return b`${rs[t](t.toUpperCase())}: ${r}`.value;case"log":case"info":return r;default:return`${t.toUpperCase()}: ${r}`}}function ns(t,e){D({outputPrefix:t.extensionName,stripAnsi:!1},()=>{e.stdout.write(os(t))})}function ss(t,e){return r=>{let o=JSON.parse(r.toString()),{event:n,data:s}=o;if(h(b`Received websocket message with event type ${n} and data:
|
|
2
2
|
${P.json(s)}
|
|
3
3
|
`,e.stdout),n===z.Update){let a=e.payloadStore.getRawPayload().app.apiKey,i=s.app?.apiKey;if(s.app){if(a!==i)return;e.payloadStore.updateApp(s.app)}s.extensions&&e.payloadStore.updateExtensions(s.extensions)}else if(n===z.Dispatch){let a=as(o,e);Do(t,a,e)}else n===z.Log&&ns(s,e)}}function Mo(t,e){return r=>{let o={event:z.Update,version:e.manifestVersion,data:{...e.payloadStore.getRawPayloadFilteredByExtensionIds(r)}};h(b`Sending websocket update event to the websocket clients:
|
|
4
4
|
${P.json(o)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ba as a,i}from"./chunk-
|
|
1
|
+
import{ba as a,i}from"./chunk-KYHMD54O.js";import{Fb as e,Hb as r}from"./chunk-CUIOWLG3.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();async function f(n,t,o){return c(n,t,o,"text")}async function c(n,t,o,S){return await a(t,o.source),S==="json"?r`${e.json({SHOPIFY_API_KEY:t.apiKey,SHOPIFY_API_SECRET:t.apiSecretKeys[0]?.secret,SCOPES:i(n.configuration)})}`:r`
|
|
2
2
|
${e.green("SHOPIFY_API_KEY")}=${t.apiKey}
|
|
3
3
|
${e.green("SHOPIFY_API_SECRET")}=${t.apiSecretKeys[0]?.secret??""}
|
|
4
4
|
${e.green("SCOPES")}=${i(n.configuration)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Ce}from"./chunk-
|
|
1
|
+
import{c as Ce}from"./chunk-JQNR75BG.js";import{a as Le}from"./chunk-WW7TENNA.js";import{$ as xe,H as Ie,I as we,L as G,P as Y,ba as w,ca as Re,f as be,ga as h,ha as ze,i as Fe,ia as O,m as _e,n as Ae,na as x,oa as Ue,pa as M,q as o,u as _,v as Ve,w as K,y as I}from"./chunk-MCP5CY6B.js";import{b as qe}from"./chunk-ZDF5N422.js";import{w as Z}from"./chunk-34AF5YGB.js";import{B as Ee}from"./chunk-FGYV4PZF.js";import{b as De}from"./chunk-4QJM243J.js";import{b as Te}from"./chunk-7QMA6EVS.js";import{a as ke}from"./chunk-HIIYIR25.js";import{i as he,m as c,p as g}from"./chunk-TYCR45XU.js";import{Fb as Me,Hb as Pe,N as T,Pb as A,T as fe,Ta as Se,Wa as ye,fa as Ne,ma as ge}from"./chunk-CUIOWLG3.js";import{u as W}from"./chunk-A4SBXDZB.js";import{f as Oe}from"./chunk-MBIOMVRS.js";import{d as ve,j as E}from"./chunk-773TIA5M.js";import{e as U,g as s}from"./chunk-VKWPEFWQ.js";s();function R(e,{httpsOnly:n=!1,message:i="Invalid URL"}={}){return e.refine(a=>$e(a,n),{message:i}).refine(a=>!a.includes(`
|
|
2
2
|
`),{message:i})}function ba(e,{message:n="URL must be HTTPS URL or start with /"}={}){return e.refine(i=>i.startsWith("/")||$e(i,!0),{message:n})}function $e(e,n){try{let i=new URL(e);return n?i.protocol==="https:":["http:","https:"].includes(i.protocol)}catch{return!1}}function Fa(e){return typeof e=="string"&&!e.startsWith("/")?`/${e}`:e}var li=30;function _a(e){return e.length<=li}s();s();s();function Be(e){return he`
|
|
3
3
|
query OrganizationBetaFlags($organizationId: OrganizationID!) {
|
|
4
4
|
organization(organizationId: $organizationId) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as S,c as A,d as R}from"./chunk-
|
|
1
|
+
import{b as S,c as A,d as R}from"./chunk-ZKOUILK2.js";import{a as N}from"./chunk-Y3IZPAA6.js";import{a as P}from"./chunk-IQLFGDUD.js";import{b as y,c as x,xa as T}from"./chunk-KYHMD54O.js";import{b,c as g}from"./chunk-AAG2JILI.js";import{u as h}from"./chunk-FGYV4PZF.js";import{Fb as l,Hb as m,Lb as d}from"./chunk-CUIOWLG3.js";import{d as f}from"./chunk-773TIA5M.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();function C(n,t){let o={};return n.targeting?.forEach(e=>{e.target&&(o[e.target]={...e.input_query&&{inputQueryPath:`${t}/${e.input_query}`},...e.export&&{export:e.export}})}),o}function I(n,t,o,e,i,r){return JSON.stringify({handle:t.handle,name:n.name,apiVersion:t.api_version,targeting:o,schemaPath:r,wasmPath:i,functionRunnerPath:e},null,2)}function j(n,t){return{title:`CONFIGURATION
|
|
2
2
|
`,body:{tabularData:[["Handle",n.handle??"N/A"],["Name",t??"N/A"],["API Version",n.api_version??"N/A"]],firstColumnSubdued:!0}}}function O(n){if(Object.keys(n).length===0)return null;let t=[];return Object.entries(n).forEach(([o,e])=>{t.push([m`${l.cyan(o)}`.value,""]),e.inputQueryPath&&t.push([{subdued:" Input Query Path"},{filePath:e.inputQueryPath}]),e.export&&t.push([{subdued:" Export"},e.export])}),{title:`
|
|
3
3
|
TARGETING
|
|
4
4
|
`,body:{tabularData:t}}}function v(n,t){return{title:`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as l}from"./chunk-
|
|
1
|
+
import{b as l}from"./chunk-AAG2JILI.js";import{b as u}from"./chunk-ZGI4ZRVE.js";import{n as f}from"./chunk-MCP5CY6B.js";import{m as n}from"./chunk-TYCR45XU.js";import{Lb as m}from"./chunk-CUIOWLG3.js";import{a as g}from"./chunk-M5GXA5W4.js";import{e as v,g as o}from"./chunk-VKWPEFWQ.js";o();o();var S="https://shopify.dev/assistant/search",w="X-Shopify-Surface",A="cli";async function y(s,e,p){let i=new URLSearchParams({query:s});e&&i.append("api_name",e),p&&i.append("api_version",p);let r;try{r=await f(`${S}?${i.toString()}`,{headers:{Accept:"application/json",[w]:A}})}catch{throw new n("Could not reach shopify.dev to run the search.","Check your network connection and try again.")}let h=await r.text();if(!r.ok){let d=`${r.status} ${r.statusText}`;try{let t=JSON.parse(h);t?.error&&(d=t.error)}catch(t){if(!(t instanceof SyntaxError))throw t}throw new n(`Search failed: ${d}`)}m(h)}var a=v(g(),1),c=class s extends u{static{this.description="Query the shopify.dev vector store and print the most relevant documentation chunks as JSON. Best for programmatic discovery \u2014 surfacing the relevant pieces of documentation for a topic, rather than retrieving a whole document. To download a full document verbatim, use `doc fetch`."}static{this.examples=[`# search shopify.dev for a topic
|
|
2
2
|
shopify doc search --query "subscribe to webhooks"
|
|
3
3
|
|
|
4
4
|
# narrow the search to a specific API and version
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as X,b as H,c as K}from"./chunk-
|
|
1
|
+
import{a as X,b as H,c as K}from"./chunk-5ACGB45Y.js";import{a as M,c as P,e as h,f as T,h as q,i as V,m as U,p as _,q as F,r as j,s as z,u as Q}from"./chunk-MGTKKOH3.js";import{a as W}from"./chunk-ZXAEYDNN.js";import{a as G,b as J}from"./chunk-IQLFGDUD.js";import{b as L}from"./chunk-AAG2JILI.js";import{E as R,a as D,u as v,v as d,w as E,x as A}from"./chunk-FGYV4PZF.js";import{m as f,p as x}from"./chunk-TYCR45XU.js";import{Fb as r,Hb as s,Lb as N,Ta as $,ma as S,ua as I}from"./chunk-CUIOWLG3.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();m();async function oe(t,e){if(t)return t.join(`
|
|
2
2
|
`);if(e){if(!await $(e))throw new f(s`Variable file not found at ${r.path(e)}. Please check the path and try again.`);return S(e,{encoding:"utf8"})}else return}async function Z(t){let{organization:e,remoteApp:i,store:n,query:a,variables:p,variableFile:k,outputFile:B,watch:ee=!1,version:te}=t,{adminSession:c,version:w}=await R({title:s`Authenticating`,task:async()=>{let o=await X(i,n.shopDomain),u=await T({adminSession:o,userSpecifiedVersion:te,minimumDefaultVersion:M});return{adminSession:o,version:u}},renderOptions:{stdout:process.stderr}}),C=await oe(p,k);ae(a,C),K(a,n),v({headline:"Starting bulk operation.",body:[{list:{items:H({organization:e,remoteApp:i,storeFqdn:n.shopDomain,version:w})}}]});let y=h(a)?await V({adminSession:c,query:a,variablesJsonl:C,version:w}):await q({adminSession:c,query:a,version:w});if(y?.userErrors?.length){A({headline:"Error creating bulk operation.",body:{list:{items:y.userErrors.map(o=>o.field?`${o.field.join(".")}: ${o.message}`:o.message)}}});return}let g=y?.bulkOperation;if(g)if(ee){let o=new D,u=await F(c,g.id,o.signal,()=>o.abort());o.signal.aborted?v({headline:`Bulk operation ${u.id} is still running in the background.`,body:b(u.id)}):await Y(u,B)}else{let o=await _(c,g.id);["FAILED","CANCELED","EXPIRED"].includes(o.status)?await Y(o,B):d({headline:"Bulk operation is running.",body:b(o.id),customSections:[{body:[{list:{items:[s`ID: ${r.cyan(o.id)}`.value]}}]}]})}else throw E({headline:"Bulk operation not created successfully.",body:"This is an unexpected error. Please try again later."}),new x("Bulk operation response returned null with no error message.")}async function Y(t,e){let i=U(t).value,a=[{body:[{list:{items:[s`ID: ${r.cyan(t.id)}`.value,s`Status: ${r.yellow(t.status)}`.value,s`Created at: ${r.gray(String(t.createdAt))}`.value,...t.completedAt?[s`Completed at: ${r.gray(String(t.completedAt))}`.value]:[]]}}]}];switch(t.status){case"CREATED":d({headline:"Bulk operation started.",body:b(t.id),customSections:a});break;case"RUNNING":d({headline:"Bulk operation is running.",body:b(t.id),customSections:a});break;case"COMPLETED":if(t.url){let p=await j(t.url),k=z(p);e?await I(e,p):N(p),k?E({headline:"Bulk operation completed with errors.",body:e?`Results written to ${e}. Check file for error details.`:"Check results for error details.",customSections:a}):d({headline:i,body:e?[`Results written to ${e}`]:void 0,customSections:a})}else d({headline:i,customSections:a});break;case"CANCELED":case"CANCELING":case"EXPIRED":case"FAILED":A({headline:i,customSections:a});break}}function ae(t,e){if(h(t)&&!e)throw new f(s`Bulk mutations require variables. Provide a JSONL file with ${r.yellow("--variable-file")} or individual JSON objects with ${r.yellow("--variables")}.`);if(!h(t)&&e)throw new f(s`The ${r.yellow("--variables")} and ${r.yellow("--variable-file")} flags can only be used with mutations, not queries.`)}function b(t){return[`Monitor its progress with:
|
|
3
3
|
`,{command:`shopify app bulk status --id=${P(t)}`}]}var O,l=class extends W{async run(){let{flags:e}=await this.parse(O),{query:i,appContextResult:n,store:a}=await Q(e);return await Z({organization:n.organization,remoteApp:n.remoteApp,store:a,query:i,variables:e.variables,variableFile:e["variable-file"],watch:e.watch??!1,outputFile:e["output-file"],...e.version&&{version:e.version}}),{app:n.app}}};O=l;l.summary="Execute bulk operations.";l.descriptionWithMarkdown=`Executes an Admin API GraphQL query or mutation on the specified store, as a bulk operation. Mutations are only allowed on dev stores.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-MW4QZJ7O.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var t=e({cmd_app_warning_api_key_deprecation_displayed:!1}),i=t;export{i as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{O as v,a as O}from"./chunk-
|
|
1
|
+
import{O as v,a as O}from"./chunk-FGYV4PZF.js";import{j as W,l as B}from"./chunk-4QJM243J.js";import{f as h}from"./chunk-MW4QZJ7O.js";import{m as u,p as T}from"./chunk-TYCR45XU.js";import{$a as S,Bb as L,Fb as c,Hb as s,Pb as d,Ta as w,Ua as i,Wa as D,ma as x,ua as b}from"./chunk-CUIOWLG3.js";import{d as o,i as k}from"./chunk-773TIA5M.js";import{a as I}from"./chunk-CX5CC6P5.js";import{e as R,g as f}from"./chunk-VKWPEFWQ.js";f();f();function M(e,n){try{return JSON.parse(e)}catch(a){let r=a instanceof Error?a.message:String(a),t=n?` from ${n}`:"";throw new u(`Failed to parse JSON${t}.
|
|
2
2
|
${r}`)}}var l=R(I(),1),j="yarn.lock",J="package-lock.json",$="pnpm-lock.yaml",C="bun.lockb",_="bun.lock",V="pnpm-workspace.yaml",ke=[j,$,J,C,_],we={yarn:[j],npm:[J],pnpm:[$],bun:[C,_],homebrew:[],unknown:[]},E=["yarn","npm","pnpm","bun","homebrew","unknown"],P=class extends u{constructor(){super("Unknown package manager")}},y=class extends u{constructor(n){super(s`The directory ${c.path(n)} doesn't have a package.json.`)}},N=class extends T{constructor(n){super(s`Couldn't find a a package.json traversing directories from ${c.path(n)}`)}};function A(e=process.env){let n=e.npm_config_user_agent;return["yarn","pnpm","bun","npm"].find(a=>n?.includes(a))??"unknown"}function U(e){return i(o(e,C))||i(o(e,_))}function G(e){switch(e){case"yarn":case"npm":case"pnpm":case"bun":return e;case"homebrew":case"unknown":return"npm"}}function K(e,n,...a){switch(e){case"npm":return{command:"npm",args:["exec","--",n,...a]};case"pnpm":return{command:"pnpm",args:["exec",n,...a]};case"yarn":return{command:"yarn",args:["run",n,...a]};case"bun":return{command:"bun",args:["x",n,...a]}}}async function F(e){let n=e;for(d(s`Looking for a lockfile in ${c.path(n)}...`);;){if(i(o(n,j)))return"yarn";if(i(o(n,$))||i(o(n,V)))return"pnpm";if(U(n))return"bun";if(i(o(n,J)))return"npm";let r=k(n);if(r===n)break;n=r}let a=A();return a!=="unknown"?a:"npm"}async function he(e,n,...a){let r=G(await F(e));return K(r,n,...a)}async function ye(e){let n=await D(o(e.directory,"**/package.json"),{ignore:[o(e.directory,"node_modules/**/package.json")],cwd:e.directory,onlyFiles:!0,deep:e.deep}),a=new O;try{await Promise.all(n.map(async r=>{let t=k(r);await z({directory:t,packageManager:e.packageManager,stdout:void 0,stderr:void 0,signal:a.signal,args:[]})}))}catch(r){throw a.abort(),r}}async function z(e){let n={cwd:e.directory,stdin:void 0,stdout:e.stdout,stderr:e.stderr,signal:e.signal},a=["install"];e.args&&(a=a.concat(e.args)),await h("cmd_all_timing_network_ms")(async()=>{await v(e.packageManager,a,n)})}async function xe(e){return(await g(e)).name}async function be(e){return(await g(e)).version}async function H(e){let n=await g(e),a=n.dependencies??{},r=n.devDependencies??{};return{...a,...r}}async function ve(e){let n=o(e,"package.json"),a=await g(n),r=o(e,V);return!!a.workspaces||w(r)}async function Me(e,n,{cacheExpiryInHours:a=0}={}){let r=async()=>(d(s`Checking if there's a version of ${e} newer than ${n}`),ne(e)),t=`npm-package-${e}`,p;try{p=await W(t,r,a*3600*1e3)}catch{return}if(p&&new l.SemVer(n).compare(p)<0)return p}function Pe(e,n){let a=`npm-package-${e}`,r=B(a)?.value;if(r&&new l.SemVer(n).compare(r)<0)return r}function Ne(e,n){return(0,l.satisfies)(e,n)}async function g(e){if(!await w(e))throw new y(k(e));return M(await x(e),e)}async function Y(e,n){d(s`Adding the following dependencies if needed:
|
|
3
3
|
${c.json(e)}
|
|
4
4
|
With options:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
1
|
+
import{a as s}from"./chunk-ECZRDNHP.js";import{g as r,h,i as n}from"./chunk-LLNBH7KL.js";import{m}from"./chunk-TYCR45XU.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var c=t=>`Development theme #${t} could not be found. Please create a new development theme.`,i="No development theme ID has been set. Please create a development theme first.",p=class extends s{constructor(e){super(e),this.context="Development",this.themeId=r()}async find(){let e=await this.fetch();if(!e)throw new m(this.themeId?c(this.themeId):i);return e}setTheme(e){h(e)}removeTheme(){n()}};export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as v}from"./chunk-
|
|
1
|
+
import{a as v}from"./chunk-ZXAEYDNN.js";import{a as k}from"./chunk-IQLFGDUD.js";import{sa as w,ua as A,va as P,wa as C}from"./chunk-KYHMD54O.js";import{b as y}from"./chunk-AAG2JILI.js";import{v as u}from"./chunk-FGYV4PZF.js";import{m as h}from"./chunk-TYCR45XU.js";import{j as p}from"./chunk-773TIA5M.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();async function f(l){let{directory:o,configName:e,configPath:a,configuration:n,remoteApp:i}=l;if(!n.client_id)throw new h("The selected configuration is not linked to a remote app.","Run `shopify app config link` first to link this configuration to a Shopify app.");let c=i.developerPlatformClient,m=await w({developerPlatformClient:c,app:i}),d=i.flags,b={directory:o,configName:e,developerPlatformClient:c,apiKey:n.client_id},g=await A(b,m,d,i.apiKey),x=p(a),F=await P({remoteApp:i,developerPlatformClient:c,specifications:m,flags:d,configFileName:x,appDirectory:g.appDirectory??o,localAppOptions:g});return{configPath:a,configuration:F,remoteApp:i}}var s,t=class extends v{async run(){let{flags:o}=await this.parse(s),{app:e,remoteApp:a}=await C({directory:o.path,clientId:o["client-id"],forceRelink:o.reset,userProvidedConfigName:o.config}),{configuration:n,configPath:i}=await f({directory:o.path,configName:o.config,configPath:e.configPath,configuration:e.configuration,remoteApp:a});return u({headline:`Pulled latest configuration for "${n.name}"`,body:`Updated ${p(i)} with the remote data.`}),{app:e}}};s=t;t.summary="Refresh an already-linked app configuration without prompts.";t.descriptionWithMarkdown="Pulls the latest configuration from the already-linked Shopify app and updates the selected configuration file.\n\nThis command reuses the existing linked app and organization and skips all interactive prompts. Use `--config` to target a specific configuration file, or omit it to use the default one.";t.description=s.descriptionWithoutMarkdown();t.flags={...y,...k};var z=t;export{z as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as R}from"./chunk-VJEKDBGZ.js";import{e as l}from"./chunk-
|
|
1
|
+
import{a as R}from"./chunk-VJEKDBGZ.js";import{e as l}from"./chunk-FGYV4PZF.js";import{f as I}from"./chunk-MW4QZJ7O.js";import{m as n}from"./chunk-TYCR45XU.js";import{Ea as b,Fb as a,Hb as s,Pb as f,Ta as G,Wa as C}from"./chunk-CUIOWLG3.js";import{a as k,q as w}from"./chunk-MBIOMVRS.js";import{q as g}from"./chunk-773TIA5M.js";import{e as D,g as $}from"./chunk-VKWPEFWQ.js";$();var A=D(R());async function r(t,e){try{return(await l("git",t,{cwd:e})).stdout}catch(o){if(o instanceof Error){let i=new n(o.message);throw i.stack=o.stack,"exitCode"in o&&Object.assign(i,{exitCode:o.exitCode}),i}throw o}}async function K(t,e="main"){f(s`Initializing git repository at ${a.path(t)}...`),await h(),await r(["init"],t),await r(["checkout","-b",e],t)}async function Q(t,e){try{return(await r(["check-ignore",...e],t)).split(`
|
|
2
2
|
`).filter(Boolean)}catch(o){if(o instanceof n&&"exitCode"in o&&o.exitCode===1)return[];throw o}}async function V(t){return I("cmd_all_timing_network_ms")(async()=>{let{repoUrl:e,destination:o,shallow:i,latestTag:m}=t;if(f(s`Git-cloning repository ${e} into ${a.path(o)}...`),await h(),await G(o)){if(!await b(o))throw new n(s`Can't clone to ${a.path(o)}`,"The path exists but isn't a directory.");if((await C(["*",".*"],{cwd:o,deep:1,onlyFiles:!1})).length>0)throw new n(s`Directory ${a.path(o)} already exists and is not empty`,s`Choose a different name or remove the existing directory first.`)}let[v,d]=e.split("#");if(d&&m)throw new n("Error cloning the repository. Git can't clone the latest release with a 'branch'.");if(i&&m)throw new n("Error cloning the repository. Git can't clone the latest release with the 'shallow' property.");let u=["clone","--recurse-submodules"];d&&u.push("--branch",d),i&&u.push("--depth","1"),k()||u.push("-c","core.askpass=true"),u.push(v,o);try{if(await l("git",u),m){let c=await S(o,e);await r(["checkout",c],o)}}catch(c){if(c instanceof n)throw c;if(c instanceof Error){let x=new n(c.message);throw x.stack=c.stack,x}throw c}})}async function S(t,e){let o=await F(t);if(!o)throw new n(`Couldn't obtain the most recent tag of the repository ${e}`);return o}async function X(t){let o=await r(["log","-1","--format=%H%x00%ai%x00%s%x00%D%x00%b%x00%an%x00%ae"],t);if(!o.trim())throw new n("Must have at least one commit to run command",s`Run ${a.genericShellCommand("git commit -m 'Initial commit'")} to create your first commit.`);let i=o.split("\0");return{hash:i[0],date:i[1],message:i[2],refs:i[3],body:i[4],author_name:i[5],author_email:i[6]}}async function Y(t){await r(["add","--all"],t)}async function Z(t,e){let o=["commit","-m",t];return e?.author&&o.push("--author",e.author),await r(o,e?.directory),(await r(["rev-parse","HEAD"],e?.directory)).trim()}async function h(){if(!await w())throw new n("Git is necessary in the environment to continue",s`Install ${a.link("git","https://git-scm.com/book/en/v2/Getting-Started-Installing-Git")}`)}var p=class extends n{};async function N(t){if(await h(),!await E(t))throw new p(`${a.path(t??g())} is not a Git directory`)}async function tt(t){return await w()?E(t):!1}async function E(t){try{return await l("git",["rev-parse","--git-dir"],{cwd:t}),!0}catch(e){if(e instanceof Error&&"exitCode"in e&&e.exitCode===128)return!1;throw e}}var y=class extends n{};async function et(t){if(!await T(t))throw new y(`${a.path(t??g())} is not a clean Git directory`)}async function T(t){return(await r(["status","--porcelain"],t)).trim()===""}async function F(t){try{return(await r(["describe","--tags","--abbrev=0"],t)).trim()||void 0}catch(e){if(e instanceof n&&"exitCode"in e&&e.exitCode===128)return;throw e}}async function ot(t,e="origin"){if(f(s`Removing git remote ${e} from ${a.path(t)}...`),await h(),!(await r(["remote"],t)).split(`
|
|
3
3
|
`).filter(Boolean).includes(e)){f(s`Remote ${e} does not exist, no action needed`);return}await r(["remote","remove",e],t)}export{K as a,Q as b,V as c,X as d,Y as e,Z as f,N as g,tt as h,y as i,et as j,T as k,ot as l};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as r}from"./chunk-
|
|
1
|
+
import{b as r}from"./chunk-CLJWB3TR.js";import{b as a}from"./chunk-ZGI4ZRVE.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var i=class extends a{static{this.summary="Upgrades Shopify CLI."}static{this.descriptionWithMarkdown="Upgrades Shopify CLI using your package manager."}static{this.description=this.descriptionWithoutMarkdown()}async run(){await r()}};export{i as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{v as vy}from"./chunk-5VKFEYZK.js";import{A as dy,B as ii,C as hy,D as Fn,E as uy,F as py,G as za,H as my,I as Oa,J as fy,K as rs,L as kT,M as gy,N as Aa,O as is,P as os,Q as Pn,R as by,S as sn,T as La,U as qa,V,W as CT,X as _T,a as ee,aa as Eu,b as Fa,c as Yv,d as Dn,e as ke,f as Pa,g as Zv,h as ey,i as ty,j as ny,k as ry,l as ns,m as iy,n as Ma,o as K,p as Ia,q as oy,r as Na,s as Vt,t as sy,u as B,v as lt,w as kr,x as ay,y as ly,z as cy}from"./chunk-HJH672U6.js";import{b as Qv}from"./chunk-BPRY3O4N.js";import{a as jt,b as Z,c as w,d as Xv,e as $t,f as Bt,g as d}from"./chunk-VKWPEFWQ.js";var Ai=w(ct=>{"use strict";d();Object.defineProperty(ct,"__esModule",{value:!0});ct.stringArray=ct.array=ct.func=ct.error=ct.number=ct.string=ct.boolean=void 0;function TT(n){return n===!0||n===!1}ct.boolean=TT;function yy(n){return typeof n=="string"||n instanceof String}ct.string=yy;function RT(n){return typeof n=="number"||n instanceof Number}ct.number=RT;function ET(n){return n instanceof Error}ct.error=ET;function DT(n){return typeof n=="function"}ct.func=DT;function wy(n){return Array.isArray(n)}ct.array=wy;function FT(n){return wy(n)&&n.every(e=>yy(e))}ct.stringArray=FT});var Yu=w(j=>{"use strict";d();Object.defineProperty(j,"__esModule",{value:!0});j.Message=j.NotificationType9=j.NotificationType8=j.NotificationType7=j.NotificationType6=j.NotificationType5=j.NotificationType4=j.NotificationType3=j.NotificationType2=j.NotificationType1=j.NotificationType0=j.NotificationType=j.RequestType9=j.RequestType8=j.RequestType7=j.RequestType6=j.RequestType5=j.RequestType4=j.RequestType3=j.RequestType2=j.RequestType1=j.RequestType=j.RequestType0=j.AbstractMessageSignature=j.ParameterStructures=j.ResponseError=j.ErrorCodes=void 0;var oi=Ai(),Sy;(function(n){n.ParseError=-32700,n.InvalidRequest=-32600,n.MethodNotFound=-32601,n.InvalidParams=-32602,n.InternalError=-32603,n.jsonrpcReservedErrorRangeStart=-32099,n.serverErrorStart=-32099,n.MessageWriteError=-32099,n.MessageReadError=-32098,n.PendingResponseRejected=-32097,n.ConnectionInactive=-32096,n.ServerNotInitialized=-32002,n.UnknownErrorCode=-32001,n.jsonrpcReservedErrorRangeEnd=-32e3,n.serverErrorEnd=-32e3})(Sy=j.ErrorCodes||(j.ErrorCodes={}));var Du=class n extends Error{constructor(e,t,r){super(t),this.code=oi.number(e)?e:Sy.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,n.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};j.ResponseError=Du;var Tt=class n{constructor(e){this.kind=e}static is(e){return e===n.auto||e===n.byName||e===n.byPosition}toString(){return this.kind}};j.ParameterStructures=Tt;Tt.auto=new Tt("auto");Tt.byPosition=new Tt("byPosition");Tt.byName=new Tt("byName");var Ce=class{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return Tt.auto}};j.AbstractMessageSignature=Ce;var Fu=class extends Ce{constructor(e){super(e,0)}};j.RequestType0=Fu;var Pu=class extends Ce{constructor(e,t=Tt.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};j.RequestType=Pu;var Mu=class extends Ce{constructor(e,t=Tt.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};j.RequestType1=Mu;var Iu=class extends Ce{constructor(e){super(e,2)}};j.RequestType2=Iu;var Nu=class extends Ce{constructor(e){super(e,3)}};j.RequestType3=Nu;var zu=class extends Ce{constructor(e){super(e,4)}};j.RequestType4=zu;var Ou=class extends Ce{constructor(e){super(e,5)}};j.RequestType5=Ou;var Au=class extends Ce{constructor(e){super(e,6)}};j.RequestType6=Au;var Lu=class extends Ce{constructor(e){super(e,7)}};j.RequestType7=Lu;var qu=class extends Ce{constructor(e){super(e,8)}};j.RequestType8=qu;var Wu=class extends Ce{constructor(e){super(e,9)}};j.RequestType9=Wu;var Hu=class extends Ce{constructor(e,t=Tt.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};j.NotificationType=Hu;var Uu=class extends Ce{constructor(e){super(e,0)}};j.NotificationType0=Uu;var ju=class extends Ce{constructor(e,t=Tt.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};j.NotificationType1=ju;var $u=class extends Ce{constructor(e){super(e,2)}};j.NotificationType2=$u;var Bu=class extends Ce{constructor(e){super(e,3)}};j.NotificationType3=Bu;var Vu=class extends Ce{constructor(e){super(e,4)}};j.NotificationType4=Vu;var Gu=class extends Ce{constructor(e){super(e,5)}};j.NotificationType5=Gu;var Ku=class extends Ce{constructor(e){super(e,6)}};j.NotificationType6=Ku;var Ju=class extends Ce{constructor(e){super(e,7)}};j.NotificationType7=Ju;var Xu=class extends Ce{constructor(e){super(e,8)}};j.NotificationType8=Xu;var Qu=class extends Ce{constructor(e){super(e,9)}};j.NotificationType9=Qu;var PT;(function(n){function e(i){let o=i;return o&&oi.string(o.method)&&(oi.string(o.id)||oi.number(o.id))}n.isRequest=e;function t(i){let o=i;return o&&oi.string(o.method)&&i.id===void 0}n.isNotification=t;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(oi.string(o.id)||oi.number(o.id)||o.id===null)}n.isResponse=r})(PT=j.Message||(j.Message={}))});var ep=w(Kn=>{"use strict";d();var xy;Object.defineProperty(Kn,"__esModule",{value:!0});Kn.LRUCache=Kn.LinkedMap=Kn.Touch=void 0;var ft;(function(n){n.None=0,n.First=1,n.AsOld=n.First,n.Last=2,n.AsNew=n.Last})(ft=Kn.Touch||(Kn.Touch={}));var Wa=class{constructor(){this[xy]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=ft.None){let r=this._map.get(e);if(r)return t!==ft.None&&this.touch(r,t),r.value}set(e,t,r=ft.None){let i=this._map.get(e);if(i)i.value=t,r!==ft.None&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case ft.None:this.addItemLast(i);break;case ft.First:this.addItemFirst(i);break;case ft.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let r=this._state,i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let i={value:t.key,done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}values(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let i={value:t.value,done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}entries(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let i={value:[t.key,t.value],done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}[(xy=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,r=this.size;for(;t&&r>e;)this._map.delete(t.key),t=t.next,r--;this._head=t,this._size=r,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,r=e.previous;if(!t||!r)throw new Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==ft.First&&t!==ft.Last)){if(t===ft.First){if(e===this._head)return;let r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===ft.Last){if(e===this._tail)return;let r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,r)=>{e.push([r,t])}),e}fromJSON(e){this.clear();for(let[t,r]of e)this.set(t,r)}};Kn.LinkedMap=Wa;var Zu=class extends Wa{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=ft.AsNew){return super.get(e,t)}peek(e){return super.get(e,ft.None)}set(e,t){return super.set(e,t,ft.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Kn.LRUCache=Zu});var ky=w(ss=>{"use strict";d();Object.defineProperty(ss,"__esModule",{value:!0});ss.Disposable=void 0;var MT;(function(n){function e(t){return{dispose:t}}n.create=e})(MT=ss.Disposable||(ss.Disposable={}))});var Cr=w(rp=>{"use strict";d();Object.defineProperty(rp,"__esModule",{value:!0});var tp;function np(){if(tp===void 0)throw new Error("No runtime abstraction layer installed");return tp}(function(n){function e(t){if(t===void 0)throw new Error("No runtime abstraction layer provided");tp=t}n.install=e})(np||(np={}));rp.default=np});var Li=w(si=>{"use strict";d();Object.defineProperty(si,"__esModule",{value:!0});si.Emitter=si.Event=void 0;var IT=Cr(),NT;(function(n){let e={dispose(){}};n.None=function(){return e}})(NT=si.Event||(si.Event={}));var ip=class{add(e,t=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===e)if(this._contexts[i]===t){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let t=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,s=r.length;o<s;o++)try{t.push(r[o].apply(i[o],e))}catch(a){(0,IT.default)().console.error(a)}return t}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Ha=class n{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,r)=>{this._callbacks||(this._callbacks=new ip),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=n._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};si.Emitter=Ha;Ha._noop=function(){}});var ja=w(ai=>{"use strict";d();Object.defineProperty(ai,"__esModule",{value:!0});ai.CancellationTokenSource=ai.CancellationToken=void 0;var zT=Cr(),OT=Ai(),op=Li(),sp;(function(n){n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:op.Event.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:op.Event.None});function e(t){let r=t;return r&&(r===n.None||r===n.Cancelled||OT.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}n.is=e})(sp=ai.CancellationToken||(ai.CancellationToken={}));var AT=Object.freeze(function(n,e){let t=(0,zT.default)().timer.setTimeout(n.bind(e),0);return{dispose(){t.dispose()}}}),Ua=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?AT:(this._emitter||(this._emitter=new op.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},ap=class{get token(){return this._token||(this._token=new Ua),this._token}cancel(){this._token?this._token.cancel():this._token=sp.Cancelled}dispose(){this._token?this._token instanceof Ua&&this._token.dispose():this._token=sp.None}};ai.CancellationTokenSource=ap});var Cy=w(qi=>{"use strict";d();Object.defineProperty(qi,"__esModule",{value:!0});qi.SharedArrayReceiverStrategy=qi.SharedArraySenderStrategy=void 0;var LT=ja(),as;(function(n){n.Continue=0,n.Cancelled=1})(as||(as={}));var lp=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let t=new SharedArrayBuffer(4),r=new Int32Array(t,0,1);r[0]=as.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){let r=this.buffers.get(t);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,as.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};qi.SharedArraySenderStrategy=lp;var cp=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===as.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},dp=class{constructor(e){this.token=new cp(e)}cancel(){}dispose(){}},hp=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let t=e.$cancellationData;return t===void 0?new LT.CancellationTokenSource:new dp(t)}};qi.SharedArrayReceiverStrategy=hp});var pp=w($a=>{"use strict";d();Object.defineProperty($a,"__esModule",{value:!0});$a.Semaphore=void 0;var qT=Cr(),up=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,r)=>{this._waiting.push({thunk:e,resolve:t,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,qT.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let t=e.thunk();t instanceof Promise?t.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}};$a.Semaphore=up});var _y=w(Jn=>{"use strict";d();Object.defineProperty(Jn,"__esModule",{value:!0});Jn.ReadableStreamMessageReader=Jn.AbstractMessageReader=Jn.MessageReader=void 0;var fp=Cr(),Wi=Ai(),mp=Li(),WT=pp(),HT;(function(n){function e(t){let r=t;return r&&Wi.func(r.listen)&&Wi.func(r.dispose)&&Wi.func(r.onError)&&Wi.func(r.onClose)&&Wi.func(r.onPartialMessage)}n.is=e})(HT=Jn.MessageReader||(Jn.MessageReader={}));var Ba=class{constructor(){this.errorEmitter=new mp.Emitter,this.closeEmitter=new mp.Emitter,this.partialMessageEmitter=new mp.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${Wi.string(e.message)?e.message:"unknown"}`)}};Jn.AbstractMessageReader=Ba;var gp;(function(n){function e(t){let r,i,o,s=new Map,a,l=new Map;if(t===void 0||typeof t=="string")r=t??"utf-8";else{if(r=t.charset??"utf-8",t.contentDecoder!==void 0&&(o=t.contentDecoder,s.set(o.name,o)),t.contentDecoders!==void 0)for(let c of t.contentDecoders)s.set(c.name,c);if(t.contentTypeDecoder!==void 0&&(a=t.contentTypeDecoder,l.set(a.name,a)),t.contentTypeDecoders!==void 0)for(let c of t.contentTypeDecoders)l.set(c.name,c)}return a===void 0&&(a=(0,fp.default)().applicationJson.decoder,l.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:l}}n.fromOptions=e})(gp||(gp={}));var bp=class extends Ba{constructor(e,t){super(),this.readable=e,this.options=gp.fromOptions(t),this.buffer=(0,fp.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new WT.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),t}onData(e){for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error("Header must provide a Content-Length property."));return}let o=parseInt(i);if(isNaN(o)){this.fireError(new Error("Content-Length value must be a number."));return}this.nextMessageLength=o}let t=this.buffer.tryReadBody(this.nextMessageLength);if(t===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(t):t,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,fp.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};Jn.ReadableStreamMessageReader=bp});var Dy=w(Xn=>{"use strict";d();Object.defineProperty(Xn,"__esModule",{value:!0});Xn.WriteableStreamMessageWriter=Xn.AbstractMessageWriter=Xn.MessageWriter=void 0;var Ty=Cr(),ls=Ai(),UT=pp(),Ry=Li(),jT="Content-Length: ",Ey=`\r
|
|
1
|
+
import{v as vy}from"./chunk-LLNBH7KL.js";import{A as dy,B as ii,C as hy,D as Fn,E as uy,F as py,G as za,H as my,I as Oa,J as fy,K as rs,L as kT,M as gy,N as Aa,O as is,P as os,Q as Pn,R as by,S as sn,T as La,U as qa,V,W as CT,X as _T,a as ee,aa as Eu,b as Fa,c as Yv,d as Dn,e as ke,f as Pa,g as Zv,h as ey,i as ty,j as ny,k as ry,l as ns,m as iy,n as Ma,o as K,p as Ia,q as oy,r as Na,s as Vt,t as sy,u as B,v as lt,w as kr,x as ay,y as ly,z as cy}from"./chunk-WY2LFBPL.js";import{b as Qv}from"./chunk-AAG2JILI.js";import{a as jt,b as Z,c as w,d as Xv,e as $t,f as Bt,g as d}from"./chunk-VKWPEFWQ.js";var Ai=w(ct=>{"use strict";d();Object.defineProperty(ct,"__esModule",{value:!0});ct.stringArray=ct.array=ct.func=ct.error=ct.number=ct.string=ct.boolean=void 0;function TT(n){return n===!0||n===!1}ct.boolean=TT;function yy(n){return typeof n=="string"||n instanceof String}ct.string=yy;function RT(n){return typeof n=="number"||n instanceof Number}ct.number=RT;function ET(n){return n instanceof Error}ct.error=ET;function DT(n){return typeof n=="function"}ct.func=DT;function wy(n){return Array.isArray(n)}ct.array=wy;function FT(n){return wy(n)&&n.every(e=>yy(e))}ct.stringArray=FT});var Yu=w(j=>{"use strict";d();Object.defineProperty(j,"__esModule",{value:!0});j.Message=j.NotificationType9=j.NotificationType8=j.NotificationType7=j.NotificationType6=j.NotificationType5=j.NotificationType4=j.NotificationType3=j.NotificationType2=j.NotificationType1=j.NotificationType0=j.NotificationType=j.RequestType9=j.RequestType8=j.RequestType7=j.RequestType6=j.RequestType5=j.RequestType4=j.RequestType3=j.RequestType2=j.RequestType1=j.RequestType=j.RequestType0=j.AbstractMessageSignature=j.ParameterStructures=j.ResponseError=j.ErrorCodes=void 0;var oi=Ai(),Sy;(function(n){n.ParseError=-32700,n.InvalidRequest=-32600,n.MethodNotFound=-32601,n.InvalidParams=-32602,n.InternalError=-32603,n.jsonrpcReservedErrorRangeStart=-32099,n.serverErrorStart=-32099,n.MessageWriteError=-32099,n.MessageReadError=-32098,n.PendingResponseRejected=-32097,n.ConnectionInactive=-32096,n.ServerNotInitialized=-32002,n.UnknownErrorCode=-32001,n.jsonrpcReservedErrorRangeEnd=-32e3,n.serverErrorEnd=-32e3})(Sy=j.ErrorCodes||(j.ErrorCodes={}));var Du=class n extends Error{constructor(e,t,r){super(t),this.code=oi.number(e)?e:Sy.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,n.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};j.ResponseError=Du;var Tt=class n{constructor(e){this.kind=e}static is(e){return e===n.auto||e===n.byName||e===n.byPosition}toString(){return this.kind}};j.ParameterStructures=Tt;Tt.auto=new Tt("auto");Tt.byPosition=new Tt("byPosition");Tt.byName=new Tt("byName");var Ce=class{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return Tt.auto}};j.AbstractMessageSignature=Ce;var Fu=class extends Ce{constructor(e){super(e,0)}};j.RequestType0=Fu;var Pu=class extends Ce{constructor(e,t=Tt.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};j.RequestType=Pu;var Mu=class extends Ce{constructor(e,t=Tt.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};j.RequestType1=Mu;var Iu=class extends Ce{constructor(e){super(e,2)}};j.RequestType2=Iu;var Nu=class extends Ce{constructor(e){super(e,3)}};j.RequestType3=Nu;var zu=class extends Ce{constructor(e){super(e,4)}};j.RequestType4=zu;var Ou=class extends Ce{constructor(e){super(e,5)}};j.RequestType5=Ou;var Au=class extends Ce{constructor(e){super(e,6)}};j.RequestType6=Au;var Lu=class extends Ce{constructor(e){super(e,7)}};j.RequestType7=Lu;var qu=class extends Ce{constructor(e){super(e,8)}};j.RequestType8=qu;var Wu=class extends Ce{constructor(e){super(e,9)}};j.RequestType9=Wu;var Hu=class extends Ce{constructor(e,t=Tt.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};j.NotificationType=Hu;var Uu=class extends Ce{constructor(e){super(e,0)}};j.NotificationType0=Uu;var ju=class extends Ce{constructor(e,t=Tt.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};j.NotificationType1=ju;var $u=class extends Ce{constructor(e){super(e,2)}};j.NotificationType2=$u;var Bu=class extends Ce{constructor(e){super(e,3)}};j.NotificationType3=Bu;var Vu=class extends Ce{constructor(e){super(e,4)}};j.NotificationType4=Vu;var Gu=class extends Ce{constructor(e){super(e,5)}};j.NotificationType5=Gu;var Ku=class extends Ce{constructor(e){super(e,6)}};j.NotificationType6=Ku;var Ju=class extends Ce{constructor(e){super(e,7)}};j.NotificationType7=Ju;var Xu=class extends Ce{constructor(e){super(e,8)}};j.NotificationType8=Xu;var Qu=class extends Ce{constructor(e){super(e,9)}};j.NotificationType9=Qu;var PT;(function(n){function e(i){let o=i;return o&&oi.string(o.method)&&(oi.string(o.id)||oi.number(o.id))}n.isRequest=e;function t(i){let o=i;return o&&oi.string(o.method)&&i.id===void 0}n.isNotification=t;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(oi.string(o.id)||oi.number(o.id)||o.id===null)}n.isResponse=r})(PT=j.Message||(j.Message={}))});var ep=w(Kn=>{"use strict";d();var xy;Object.defineProperty(Kn,"__esModule",{value:!0});Kn.LRUCache=Kn.LinkedMap=Kn.Touch=void 0;var ft;(function(n){n.None=0,n.First=1,n.AsOld=n.First,n.Last=2,n.AsNew=n.Last})(ft=Kn.Touch||(Kn.Touch={}));var Wa=class{constructor(){this[xy]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=ft.None){let r=this._map.get(e);if(r)return t!==ft.None&&this.touch(r,t),r.value}set(e,t,r=ft.None){let i=this._map.get(e);if(i)i.value=t,r!==ft.None&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case ft.None:this.addItemLast(i);break;case ft.First:this.addItemFirst(i);break;case ft.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let r=this._state,i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let i={value:t.key,done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}values(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let i={value:t.value,done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}entries(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let i={value:[t.key,t.value],done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}[(xy=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,r=this.size;for(;t&&r>e;)this._map.delete(t.key),t=t.next,r--;this._head=t,this._size=r,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,r=e.previous;if(!t||!r)throw new Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==ft.First&&t!==ft.Last)){if(t===ft.First){if(e===this._head)return;let r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===ft.Last){if(e===this._tail)return;let r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,r)=>{e.push([r,t])}),e}fromJSON(e){this.clear();for(let[t,r]of e)this.set(t,r)}};Kn.LinkedMap=Wa;var Zu=class extends Wa{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=ft.AsNew){return super.get(e,t)}peek(e){return super.get(e,ft.None)}set(e,t){return super.set(e,t,ft.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Kn.LRUCache=Zu});var ky=w(ss=>{"use strict";d();Object.defineProperty(ss,"__esModule",{value:!0});ss.Disposable=void 0;var MT;(function(n){function e(t){return{dispose:t}}n.create=e})(MT=ss.Disposable||(ss.Disposable={}))});var Cr=w(rp=>{"use strict";d();Object.defineProperty(rp,"__esModule",{value:!0});var tp;function np(){if(tp===void 0)throw new Error("No runtime abstraction layer installed");return tp}(function(n){function e(t){if(t===void 0)throw new Error("No runtime abstraction layer provided");tp=t}n.install=e})(np||(np={}));rp.default=np});var Li=w(si=>{"use strict";d();Object.defineProperty(si,"__esModule",{value:!0});si.Emitter=si.Event=void 0;var IT=Cr(),NT;(function(n){let e={dispose(){}};n.None=function(){return e}})(NT=si.Event||(si.Event={}));var ip=class{add(e,t=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===e)if(this._contexts[i]===t){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let t=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,s=r.length;o<s;o++)try{t.push(r[o].apply(i[o],e))}catch(a){(0,IT.default)().console.error(a)}return t}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Ha=class n{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,r)=>{this._callbacks||(this._callbacks=new ip),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=n._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};si.Emitter=Ha;Ha._noop=function(){}});var ja=w(ai=>{"use strict";d();Object.defineProperty(ai,"__esModule",{value:!0});ai.CancellationTokenSource=ai.CancellationToken=void 0;var zT=Cr(),OT=Ai(),op=Li(),sp;(function(n){n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:op.Event.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:op.Event.None});function e(t){let r=t;return r&&(r===n.None||r===n.Cancelled||OT.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}n.is=e})(sp=ai.CancellationToken||(ai.CancellationToken={}));var AT=Object.freeze(function(n,e){let t=(0,zT.default)().timer.setTimeout(n.bind(e),0);return{dispose(){t.dispose()}}}),Ua=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?AT:(this._emitter||(this._emitter=new op.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},ap=class{get token(){return this._token||(this._token=new Ua),this._token}cancel(){this._token?this._token.cancel():this._token=sp.Cancelled}dispose(){this._token?this._token instanceof Ua&&this._token.dispose():this._token=sp.None}};ai.CancellationTokenSource=ap});var Cy=w(qi=>{"use strict";d();Object.defineProperty(qi,"__esModule",{value:!0});qi.SharedArrayReceiverStrategy=qi.SharedArraySenderStrategy=void 0;var LT=ja(),as;(function(n){n.Continue=0,n.Cancelled=1})(as||(as={}));var lp=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let t=new SharedArrayBuffer(4),r=new Int32Array(t,0,1);r[0]=as.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){let r=this.buffers.get(t);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,as.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};qi.SharedArraySenderStrategy=lp;var cp=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===as.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},dp=class{constructor(e){this.token=new cp(e)}cancel(){}dispose(){}},hp=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let t=e.$cancellationData;return t===void 0?new LT.CancellationTokenSource:new dp(t)}};qi.SharedArrayReceiverStrategy=hp});var pp=w($a=>{"use strict";d();Object.defineProperty($a,"__esModule",{value:!0});$a.Semaphore=void 0;var qT=Cr(),up=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,r)=>{this._waiting.push({thunk:e,resolve:t,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,qT.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let t=e.thunk();t instanceof Promise?t.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}};$a.Semaphore=up});var _y=w(Jn=>{"use strict";d();Object.defineProperty(Jn,"__esModule",{value:!0});Jn.ReadableStreamMessageReader=Jn.AbstractMessageReader=Jn.MessageReader=void 0;var fp=Cr(),Wi=Ai(),mp=Li(),WT=pp(),HT;(function(n){function e(t){let r=t;return r&&Wi.func(r.listen)&&Wi.func(r.dispose)&&Wi.func(r.onError)&&Wi.func(r.onClose)&&Wi.func(r.onPartialMessage)}n.is=e})(HT=Jn.MessageReader||(Jn.MessageReader={}));var Ba=class{constructor(){this.errorEmitter=new mp.Emitter,this.closeEmitter=new mp.Emitter,this.partialMessageEmitter=new mp.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${Wi.string(e.message)?e.message:"unknown"}`)}};Jn.AbstractMessageReader=Ba;var gp;(function(n){function e(t){let r,i,o,s=new Map,a,l=new Map;if(t===void 0||typeof t=="string")r=t??"utf-8";else{if(r=t.charset??"utf-8",t.contentDecoder!==void 0&&(o=t.contentDecoder,s.set(o.name,o)),t.contentDecoders!==void 0)for(let c of t.contentDecoders)s.set(c.name,c);if(t.contentTypeDecoder!==void 0&&(a=t.contentTypeDecoder,l.set(a.name,a)),t.contentTypeDecoders!==void 0)for(let c of t.contentTypeDecoders)l.set(c.name,c)}return a===void 0&&(a=(0,fp.default)().applicationJson.decoder,l.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:l}}n.fromOptions=e})(gp||(gp={}));var bp=class extends Ba{constructor(e,t){super(),this.readable=e,this.options=gp.fromOptions(t),this.buffer=(0,fp.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new WT.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),t}onData(e){for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error("Header must provide a Content-Length property."));return}let o=parseInt(i);if(isNaN(o)){this.fireError(new Error("Content-Length value must be a number."));return}this.nextMessageLength=o}let t=this.buffer.tryReadBody(this.nextMessageLength);if(t===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(t):t,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,fp.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};Jn.ReadableStreamMessageReader=bp});var Dy=w(Xn=>{"use strict";d();Object.defineProperty(Xn,"__esModule",{value:!0});Xn.WriteableStreamMessageWriter=Xn.AbstractMessageWriter=Xn.MessageWriter=void 0;var Ty=Cr(),ls=Ai(),UT=pp(),Ry=Li(),jT="Content-Length: ",Ey=`\r
|
|
2
2
|
`,$T;(function(n){function e(t){let r=t;return r&&ls.func(r.dispose)&&ls.func(r.onClose)&&ls.func(r.onError)&&ls.func(r.write)}n.is=e})($T=Xn.MessageWriter||(Xn.MessageWriter={}));var Va=class{constructor(){this.errorEmitter=new Ry.Emitter,this.closeEmitter=new Ry.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,r){this.errorEmitter.fire([this.asError(e),t,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${ls.string(e.message)?e.message:"unknown"}`)}};Xn.AbstractMessageWriter=Va;var vp;(function(n){function e(t){return t===void 0||typeof t=="string"?{charset:t??"utf-8",contentTypeEncoder:(0,Ty.default)().applicationJson.encoder}:{charset:t.charset??"utf-8",contentEncoder:t.contentEncoder,contentTypeEncoder:t.contentTypeEncoder??(0,Ty.default)().applicationJson.encoder}}n.fromOptions=e})(vp||(vp={}));var yp=class extends Va{constructor(e,t){super(),this.writable=e,this.options=vp.fromOptions(t),this.errorCount=0,this.writeSemaphore=new UT.Semaphore(1),this.writable.onError(r=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(r=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(r):r).then(r=>{let i=[];return i.push(jT,r.byteLength.toString(),Ey),i.push(Ey),this.doWrite(e,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(e,t,r){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,e),Promise.reject(i)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}};Xn.WriteableStreamMessageWriter=yp});var Fy=w(Ga=>{"use strict";d();Object.defineProperty(Ga,"__esModule",{value:!0});Ga.AbstractMessageBuffer=void 0;var BT=13,VT=10,GT=`\r
|
|
3
3
|
`,wp=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let t=0,r=0,i=0,o=0;e:for(;r<this._chunks.length;){let c=this._chunks[r];for(i=0;i<c.length;){switch(c[i]){case BT:switch(t){case 0:t=1;break;case 2:t=3;break;default:t=0}break;case VT:switch(t){case 1:t=2;break;case 3:t=4,i++;break e;default:t=0}break;default:t=0}i++}o+=c.byteLength,r++}if(t!==4)return;let s=this._read(o+i),a=new Map,l=this.toString(s,"ascii").split(GT);if(l.length<2)return a;for(let c=0;c<l.length-2;c++){let h=l[c],p=h.indexOf(":");if(p===-1)throw new Error("Message header must separate key and value using :");let f=h.substr(0,p),b=h.substr(p+1).trim();a.set(e?f.toLowerCase():f,b)}return a}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(o)}if(this._chunks[0].byteLength>e){let o=this._chunks[0],s=this.asNative(o,e);return this._chunks[0]=o.slice(e),this._totalLength-=e,s}let t=this.allocNative(e),r=0,i=0;for(;e>0;){let o=this._chunks[i];if(o.byteLength>e){let s=o.slice(0,e);t.set(s,r),r+=e,this._chunks[i]=o.slice(e),this._totalLength-=e,e-=e}else t.set(o,r),r+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,e-=o.byteLength}return t}};Ga.AbstractMessageBuffer=wp});var Ay=w(U=>{"use strict";d();Object.defineProperty(U,"__esModule",{value:!0});U.createMessageConnection=U.ConnectionOptions=U.MessageStrategy=U.CancellationStrategy=U.CancellationSenderStrategy=U.CancellationReceiverStrategy=U.RequestCancellationReceiverStrategy=U.IdCancellationReceiverStrategy=U.ConnectionStrategy=U.ConnectionError=U.ConnectionErrors=U.LogTraceNotification=U.SetTraceNotification=U.TraceFormat=U.TraceValues=U.Trace=U.NullLogger=U.ProgressType=U.ProgressToken=void 0;var Py=Cr(),Pe=Ai(),J=Yu(),My=ep(),cs=Li(),Sp=ja(),hs;(function(n){n.type=new J.NotificationType("$/cancelRequest")})(hs||(hs={}));var Iy;(function(n){function e(t){return typeof t=="string"||typeof t=="number"}n.is=e})(Iy=U.ProgressToken||(U.ProgressToken={}));var ds;(function(n){n.type=new J.NotificationType("$/progress")})(ds||(ds={}));var xp=class{constructor(){}};U.ProgressType=xp;var kp;(function(n){function e(t){return Pe.func(t)}n.is=e})(kp||(kp={}));U.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var fe;(function(n){n[n.Off=0]="Off",n[n.Messages=1]="Messages",n[n.Compact=2]="Compact",n[n.Verbose=3]="Verbose"})(fe=U.Trace||(U.Trace={}));var KT;(function(n){n.Off="off",n.Messages="messages",n.Compact="compact",n.Verbose="verbose"})(KT=U.TraceValues||(U.TraceValues={}));(function(n){function e(r){if(!Pe.string(r))return n.Off;switch(r=r.toLowerCase(),r){case"off":return n.Off;case"messages":return n.Messages;case"compact":return n.Compact;case"verbose":return n.Verbose;default:return n.Off}}n.fromString=e;function t(r){switch(r){case n.Off:return"off";case n.Messages:return"messages";case n.Compact:return"compact";case n.Verbose:return"verbose";default:return"off"}}n.toString=t})(fe=U.Trace||(U.Trace={}));var an;(function(n){n.Text="text",n.JSON="json"})(an=U.TraceFormat||(U.TraceFormat={}));(function(n){function e(t){return Pe.string(t)?(t=t.toLowerCase(),t==="json"?n.JSON:n.Text):n.Text}n.fromString=e})(an=U.TraceFormat||(U.TraceFormat={}));var Ny;(function(n){n.type=new J.NotificationType("$/setTrace")})(Ny=U.SetTraceNotification||(U.SetTraceNotification={}));var Cp;(function(n){n.type=new J.NotificationType("$/logTrace")})(Cp=U.LogTraceNotification||(U.LogTraceNotification={}));var Ka;(function(n){n[n.Closed=1]="Closed",n[n.Disposed=2]="Disposed",n[n.AlreadyListening=3]="AlreadyListening"})(Ka=U.ConnectionErrors||(U.ConnectionErrors={}));var Hi=class n extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,n.prototype)}};U.ConnectionError=Hi;var zy;(function(n){function e(t){let r=t;return r&&Pe.func(r.cancelUndispatched)}n.is=e})(zy=U.ConnectionStrategy||(U.ConnectionStrategy={}));var Rp;(function(n){function e(t){let r=t;return r&&(r.kind===void 0||r.kind==="id")&&Pe.func(r.createCancellationTokenSource)&&(r.dispose===void 0||Pe.func(r.dispose))}n.is=e})(Rp=U.IdCancellationReceiverStrategy||(U.IdCancellationReceiverStrategy={}));var Oy;(function(n){function e(t){let r=t;return r&&r.kind==="request"&&Pe.func(r.createCancellationTokenSource)&&(r.dispose===void 0||Pe.func(r.dispose))}n.is=e})(Oy=U.RequestCancellationReceiverStrategy||(U.RequestCancellationReceiverStrategy={}));var _p;(function(n){n.Message=Object.freeze({createCancellationTokenSource(t){return new Sp.CancellationTokenSource}});function e(t){return Rp.is(t)||Oy.is(t)}n.is=e})(_p=U.CancellationReceiverStrategy||(U.CancellationReceiverStrategy={}));var Tp;(function(n){n.Message=Object.freeze({sendCancellation(t,r){return t.sendNotification(hs.type,{id:r})},cleanup(t){}});function e(t){let r=t;return r&&Pe.func(r.sendCancellation)&&Pe.func(r.cleanup)}n.is=e})(Tp=U.CancellationSenderStrategy||(U.CancellationSenderStrategy={}));var Ep;(function(n){n.Message=Object.freeze({receiver:_p.Message,sender:Tp.Message});function e(t){let r=t;return r&&_p.is(r.receiver)&&Tp.is(r.sender)}n.is=e})(Ep=U.CancellationStrategy||(U.CancellationStrategy={}));var Dp;(function(n){function e(t){let r=t;return r&&Pe.func(r.handleMessage)}n.is=e})(Dp=U.MessageStrategy||(U.MessageStrategy={}));var JT;(function(n){function e(t){let r=t;return r&&(Ep.is(r.cancellationStrategy)||zy.is(r.connectionStrategy)||Dp.is(r.messageStrategy))}n.is=e})(JT=U.ConnectionOptions||(U.ConnectionOptions={}));var ln;(function(n){n[n.New=1]="New",n[n.Listening=2]="Listening",n[n.Closed=3]="Closed",n[n.Disposed=4]="Disposed"})(ln||(ln={}));function XT(n,e,t,r){let i=t!==void 0?t:U.NullLogger,o=0,s=0,a=0,l="2.0",c,h=new Map,p,f=new Map,b=new Map,C,D=new My.LinkedMap,P=new Map,A=new Set,S=new Map,y=fe.Off,R=an.Text,N,q=ln.New,Se=new cs.Emitter,De=new cs.Emitter,Wt=new cs.Emitter,Dt=new cs.Emitter,kt=new cs.Emitter,Ct=r&&r.cancellationStrategy?r.cancellationStrategy:Ep.Message;function wr(v){if(v===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+v.toString()}function ni(v){return v===null?"res-unknown-"+(++a).toString():"res-"+v.toString()}function Ht(){return"not-"+(++s).toString()}function Ft(v,E){J.Message.isRequest(E)?v.set(wr(E.id),E):J.Message.isResponse(E)?v.set(ni(E.id),E):v.set(Ht(),E)}function Sr(v){}function Ut(){return q===ln.Listening}function Rn(){return q===ln.Closed}function pt(){return q===ln.Disposed}function xr(){(q===ln.New||q===ln.Listening)&&(q=ln.Closed,De.fire(void 0))}function Zo(v){Se.fire([v,void 0,void 0])}function Mi(v){Se.fire(v)}n.onClose(xr),n.onError(Zo),e.onClose(xr),e.onError(Mi);function Ii(){C||D.size===0||(C=(0,Py.default)().timer.setImmediate(()=>{C=void 0,ku()}))}function Ni(v){J.Message.isRequest(v)?Cu(v):J.Message.isNotification(v)?Tu(v):J.Message.isResponse(v)?_u(v):Da(v)}function ku(){if(D.size===0)return;let v=D.shift();try{let E=r?.messageStrategy;Dp.is(E)?E.handleMessage(v,Ni):Ni(v)}finally{Ii()}}let ri=v=>{try{if(J.Message.isNotification(v)&&v.method===hs.type.method){let E=v.params.id,I=wr(E),H=D.get(I);if(J.Message.isRequest(H)){let ge=r?.connectionStrategy,Ne=ge&&ge.cancelUndispatched?ge.cancelUndispatched(H,Sr):void 0;if(Ne&&(Ne.error!==void 0||Ne.result!==void 0)){D.delete(I),S.delete(E),Ne.id=H.id,G(Ne,v.method,Date.now()),e.write(Ne).catch(()=>i.error("Sending response for canceled message failed."));return}}let xe=S.get(E);if(xe!==void 0){xe.cancel(),_t(v);return}else A.add(E)}Ft(D,v)}finally{Ii()}};function Cu(v){if(pt())return;function E(ce,Fe,me){let Be={jsonrpc:l,id:v.id};ce instanceof J.ResponseError?Be.error=ce.toJson():Be.result=ce===void 0?null:ce,G(Be,Fe,me),e.write(Be).catch(()=>i.error("Sending response failed."))}function I(ce,Fe,me){let Be={jsonrpc:l,id:v.id,error:ce.toJson()};G(Be,Fe,me),e.write(Be).catch(()=>i.error("Sending response failed."))}function H(ce,Fe,me){ce===void 0&&(ce=null);let Be={jsonrpc:l,id:v.id,result:ce};G(Be,Fe,me),e.write(Be).catch(()=>i.error("Sending response failed."))}Re(v);let xe=h.get(v.method),ge,Ne;xe&&(ge=xe.type,Ne=xe.handler);let Oe=Date.now();if(Ne||c){let ce=v.id??String(Date.now()),Fe=Rp.is(Ct.receiver)?Ct.receiver.createCancellationTokenSource(ce):Ct.receiver.createCancellationTokenSource(v);v.id!==null&&A.has(v.id)&&Fe.cancel(),v.id!==null&&S.set(ce,Fe);try{let me;if(Ne)if(v.params===void 0){if(ge!==void 0&&ge.numberOfParams!==0){I(new J.ResponseError(J.ErrorCodes.InvalidParams,`Request ${v.method} defines ${ge.numberOfParams} params but received none.`),v.method,Oe);return}me=Ne(Fe.token)}else if(Array.isArray(v.params)){if(ge!==void 0&&ge.parameterStructures===J.ParameterStructures.byName){I(new J.ResponseError(J.ErrorCodes.InvalidParams,`Request ${v.method} defines parameters by name but received parameters by position`),v.method,Oe);return}me=Ne(...v.params,Fe.token)}else{if(ge!==void 0&&ge.parameterStructures===J.ParameterStructures.byPosition){I(new J.ResponseError(J.ErrorCodes.InvalidParams,`Request ${v.method} defines parameters by position but received parameters by name`),v.method,Oe);return}me=Ne(v.params,Fe.token)}else c&&(me=c(v.method,v.params,Fe.token));let Be=me;me?Be.then?Be.then(mt=>{S.delete(ce),E(mt,v.method,Oe)},mt=>{S.delete(ce),mt instanceof J.ResponseError?I(mt,v.method,Oe):mt&&Pe.string(mt.message)?I(new J.ResponseError(J.ErrorCodes.InternalError,`Request ${v.method} failed with message: ${mt.message}`),v.method,Oe):I(new J.ResponseError(J.ErrorCodes.InternalError,`Request ${v.method} failed unexpectedly without providing any details.`),v.method,Oe)}):(S.delete(ce),E(me,v.method,Oe)):(S.delete(ce),H(me,v.method,Oe))}catch(me){S.delete(ce),me instanceof J.ResponseError?E(me,v.method,Oe):me&&Pe.string(me.message)?I(new J.ResponseError(J.ErrorCodes.InternalError,`Request ${v.method} failed with message: ${me.message}`),v.method,Oe):I(new J.ResponseError(J.ErrorCodes.InternalError,`Request ${v.method} failed unexpectedly without providing any details.`),v.method,Oe)}}else I(new J.ResponseError(J.ErrorCodes.MethodNotFound,`Unhandled method ${v.method}`),v.method,Oe)}function _u(v){if(!pt())if(v.id===null)v.error?i.error(`Received response message without id: Error is:
|
|
4
4
|
${JSON.stringify(v.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let E=v.id,I=P.get(E);if(yT(v,I),I!==void 0){P.delete(E);try{if(v.error){let H=v.error;I.reject(new J.ResponseError(H.code,H.message,H.data))}else if(v.result!==void 0)I.resolve(v.result);else throw new Error("Should never happen.")}catch(H){H.message?i.error(`Response handler '${I.method}' failed with message: ${H.message}`):i.error(`Response handler '${I.method}' failed unexpectedly.`)}}}}function Tu(v){if(pt())return;let E,I;if(v.method===hs.type.method){let H=v.params.id;A.delete(H),_t(v);return}else{let H=f.get(v.method);H&&(I=H.handler,E=H.type)}if(I||p)try{if(_t(v),I)if(v.params===void 0)E!==void 0&&E.numberOfParams!==0&&E.parameterStructures!==J.ParameterStructures.byName&&i.error(`Notification ${v.method} defines ${E.numberOfParams} params but received none.`),I();else if(Array.isArray(v.params)){let H=v.params;v.method===ds.type.method&&H.length===2&&Iy.is(H[0])?I({token:H[0],value:H[1]}):(E!==void 0&&(E.parameterStructures===J.ParameterStructures.byName&&i.error(`Notification ${v.method} defines parameters by name but received parameters by position`),E.numberOfParams!==v.params.length&&i.error(`Notification ${v.method} defines ${E.numberOfParams} params but received ${H.length} arguments`)),I(...H))}else E!==void 0&&E.parameterStructures===J.ParameterStructures.byPosition&&i.error(`Notification ${v.method} defines parameters by position but received parameters by name`),I(v.params);else p&&p(v.method,v.params)}catch(H){H.message?i.error(`Notification handler '${v.method}' failed with message: ${H.message}`):i.error(`Notification handler '${v.method}' failed unexpectedly.`)}else Wt.fire(v)}function Da(v){if(!v){i.error("Received empty message.");return}i.error(`Received message which is neither a response nor a notification message:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as i,i as r,p as s}from"./chunk-773TIA5M.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as f,readFileSync as u}from"fs";import{fileURLToPath as p,pathToFileURL as g}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(p(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"app:logs:sources":"dist/cli/commands/app/app-logs/sources.js","demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function l(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=l(n),e=i(d,o);return f(e)?d:y(t)}async function j(n,t){let o=l(n),e=w(n,t);return(await import(g(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-
|
|
1
|
+
import{d as i,i as r,p as s}from"./chunk-773TIA5M.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as f,readFileSync as u}from"fs";import{fileURLToPath as p,pathToFileURL as g}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(p(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"app:logs:sources":"dist/cli/commands/app/app-logs/sources.js","demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function l(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=l(n),e=i(d,o);return f(e)?d:y(t)}async function j(n,t){let o=l(n),e=w(n,t);return(await import(g(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-35NERBRB.js");return o?.[n]}if(t==="@oclif/plugin-commands"){let{commands:o}=await import("./lib-ZRBLSVEU.js");return o[n]}if(t==="@oclif/plugin-plugins"){let{commands:o}=await import("./lib-FNZOFECW.js");return o[n]}if(t==="@shopify/plugin-did-you-mean"){let{DidYouMeanCommands:o}=await import("./dist-OUY4DTL3.js");return o[n]}}export{D as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o}from"./chunk-
|
|
1
|
+
import{b as o}from"./chunk-ZGI4ZRVE.js";import{E as r}from"./chunk-34AF5YGB.js";import{O as t}from"./chunk-FGYV4PZF.js";import{a as g}from"./chunk-M5GXA5W4.js";import{e as l,g as n}from"./chunk-VKWPEFWQ.js";n();var i=l(g(),1),p=["add","Shopify/cli#feature/shopify-validate-command","--skill","shopify","--global","--yes"],s=class a extends o{static{this.summary="Install the Shopify skill for coding agents."}static{this.flags={"package-manager":i.Flags.string({description:"The package manager to use to download the latest version of the skills CLI.",env:"SHOPIFY_FLAG_PACKAGE_MANAGER",options:["npm","pnpm","yarn","bun"]})}}async run(){let{flags:m}=await this.parse(a),c=r(m["package-manager"]),e=d(c);await t(e.command,[...e.args,...p],{stdio:"inherit"})}};function d(a){switch(a){case"pnpm":return{command:"pnpx",args:["skills@latest"]};case"yarn":return{command:"yarn",args:["dlx","skills@latest"]};case"bun":return{command:"bunx",args:["skills@latest"]};case"npm":case"homebrew":case"unknown":return{command:"npx",args:["--yes","skills@latest"]}}}export{s as a,d as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as h}from"./chunk-7QMA6EVS.js";import{Hb as a,Pb as u}from"./chunk-CUIOWLG3.js";import{f as I}from"./chunk-MBIOMVRS.js";import{c as D}from"./chunk-UKQ7NE5V.js";import{g as f}from"./chunk-VKWPEFWQ.js";f();f();var p;(function(e){e.Local="local",e.Production="production"})(p||(p={}));function E(e=process.env){return e[D.serviceEnv]==="local"?p.Local:p.Production}function v(e=process.env){return E(e)===p.Local}var S;function n(){return S??(S=new h({projectName:`shopify-cli-kit${I()?"-test":""}`})),S}function g(){return v()?"devSessionStore":"sessionStore"}function x(){return v()?"currentDevSessionId":"currentSessionId"}function M(e=n()){return u(a`Getting session store...`),e.get(g())}function N(e,t=n()){u(a`Setting session store...`),t.set(g(),e)}function O(e=n()){u(a`Removing session store...`),e.delete(g())}function F(e=n()){return u(a`Getting current session ID...`),e.get(x())}function T(e,t=n()){u(a`Setting current session ID...`),t.set(x(),e)}function V(e=n()){u(a`Removing current session ID...`),e.delete(x())}async function W(e,t,r,o=n()){let s=L(e,o);if(s?.value!==void 0&&(r===void 0||Date.now()-s.timestamp<r))return s.value;let i=await t();return k(e,i,o),i}function k(e,t,r=n()){let o=r.get("cache")??{};o[e]={value:t,timestamp:Date.now()},r.set("cache",o)}function L(e,t=n()){return(t.get("cache")??{})[e]}function _(e=n()){e.delete("cache")}function P({days:e=0,hours:t=0,minutes:r=0,seconds:o=0}){return(e*24*60*60+t*60*60+r*60+o)*1e3}async function q(e,t,r,o=n()){let s=o.get("cache")??{},i=`most-recent-occurrence-${e}`,c=s[i];return c?.value!==void 0&&Date.now()-c.timestamp<P(t)?!1:(await r(),s[i]={value:!0,timestamp:Date.now()},o.set("cache",s),!0)}async function z(e,t=n()){let{key:r,limit:o,timeout:s,task:i}=e,c=t.get("cache")??{},m=`rate-limited-occurrences-${r}`,w=c[m],l=Date.now();if(w?.value){let A=l-P(s),d=w.value.filter(C=>C>=A);if(d.length>=o)return c[m]={value:d,timestamp:Date.now()},t.set("cache",c),!1;await i(),c[m]={value:[...d,l],timestamp:l}}else await i(),c[m]={value:[l],timestamp:l};return t.set("cache",c),!0}function B(e=n()){return e.get("autoUpgradeEnabled")??!0}function H(e,t=n()){t.set("autoUpgradeEnabled",e)}function J(e=n()){return e.get("skillInstallPromptDismissed")??!1}function Q(e=n()){e.set("skillInstallPromptDismissed",!0)}function y(){return new h({projectName:"shopify-cli-kit-partner-status"})}function X(e){return e&&y().get(e)?!0:null}function Y(e){y().set(e,{status:!0,checkedAt:new Date().toISOString()})}export{p as a,E as b,v as c,M as d,N as e,O as f,F as g,T as h,V as i,W as j,k,L as l,_ as m,P as n,q as o,z as p,B as q,H as r,J as s,Q as t,y as u,X as v,Y as w};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as _,v as R}from"./chunk-
|
|
1
|
+
import{p as _,v as R}from"./chunk-LLNBH7KL.js";import{c as g,l as P}from"./chunk-3I3XLKOW.js";import{b as N}from"./chunk-AAG2JILI.js";import{D as w,F as v,R as L,w as T,z as C}from"./chunk-FGYV4PZF.js";import{m as F}from"./chunk-TYCR45XU.js";import{Aa as I,Ca as k,Ta as A,Va as E,ka as b,ma as f,ua as y}from"./chunk-CUIOWLG3.js";import{d as r}from"./chunk-773TIA5M.js";import{a as H}from"./chunk-M5GXA5W4.js";import{e as D,g as d}from"./chunk-VKWPEFWQ.js";d();d();var h="https://github.com/Shopify/skeleton-theme.git",q="https://github.com/Shopify/theme-liquid-docs.git",S={all:"All",github:"VS Code (GitHub Copilot)",cursor:"Cursor",claude:"Claude"};async function G(t,e){await U(t,e)}async function O(t,e){await U(t,e,!0)}async function U(t,e,o){await w([{title:`Cloning ${t} into ${e}`,task:async()=>{await g({repoUrl:t,destination:e,latestTag:o,shallow:!0}),await P(e),t===h&&(await Promise.all(Object.keys(S).map(async c=>x(r(e,`.${c}`)))),await x(r(e,".git")))}}])}async function x(t){await A(t)&&await k(t)}async function M(){return await C({message:"Which LLM instruction file would you like to include in your theme?",choices:[...Object.entries(S).map(([e,o])=>({label:o,value:e})),{label:"Skip",value:null}]})}async function $(t,e){let o=[];await w([{title:`Adding AI instructions into ${t}`,task:async()=>{await b(async c=>{await g({repoUrl:q,destination:c,shallow:!0});let l=e==="all"?Object.keys(S).filter(a=>a!=="all"):[e];try{let a=r(c,"ai","github","copilot-instructions.md"),s=await f(a),n=r(t,"AGENTS.md"),u=`# AGENTS.md
|
|
2
2
|
|
|
3
3
|
${s}`;await y(n,u),(await Promise.all(l.map(p=>W(t,n,p)))).forEach(p=>{p.copiedFile&&o.push(p.copiedFile)})}catch{throw new F("Failed to create AI instructions")}})}}]),o.length>0&&T({headline:"Files created instead of symlinks.",body:`Shopify CLI attempted to create symbolic links between AGENTS.md and ${o.join(", ")}, but your system doesn't have Developer Mode enabled or symlinks are disabled. Separate files were created instead.`})}async function W(t,e,o){if(o==="cursor")return{};let l={github:"copilot-instructions.md",claude:"CLAUDE.md"}[o],a=r(t,l);try{return await I(e,a),{}}catch(s){if(s instanceof Error){let n=await f(e);return await y(a,n),{copiedFile:l}}else throw s}}var m=D(H(),1);var j,i=class extends R{async command(e,o,c,l){let a=l.name??await this.promptName(e.path),s=e["clone-url"],n=r(e.path,a);if(e.latest?await O(s,n):await G(s,n),!L())return;let u=await M();u&&await $(n,u)}async promptName(e){let o=await E({suffix:"theme",directory:e,family:"creative"});return v({message:"Name of the new theme",defaultValue:o})}};j=i;i.summary="Clones a Git repository to use as a starting point for building a new theme.";i.descriptionWithMarkdown=`Clones a Git repository to your local machine to use as the starting point for building a theme.
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
1
|
+
import{a as l}from"./chunk-J3XPLRPC.js";import{p as r,q as m,v as a}from"./chunk-LLNBH7KL.js";import{b as s,c as h}from"./chunk-AAG2JILI.js";import{ua as i}from"./chunk-MCP5CY6B.js";import{a as v}from"./chunk-M5GXA5W4.js";import{e as f,g as n}from"./chunk-VKWPEFWQ.js";n();var e=f(v(),1);var p,t=class extends a{async command(o,d,c,y,u){i("theme-command:push"),await l({...o,allowLive:o["allow-live"],noColor:o["no-color"],developmentContext:o["development-context"]},d,c,u),i("theme-command:push")}storeAuthScopes(){return["read_themes","write_themes"]}};p=t;t.summary="Uploads your local theme files to the connected store, overwriting the remote version if specified.";t.usage=["theme push","theme push --unpublished --json"];t.descriptionWithMarkdown=`Uploads your local theme files to Shopify, overwriting the remote version if specified.
|
|
2
2
|
|
|
3
3
|
If no theme is specified, then you're prompted to select the theme to overwrite from the list of the themes in your store.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d}from"./chunk-
|
|
1
|
+
import{a as d}from"./chunk-25XKE6QJ.js";import{a as m}from"./chunk-ZXAEYDNN.js";import{a as p}from"./chunk-IQLFGDUD.js";import{wa as s}from"./chunk-KYHMD54O.js";import{b as n}from"./chunk-AAG2JILI.js";import{Lb as r}from"./chunk-CUIOWLG3.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var o,t=class extends m{async run(){let{flags:a}=await this.parse(o),{app:e,remoteApp:l,organization:c}=await s({directory:a.path,clientId:a["client-id"],forceRelink:a.reset,userProvidedConfigName:a.config});return r(await d(e,l,c)),{app:e}}};o=t;t.summary="Display app and extensions environment variables.";t.descriptionWithMarkdown="Displays environment variables that can be used to deploy apps and app extensions.";t.description=o.descriptionWithoutMarkdown();t.flags={...n,...p};var w=t;export{w as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as g,b as A,d as w,g as k}from"./chunk-
|
|
1
|
+
import{a as g,b as A,d as w,g as k}from"./chunk-V6GRT7OB.js";import{a as S}from"./chunk-U36IMQ6Y.js";import{t as P}from"./chunk-MGTKKOH3.js";import{a as F}from"./chunk-ZXAEYDNN.js";import{a as G}from"./chunk-IQLFGDUD.js";import{b,e as L}from"./chunk-AAG2JILI.js";import{t as d,y as u}from"./chunk-MCP5CY6B.js";import{J as f,a as c}from"./chunk-FGYV4PZF.js";import{Fb as h,Hb as y,Mb as n,Qb as v}from"./chunk-CUIOWLG3.js";import{a as x}from"./chunk-M5GXA5W4.js";import{e as q,g as i}from"./chunk-VKWPEFWQ.js";i();i();i();import{randomBytes as C}from"crypto";function M(){return C(32).toString("hex")}function T(r){let e=new URL(`http://localhost:${r.port}/graphiql`);return e.searchParams.set("key",r.key),r.query&&e.searchParams.set("query",r.query),r.variables&&e.searchParams.set("variables",r.variables),r.apiVersion&&e.searchParams.set("api_version",r.apiVersion),e.toString()}async function I(r){let e=await S(r.port),t=A({stdout:r.stdout??process.stdout,port:e,storeFqdn:r.storeFqdn,tokenProvider:r.tokenProvider,key:r.key,appContext:r.appContext,protectMutations:r.protectMutations}),a=T({port:e,key:r.key,query:r.query,variables:r.variables,apiVersion:r.apiVersion});try{n(y`GraphiQL is running at ${h.link(a)}`),r.additionalReadyMessages?.forEach(p=>n(p)),n("Press Ctrl+C to stop."),await f(a)||v("Browser did not open automatically. Open the URL above manually."),await O(r.abortSignal)}finally{t.close()}}async function O(r){let e=new c,t=()=>e.abort();process.once("SIGINT",t);try{await new Promise(a=>{if(e.signal.aborted||r?.aborted){a();return}e.signal.addEventListener("abort",()=>a(),{once:!0}),r?.addEventListener("abort",()=>e.abort(),{once:!0})})}finally{process.removeListener("SIGINT",t)}}async function Q(r){let e=r.remoteApp.apiSecretKeys[0]?.secret??"",t=g(void 0,e,r.store),a=k({apiKey:r.remoteApp.apiKey,apiSecret:e,storeFqdn:r.store}),l=await d(),p=w(r.store,r.remoteApp.apiKey,l);await I({port:r.port,storeFqdn:r.store,tokenProvider:a,key:t,appContext:{appName:r.remoteApp.title,appUrl:p,apiSecret:e},variables:r.variables,apiVersion:r.apiVersion,abortSignal:r.abortSignal})}var s=q(x(),1),m,o=class extends F{async run(){let{flags:e}=await this.parse(m),{appContextResult:t,store:a}=await P(e);return await Q({remoteApp:t.remoteApp,store:a.shopDomain,port:e.port,variables:e.variables,apiVersion:e.version}),{app:t.app}}};m=o;o.summary="Open a local GraphiQL UI for your app and store.";o.descriptionWithMarkdown=`Opens an authenticated Admin API GraphiQL UI for your app and selected store.
|
|
2
2
|
|
|
3
3
|
The app must be installed on the store.`;o.description=m.descriptionWithoutMarkdown();o.examples=["<%= config.bin %> <%= command.id %> --store shop.myshopify.com","<%= config.bin %> <%= command.id %> --store shop.myshopify.com --port 9123"];o.flags={...b,...G,store:s.Flags.string({char:"s",description:"The myshopify.com domain of the store to open GraphiQL against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async r=>u(r)}),port:L({description:"Local port for the GraphiQL server.",env:"SHOPIFY_FLAG_PORT"}),variables:s.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES"}),version:s.Flags.string({description:"The API version to use in GraphiQL. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})};var ar=o;export{M as a,I as b,ar as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c}from"./chunk-
|
|
1
|
+
import{e as c}from"./chunk-MGTKKOH3.js";import{R as s}from"./chunk-MCP5CY6B.js";import{m as p,p as a}from"./chunk-TYCR45XU.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function v(e,t){let o=e.apiSecretKeys[0]?.secret;if(!o)throw new a("No API secret keys found for app");return s(t,e.apiKey,o)}function y(e){let{organization:t,remoteApp:o,storeFqdn:u,version:r}=e,n=[`Organization: ${t.businessName}`,`App: ${o.title}`,`Store: ${u}`];return r&&n.push(`API version: ${r}`),n}function S(e,t){if(c(e)&&t.storeType!=="APP_DEVELOPMENT")throw new p("Mutations can only be executed on dev stores.")}export{v as a,y as b,S as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h,c as D,d as _,e as w}from"./chunk-
|
|
1
|
+
import{a as h,c as D,d as _,e as w}from"./chunk-M3RPZHYI.js";import{g as y,p as O,v as b}from"./chunk-LLNBH7KL.js";import{b as S,c as T}from"./chunk-AAG2JILI.js";import{u as F}from"./chunk-FGYV4PZF.js";import{b as v}from"./chunk-7QMA6EVS.js";import{Hb as a,Lb as L,Pb as l}from"./chunk-CUIOWLG3.js";import{a as G}from"./chunk-M5GXA5W4.js";import{e as $,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();var u;function p(){return u??(u=new v({projectName:"shopify-cli-host-theme-conf"})),u}function E(e){return l(a`Getting host theme...`),p().get(e)}function Y(e,t){l(a`Setting host theme...`),p().set(e,t)}function C(e){l(a`Removing host theme...`),p().delete(e)}function j(e,t){return{title:e,body:{tabularData:t}}}async function I(e,t){let n=t.storeFqdn,g=new w({...h.reduce((m,s)=>(m[s]=e.role===s,m),{}),theme:e.id?.toString()??e.name}),i=await D(t),x=y(),H=E(n);if(g.any()&&(i=_(n,i,g)),e.json)return L(JSON.stringify(i,null,2));let A=i.map(({id:m,name:s,role:d})=>{let f="";return d&&(f=`[${d}]`,[x,H].includes(`${m}`)&&(f+=" [current]")),[s,f,`#${m}`]}),R=[["name","role","id"],["\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"],...A];F({customSections:[...e.environment?[{title:`${n} theme library`,body:[{subdued:`Environment name: ${e.environment}`}]}]:[],j("",R)]})}var c=$(G(),1);var r=class extends b{async command(t,n){await I(t,n)}};r.description="Lists the themes in your store, along with their IDs and statuses.";r.flags={...S,...T,...O,role:c.Flags.custom({description:"Only list themes with the given role.",options:h,env:"SHOPIFY_FLAG_ROLE"})(),name:c.Flags.string({description:"Only list themes that contain the given name.",env:"SHOPIFY_FLAG_NAME"}),id:c.Flags.integer({description:"Only list theme with the given ID.",env:"SHOPIFY_FLAG_ID"})};r.multiEnvironmentsFlags=["store","password"];var oe=r;export{E as a,Y as b,C as c,oe as d};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as N,b as $,c as w}from"./chunk-
|
|
1
|
+
import{a as N,b as $,c as w}from"./chunk-ZZO5S7O5.js";import{m as T}from"./chunk-MCP5CY6B.js";import{O as P,P as k,a as F}from"./chunk-FGYV4PZF.js";import{a as D,b}from"./chunk-Y5RHZU3E.js";import{p as A}from"./chunk-TYCR45XU.js";import{Ia as U,La as I,N as x,Pa as O,Pb as u,Ua as p,xa as y,za as _}from"./chunk-CUIOWLG3.js";import{f as h}from"./chunk-MBIOMVRS.js";import{d as m,i as l,j as S}from"./chunk-773TIA5M.js";import{g as f}from"./chunk-VKWPEFWQ.js";f();f();import{fileURLToPath as q}from"url";import Y from"util";import{pipeline as j}from"stream";import{execSync as z,execFileSync as B}from"child_process";var H="2024.8.2",W=`https://github.com/cloudflare/cloudflared/releases/download/${H}/`,G={arm64:"cloudflared-linux-arm64",arm:"cloudflared-linux-arm",x64:"cloudflared-linux-amd64",ia32:"cloudflared-linux-386"},V={arm64:"cloudflared-darwin-arm64.tgz",x64:"cloudflared-darwin-amd64.tgz"},X={x64:"cloudflared-windows-amd64.exe",ia32:"cloudflared-windows-386.exe",arm64:"cloudflared-windows-amd64.exe"},v={linux:G,darwin:V,win32:X};function Z(r=process.platform,t=process.arch){if(!Object.keys(v).includes(r))throw new Error(`Unsupported system platform: ${r}`);let n=v[r][t];if(n===void 0)throw new Error(`Unsupported system arch: ${t}`);return W+n}function J(r=process.env,t=process.platform){return r.SHOPIFY_CLI_CLOUDFLARED_PATH?r.SHOPIFY_CLI_CLOUDFLARED_PATH:m(l(q(import.meta.url)),"..","bin",t==="win32"?"cloudflared.exe":"cloudflared")}async function g(r=process.env,t=process.platform,e=process.arch){if(r.SHOPIFY_CLI_IGNORE_CLOUDFLARED){u("Skipping cloudflared installation because SHOPIFY_CLI_IGNORE_CLOUDFLARED is set");return}let n=Z(t,e),o=J(r,t);if(p(o))try{let a=B(o,["--version"],{encoding:"utf8"}).split(" "),i=a.length>2?a[2]:"0.0.0";if(!K(H,i)){u("cloudflared already installed, skipping");return}}catch{u("version check failed, reinstalling")}if(t==="linux")await Q(n,o);else if(t==="darwin")await rt(n,o);else if(t==="win32")await tt(n,o);else throw new Error(`Unsupported platform: ${t}`)}function K(r,t){let[e,n,o]=r.split(".").map(Number),[a,i,c]=t.split(".").map(Number);return e!==a?(e??0)>(a??0):n!==i?(n??0)>(i??0):(o??0)>(c??0)}async function Q(r,t){await C(r,t),await O(t,"755")}async function tt(r,t){await C(r,t)}async function rt(r,t){await C(r,`${t}.tgz`);let e=S(`${t}.tgz`);z(`tar -xzf ${e}`,{cwd:l(t)}),U(`${t}.tgz`),await _(`${l(t)}/cloudflared`,t)}async function C(r,t){p(l(t))||y(l(t));let e=Y.promisify(j),n=await T(r,{redirect:"follow"},"slow-request");if(!n.ok||!n.body)throw new Error(`Couldn't download file ${r} (${n.status} ${n.statusText})`);let o=I(t);return await e(n.body,o),t}import{Writable as et}from"stream";import{fileURLToPath as nt}from"url";var $t=$({provider:w,action:it}),ot=h()?.2:40,st=5;async function it(r){try{let t=new R(r);return await t.startTunnel(),D(t)}catch(t){let e=new N("unknown",t.message);return b(e)}}var R=class{constructor(t){this.provider=w,this.currentStatus={status:"not-started"},this.abortController=void 0,this.port=t}async startTunnel(){try{await g(),this.tunnel()}catch(t){this.currentStatus={status:"error",message:t.message,tryMessage:d()}}}getTunnelStatus(){return this.currentStatus}stopTunnel(){this.abortController?.abort()}tunnel(t=0){this.abortController=new F;let e=!1;if(t>=st){e=!0,this.currentStatus={status:"error",message:"Could not start Cloudflare tunnel: max retries reached.",tryMessage:d()};return}let n=["tunnel","--url",`http://localhost:${this.port}`,"--no-autoupdate"],o=[],a=!1,i;this.currentStatus={status:"starting"},setTimeout(()=>{if(!e){e=!0;let s=x(o).slice(-5).join(`
|
|
2
2
|
`);s===""?this.currentStatus={status:"error",message:"Could not start Cloudflare tunnel: unknown error.",tryMessage:d()}:this.currentStatus={status:"error",message:s,tryMessage:d()},this.abortController?.abort()}},ot*1e3);let c=this,E=new et({write(s,mt,M){if(u(s.toString()),e)return;i??(i=at(s)),ct(s)&&(a=!0),a&&(i?(e=!0,c.currentStatus={status:"connected",url:i}):c.currentStatus={status:"error",message:"Could not start Cloudflare tunnel: URL not found."});let L=lt(s);L&&o.push(L),M()}});P(dt(),n,{stdout:E,stderr:E,signal:this.abortController.signal,externalErrorHandler:async s=>{if(e)throw new A(`Could not start Cloudflare tunnel: process crashed after stablishing a connection: ${s.message}`,d());u(`Cloudflare tunnel crashed: ${s.message}, restarting...`),h()||await k(1),this.tunnel(t+1)}})}};function d(){return["You can run the command again, or try networking with Shopify via",{command:"--use-localhost"},"or",{command:"--tunnel-url <custom tunnel>"},".",{link:{label:"See documentation for details.",url:"https://shopify.dev/docs/apps/build/cli-for-apps/networking-options"}}]}function at(r){let t=new RegExp(`(https:\\/\\/[^\\s]+\\.${ft()})`),e=r.toString().match(t)??void 0;return e&&e[1]}function lt(r){if([/failed to request quick Tunnel/,/failed to unmarshal quick Tunnel/,/failed to parse quick Tunnel ID/,/failed to provision routing/,/ERR Couldn't start tunnel/,/ERR Failed to serve quic connection/,/ERR Failed to create new quic connection error/].some(n=>n.test(r.toString())))return`Could not start Cloudflare tunnel: ${ut(r.toString())}`}function ut(r){let t=/^[0-9TZ:-]+ (ERR )?/g,e=/connIndex.*/g;return r.replace(t,"").replace(e,"")}function ct(r){let t=r.toString().match(/(INF Registered tunnel connection|INF Connection)/)??void 0;return t&&t[0]}function dt(){return process.env.SHOPIFY_CLI_CLOUDFLARED_PATH?process.env.SHOPIFY_CLI_CLOUDFLARED_PATH:m(l(nt(import.meta.url)),"..","bin",process.platform==="win32"?"cloudflared.exe":"cloudflared")}function ft(){return process.env.SHOPIFY_CLI_CLOUDFLARED_DOMAIN??"trycloudflare.com"}export{$t as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as m}from"./chunk-
|
|
1
|
+
import{b as m}from"./chunk-ZGI4ZRVE.js";import{C as f}from"./chunk-FGYV4PZF.js";import{Lb as c}from"./chunk-CUIOWLG3.js";import{a as N}from"./chunk-M5GXA5W4.js";import{e as v,g}from"./chunk-VKWPEFWQ.js";g();var d=v(N(),1),i=class h extends m{static{this.description="View all the available command flags"}static{this.hidden=!0}static{this.flags={csv:d.Flags.boolean({description:"Output as CSV",env:"SHOPIFY_FLAG_OUTPUT_CSV",default:!1})}}async run(){let{flags:p}=await this.parse(h),s=[];for(let[t,a]of this.config.plugins)for(let o of a.commands){let l=await o.load(),n;a.name.startsWith("@shopify")?n=a.name.substring(9):n=a.name.startsWith("@oclif")?a.name.substring(7):a.name;let e=l.flags;if(e)for(let[u,r]of Object.entries(e))s.push({pluginName:n,command:o.id,flagName:`--${u}`,flagChar:r.char?`-${r.char}`:"",flagEnv:r.env})}if(p.csv){let t=["pluginName","command","flagName","flagChar","flagEnv"],a=`${t.join(",")}
|
|
2
2
|
`,o=s.map(n=>t.map(e=>n[e]).join(",")).join(`
|
|
3
3
|
`),l=`${a}${o}
|
|
4
4
|
`;c(l)}else f({rows:s,columns:{pluginName:{header:"plugin",color:"red"},command:{},flagName:{header:"long flag",color:"green"},flagChar:{header:"short flag",color:"green"},flagEnv:{header:"env variable",color:"blueBright"}}})}};export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b}from"./chunk-
|
|
1
|
+
import{a as b}from"./chunk-ZXAEYDNN.js";import{a as k}from"./chunk-IQLFGDUD.js";import{aa as x,wa as N}from"./chunk-KYHMD54O.js";import{b as C,c as R}from"./chunk-AAG2JILI.js";import{C as y}from"./chunk-FGYV4PZF.js";import{m as v}from"./chunk-TYCR45XU.js";import{Fb as w,Hb as E,Lb as L,Mb as m,Vb as T,ba as h}from"./chunk-CUIOWLG3.js";import{u as A}from"./chunk-A4SBXDZB.js";import{j as u}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();l();var M=12;async function S(p,t,o){let n=await p.appVersions(t);if(!n.app)throw new v(`Invalid API Key: ${t.apiKey}`);let a=n.app.appVersions.nodes.map(e=>{let r=e.message??"";return{...e,status:e.status==="active"&&!o?A.green(`\u2605 ${e.status}`):e.status,createdBy:e.createdBy?.displayName??"",createdAt:h(new Date(e.createdAt)),message:r}});if(!o){let e=(process.stdout.columns??75)-M,r=e;a.forEach(s=>{let f=s.message.length+(s.versionTag?.length??0)+T(s.status).length+s.createdAt.length+s.createdBy.length;if(f>e){let I=f-s.message.length,g=Math.max(e-I,10);g<r&&(r=g)}}),a.forEach(s=>{s.message.length>r&&(s.message=`${s.message.slice(0,r-3)}...`)})}return{appVersions:a,totalResults:n.app.appVersions.pageInfo.totalResults,app:n.app}}async function c(p){let{remoteApp:t,developerPlatformClient:o,organization:n}=p,{appVersions:a,totalResults:e}=await S(o,t,p.json);if(p.json)return L(JSON.stringify(a,null,2));if(x({org:n.businessName,appName:t.title,configFile:u(p.app.configPath)}),a.length===0){m("No app versions found for this app");return}y({rows:a,columns:{versionTag:{header:"VERSION"},status:{header:"STATUS"},message:{header:"MESSAGE"},createdAt:{header:"DATE CREATED"},createdBy:{header:"CREATED BY"}}});let r=w.link(o.webUiName,[await o.appDeepLink(t),"versions"].join("/"));m(E`\nView all ${String(e)} app versions in the ${r}`)}var d,i=class extends b{async run(){let{flags:t}=await this.parse(d),{app:o,remoteApp:n,developerPlatformClient:a,organization:e}=await N({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});return await c({app:o,remoteApp:n,organization:e,developerPlatformClient:a,json:t.json}),{app:o}}};d=i;i.summary="List deployed versions of your app.";i.descriptionWithMarkdown="Lists the deployed app versions. An app version is a snapshot of your app extensions.";i.description=d.descriptionWithoutMarkdown();i.flags={...C,...k,...R};var J=i;export{J as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as d,c as f}from"./chunk-
|
|
1
|
+
import{b as d,c as f}from"./chunk-ZKOUILK2.js";import{a as c}from"./chunk-Y3IZPAA6.js";import{a as p}from"./chunk-IQLFGDUD.js";import{e as i,xa as u}from"./chunk-KYHMD54O.js";import{b as n}from"./chunk-AAG2JILI.js";import{v as e}from"./chunk-FGYV4PZF.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var a,t=class extends c{async run(){let{flags:o}=await this.parse(a),{app:r}=await u({directory:o.path,userProvidedConfigName:o.config}),m=await f(r,o.path);return await i(m,{stdout:process.stdout,stderr:process.stderr,app:r}),e({headline:"GraphQL types generated successfully."}),{app:r}}};a=t;t.summary="Generate GraphQL types for a function.";t.descriptionWithMarkdown="Creates GraphQL types based on your [input query](https://shopify.dev/docs/apps/functions/input-output#input) for a function. Supports JavaScript functions out of the box, or any language via the `build.typegen_command` configuration.";t.description=a.descriptionWithoutMarkdown();t.flags={...n,...p,...d};var x=t;export{x as a};
|