@shopify/cli 0.0.0-snapshot-20260722210655 → 0.0.0-snapshot-20260723175937
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-7C5M2VCO.js +1 -0
- package/dist/analytics-ISEOSBXQ.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-ROBYXQMW.js → chunk-25TGONTZ.js} +1 -1
- package/dist/{chunk-Q37I33P7.js → chunk-26NH7QQF.js} +1 -1
- package/dist/chunk-27IBAKXK.js +1 -0
- package/dist/{chunk-GAUJKBLY.js → chunk-2ABJYYVF.js} +1 -1
- package/dist/{chunk-6SVMZEJO.js → chunk-2AIX3ZEA.js} +1 -1
- package/dist/{chunk-SUOXR2CE.js → chunk-2KAM4SR5.js} +1 -1
- package/dist/{chunk-GWUDVP3Q.js → chunk-2S5KE5HI.js} +1 -1
- package/dist/{chunk-L6VQZJM4.js → chunk-2XNXIQPJ.js} +1 -1
- package/dist/{chunk-VSPM4VES.js → chunk-2ZSXGYTT.js} +1 -1
- package/dist/{chunk-PNCF5LNZ.js → chunk-37B4MKUV.js} +1 -1
- package/dist/{chunk-VFU5YYTM.js → chunk-3CZCBBO2.js} +1 -1
- package/dist/{chunk-SACH2YSZ.js → chunk-3EL4GA72.js} +1 -1
- package/dist/{chunk-POYWH3PD.js → chunk-3F46XSP6.js} +1 -1
- package/dist/{chunk-X2NVFYY6.js → chunk-3FANSGNX.js} +1 -1
- package/dist/{chunk-2OBG4WT7.js → chunk-3FJMXGVN.js} +1 -1
- package/dist/{chunk-OYOTLGGD.js → chunk-3HEORIF3.js} +1 -1
- package/dist/{chunk-HXJ7HJFS.js → chunk-3LDCOBRM.js} +1 -1
- package/dist/{chunk-SW3DP3GU.js → chunk-3MV5A5HR.js} +1 -1
- package/dist/{chunk-3R45SEUK.js → chunk-3OKGR33F.js} +1 -1
- package/dist/{chunk-JNAAHGJ6.js → chunk-3PFKQSWK.js} +1 -1
- package/dist/{chunk-PNYIQOOE.js → chunk-3UFQ664V.js} +1 -1
- package/dist/{chunk-AK4NPOQG.js → chunk-3UYW3ZAG.js} +1 -1
- package/dist/{chunk-3PFIBTES.js → chunk-3XHYGKBZ.js} +3 -3
- package/dist/{chunk-SY3LXLT2.js → chunk-4D7XW3LW.js} +1 -1
- package/dist/{chunk-34CCAMTT.js → chunk-4DEWRMWM.js} +1 -1
- package/dist/{chunk-P5KLFBCI.js → chunk-4KXJD6WW.js} +1 -1
- package/dist/{chunk-GVHVEYNG.js → chunk-4LK74JVJ.js} +1 -1
- package/dist/{chunk-LANGOUPS.js → chunk-4MERFNHB.js} +2 -2
- package/dist/{chunk-2RLFO4KD.js → chunk-5HTTO4O6.js} +1 -1
- package/dist/{chunk-NIQWXTKA.js → chunk-5UTJOHAV.js} +1 -1
- package/dist/{chunk-MH6UDGGS.js → chunk-5X6JR7QJ.js} +1 -1
- package/dist/{chunk-65H3LZJA.js → chunk-62G4E3FF.js} +1 -1
- package/dist/{chunk-IDRP7BXW.js → chunk-63G2KGOU.js} +1 -1
- package/dist/{chunk-AMLHR2HO.js → chunk-65VUWLXE.js} +1 -1
- package/dist/{chunk-5RMFBXP6.js → chunk-6MDI7364.js} +1 -1
- package/dist/{chunk-EIEHPIWJ.js → chunk-6SZRXJX2.js} +1 -1
- package/dist/{chunk-HJH672U6.js → chunk-72YGVGPS.js} +1 -1
- package/dist/{chunk-SP7NSQ6G.js → chunk-7CF2LWEW.js} +1 -1
- package/dist/{chunk-ZDKGQCIZ.js → chunk-7ER6T55S.js} +1 -1
- package/dist/{chunk-3RUWUOIR.js → chunk-7LOSGGE6.js} +1 -1
- package/dist/{chunk-XEHMXJ5J.js → chunk-AB7462EM.js} +1 -1
- package/dist/chunk-AS7WHEG6.js +1 -0
- package/dist/{chunk-LX3NHWCT.js → chunk-AZK63TEX.js} +1 -1
- package/dist/{chunk-4NSHAMD3.js → chunk-BGTOVY2S.js} +1 -1
- package/dist/{chunk-EI6ZQXTF.js → chunk-BXQV7N7H.js} +1 -1
- package/dist/{chunk-3GPUBV4D.js → chunk-BYW2F2BY.js} +1 -1
- package/dist/{chunk-V4CPWXJP.js → chunk-C3AC5FQS.js} +1 -1
- package/dist/{chunk-WKJNCJUV.js → chunk-C7BPIZLV.js} +1 -1
- package/dist/{chunk-OQ6WYWG4.js → chunk-CG22VLHL.js} +1 -1
- package/dist/{chunk-MTGARKCQ.js → chunk-CTYRVUJF.js} +1 -1
- package/dist/{chunk-33AVVFWW.js → chunk-CXYYVAYY.js} +1 -1
- package/dist/{chunk-H3QSHKNT.js → chunk-CY227SF6.js} +1 -1
- package/dist/{chunk-OPHCAOPB.js → chunk-DBH75XMC.js} +1 -1
- package/dist/{chunk-2CMSXRZ5.js → chunk-DDQPQB5D.js} +1 -1
- package/dist/{chunk-Q3DRVTVJ.js → chunk-DFSWF4VW.js} +1 -1
- package/dist/{chunk-2FNJZPYC.js → chunk-DYFP3SBA.js} +2 -2
- package/dist/{chunk-3XBPV64S.js → chunk-EFRJEZBJ.js} +1 -1
- package/dist/{chunk-M3FOYFPN.js → chunk-EIFAHNSO.js} +1 -1
- package/dist/{chunk-CNOGRHAB.js → chunk-EO3BLRBC.js} +1 -1
- package/dist/{chunk-SQVJGTTD.js → chunk-EOGQ7TJP.js} +2 -2
- package/dist/{chunk-XGJH3HBA.js → chunk-F46ZV3EJ.js} +1 -1
- package/dist/{chunk-E7Z7KYBR.js → chunk-F5LI3LKB.js} +1 -1
- package/dist/{chunk-ALKT4HX7.js → chunk-FD55RBY6.js} +1 -1
- package/dist/{chunk-IV3S4JU6.js → chunk-FDAURSWQ.js} +1 -1
- package/dist/chunk-FDYZZLAY.js +1 -0
- package/dist/{chunk-J5D222UG.js → chunk-FY7D7Z24.js} +1 -1
- package/dist/{chunk-5EDRU7YU.js → chunk-GHVEHA7R.js} +1 -1
- package/dist/{chunk-UMMEUYHM.js → chunk-GLBVUEXK.js} +1 -1
- package/dist/{chunk-LZO2JTZS.js → chunk-GQFZ3NV5.js} +1 -1
- package/dist/{chunk-DC3JYNAG.js → chunk-GZ4OU46N.js} +1 -1
- package/dist/{chunk-IDMJWVJC.js → chunk-H5BHHSWX.js} +1 -1
- package/dist/{chunk-22YTDD56.js → chunk-HIT7MKA6.js} +1 -1
- package/dist/{chunk-BPRY3O4N.js → chunk-HXPUMDUV.js} +1 -1
- package/dist/{chunk-IP2ZMDG4.js → chunk-I3RM47TC.js} +1 -1
- package/dist/{chunk-32KQUYFF.js → chunk-I6RAL5QK.js} +1 -1
- package/dist/{chunk-BKMZCB6M.js → chunk-I6UFC3HR.js} +1 -1
- package/dist/{chunk-IZCDEDIM.js → chunk-IF7RP3M3.js} +1 -1
- package/dist/{chunk-P4LA3M5S.js → chunk-IKLOCQ2C.js} +1 -1
- package/dist/{chunk-B3XKHB4G.js → chunk-INZZF4R2.js} +1 -1
- package/dist/{chunk-3GQ6AVHU.js → chunk-IUIDJ2PO.js} +1 -1
- package/dist/{chunk-MXATGPGZ.js → chunk-JMGXQSF3.js} +1 -1
- package/dist/{chunk-5N6YKJLU.js → chunk-JOKF7TQS.js} +1 -1
- package/dist/{chunk-HPH7WWMW.js → chunk-JWAFPHPO.js} +1 -1
- package/dist/{chunk-O6BUPYXH.js → chunk-K44YPOUY.js} +2 -2
- package/dist/{chunk-ZZ5M5IMF.js → chunk-K4Y7L7JO.js} +1 -1
- package/dist/{chunk-4GWHZ4RW.js → chunk-K7N3O5JJ.js} +1 -1
- package/dist/{chunk-6NRRHHK5.js → chunk-KLRRNM7H.js} +1 -1
- package/dist/{chunk-YKAMTVJM.js → chunk-KZHXG3OR.js} +1 -1
- package/dist/{chunk-J2JMKTPR.js → chunk-L2DBLX4V.js} +1 -1
- package/dist/{chunk-NDVET7BL.js → chunk-LBEAJPA3.js} +1 -1
- package/dist/{chunk-UA2432YR.js → chunk-LEMDZHSP.js} +1 -1
- package/dist/{chunk-UZR7JB5B.js → chunk-LMOWRJJP.js} +1 -1
- package/dist/{chunk-O5FUKS5D.js → chunk-LNE7HDII.js} +1 -1
- package/dist/{chunk-W6BBFBOM.js → chunk-LSNGFAPG.js} +1 -1
- package/dist/{chunk-IKP2EM5F.js → chunk-M2F2HMDM.js} +1 -1
- package/dist/{chunk-WFCP2AG5.js → chunk-M5NVKW2D.js} +1 -1
- package/dist/{chunk-SXWAECCX.js → chunk-MK2K6PO4.js} +1 -1
- package/dist/{chunk-A35F74KC.js → chunk-N5MWZQUH.js} +1 -1
- package/dist/{chunk-SNK55FY2.js → chunk-N5VSGERX.js} +1 -1
- package/dist/{chunk-35Z5TIZM.js → chunk-O7LFTI43.js} +1 -1
- package/dist/{chunk-H2Z3SST2.js → chunk-OJVEC76K.js} +1 -1
- package/dist/{chunk-O7HL63YP.js → chunk-OK7WTQON.js} +1 -1
- package/dist/{chunk-CFZVZFVH.js → chunk-P7YRGKJH.js} +1 -1
- package/dist/{chunk-L6C3DLKN.js → chunk-PFVF5CZ4.js} +1 -1
- package/dist/{chunk-X5GZF33W.js → chunk-PJWEE7VH.js} +1 -1
- package/dist/{chunk-FS37ZPWQ.js → chunk-PR7JET4Q.js} +1 -1
- package/dist/{chunk-ISVXQQ4E.js → chunk-Q2QCCK7J.js} +1 -1
- package/dist/{chunk-CFXL555E.js → chunk-QBL3VWF4.js} +1 -1
- package/dist/{chunk-R56CBH7G.js → chunk-QG4SGGWR.js} +1 -1
- package/dist/{chunk-74DZVIJF.js → chunk-QRUQJQYE.js} +1 -1
- package/dist/{chunk-FDQNY7RF.js → chunk-R3GD62F4.js} +1 -1
- package/dist/{chunk-MSDNBGRH.js → chunk-RQLOFISE.js} +1 -1
- package/dist/{chunk-HFGB7XAM.js → chunk-RUMPZWDB.js} +1 -1
- package/dist/{chunk-PPHJ4F2Z.js → chunk-S3SPKCJD.js} +1 -1
- package/dist/{chunk-5VKFEYZK.js → chunk-S6JGBSUV.js} +1 -1
- package/dist/{chunk-CT5MMCRM.js → chunk-SEIBJIHL.js} +1 -1
- package/dist/{chunk-5Y33JTFD.js → chunk-SK4IRFCK.js} +1 -1
- package/dist/{chunk-HG5QVQ2T.js → chunk-SLDQ5BC7.js} +1 -1
- package/dist/{chunk-VURVVLVE.js → chunk-SLQHQJIR.js} +1 -1
- package/dist/{chunk-RUV5AE3N.js → chunk-ST2DGIWE.js} +1 -1
- package/dist/{chunk-BQ2752RO.js → chunk-TGIRO2TB.js} +1 -1
- package/dist/{chunk-X4JRQETX.js → chunk-TYR2AZ2U.js} +1 -1
- package/dist/{chunk-VBL7DLY7.js → chunk-TZ7FKRXB.js} +1 -1
- package/dist/{chunk-6CZ7WGE2.js → chunk-UJ4VQGXU.js} +1 -1
- package/dist/{chunk-JBIXZWT6.js → chunk-V3IMCEL6.js} +1 -1
- package/dist/{chunk-XYV4QXQT.js → chunk-VCXCFKA6.js} +1 -1
- package/dist/{chunk-5HGRHX2Z.js → chunk-VGJ3QPC2.js} +1 -1
- package/dist/{chunk-FS4HIL62.js → chunk-VJXKYDM6.js} +1 -1
- package/dist/{chunk-ZKNONN2F.js → chunk-VMPA4DZ3.js} +1 -1
- package/dist/{chunk-I7QJGHS6.js → chunk-W25DPKDC.js} +1 -1
- package/dist/{chunk-YZQYDTO7.js → chunk-W2W2F55C.js} +1 -1
- package/dist/{chunk-FVQG4KLI.js → chunk-W57R5X75.js} +1 -1
- package/dist/{chunk-FW732EHN.js → chunk-W6MEUK2V.js} +1 -1
- package/dist/{chunk-HS7TCC4I.js → chunk-WAH2LVVU.js} +1 -1
- package/dist/{chunk-NUCUZBO3.js → chunk-WQDFO5DZ.js} +1 -1
- package/dist/{chunk-VQ44LFBY.js → chunk-WQLVBL6G.js} +1 -1
- package/dist/{chunk-3I6ZVKZ2.js → chunk-WUSJP6KG.js} +1 -1
- package/dist/{chunk-XBFXB6S6.js → chunk-X6YKSZTY.js} +1 -1
- package/dist/{chunk-W6KRZTDH.js → chunk-X7EK6UZQ.js} +1 -1
- package/dist/{chunk-OLQN2OBC.js → chunk-XALIRIZF.js} +1 -1
- package/dist/{chunk-W2RZY64W.js → chunk-XCTHPL4E.js} +1 -1
- package/dist/{chunk-FFC42T6R.js → chunk-XGCOJ7UT.js} +1 -1
- package/dist/{chunk-SH5VEQ7F.js → chunk-XJMML6SY.js} +1 -1
- package/dist/{chunk-AROEKWUX.js → chunk-XQBHDUNJ.js} +1 -1
- package/dist/{chunk-KHOW6SXW.js → chunk-XR6V742E.js} +1 -1
- package/dist/{chunk-OM3YN7ZK.js → chunk-YDUVKJIB.js} +1 -1
- package/dist/{chunk-ONCEFPYP.js → chunk-YIZV3FZO.js} +1 -1
- package/dist/{chunk-KNLPWHHJ.js → chunk-YKQLGBJM.js} +2 -2
- package/dist/{chunk-FOQ2RDEI.js → chunk-YLA2NKA6.js} +1 -1
- package/dist/{chunk-XKMLKEYX.js → chunk-YNFZXXCS.js} +1 -1
- package/dist/{chunk-IPKYIHDV.js → chunk-YNVN765Y.js} +1 -1
- package/dist/{chunk-N54QOQ2V.js → chunk-YPHEUPMZ.js} +1 -1
- package/dist/{chunk-QAMPDFZB.js → chunk-YTINYHIV.js} +1 -1
- package/dist/{chunk-WYT437LJ.js → chunk-Z4E54GTK.js} +1 -1
- package/dist/{chunk-EL5U7452.js → chunk-Z4HK5PYZ.js} +1 -1
- package/dist/{chunk-N2UVYELM.js → chunk-ZA2P2XLH.js} +1 -1
- package/dist/{chunk-2VVXGQ36.js → chunk-ZEVWQAWR.js} +1 -1
- package/dist/{chunk-GJGKVHUR.js → chunk-ZMEDSOFC.js} +1 -1
- package/dist/{chunk-ZKIIMXKC.js → chunk-ZXXEEQKW.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/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-UXALA7ZH.js +1 -0
- package/dist/{deprecations-SA4HEVBI.js → deprecations-Z2AKXOSN.js} +1 -1
- package/dist/dist-AB723W2X.js +1 -0
- package/dist/dist-MI22B6JV.js +1 -0
- package/dist/{environments-LDSGQHXC.js → environments-2J6IO6NS.js} +1 -1
- package/dist/{error-YY774ESQ.js → error-C7LRAXPN.js} +1 -1
- package/dist/error-handler-AG5VMYWI.js +1 -0
- package/dist/{fs-EIM4AORY.js → fs-L2VBGU3E.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 +15 -15
- package/dist/{is-global-USYUXR55.js → is-global-ZB4Z53E4.js} +1 -1
- package/dist/{local-INRMOHAI.js → local-MZAF2JS4.js} +1 -1
- package/dist/{local-storage-7THURD3W.js → local-storage-LFCMTFLG.js} +1 -1
- package/dist/{metadata-WJ637XA2.js → metadata-IFRL6WLE.js} +1 -1
- package/dist/{node-package-manager-4X2YQGFC.js → node-package-manager-MNMMTKSE.js} +1 -1
- package/dist/notifications-system-WTOJOHUT.js +1 -0
- package/dist/{output-CLCX5WU7.js → output-CRFKNJOK.js} +1 -1
- package/dist/{prettier-VLTY4MIE.js → prettier-NOE3TJJ5.js} +1 -1
- package/dist/{system-J4OPHQAQ.js → system-2WLFWPW2.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-ZC5QZT4J.js → ui-ATGLY4UO.js} +1 -1
- package/dist/upgrade-NYAZSXEQ.js +1 -0
- package/dist/{version-EYLYG4JK.js → version-OFO7OKSR.js} +1 -1
- package/dist/version-Q4RRYUAM.js +1 -0
- package/dist/{workerd-VC3MCYDV.js → workerd-FIJ77CM7.js} +1 -1
- package/oclif.manifest.json +1 -30
- package/package.json +7 -10
- package/dist/analytics-JBPJLL57.js +0 -1
- package/dist/analytics-QVTQTZFT.js +0 -1
- package/dist/chunk-G3CPHVML.js +0 -1
- package/dist/chunk-RXO77IC5.js +0 -1
- package/dist/chunk-WMKVFUMY.js +0 -1
- package/dist/chunk-X2ZCC772.js +0 -1
- package/dist/cli/commands/skill/install.d.ts +0 -13
- package/dist/cli/commands/skill/install.js +0 -1
- package/dist/conf-store-OHJSRXSL.js +0 -1
- package/dist/dist-MIUGJGUW.js +0 -1
- package/dist/dist-XVWDWM2Y.js +0 -1
- package/dist/error-handler-QHCOZUC7.js +0 -1
- package/dist/notifications-system-ZSZWUJIZ.js +0 -1
- package/dist/skills-OXV2TD42.js +0 -1
- package/dist/upgrade-VSILBOCY.js +0 -1
- package/dist/version-FEVNX3F6.js +0 -1
- /package/dist/{chunk-2S3FHQFS.js → chunk-HVECVOIO.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c,c as u}from"./chunk-UKQ7NE5V.js";import{a as L}from"./chunk-M5GXA5W4.js";import{e as h,g as i}from"./chunk-VKWPEFWQ.js";i();i();import{fileURLToPath as C}from"node:url";async function m(e){let{isDevelopment:o}=await import("./local-
|
|
1
|
+
import{a as c,c as u}from"./chunk-UKQ7NE5V.js";import{a as L}from"./chunk-M5GXA5W4.js";import{e as h,g as i}from"./chunk-VKWPEFWQ.js";i();i();import{fileURLToPath as C}from"node:url";async function m(e){let{isDevelopment:o}=await import("./local-MZAF2JS4.js"),{ShopifyConfig:n}=await import("./custom-oclif-loader-OB5WR4LB.js"),r=await import("./lib-ZVVO5FML.js"),{run:a,flush:p,Errors:d,settings:f}=r.default??r;o()&&(f.debug=!0);try{let t=new n({root:C(e.moduleURL)});await t.load(),e.lazyCommandLoader&&t.setLazyCommandLoader(e.lazyCommandLoader),await a(e.argv,t),await p()}catch(t){let{errorHandler:l}=await import("./error-handler-AG5VMYWI.js");return await l(t),d.handle(t)}}var s=h(L());async function I(e=process.versions){let o=e.node,n=Number(o.split(".")[0]);if(n<18){let{renderError:a}=await import("./ui-ATGLY4UO.js");a({headline:"Upgrade to a supported Node version now.",body:[`Node ${n} has reached end-of-life and poses security risks. When you upgrade to a`,{link:{url:"https://nodejs.dev/en/about/previous-releases",label:"supported version"}},{char:","},"you'll be able to use Shopify CLI without interruption."]}),process.exit(1)}}function y(e,o=process.argv,n=process.env){o.includes("--verbose")&&(n.DEBUG=n.DEBUG??"*"),e.development&&(n.SHOPIFY_CLI_ENV=n.SHOPIFY_CLI_ENV??"development")}function b(e=process.argv,o=process.env){(e.includes("--no-color")||e.includes("--json")||e.includes("-j")||c(o.NO_COLOR)||c(o.SHOPIFY_FLAG_NO_COLOR)||c(o[u.json])||o.TERM==="dumb")&&(o.FORCE_COLOR="0")}async function N(e,o=m,n=process.argv,r=process.env,a=process.versions){return y(e,n,r),e.runInCreateMode&&await g(e,n),b(n,r),await I(a),o({moduleURL:e.moduleURL,lazyCommandLoader:e.lazyCommandLoader})}async function g(e,o=process.argv){let{findUpAndReadPackageJson:n}=await import("./node-package-manager-MNMMTKSE.js"),{moduleDirectory:r}=await import("./path-MBXP7ZIC.js"),d=(await n(r(e.moduleURL))).content.name.replace("@shopify/create-","");if(o.findIndex(t=>t.includes("init"))===-1){let t=o.findIndex(l=>l.match(new RegExp(`bin(\\/|\\\\)+(create-${d}|dev|run)`)))+1;o.splice(t,0,"init")}}var R={"no-color":s.Flags.boolean({hidden:!1,description:"Disable color output.",env:"SHOPIFY_FLAG_NO_COLOR"}),verbose:s.Flags.boolean({hidden:!1,description:"Increase the verbosity of the output.",env:"SHOPIFY_FLAG_VERBOSE"})},S={json:s.Flags.boolean({char:"j",description:"Output the result as JSON. Automatically disables color output.",hidden:!1,default:!1,env:u.json})},A={"auth-alias":s.Flags.string({description:"Alias of the Shopify account to use for authentication.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})},E=(e={})=>{let o=[e.description,"Must be between 1 and 65535."].filter(Boolean).join(" ");return s.Flags.integer({min:1,max:65535,...e,description:o})};async function j(){let{cacheClear:e}=await import("./conf-store-UXALA7ZH.js");e()}export{N as a,R as b,S as c,A as d,E as e,j as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as B}from"./chunk-
|
|
1
|
+
import{T as B}from"./chunk-CG22VLHL.js";import{q as O}from"./chunk-EOGQ7TJP.js";import{F as w,f as m}from"./chunk-YKQLGBJM.js";import{c as g,e as s,g as o}from"./chunk-VKWPEFWQ.js";var f=g((Q,c)=>{o();function j(r,e,t,n){for(var a=-1,i=r==null?0:r.length;++a<i;){var u=r[a];e(n,u,t(u),r)}return n}c.exports=j});var A=g((S,h)=>{o();var l=O();function E(r,e,t,n){return l(r,function(a,i,u){e(n,a,t(a),u)}),n}h.exports=E});var p=g((U,q)=>{o();var G=f(),I=A(),V=w(),C=m();function D(r,e){return function(t,n){var a=C(t)?G:I,i=e?e():{};return a(t,r,V(n,2),i)}}q.exports=D});var x=g((X,v)=>{o();var F=B(),H=p(),J=Object.prototype,K=J.hasOwnProperty,L=H(function(r,e,t){K.call(r,t)?r[t].push(e):F(r,t,[e])});v.exports=L});var y=g((Z,b)=>{o();var M=p(),N=M(function(r,e,t){r[t?0:1].push(e)},function(){return[[],[]]});b.exports=N});o();var P=s(x()),d=s(y());function $(r,e){return(0,P.default)(r,e)}function k(r,e){return(0,d.default)(r,e)}export{$ as a,k as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as D}from"./chunk-
|
|
1
|
+
import{a as D}from"./chunk-BXQV7N7H.js";import{c as ee,d as te}from"./chunk-37B4MKUV.js";import{A as T}from"./chunk-WQDFO5DZ.js";import{b as ne,c as re}from"./chunk-TGIRO2TB.js";import{a as Z}from"./chunk-FDYZZLAY.js";import{a as Q}from"./chunk-CXYYVAYY.js";import{wa as X}from"./chunk-4MERFNHB.js";import{b as Y,c as V}from"./chunk-HXPUMDUV.js";import{B as q,a as S,i as K,j as U,k as b,p as C}from"./chunk-EOGQ7TJP.js";import{a as J}from"./chunk-M5NVKW2D.js";import{m as M}from"./chunk-K44YPOUY.js";import{eb as O,fb as l,gb as s,ib as j,jb as G,kb as H,ma as N}from"./chunk-YKQLGBJM.js";import{f as z}from"./chunk-F5LI3LKB.js";import{d as I}from"./chunk-773TIA5M.js";import{a as ye}from"./chunk-M5GXA5W4.js";import{e as R,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();c();c();var y=R(O(),1);import{Writable as oe}from"stream";function ie({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:i}){let a={type:"functionRun",input:e.payload.input,output:e.payload.output,logs:e.payload.logs,name:e.source,size:0,memory_usage:0,instructions:e.payload.fuelConsumed},[u,f]=(0,y.useState)([]),[p,m]=(0,y.useState)([a,a]),[w,d]=(0,y.useState)(void 0),{input:E,export:$}=e.payload,[fe,L]=(0,y.useState)(`Watching for changes to ${e.source}...`);return(0,y.useEffect)(()=>{let A=new S;t.signal.addEventListener("abort",()=>{A.abort()});let B=async()=>{let F=await we(r,JSON.stringify(E),$);m(h=>[F,h[0]]),L(`Watching for changes to ${e.source}...`),f(h=>[...h,F])},de=async()=>{L("Replaying log with local function..."),await B()},ge=async()=>{i.onEvent(async h=>{let x=h.extensionEvents.find(v=>v.extension.handle===r.handle);if(!(!x||x.type!==ee.Updated)){if(x.buildResult?.status==="error"){d(`Error while reloading and building extension: ${x.buildResult?.error}`);return}d(void 0),L("Re-running with latest changes..."),await B()}});let F=new oe({write(h,x,v){f(he=>[...he,{type:"systemMessage",message:h.toString()}]),v()}});await i.start({stdout:F,stderr:F,signal:A.signal},!1)};return de().then(()=>{ge()}),()=>{A.abort()}},[E,$,o,r]),C(t.signal,async()=>{setTimeout(()=>{z()||J(process.pid,"SIGINT",!1,()=>{process.exit(0)})},2e3)}),{logs:u,statusMessage:fe,recentFunctionRuns:p,error:w}}async function we(e,t,o){let r="",i=new oe({write(u,f,p){r+=u,p()}});return await D({functionExtension:e,input:t,export:o,stdout:i,json:!0}),{...JSON.parse(r),type:"functionRun"}}var n=R(O(),1);var ae=({selectedRun:e,abortController:t,app:o,extension:r})=>{let{isAborted:i}=C(t.signal),{isRawModeSupported:a}=G(),u=new te(o),{logs:f,statusMessage:p,recentFunctionRuns:m,error:w}=ie({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:u});return H((d,E)=>{U(d,E,()=>t.abort()),d==="q"&&t.abort()},{isActive:!!a}),n.default.createElement(n.default.Fragment,null,n.default.createElement(j,{items:f},(d,E)=>n.default.createElement(l,{key:`replayOutputScrollerLog${E}`,flexDirection:"column"},n.default.createElement(Se,{log:d}))),i?null:n.default.createElement(l,{marginY:1,paddingTop:1,flexDirection:"column",flexGrow:1,borderStyle:"single",borderBottom:!1,borderLeft:!1,borderRight:!1,borderTop:!0},a?n.default.createElement(l,{flexDirection:"column"},n.default.createElement(l,{flexDirection:"row"},n.default.createElement(s,null,b.pointerSmall," ",p)),n.default.createElement(Re,{recentFunctionRuns:m}),n.default.createElement(s,null,b.pointerSmall," Press ",n.default.createElement(s,{bold:!0},"q")," ",b.lineVertical," quit")):null,w?n.default.createElement(s,{color:"red"},w):null))};function k({title:e,backgroundColor:t}){let o=Math.max(Math.round((28-e.length)/2),0),r=" ".repeat(o);return n.default.createElement(s,{backgroundColor:t,color:"black"},`
|
|
2
2
|
|
|
3
3
|
`,r,e,r,`
|
|
4
4
|
`)}function Ee({input:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(k,{title:"Input",backgroundColor:"yellow"}),n.default.createElement(s,null,T(e)))}function Fe({logs:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(k,{title:"Logs",backgroundColor:"blueBright"}),n.default.createElement(s,null,e))}function xe({output:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(k,{title:"Output",backgroundColor:"greenBright"}),n.default.createElement(s,null,T(e)))}function be({functionRun:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(k,{title:"Benchmark Results",backgroundColor:"green"}),n.default.createElement(s,null,"Name: ",e.name),n.default.createElement(s,null,"Linear Memory Usage: ",e.memory_usage,"KB"),n.default.createElement(s,null,"Instructions: ",e.instructions/1e3,"K"),n.default.createElement(s,null,"Size: ",e.size,"KB"))}function Re({recentFunctionRuns:e}){let t=e[0].instructions-e[1].instructions;return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(s,null,b.pointerSmall," Instruction count change: ",t>0?"+":"",t))}function Se({log:e}){switch(e.type){case"functionRun":return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(Ee,{input:e.input}),n.default.createElement(Fe,{logs:e.logs}),n.default.createElement(xe,{output:e.output}),n.default.createElement(be,{functionRun:e}),n.default.createElement(s,null,"\xA0"));case"systemMessage":return n.default.createElement(s,null,e.message);default:return null}}var se=R(O(),1);async function ce({selectedRun:e,abortController:t,app:o,extension:r}){return K(se.default.createElement(ae,{selectedRun:e,abortController:t,app:o,extension:r}),{exitOnCtrlC:!1})}c();async function le(e){if(e.length===0)return;let t=i=>({label:`${i.logTimestamp} (${i.status}) - ${i.identifier}`,value:i}),o=e.map(t);return await q({message:"Which function run would you like to replay locally?",choices:o})}import{existsSync as Ce,readdirSync as De}from"fs";var _=100;async function ue(e){let{watch:t,extension:o,app:r}=e,i=new S;try{let a=r.getLogsDir(),u=e.log?await ke(a,o.handle,e.log):await Ae(a,o.handle),{input:f,export:p}=u.payload;t?await ce({selectedRun:u,abortController:i,app:r,extension:o}):await D({functionExtension:o,json:e.json,input:JSON.stringify(f),export:p})}catch(a){throw i.abort(),a}}async function ke(e,t,o){let r=await Le(e,t,o);if(r===void 0)throw new M(`No log found for '${o}'.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as F}from"./chunk-
|
|
1
|
+
import{b as F}from"./chunk-X6YKSZTY.js";import{a as I,b as L,c as x,f as S,j as $,k as N,m as _,t as q}from"./chunk-3LDCOBRM.js";import{a as P}from"./chunk-FDYZZLAY.js";import{a as z}from"./chunk-CXYYVAYY.js";import{b as B}from"./chunk-HXPUMDUV.js";import{R as w,y as E}from"./chunk-CG22VLHL.js";import{C,u as c,v as T,x as D}from"./chunk-EOGQ7TJP.js";import{p as b}from"./chunk-K44YPOUY.js";import{Fb as d,Hb as u,Rb as A,ba as y,ga as g}from"./chunk-YKQLGBJM.js";import{u as f}from"./chunk-A4SBXDZB.js";import{a as U}from"./chunk-M5GXA5W4.js";import{e as K,g as m}from"./chunk-VKWPEFWQ.js";m();m();async function M(e){let{organization:o,storeFqdn:t,operationId:r,remoteApp:a}=e;c({headline:"Checking bulk operation status.",body:[{list:{items:F({organization:o,remoteApp:a,storeFqdn:t})}}]});let s=a.apiSecretKeys[0]?.secret;if(!s)throw new b("No API secret keys found for app");let l=await w(t,a.apiKey,s),i=await $({adminSession:l,operationId:r,version:await S({adminSession:l,minimumDefaultVersion:I})});i?V(i):D({headline:"Bulk operation not found.",body:u`ID: ${d.yellow(r)}`.value})}async function R(e){let{organization:o,storeFqdn:t,remoteApp:r}=e;c({headline:"Listing bulk operations.",body:[{list:{items:F({organization:o,remoteApp:r,storeFqdn:t})}}]});let a=r.apiSecretKeys[0]?.secret;if(!a)throw new b("No API secret keys found for app");let s=await w(t,r.apiKey,a),i=(await N({adminSession:s,version:await S({adminSession:s,minimumDefaultVersion:I})})).map(n=>({id:x(n.id),status:H(n.status),count:W(n.objectCount),dateCreated:y(new Date(String(n.createdAt))),dateFinished:n.completedAt?y(new Date(String(n.completedAt))):"",results:Y(n.url??n.partialDataUrl)}));A(),i.length===0?c({body:"No bulk operations found in the last 7 days."}):C({rows:i,columns:{id:{header:"ID",color:"yellow"},status:{header:"STATUS"},count:{header:"COUNT"},dateCreated:{header:"DATE CREATED",color:"cyan"},dateFinished:{header:"DATE FINISHED",color:"cyan"},results:{header:"RESULTS"}}}),A()}function V(e){let{id:o,status:t,createdAt:r,completedAt:a,url:s,partialDataUrl:l}=e,i=_(e).value,n=G(r,a),h=u`ID: ${d.yellow(o)}\n${n}`.value;if(t==="COMPLETED"){let k=s?d.link("Download results",s):"";T({headline:i,body:u`${h}\n${k}`.value})}else if(t==="FAILED"){let k=l?d.link("Download partial results",l):"";D({headline:i,body:u`${h}\n${k}`.value})}else c({headline:i,body:h})}function G(e,o){let t=new Date;return o?`Finished ${g(new Date(String(o)),t)}`:`Started ${g(new Date(String(e)),t)}`}function H(e){return e==="COMPLETED"?f.green(e):e==="FAILED"?f.red(e):f.dim(e)}function W(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e)}function Y(e){return e?u`${d.link("download",e)}`.value:""}var O=K(U(),1);var v,p=class extends P{async run(){let{flags:o}=await this.parse(v),{appContextResult:t,store:r}=await q(o);return o.id?await M({organization:t.organization,storeFqdn:r.shopDomain,operationId:L(o.id),remoteApp:t.remoteApp}):await R({organization:t.organization,storeFqdn:r.shopDomain,remoteApp:t.remoteApp}),{app:t.app}}};v=p;p.summary="Check the status of bulk operations.";p.descriptionWithMarkdown=`Check the status of a specific bulk operation by ID, or list all bulk operations belonging to this app on this store in the last 7 days.
|
|
2
2
|
|
|
3
3
|
Bulk operations allow you to process large amounts of data asynchronously. Learn more about [bulk query operations](https://shopify.dev/docs/api/usage/bulk-operations/queries) and [bulk mutation operations](https://shopify.dev/docs/api/usage/bulk-operations/imports).
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as m,E as d,t as c}from"./chunk-
|
|
1
|
+
import{D as m,E as d,t as c}from"./chunk-EOGQ7TJP.js";import{Eb as w,Fb as n,Hb as a}from"./chunk-YKQLGBJM.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();async function P(){let r,l=new Promise(function(e,i){r=e});await c({processes:[{prefix:"backend",action:async(e,i,s)=>{e.write("first backend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("second backend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("third backend message"),await new Promise(t=>setTimeout(t,1e3)),r()}},{prefix:"frontend",action:async(e,i,s)=>{await l,e.write("first frontend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("second frontend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("third frontend message")}}]}),await m([{title:"Installing dependencies",task:async()=>{await new Promise(e=>setTimeout(e,2e3))}},{title:"Downloading assets",task:async()=>{await new Promise(e=>setTimeout(e,2e3))}}]),await d({title:new w("Importing data"),task:async e=>{for(let i=1;i<=10;i++){await new Promise(t=>setTimeout(t,500));let s=a`Importing data ${n.italic(a`(${n.green(i.toString())} complete)`)}`;e(s)}return"completed"}})}export{P as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as a}from"./chunk-
|
|
1
|
+
import{d as a}from"./chunk-BGTOVY2S.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var i={SUCCESS:"success",FAILED:"failed",INFORM:"inform"};t();async function s(e){await a(()=>({cmd_validate_subcommand:e.subcommand,cmd_validate_result:e.result,cmd_validate_api:e.api,cmd_validate_api_version:e.apiVersion,cmd_validate_json:e.json}))}export{i as a,s as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as _,v as R}from"./chunk-
|
|
1
|
+
import{p as _,v as R}from"./chunk-S6JGBSUV.js";import{c as g,l as P}from"./chunk-3UYW3ZAG.js";import{b as N}from"./chunk-HXPUMDUV.js";import{D as w,F as v,R as L,w as T,z as C}from"./chunk-EOGQ7TJP.js";import{m as F}from"./chunk-K44YPOUY.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-YKQLGBJM.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 +1 @@
|
|
|
1
|
-
import{n as A}from"./chunk-
|
|
1
|
+
import{n as A}from"./chunk-4LK74JVJ.js";import{a as P}from"./chunk-62G4E3FF.js";import{c as C}from"./chunk-3HEORIF3.js";import{s as T}from"./chunk-WQLVBL6G.js";import{r as w}from"./chunk-S6JGBSUV.js";import{a as D}from"./chunk-LSNGFAPG.js";import{O as u}from"./chunk-CG22VLHL.js";import{v as h,x as y}from"./chunk-EOGQ7TJP.js";import{Pb as O,va as p}from"./chunk-YKQLGBJM.js";import{d,q as m}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();async function q(e){P({verbose:e.verbose,noColor:e.noColor});let t=w({store:e.store}),o=await u(t,e.password);await R(o,{path:e.path??m(),force:e.force??!1,silent:e.silent??!1})}var E={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",variant:"PRODUCTVARIANT",shop:"SHOP"};async function R(e,t){let{force:o,path:i,silent:n}=t;if(!await A(i)&&(process.env.SHOPIFY_LANGUAGE_SERVER==="1"||!await C(o)))return;let f=[],r=[];for(let[a,s]of Object.entries(E))f.push(T(s,e).catch(c=>(r.push(s),[])).then(c=>({[a]:c})));let b=(await Promise.all(f)).reduce((a,s)=>({...a,...s}));if(r.length===Object.values(E).length){n||y({body:"Failed to fetch metafield definitions.",nextSteps:["Check your network connection and try again.","Ensure you have the permission to fetch metafield definitions."],reference:[{link:{label:"Metafield Definition API",url:"https://shopify.dev/docs/api/admin-graphql/latest/queries/metafieldDefinition"}}]});return}await S(i,b),r.length>0&&O(`Failed to fetch metafield definitions for the following owner types: ${r.join(", ")}`),n||h({body:"Metafield definitions have been successfully downloaded."})}async function S(e,t){let o=await D(e),i=d(o,"metafields.json"),n=JSON.stringify(t,null,2);p(i,n)}export{q 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-SLQHQJIR.js";import{a as S}from"./chunk-K4Y7L7JO.js";import{t as P}from"./chunk-3LDCOBRM.js";import{a as F}from"./chunk-FDYZZLAY.js";import{a as G}from"./chunk-CXYYVAYY.js";import{b,e as L}from"./chunk-HXPUMDUV.js";import{t as d,y as u}from"./chunk-CG22VLHL.js";import{J as f,a as c}from"./chunk-EOGQ7TJP.js";import{Fb as h,Hb as y,Mb as n,Qb as v}from"./chunk-YKQLGBJM.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,2 +1,2 @@
|
|
|
1
|
-
import{A as x,a as ne,b as ie,c as L,d as ae,e as le,g as P,i as v,j as ce,k as ue,m as pe,n as me,o as fe,r as de,s as ge,t as Ee,u as he,v as U,w as ye,x as Te,y as we,z as A}from"./chunk-NUCUZBO3.js";import{a as oe}from"./chunk-IV3S4JU6.js";import{a as se}from"./chunk-X2ZCC772.js";import{a as z}from"./chunk-33AVVFWW.js";import{C as X,V as ee,X as te,l as W,wa as re}from"./chunk-LANGOUPS.js";import{da as Z}from"./chunk-FDQNY7RF.js";import{b as Y,c as K}from"./chunk-BPRY3O4N.js";import{y as G}from"./chunk-OQ6WYWG4.js";import{i as H,u as Q}from"./chunk-SQVJGTTD.js";import{m as _}from"./chunk-O6BUPYXH.js";import{Lb as M,Mb as S,ca as $,eb as F,fb as f,gb as o}from"./chunk-KNLPWHHJ.js";import{j as V}from"./chunk-773TIA5M.js";import{a as _e}from"./chunk-M5GXA5W4.js";import{e as N,g as E}from"./chunk-VKWPEFWQ.js";E();E();E();E();E();E();var C=N(F(),1);function be(t){let s=(0,C.useRef)(t);(0,C.useEffect)(()=>{s.current=t},[t]),(0,C.useEffect)(()=>{let n;function i(){s.current().then(({retryIntervalMs:a})=>{a&&(n=setTimeout(i,a))}).catch(()=>{})}return n=setTimeout(i,0),()=>n&&clearTimeout(n)},[])}E();var B=async({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:i,organizationId:l})=>{let a=await i.appLogs({jwtToken:t,cursor:s},l),{errors:p,status:u}=a;if(u!==200){if(u===401||u===429||u>=500)return{errors:p.map(T=>({status:u,message:T}))};throw new _(`${p.join(", ")} while fetching app logs`)}let{cursor:r,app_logs:c}=a,d=Ce(c,n);return{cursor:r,appLogs:d}};function Ce(t,s){let n=t;return(s.status!==void 0||s.sources!==void 0)&&(n=n.filter(i=>{let l=s.status===void 0?!0:i.status===s.status,a=s.sources===void 0?!0:s.sources.includes(`${i.source_namespace}.${i.source}`);return l&&a})),n}var b=N(F(),1);async function Fe({jwtToken:t,cursor:s,filters:n,storeNameById:i,organizationId:l,setErrors:a,setAppLogOutputs:p,resubscribeCallback:u,developerPlatformClient:r}){let c=t,d=P,T=s,R=await B({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:r,organizationId:l}),m="not_attempted",w=R;if(w.errors){let h=await U({response:w,onThrottle:g=>{a(["Request throttled while polling app logs.",`Retrying in ${g/1e3}s`])},onUnknownError:g=>{a(["Error while polling app logs",`Retrying in ${g/1e3}s`])},onResubscribe:()=>u()});m=h.resubscribeResult,h.nextJwtToken&&(c=h.nextJwtToken),d=h.retryIntervalMs}else{a(g=>g.length?[]:g);let{appLogs:h}=R;if(T=R.cursor,h)for(let g of h){let y,k,q,j=i.get(g.shop_id.toString());if(j===void 0)continue;switch(g.log_type){case ue:y=de(g.payload),k=`export "${y.export}" executed in ${(y.fuelConsumed/ce).toFixed(4)}M instructions`;break;case pe:y=ge(g.payload),k="network access response retrieved from cache";break;case me:y=Ee(g.payload),k="network access request executing in background";break;case fe:y=he(g.payload),q=y.connectTimeMs&&y.writeReadTimeMs?y.connectTimeMs+y.writeReadTimeMs:null,k=`network access request executed${q?` in ${q} ms`:""}`;break;default:continue}let ke={status:g.status==="success"?"Success":"Failure",source:g.source,storeName:j,description:k,logTimestamp:$(g.log_timestamp)};y&&p(Ne=>[...Ne,{appLog:y,prefix:ke}])}}return{nextJwtToken:c,retryIntervalMs:d,cursor:T??s,resubscribeResult:m}}function Re({initialJwt:t,filters:s,resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a}){let[p,u]=(0,b.useState)([]),[r,c]=(0,b.useState)([]),d=(0,b.useRef)(t),T=(0,b.useRef)(0),R=(0,b.useRef)(""),m=(0,b.useRef)(0),w=(0,b.useCallback)(async()=>{let h=await Fe({jwtToken:d.current,cursor:R.current,filters:s,storeNameById:i,setErrors:u,setAppLogOutputs:c,resubscribeCallback:n,developerPlatformClient:l,organizationId:a});if(h.resubscribeResult==="failed"){if(m.current+=1,m.current>=v)return u(["App log streaming session has expired. Please restart your dev session."]),{retryIntervalMs:0}}else h.resubscribeResult==="succeeded"&&(m.current=0);return d.current=h.nextJwtToken,R.current=h.cursor,T.current=h.retryIntervalMs,{retryIntervalMs:T.current}},[]);return be(w),{appLogOutputs:r,errors:p}}var e=N(F(),1);var Me=t=>{switch(t){case L.NoCachedResponse:return"No cached response available";case L.CacheAboutToExpire:return"Cache is about to expire";case L.Unknown:return"Unknown reason"}},xe=({pollOptions:{jwtToken:t,filters:s},resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a})=>{let{appLogOutputs:p,errors:u}=Re({filters:s,initialJwt:t,resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a});return e.default.createElement(e.default.Fragment,null,p.map(({appLog:r,prefix:c},d)=>e.default.createElement(f,{flexDirection:"column",key:d},e.default.createElement(f,{flexDirection:"row",gap:1},e.default.createElement(o,null,e.default.createElement(o,{color:"green"},c.logTimestamp," "),e.default.createElement(o,{color:"blueBright"},`${c.storeName.split(".")[0]}`," "),e.default.createElement(o,{color:"blueBright"},c.source," "),e.default.createElement(o,{color:c.status==="Success"?"green":"red"},c.status," "),e.default.createElement(o,null,c.description))),e.default.createElement(f,{flexDirection:"column",marginLeft:4},r instanceof ne&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,r.logs),r.inputQueryVariablesMetafieldKey&&r.inputQueryVariablesMetafieldNamespace?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input Query Variables:"),e.default.createElement(f,{flexDirection:"row",marginLeft:1,marginTop:1},e.default.createElement(o,{dimColor:!0},"Namespace:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldNamespace)),e.default.createElement(f,{flexDirection:"row",marginLeft:1},e.default.createElement(o,{dimColor:!0},"Key:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldKey)),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.inputQueryVariablesMetafieldValue)??e.default.createElement(o,{color:"red"},"Metafield is not set")))):null,r.input?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input ",e.default.createElement(o,{dimColor:!0},"(",r.inputBytes," bytes):")),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.input)))):null,r.output?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Output ",e.default.createElement(o,{dimColor:!0},"(",r.outputBytes," bytes):")),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.output)))):null),r instanceof ie&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Cache write time: ",new Date(r.cacheEntryEpochMs).toISOString()),e.default.createElement(o,null,"Cache TTL: ",r.cacheTtlMs/1e3," s"),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))),r instanceof ae&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Reason: ",Me(r.reason)),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest))),r instanceof le&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Attempt: ",r.attempt),r.connectTimeMs?e.default.createElement(o,null,"Connect time: ",r.connectTimeMs," ms"):null,r.writeReadTimeMs?e.default.createElement(o,null,"Write read time: ",r.writeReadTimeMs," ms"):null,e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),r.httpResponse?e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))):null,r.error?e.default.createElement(o,null,"Error: ",r.error):null)))),u.length>0&&e.default.createElement(f,{flexDirection:"column"},u.map((r,c)=>e.default.createElement(f,{key:c},e.default.createElement(o,{color:"red"},r)))))};var Ie=N(F(),1);async function Se({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:l}){let a=async()=>A(n,s,l);return H(Ie.default.createElement(xe,{pollOptions:t,resubscribeCallback:a,storeNameById:i,developerPlatformClient:n,organizationId:l}))}E();async function D({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:l,consecutiveResubscribeFailures:a=0}){let p=await B({pollOptions:t,developerPlatformClient:n,organizationId:l}),u=P,r=t.jwtToken,c=a,d=p;if(d.errors){let m=await U({response:d,onThrottle:w=>{S(JSON.stringify({message:"Request throttled while polling app logs.",retry_in_ms:w}))},onUnknownError:w=>{S(JSON.stringify({message:"Error while polling app logs.",retry_in_ms:w}))},onResubscribe:()=>A(n,s,l)});if(m.resubscribeResult==="failed"){if(c+=1,c>=v){S(JSON.stringify({message:"App log streaming session has expired. Please restart your dev session."}));return}}else m.resubscribeResult==="succeeded"&&(c=0);m.nextJwtToken&&(r=m.nextJwtToken),u=m.retryIntervalMs}else c=0;let{cursor:T,appLogs:R}=p;R&&R.forEach(m=>{let w=i.get(m.shop_id?.toString());w!==void 0&&M(Te({appLog:m,appLogPayload:we(m.payload,m.log_type),storeName:w,prettyPrint:!1}))}),setTimeout(()=>{D({options:{variables:s,developerPlatformClient:n},pollOptions:{jwtToken:r||t.jwtToken,cursor:T??t.cursor,filters:t.filters},storeNameById:i,organizationId:l,consecutiveResubscribeFailures:c}).catch(m=>{throw m})},u)}async function Ae(t){let{app:s,remoteApp:n,developerPlatformClient:i}=t,l=await Le(t),a=ye(s);if(a.length===0)throw new _("This app has no log sources. Learn more about app logs at https://shopify.dev/docs/api/shopify-cli/app/app-logs");if(t.sources){let d=t.sources.filter(T=>!a.includes(T));if(d.length)throw new _(`Invalid sources: ${d.join(", ")}. Valid sources are: ${a.join(", ")}`)}let p={shopIds:l.storeIds.map(Number),apiKey:n.apiKey},u=await A(i,p,t.organization.id),r={status:t.status,sources:t.sources},c={jwtToken:u,filters:r};t.format==="json"?(M(JSON.stringify({subscribedToStores:t.storeFqdns})),S(JSON.stringify({message:"Waiting for app logs..."})),await D({options:{variables:p,developerPlatformClient:i},pollOptions:c,storeNameById:l.storeNameById,organizationId:t.organization.id})):(S(`Waiting for app logs...
|
|
1
|
+
import{A as x,a as ne,b as ie,c as L,d as ae,e as le,g as P,i as v,j as ce,k as ue,m as pe,n as me,o as fe,r as de,s as ge,t as Ee,u as he,v as U,w as ye,x as Te,y as we,z as A}from"./chunk-WQDFO5DZ.js";import{a as oe}from"./chunk-FDAURSWQ.js";import{a as se}from"./chunk-FDYZZLAY.js";import{a as z}from"./chunk-CXYYVAYY.js";import{C as X,V as ee,X as te,l as W,wa as re}from"./chunk-4MERFNHB.js";import{da as Z}from"./chunk-R3GD62F4.js";import{b as Y,c as K}from"./chunk-HXPUMDUV.js";import{y as G}from"./chunk-CG22VLHL.js";import{i as H,u as Q}from"./chunk-EOGQ7TJP.js";import{m as _}from"./chunk-K44YPOUY.js";import{Lb as M,Mb as S,ca as $,eb as F,fb as f,gb as o}from"./chunk-YKQLGBJM.js";import{j as V}from"./chunk-773TIA5M.js";import{a as _e}from"./chunk-M5GXA5W4.js";import{e as N,g as E}from"./chunk-VKWPEFWQ.js";E();E();E();E();E();E();var C=N(F(),1);function be(t){let s=(0,C.useRef)(t);(0,C.useEffect)(()=>{s.current=t},[t]),(0,C.useEffect)(()=>{let n;function i(){s.current().then(({retryIntervalMs:a})=>{a&&(n=setTimeout(i,a))}).catch(()=>{})}return n=setTimeout(i,0),()=>n&&clearTimeout(n)},[])}E();var B=async({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:i,organizationId:l})=>{let a=await i.appLogs({jwtToken:t,cursor:s},l),{errors:p,status:u}=a;if(u!==200){if(u===401||u===429||u>=500)return{errors:p.map(T=>({status:u,message:T}))};throw new _(`${p.join(", ")} while fetching app logs`)}let{cursor:r,app_logs:c}=a,d=Ce(c,n);return{cursor:r,appLogs:d}};function Ce(t,s){let n=t;return(s.status!==void 0||s.sources!==void 0)&&(n=n.filter(i=>{let l=s.status===void 0?!0:i.status===s.status,a=s.sources===void 0?!0:s.sources.includes(`${i.source_namespace}.${i.source}`);return l&&a})),n}var b=N(F(),1);async function Fe({jwtToken:t,cursor:s,filters:n,storeNameById:i,organizationId:l,setErrors:a,setAppLogOutputs:p,resubscribeCallback:u,developerPlatformClient:r}){let c=t,d=P,T=s,R=await B({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:r,organizationId:l}),m="not_attempted",w=R;if(w.errors){let h=await U({response:w,onThrottle:g=>{a(["Request throttled while polling app logs.",`Retrying in ${g/1e3}s`])},onUnknownError:g=>{a(["Error while polling app logs",`Retrying in ${g/1e3}s`])},onResubscribe:()=>u()});m=h.resubscribeResult,h.nextJwtToken&&(c=h.nextJwtToken),d=h.retryIntervalMs}else{a(g=>g.length?[]:g);let{appLogs:h}=R;if(T=R.cursor,h)for(let g of h){let y,k,q,j=i.get(g.shop_id.toString());if(j===void 0)continue;switch(g.log_type){case ue:y=de(g.payload),k=`export "${y.export}" executed in ${(y.fuelConsumed/ce).toFixed(4)}M instructions`;break;case pe:y=ge(g.payload),k="network access response retrieved from cache";break;case me:y=Ee(g.payload),k="network access request executing in background";break;case fe:y=he(g.payload),q=y.connectTimeMs&&y.writeReadTimeMs?y.connectTimeMs+y.writeReadTimeMs:null,k=`network access request executed${q?` in ${q} ms`:""}`;break;default:continue}let ke={status:g.status==="success"?"Success":"Failure",source:g.source,storeName:j,description:k,logTimestamp:$(g.log_timestamp)};y&&p(Ne=>[...Ne,{appLog:y,prefix:ke}])}}return{nextJwtToken:c,retryIntervalMs:d,cursor:T??s,resubscribeResult:m}}function Re({initialJwt:t,filters:s,resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a}){let[p,u]=(0,b.useState)([]),[r,c]=(0,b.useState)([]),d=(0,b.useRef)(t),T=(0,b.useRef)(0),R=(0,b.useRef)(""),m=(0,b.useRef)(0),w=(0,b.useCallback)(async()=>{let h=await Fe({jwtToken:d.current,cursor:R.current,filters:s,storeNameById:i,setErrors:u,setAppLogOutputs:c,resubscribeCallback:n,developerPlatformClient:l,organizationId:a});if(h.resubscribeResult==="failed"){if(m.current+=1,m.current>=v)return u(["App log streaming session has expired. Please restart your dev session."]),{retryIntervalMs:0}}else h.resubscribeResult==="succeeded"&&(m.current=0);return d.current=h.nextJwtToken,R.current=h.cursor,T.current=h.retryIntervalMs,{retryIntervalMs:T.current}},[]);return be(w),{appLogOutputs:r,errors:p}}var e=N(F(),1);var Me=t=>{switch(t){case L.NoCachedResponse:return"No cached response available";case L.CacheAboutToExpire:return"Cache is about to expire";case L.Unknown:return"Unknown reason"}},xe=({pollOptions:{jwtToken:t,filters:s},resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a})=>{let{appLogOutputs:p,errors:u}=Re({filters:s,initialJwt:t,resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a});return e.default.createElement(e.default.Fragment,null,p.map(({appLog:r,prefix:c},d)=>e.default.createElement(f,{flexDirection:"column",key:d},e.default.createElement(f,{flexDirection:"row",gap:1},e.default.createElement(o,null,e.default.createElement(o,{color:"green"},c.logTimestamp," "),e.default.createElement(o,{color:"blueBright"},`${c.storeName.split(".")[0]}`," "),e.default.createElement(o,{color:"blueBright"},c.source," "),e.default.createElement(o,{color:c.status==="Success"?"green":"red"},c.status," "),e.default.createElement(o,null,c.description))),e.default.createElement(f,{flexDirection:"column",marginLeft:4},r instanceof ne&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,r.logs),r.inputQueryVariablesMetafieldKey&&r.inputQueryVariablesMetafieldNamespace?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input Query Variables:"),e.default.createElement(f,{flexDirection:"row",marginLeft:1,marginTop:1},e.default.createElement(o,{dimColor:!0},"Namespace:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldNamespace)),e.default.createElement(f,{flexDirection:"row",marginLeft:1},e.default.createElement(o,{dimColor:!0},"Key:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldKey)),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.inputQueryVariablesMetafieldValue)??e.default.createElement(o,{color:"red"},"Metafield is not set")))):null,r.input?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input ",e.default.createElement(o,{dimColor:!0},"(",r.inputBytes," bytes):")),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.input)))):null,r.output?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Output ",e.default.createElement(o,{dimColor:!0},"(",r.outputBytes," bytes):")),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.output)))):null),r instanceof ie&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Cache write time: ",new Date(r.cacheEntryEpochMs).toISOString()),e.default.createElement(o,null,"Cache TTL: ",r.cacheTtlMs/1e3," s"),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))),r instanceof ae&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Reason: ",Me(r.reason)),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest))),r instanceof le&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Attempt: ",r.attempt),r.connectTimeMs?e.default.createElement(o,null,"Connect time: ",r.connectTimeMs," ms"):null,r.writeReadTimeMs?e.default.createElement(o,null,"Write read time: ",r.writeReadTimeMs," ms"):null,e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),r.httpResponse?e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))):null,r.error?e.default.createElement(o,null,"Error: ",r.error):null)))),u.length>0&&e.default.createElement(f,{flexDirection:"column"},u.map((r,c)=>e.default.createElement(f,{key:c},e.default.createElement(o,{color:"red"},r)))))};var Ie=N(F(),1);async function Se({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:l}){let a=async()=>A(n,s,l);return H(Ie.default.createElement(xe,{pollOptions:t,resubscribeCallback:a,storeNameById:i,developerPlatformClient:n,organizationId:l}))}E();async function D({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:l,consecutiveResubscribeFailures:a=0}){let p=await B({pollOptions:t,developerPlatformClient:n,organizationId:l}),u=P,r=t.jwtToken,c=a,d=p;if(d.errors){let m=await U({response:d,onThrottle:w=>{S(JSON.stringify({message:"Request throttled while polling app logs.",retry_in_ms:w}))},onUnknownError:w=>{S(JSON.stringify({message:"Error while polling app logs.",retry_in_ms:w}))},onResubscribe:()=>A(n,s,l)});if(m.resubscribeResult==="failed"){if(c+=1,c>=v){S(JSON.stringify({message:"App log streaming session has expired. Please restart your dev session."}));return}}else m.resubscribeResult==="succeeded"&&(c=0);m.nextJwtToken&&(r=m.nextJwtToken),u=m.retryIntervalMs}else c=0;let{cursor:T,appLogs:R}=p;R&&R.forEach(m=>{let w=i.get(m.shop_id?.toString());w!==void 0&&M(Te({appLog:m,appLogPayload:we(m.payload,m.log_type),storeName:w,prettyPrint:!1}))}),setTimeout(()=>{D({options:{variables:s,developerPlatformClient:n},pollOptions:{jwtToken:r||t.jwtToken,cursor:T??t.cursor,filters:t.filters},storeNameById:i,organizationId:l,consecutiveResubscribeFailures:c}).catch(m=>{throw m})},u)}async function Ae(t){let{app:s,remoteApp:n,developerPlatformClient:i}=t,l=await Le(t),a=ye(s);if(a.length===0)throw new _("This app has no log sources. Learn more about app logs at https://shopify.dev/docs/api/shopify-cli/app/app-logs");if(t.sources){let d=t.sources.filter(T=>!a.includes(T));if(d.length)throw new _(`Invalid sources: ${d.join(", ")}. Valid sources are: ${a.join(", ")}`)}let p={shopIds:l.storeIds.map(Number),apiKey:n.apiKey},u=await A(i,p,t.organization.id),r={status:t.status,sources:t.sources},c={jwtToken:u,filters:r};t.format==="json"?(M(JSON.stringify({subscribedToStores:t.storeFqdns})),S(JSON.stringify({message:"Waiting for app logs..."})),await D({options:{variables:p,developerPlatformClient:i},pollOptions:c,storeNameById:l.storeNameById,organizationId:t.organization.id})):(S(`Waiting for app logs...
|
|
2
2
|
`),await Se({options:{variables:p,developerPlatformClient:i},pollOptions:c,storeNameById:l.storeNameById,organizationId:t.organization.id}))}async function Le(t){let{app:s,remoteApp:n,developerPlatformClient:i,primaryStore:l,organization:a}=t,p=V(s.configPath);t.format==="text"&&Pe(n.title,l.shopDomain,t.storeFqdns,p,a.businessName);let u=new Map;return u.set(l.shopId,l.shopDomain),t.storeFqdns&&t.storeFqdns.length>1&&await Promise.all(t.storeFqdns?.slice(1).map(async c=>{let d=await Z(a,c,i);u.set(d.shopId,c)})),{storeIds:Array.from(u.keys()),storeNameById:u}}function Pe(t,s,n,i,l){let a=[];n&&n.length>0?n.forEach(u=>a.push(u)):a.push(s);let p=i?W(i):void 0;Q({headline:i?`Using ${p} for default values:`:"Using these settings:",body:ee({appName:t,org:l,devStores:a,messages:[te]})})}var O=N(_e(),1);var J,I=class extends se{async run(){let{flags:s}=await this.parse(J);await X(s.path);let n=await re({directory:s.path,clientId:s["client-id"],forceRelink:s.reset,userProvidedConfigName:s.config}),i=await oe({appContextResult:n,storeFqdn:s.store?.[0],forceReselectStore:s.reset}),l={...n,primaryStore:i,storeFqdns:s.store,sources:s.source,status:s.status,format:s.json?"json":"text"};return await Ae(l),{app:n.app}}};J=I;I.summary="Stream detailed logs for your Shopify app.";I.descriptionWithMarkdown="\n Opens a real-time stream of detailed app logs from the selected app and store.\n Use the `--source` argument to limit output to a particular log source, such as a specific Shopify Function handle. Use the `shopify app logs sources` command to view a list of sources.\n Use the `--status` argument to filter on status, either `success` or `failure`.\n ```\n shopify app logs --status=success --source=extension.discount-function\n ```\n ";I.description=J.descriptionWithoutMarkdown();I.flags={...Y,...z,...K,store:O.Flags.string({char:"s",description:"Store URL. Must be an existing development or Shopify Plus sandbox store.",env:"SHOPIFY_FLAG_STORE",multiple:!0,parse:async t=>G(t)}),source:O.Flags.string({description:"Filters output to the specified log source.",env:"SHOPIFY_FLAG_SOURCE",multiple:!0}),status:O.Flags.string({description:"Filters output to the specified status (success or failure).",options:["success","failure"],env:"SHOPIFY_FLAG_STATUS"})};var _t=I;export{_t as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as h}from"./chunk-
|
|
1
|
+
import{b as h}from"./chunk-3XHYGKBZ.js";import{Ca as g,ua as u,wa as c}from"./chunk-YKQLGBJM.js";import{d as f,q as p}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static{this.description="Generate CLI commands documentation"}static{this.hidden=!0}async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
|
|
2
2
|
* ${$}
|
|
3
3
|
*${D}
|
|
4
4
|
*/
|