@shopify/cli 4.7.0 → 4.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-3IIUBZ3B.js +1 -0
- package/dist/analytics-OOT5AB52.js +1 -0
- package/dist/assets/hydrogen/starter/AGENTS.md +5 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +9 -0
- package/dist/assets/hydrogen/starter/CLAUDE.md +1 -0
- package/dist/assets/hydrogen/starter/package.json +3 -3
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-6ENBE43F.js → chunk-2AK44UYM.js} +1 -1
- package/dist/{chunk-XCBEYRQI.js → chunk-2CIZE537.js} +1 -1
- package/dist/{chunk-YHPBDS52.js → chunk-2EAFYCCS.js} +1 -1
- package/dist/{chunk-U2Z5NMXV.js → chunk-2KGPH7YG.js} +1 -1
- package/dist/{chunk-6VGJVXZI.js → chunk-2O224ZPO.js} +1 -1
- package/dist/{chunk-RY2SJVWM.js → chunk-2XDUJQQN.js} +3 -3
- package/dist/{chunk-GSCWZR22.js → chunk-36ROOKQB.js} +1 -1
- package/dist/{chunk-YIZZ5LZN.js → chunk-3DCN3N23.js} +1 -1
- package/dist/{chunk-YN6A26QL.js → chunk-3JXPOOFV.js} +39 -39
- package/dist/{chunk-KIYHEMHD.js → chunk-4QBJ5JBX.js} +15 -16
- package/dist/chunk-4ZNV5YSL.js +1 -0
- package/dist/chunk-5L63PRJL.js +2 -0
- package/dist/{chunk-MRCWOOSF.js → chunk-5N6HNQQ5.js} +1 -1
- package/dist/{chunk-4JY2P2A5.js → chunk-5SEEDOQ5.js} +1 -1
- package/dist/chunk-67Z34HN5.js +5 -0
- package/dist/chunk-6BDAJ6UD.js +5 -0
- package/dist/chunk-6CXG3XLP.js +1 -0
- package/dist/{chunk-QEB3HUQE.js → chunk-6MWWJZFN.js} +1 -1
- package/dist/{chunk-LRQYUWWB.js → chunk-6RQOEPEC.js} +1 -1
- package/dist/{chunk-LJM2DUXN.js → chunk-72ZY3KTF.js} +1 -1
- package/dist/{chunk-WKUGSFTB.js → chunk-742XXXGL.js} +1 -1
- package/dist/{chunk-37TEEITE.js → chunk-7HFHL5SO.js} +1 -1
- package/dist/{chunk-6VRXGEIW.js → chunk-7ISJRIPT.js} +1 -1
- package/dist/{chunk-CZJZCJRX.js → chunk-7LWUHQIF.js} +1 -1
- package/dist/{chunk-MLZLDL6B.js → chunk-7T6M7FAC.js} +1 -1
- package/dist/{chunk-LWJA2DQG.js → chunk-A6BMJISP.js} +1 -1
- package/dist/{chunk-TY4W7AYX.js → chunk-AWUX36VG.js} +1 -1
- package/dist/chunk-BWJIZYAG.js +1 -0
- package/dist/{chunk-EW55WWT7.js → chunk-BZ73NV3L.js} +1 -1
- package/dist/chunk-C3RUVXG2.js +6 -0
- package/dist/{chunk-QKGZWOOY.js → chunk-C4YLE3NS.js} +1 -1
- package/dist/chunk-CEYIZC3M.js +2 -0
- package/dist/{chunk-WCRZJY3P.js → chunk-CIWKN4HF.js} +1 -1
- package/dist/{chunk-P5MNNBSO.js → chunk-CULTZLC4.js} +1 -1
- package/dist/{chunk-X4XP2RQJ.js → chunk-CX75OKZK.js} +1 -1
- package/dist/{chunk-LDF4PQ3B.js → chunk-DASVZTAX.js} +46 -46
- package/dist/{chunk-UPJLZHHR.js → chunk-DX3JLOUA.js} +1 -1
- package/dist/{chunk-ZCNIR6YU.js → chunk-E55KS3GZ.js} +1 -1
- package/dist/{chunk-WHLGNDRE.js → chunk-E5FXOLQO.js} +1 -1
- package/dist/{chunk-JQ2B3VHR.js → chunk-E6N4PZZR.js} +1 -1
- package/dist/{chunk-CIH6LPTG.js → chunk-EB574SY6.js} +1 -1
- package/dist/chunk-EX5GVHGE.js +1 -0
- package/dist/chunk-F3NYCSXT.js +273 -0
- package/dist/{chunk-FWPJEL6Q.js → chunk-F6X6OXXB.js} +1 -1
- package/dist/{chunk-QPWMD2VR.js → chunk-FDBHQLFK.js} +1 -1
- package/dist/{chunk-TCTVI6PK.js → chunk-FDYW3UQC.js} +1 -1
- package/dist/{chunk-2SZOPJYI.js → chunk-FEDVVYK2.js} +1 -1
- package/dist/{chunk-SSJGWLCW.js → chunk-FJ6F4XRV.js} +1 -1
- package/dist/{chunk-E5T4YRGW.js → chunk-FOREMLFZ.js} +1 -1
- package/dist/{chunk-QXHENYJH.js → chunk-FUYDGK33.js} +1 -1
- package/dist/{chunk-CYOFLJ3Z.js → chunk-FX3L344E.js} +1 -1
- package/dist/{chunk-FCGKO2KY.js → chunk-G5XIGN5D.js} +1 -1
- package/dist/{chunk-HHVHVGRT.js → chunk-GAYKYEIM.js} +1 -1
- package/dist/{chunk-2U4P6UFZ.js → chunk-GCY7LPEF.js} +1 -1
- package/dist/{chunk-OORWOTAP.js → chunk-GNBRCK7L.js} +1 -1
- package/dist/{chunk-KOVAFUYN.js → chunk-GRPKF5ZB.js} +1 -1
- package/dist/{chunk-QZBSCOJV.js → chunk-GRSF7456.js} +1 -1
- package/dist/chunk-H2TQ4ODI.js +1 -0
- package/dist/{chunk-AMLWPYNA.js → chunk-H6XEESUN.js} +1 -1
- package/dist/{chunk-I3N6NPHF.js → chunk-HB347DXT.js} +1 -1
- package/dist/chunk-HFSCXTJQ.js +97 -0
- package/dist/chunk-HHN6KZXX.js +1 -0
- package/dist/{chunk-QBIVQXUJ.js → chunk-HP64ZTEJ.js} +1 -1
- package/dist/{chunk-U7R6LYPJ.js → chunk-IARCMH7G.js} +1 -1
- package/dist/{chunk-YOO7DLOT.js → chunk-IBI5UCJO.js} +1 -1
- package/dist/{chunk-UVQL7RUY.js → chunk-IKUSLRGD.js} +1 -1
- package/dist/{chunk-HLNJL4B6.js → chunk-IT4HYLTY.js} +1 -1
- package/dist/{chunk-GZ64KWHX.js → chunk-J4T73EAS.js} +1 -1
- package/dist/chunk-JG4HH54Q.js +1 -0
- package/dist/{chunk-DKL6N3L2.js → chunk-JIYSCWCG.js} +1 -1
- package/dist/chunk-JWRK5KLD.js +560 -0
- package/dist/{chunk-DHU57LKD.js → chunk-JX7FYWPO.js} +1 -1
- package/dist/{chunk-N6YTJXIS.js → chunk-K42WBNJQ.js} +1 -1
- package/dist/{chunk-5CR5YJTU.js → chunk-KDU7VW3L.js} +1 -1
- package/dist/{chunk-CTRXLZAJ.js → chunk-KWVOJWO7.js} +1 -1
- package/dist/{chunk-RUFQCXBX.js → chunk-LANUJ7LX.js} +1 -1
- package/dist/{chunk-PAAKBWSF.js → chunk-LUKQ5HLC.js} +1 -1
- package/dist/{chunk-3K6VHXC2.js → chunk-M2XHIN57.js} +1 -1
- package/dist/{chunk-TYIGOVRQ.js → chunk-MNOQAXJW.js} +1 -1
- package/dist/chunk-MYQUYU4U.js +2 -0
- package/dist/{chunk-T5JXQ7KO.js → chunk-N65F7ET2.js} +1 -1
- package/dist/{chunk-PWSI275S.js → chunk-N6RBRPGW.js} +1 -1
- package/dist/chunk-N75VOJHO.js +15 -0
- package/dist/{chunk-4W3UE2ZI.js → chunk-NBFMP5XQ.js} +1 -1
- package/dist/{chunk-CFWHR74L.js → chunk-NE3ZFSMS.js} +1 -1
- package/dist/{chunk-D2K2ZBKH.js → chunk-NGLMZYS7.js} +2 -2
- package/dist/{chunk-JQISGC7D.js → chunk-NHAUJWEG.js} +1 -1
- package/dist/chunk-NILETICC.js +11 -0
- package/dist/{chunk-SYADOUBB.js → chunk-NNZXKFOS.js} +1 -1
- package/dist/{chunk-E2W5OYYM.js → chunk-NQK2VCDA.js} +1 -1
- package/dist/{chunk-U6HYEGAE.js → chunk-NROVZETL.js} +1 -1
- package/dist/{chunk-TSLQZTXR.js → chunk-NW6NUGN7.js} +1 -1
- package/dist/{chunk-JZMRBJH3.js → chunk-O7DZXO3O.js} +1 -1
- package/dist/{chunk-5CADTCJE.js → chunk-OBYQSIYU.js} +1 -1
- package/dist/{chunk-5NO5OXYP.js → chunk-OEG3N5PG.js} +1 -1
- package/dist/{chunk-VRVP2GQL.js → chunk-OGBZTY2G.js} +1 -1
- package/dist/chunk-OMHR423H.js +1 -0
- package/dist/{chunk-XHZ5BWXL.js → chunk-OV6SRRXR.js} +1 -1
- package/dist/{chunk-2JDCVEFK.js → chunk-OVV5YGKN.js} +1 -1
- package/dist/{chunk-SEVSMWNX.js → chunk-OZL5FTT7.js} +1 -1
- package/dist/{chunk-JUKAWTYY.js → chunk-OZMQ2EJB.js} +1 -1
- package/dist/{chunk-7WTNEG2F.js → chunk-P57P7UAN.js} +1 -1
- package/dist/{chunk-JZXA3H5K.js → chunk-PATTG7YZ.js} +1 -1
- package/dist/{chunk-2HK4MFWP.js → chunk-PG5YNPJB.js} +1 -1
- package/dist/chunk-PP4L2JJ6.js +3 -0
- package/dist/{chunk-CZPGC2E7.js → chunk-Q5JX23QU.js} +1 -1
- package/dist/{chunk-L67BU25M.js → chunk-Q5KVMLBK.js} +1 -1
- package/dist/{chunk-ZRLEAF7M.js → chunk-Q5LIJGT7.js} +1 -1
- package/dist/{chunk-JQVXH26X.js → chunk-Q6ADIMJM.js} +1 -1
- package/dist/{chunk-YUVE2I3C.js → chunk-QERQARMC.js} +1 -1
- package/dist/{chunk-GLWQMLUC.js → chunk-QOV43E26.js} +1 -1
- package/dist/{chunk-KCS75ZM4.js → chunk-QTFUYKMF.js} +1 -1
- package/dist/{chunk-7DOWT5JZ.js → chunk-QTJCCOAG.js} +3 -3
- package/dist/{chunk-XAOYKECS.js → chunk-R6ICQT2D.js} +1 -1
- package/dist/{chunk-4LRG5YBS.js → chunk-R7T3LYJL.js} +1 -1
- package/dist/{chunk-DMXQLI35.js → chunk-RXQJCJDV.js} +1 -1
- package/dist/{chunk-BR6DBMQA.js → chunk-S2TLBBSS.js} +1 -1
- package/dist/{chunk-FULWTZS6.js → chunk-S5FOQY35.js} +1 -1
- package/dist/{chunk-6OFGSZD6.js → chunk-SYLHT42O.js} +1 -1
- package/dist/{chunk-CHMEDVDZ.js → chunk-T4AA6TSF.js} +1 -1
- package/dist/{chunk-XRT2W5Y2.js → chunk-T4QWK5GG.js} +1 -1
- package/dist/{chunk-63CIFL36.js → chunk-T7PJDT5O.js} +1 -1
- package/dist/{chunk-6EBLULOC.js → chunk-TEY4LRY7.js} +1 -1
- package/dist/{chunk-PANGX7SA.js → chunk-TFBRVLDN.js} +1 -1
- package/dist/{chunk-MB7E5GEY.js → chunk-TUVDJ3PG.js} +1 -1
- package/dist/{chunk-HZIX3DIT.js → chunk-U2DWBZK2.js} +1 -1
- package/dist/chunk-U53OLUOE.js +3 -0
- package/dist/{chunk-GKOBFX4A.js → chunk-UAETNFN4.js} +1 -1
- package/dist/{chunk-EOMCXBCS.js → chunk-UAFEFKAQ.js} +1 -1
- package/dist/{chunk-Q5DQGV3M.js → chunk-ULRJDKWQ.js} +1 -1
- package/dist/chunk-UZARYOLN.js +1 -0
- package/dist/chunk-VASGXHYA.js +1 -0
- package/dist/chunk-VD4XJ6BX.js +1 -0
- package/dist/{chunk-Y34LWI3S.js → chunk-VFM2KQRM.js} +3 -3
- package/dist/{chunk-CMYQXGLO.js → chunk-VSDRNYA5.js} +1 -1
- package/dist/{chunk-OE3F7XXU.js → chunk-VVZSYHDG.js} +1 -1
- package/dist/chunk-VXEYO3ZP.js +1 -0
- package/dist/{chunk-7JIQXGDE.js → chunk-VYDSOAV4.js} +1 -1
- package/dist/{chunk-DQFSKPKL.js → chunk-WBYAGS6B.js} +1 -1
- package/dist/chunk-WGAFCKGD.js +1 -0
- package/dist/{chunk-AH2ZGMDM.js → chunk-WYBTC356.js} +1 -1
- package/dist/{chunk-TTAPXLI5.js → chunk-XF2KTEID.js} +1 -1
- package/dist/{chunk-XUEMMLXK.js → chunk-XH5YGJQR.js} +1 -1
- package/dist/chunk-XHKWITLA.js +1705 -0
- package/dist/chunk-XOCB4KNX.js +2 -0
- package/dist/{chunk-2WJAAJVX.js → chunk-XUUAKGEX.js} +1 -1
- package/dist/{chunk-LQCR4TGH.js → chunk-XUYVJEZG.js} +1 -1
- package/dist/chunk-Y47C3LSX.js +3 -0
- package/dist/{chunk-KK24VGVE.js → chunk-Y5PRPHLQ.js} +1 -1
- package/dist/{chunk-K4KTNINH.js → chunk-YD2VQEN5.js} +1 -1
- package/dist/{chunk-KUNDCAQN.js → chunk-YESGYUEL.js} +1 -1
- package/dist/{chunk-JJJTPEMD.js → chunk-YEVGLC5X.js} +1 -1
- package/dist/{chunk-GMTNOCMS.js → chunk-YFINLODF.js} +3 -3
- package/dist/{chunk-LZ3GZ7NS.js → chunk-YKL3BLWC.js} +1 -1
- package/dist/{chunk-5HPBQ6U5.js → chunk-YLXPYXQP.js} +1 -1
- package/dist/{chunk-7AALWJAO.js → chunk-YNDIZCD2.js} +1 -1
- package/dist/{chunk-6WZYX5RO.js → chunk-YPWHD3NL.js} +1 -1
- package/dist/{chunk-4HV6A6UH.js → chunk-YSAFHVV6.js} +1 -1
- package/dist/{chunk-AGOEROAI.js → chunk-YZMY2CTU.js} +1 -1
- package/dist/{chunk-S3P5WWJD.js → chunk-Z4AFEO36.js} +1 -1
- package/dist/{chunk-7MHANY34.js → chunk-Z5WPP6ME.js} +1 -1
- package/dist/chunk-Z65E4UAP.js +1 -0
- package/dist/{chunk-V2HCVJYF.js → chunk-ZDRIQC7O.js} +1 -1
- package/dist/{chunk-2CYVZUYT.js → chunk-ZH44BDUR.js} +1 -1
- package/dist/{chunk-SJMTETSU.js → chunk-ZL5LU4U2.js} +1 -1
- package/dist/{chunk-DQCIORGH.js → chunk-ZYX7UHCQ.js} +1 -1
- package/dist/{chunk-ACTDYTAV.js → chunk-ZZRFG6ME.js} +114 -114
- package/dist/cli/commands/app/app-logs/sources.js +1 -1
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/doctor/instructions.js +1 -0
- package/dist/cli/commands/app/doctor.js +1 -0
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -0
- package/dist/cli/commands/app/subscription-migrations/list.js +1 -0
- package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -0
- package/dist/cli/commands/app/subscription-migrations/status.js +1 -0
- package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -0
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/send-analytics.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/command-registry.js +1 -1
- package/dist/{conf-store-OAGJBITE.js → conf-store-ASDCTDQ4.js} +1 -1
- package/dist/configs/all.yml +60 -0
- package/dist/configs/recommended.yml +60 -0
- package/dist/data/filters.json +31 -2
- package/dist/data/setting.json +129 -4
- package/dist/data/shopify_system_translations.json +154 -13
- package/dist/{deprecations-K3NPRKBF.js → deprecations-VBQV7Q4O.js} +1 -1
- package/dist/dist-FZLOAKU7.js +1 -0
- package/dist/dist-HTY6UHG5.js +1 -0
- package/dist/environments-HSTNEQRG.js +1 -0
- package/dist/{error-YX56C43A.js → error-2LZYKRMA.js} +1 -1
- package/dist/error-handler-PIGEJ7BT.js +1 -0
- package/dist/{fs-SKHQZZTQ.js → fs-BJHNJDDK.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 +14 -16
- package/dist/{is-global-V5VORI3F.js → is-global-6SCOAJVG.js} +1 -1
- package/dist/{local-GX5AN6ZS.js → local-PZWPRFU7.js} +1 -1
- package/dist/{metadata-XUJUTBTB.js → metadata-VVBHB3HL.js} +1 -1
- package/dist/{node-package-manager-3WIYU7Y3.js → node-package-manager-ETYQN7OM.js} +1 -1
- package/dist/notifications-system-652OG5KL.js +1 -0
- package/dist/os-7D6NT4O3.js +1 -0
- package/dist/{output-X47P6ICP.js → output-74VDGYJD.js} +1 -1
- package/dist/{prettier-RVUAAWC7.js → prettier-EGVCP5CY.js} +1 -1
- package/dist/{system-SR5G7WEW.js → system-P5QIJALL.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-VYWSLAQ6.js → ui-H5I5YVKV.js} +1 -1
- package/dist/upgrade-34HSYBXI.js +1 -0
- package/dist/version-EKXEAF6Q.js +1 -0
- package/dist/{version-FK4ETQ22.js → version-J2PYO6M5.js} +1 -1
- package/dist/{workerd-NAPS5TA7.js → workerd-X4TGHEG3.js} +1 -1
- package/oclif.manifest.json +903 -133
- package/package.json +9 -8
- package/dist/analytics-6LI5GLWS.js +0 -1
- package/dist/analytics-UNRIIG4Y.js +0 -1
- package/dist/chunk-5CYJG63I.js +0 -1
- package/dist/chunk-6PDR2IUL.js +0 -11
- package/dist/chunk-F5HCSUXC.js +0 -16
- package/dist/chunk-H5KWM27L.js +0 -1
- package/dist/chunk-NEMPLS7C.js +0 -1
- package/dist/chunk-OUZGGWFN.js +0 -1
- package/dist/chunk-PIFW2R3S.js +0 -1382
- package/dist/chunk-QRT4A2RV.js +0 -3
- package/dist/chunk-R2R6JDNH.js +0 -1
- package/dist/chunk-RZFBGBNA.js +0 -1
- package/dist/chunk-V5SC2RYQ.js +0 -2
- package/dist/chunk-VKSR6MJG.js +0 -2
- package/dist/chunk-XLURZ6GL.js +0 -559
- package/dist/chunk-Z5K4J7HQ.js +0 -1
- package/dist/chunk-ZO74GSWC.js +0 -5
- package/dist/chunk-ZSFAURIH.js +0 -3
- package/dist/dist-EXJEE23W.js +0 -1
- package/dist/dist-S62Z6IFV.js +0 -1
- package/dist/environments-ALH2N36U.js +0 -1
- package/dist/error-handler-FDCH72NH.js +0 -1
- package/dist/notifications-system-RHULO564.js +0 -1
- package/dist/os-M6X7KOR4.js +0 -1
- package/dist/upgrade-PFQ7JMXG.js +0 -1
- package/dist/version-U4GM2LNG.js +0 -1
- /package/dist/{chunk-NJPL5BTN.js → chunk-YLQ3LNNY.js} +0 -0
- /package/dist/{morph-77RHJICZ.js → morph-BMYYMQNX.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{sa as a,ta as b,ua as c}from"./chunk-3JXPOOFV.js";import"./chunk-ZDF5N422.js";import"./chunk-Y5PRPHLQ.js";import"./chunk-YFINLODF.js";import"./chunk-7Y7AZRL3.js";import"./chunk-7UNQOKZW.js";import"./chunk-UAFEFKAQ.js";import"./chunk-5HBIIYSK.js";import"./chunk-GB3YC4TI.js";import"./chunk-VASGXHYA.js";import"./chunk-MPW2YJWU.js";import"./chunk-YZMY2CTU.js";import"./chunk-RJ5VF3QY.js";import"./chunk-NHAUJWEG.js";import"./chunk-XF2KTEID.js";import"./chunk-BWJIZYAG.js";import"./chunk-T7KHS6RF.js";import"./chunk-CTNBSUVU.js";import"./chunk-636CTEW7.js";import"./chunk-TR4OWSEX.js";import"./chunk-2KD4LHRT.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-2KGPH7YG.js";import"./chunk-VFM2KQRM.js";import"./chunk-B4OMIONW.js";import"./chunk-BOAGJ6P5.js";import"./chunk-LD6ZCTZ3.js";import"./chunk-JJZNUFPD.js";import"./chunk-R6ICQT2D.js";import"./chunk-DPNZWBT5.js";import"./chunk-JD5P5RAJ.js";import"./chunk-773TIA5M.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{b as getEnvironmentData,c as getSensitiveEnvironmentData,a as startAnalytics};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Aa as f,Ba as g,va as a,wa as b,xa as c,ya as d,za as e}from"./chunk-3JXPOOFV.js";import"./chunk-ZDF5N422.js";import"./chunk-Y5PRPHLQ.js";import"./chunk-YFINLODF.js";import"./chunk-7Y7AZRL3.js";import"./chunk-7UNQOKZW.js";import"./chunk-UAFEFKAQ.js";import"./chunk-5HBIIYSK.js";import"./chunk-GB3YC4TI.js";import"./chunk-VASGXHYA.js";import"./chunk-MPW2YJWU.js";import"./chunk-YZMY2CTU.js";import"./chunk-RJ5VF3QY.js";import"./chunk-NHAUJWEG.js";import"./chunk-XF2KTEID.js";import"./chunk-BWJIZYAG.js";import"./chunk-T7KHS6RF.js";import"./chunk-CTNBSUVU.js";import"./chunk-636CTEW7.js";import"./chunk-TR4OWSEX.js";import"./chunk-2KD4LHRT.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-2KGPH7YG.js";import"./chunk-VFM2KQRM.js";import"./chunk-B4OMIONW.js";import"./chunk-BOAGJ6P5.js";import"./chunk-LD6ZCTZ3.js";import"./chunk-JJZNUFPD.js";import"./chunk-R6ICQT2D.js";import"./chunk-DPNZWBT5.js";import"./chunk-JD5P5RAJ.js";import"./chunk-773TIA5M.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{g as compileData,d as recordError,f as recordEvent,e as recordRetry,c as recordTiming,b as reportAnalyticsEvent,a as sendAnalyticsEventFromStdin};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Shopify Hydrogen development
|
|
2
|
+
|
|
3
|
+
This storefront is scaffolded from Shopify's Hydrogen skeleton template. See the README for framework-specific details.
|
|
4
|
+
|
|
5
|
+
Use the [Shopify AI Toolkit](https://shopify.dev/docs/apps/build/ai-toolkit) for all Shopify API and platform work. If missing, install it in the agent host per that page (or `npx skills add Shopify/shopify-ai-toolkit --list` for skill-compatible hosts).
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# skeleton
|
|
2
2
|
|
|
3
|
+
## 2026.4.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Recommend the Shopify AI Toolkit in newly scaffolded storefronts. ([#3887](https://github.com/Shopify/hydrogen/pull/3887)) by [@gonzaloriestra](https://github.com/gonzaloriestra)
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`10356c92fc1d4335244db7304cc6cdd47ba5c892`](https://github.com/Shopify/hydrogen/commit/10356c92fc1d4335244db7304cc6cdd47ba5c892), [`f15667f98826650f3904597b61b5dcb5f8b51c0a`](https://github.com/Shopify/hydrogen/commit/f15667f98826650f3904597b61b5dcb5f8b51c0a)]:
|
|
10
|
+
- @shopify/hydrogen@2026.4.5
|
|
11
|
+
|
|
3
12
|
## 2026.4.5
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@AGENTS.md
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "skeleton",
|
|
3
3
|
"private": true,
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "2026.4.
|
|
5
|
+
"version": "2026.4.6",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "shopify hydrogen build --codegen",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"prettier": "@shopify/prettier-config",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@shopify/hydrogen": "2026.4.
|
|
17
|
+
"@shopify/hydrogen": "2026.4.5",
|
|
18
18
|
"graphql": "^16.10.0",
|
|
19
19
|
"graphql-tag": "^2.12.6",
|
|
20
20
|
"isbot": "^5.1.22",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@react-router/fs-routes": "7.16.0",
|
|
33
33
|
"@shopify/cli": "3.93.2",
|
|
34
34
|
"@shopify/hydrogen-codegen": "0.3.3",
|
|
35
|
-
"@shopify/mini-oxygen": "4.2.
|
|
35
|
+
"@shopify/mini-oxygen": "4.2.2",
|
|
36
36
|
"@shopify/oxygen-workers-types": "^4.1.6",
|
|
37
37
|
"@shopify/prettier-config": "^1.1.2",
|
|
38
38
|
"@total-typescript/ts-reset": "^0.6.1",
|
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-YEVGLC5X.js";import{a as s}from"./chunk-XUUAKGEX.js";import"./chunk-T7KHS6RF.js";import"./chunk-CTNBSUVU.js";import"./chunk-TR4OWSEX.js";import"./chunk-2KD4LHRT.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-DPNZWBT5.js";import"./chunk-JD5P5RAJ.js";import"./chunk-773TIA5M.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-2LZYKRMA.js");if(o instanceof c){let{renderFatalError:i}=await import("./ui-H5I5YVKV.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 +1 @@
|
|
|
1
|
-
import{e as c}from"./chunk-
|
|
1
|
+
import{e as c}from"./chunk-3DCN3N23.js";import{W as s}from"./chunk-3JXPOOFV.js";import{h as p,k as a}from"./chunk-BWJIZYAG.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,3 +1,3 @@
|
|
|
1
|
-
import{b as g}from"./chunk-
|
|
1
|
+
import{b as g}from"./chunk-YEVGLC5X.js";import{b as y}from"./chunk-2XDUJQQN.js";import{r as u}from"./chunk-3JXPOOFV.js";import{h as r}from"./chunk-BWJIZYAG.js";import{a as R}from"./chunk-CTNBSUVU.js";import{ua as l,wa as m,wb as v,xb as w}from"./chunk-VFM2KQRM.js";import{f as p,i as h}from"./chunk-773TIA5M.js";import{e as A,g as s}from"./chunk-VKWPEFWQ.js";s();s();var U="text/markdown",L="X-Shopify-Surface",E="cli",F=["shopify.dev"];async function S(t,e){let c;try{c=new URL(t)}catch{throw new r(`Invalid URL: ${t}`)}let{hostname:d}=c;if(!F.some(o=>d===o||d.endsWith(`.${o}`)))throw new r(`Only documents from the following hosts can be fetched: ${F.join(", ")}.`);let i=await u(t,{headers:{Accept:U,[L]:E}});if(!i.ok)throw new r(`Failed to fetch ${t}: ${i.status} ${i.statusText}`);let f=await i.text();if(e){let o=p(e);await m(h(o)),await l(o,f),w(`Saved ${t} to ${o}`);return}v(f)}var n=A(R(),1),a=class t extends y{static description="Download a complete document from shopify.dev. Every page on shopify.dev has a Markdown version, and that is what this tool returns. Use this to pull an entire document verbatim \u2014 for example, a set of instructions an agent follows like a centrally-served skill. For finding the relevant pieces of content across shopify.dev instead, use `doc search`.";static examples=[`# fetch the Markdown version of a Shopify.dev page
|
|
2
2
|
shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli`,`# save the document to a file instead of printing it
|
|
3
3
|
shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli --output docs/shopify-cli.md`];static flags={...g,url:n.Flags.string({description:"The shopify.dev URL to fetch.",env:"SHOPIFY_FLAG_URL",required:!0}),output:n.Flags.string({description:"Write the document to this file path instead of printing it to stdout.",env:"SHOPIFY_FLAG_OUTPUT"})};async run(){let{flags:e}=await this.parse(t);await S(e.url,e.output)}};export{a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as N,c as S,d as A}from"./chunk-
|
|
1
|
+
import{b as N,c as S,d as A}from"./chunk-JX7FYWPO.js";import{a as T}from"./chunk-JG4HH54Q.js";import{a as g}from"./chunk-YESGYUEL.js";import{b as P,c as y,xa as x}from"./chunk-ZZRFG6ME.js";import{b as d,c as b}from"./chunk-YEVGLC5X.js";import{y as f}from"./chunk-YFINLODF.js";import{qb as h,sb as l,wb as m}from"./chunk-VFM2KQRM.js";import{d as p}from"./chunk-773TIA5M.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();s();function w(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 C(n,t,o,e,r,i){return JSON.stringify({handle:t.handle,name:n.name,apiVersion:t.api_version,targeting:o,schemaPath:i,wasmPath:r,functionRunnerPath:e},null,2)}function I(n,t){return{title:`CONFIGURATION
|
|
2
2
|
`,body:{tabularData:[["Handle",n.handle??"N/A"],["Name",t??"N/A"],["API Version",n.api_version??"N/A"]],firstColumnSubdued:!0}}}function j(n){if(Object.keys(n).length===0)return null;let t=[];return Object.entries(n).forEach(([o,e])=>{t.push([l`${h.cyan(o)}`.value,""]),e.inputQueryPath&&t.push([{subdued:" Input Query Path"},{filePath:e.inputQueryPath}]),e.export&&t.push([{subdued:" Export"},e.export])}),{title:`
|
|
3
3
|
TARGETING
|
|
4
4
|
`,body:{tabularData:t}}}function O(n,t){return{title:`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Ab as d}from"./chunk-
|
|
1
|
+
import{Ab as d}from"./chunk-VFM2KQRM.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();import{spawn as m}from"child_process";function b(n=process.pid,s="SIGTERM",e=!0,i){$(n,s,e,i??(t=>{t&&d(`Failed to kill process ${n}: ${t}`)}))}function $(n,s,e,i){let o=typeof n=="number"?n.toString():n;if(!/^\d+$/.test(o)){i(new Error("pid must be a number"));return}let t={};t[o]=[];let r=new Set;switch(r.add(o),process.platform){case"win32":{m("taskkill",["/pid",o,"/T","/F"]).on("close",f=>{f===0?i():i(new Error(`taskkill exited with code ${f}`))});break}case"darwin":h(o,t,r,function(c){return m("pgrep",["-lfP",c])},function(){k(t,s,o,e,i)});break;default:h(o,t,r,function(c){return m("ps",["-o","pid command","--no-headers","--ppid",c])},function(){k(t,s,o,e,i)});break}}function k(n,s,e,i,o){let t=new Set;try{Object.keys(n).forEach(function(r){n[r].forEach(function(c){t.has(c)||(w(c,s),t.add(c))}),r===e&&i&&!t.has(r)&&(w(r,s),t.add(r))})}catch(r){o(r);return}o()}function w(n,s){try{process.kill(parseInt(n,10),s)}catch(e){if(e.code!=="ESRCH")throw e}}function h(n,s,e,i,o){let t=i(n),r="";t.stdout?.on("data",function(f){let a=f.toString("ascii");r+=a});let c=f=>{if(e.delete(n),f!==0){if(e.size===0){o();return}return}r.trim().split(`
|
|
2
2
|
`).forEach(function(a){let l=a.match(/^(\d+)\s(.*)$/);if(l){let u=l[1],E=l[2];s[n].push(u),s[u]=[],d(`Killing process ${u}: ${E}`),e.add(u),h(u,s,e,i,o)}})};t.on("close",c)}export{b as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as L,b as g,d as P,g as w}from"./chunk-
|
|
1
|
+
import{a as L,b as g,d as P,g as w}from"./chunk-G5XIGN5D.js";import{a as A}from"./chunk-OZMQ2EJB.js";import{t as F}from"./chunk-3DCN3N23.js";import{a as G}from"./chunk-UZARYOLN.js";import{a as S}from"./chunk-YESGYUEL.js";import{b as v,e as b}from"./chunk-YEVGLC5X.js";import{D as d,y as l}from"./chunk-3JXPOOFV.js";import{N as u,a as c}from"./chunk-YFINLODF.js";import{a as q}from"./chunk-CTNBSUVU.js";import{Bb as y,qb as f,sb as h,xb as i}from"./chunk-VFM2KQRM.js";import{e as Q,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();import{randomBytes as x}from"crypto";function K(){return x(32).toString("hex")}function C(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 k(r){let e=await A(r.port),t=g({stdout:r.stdout??process.stdout,port:e,storeFqdn:r.storeFqdn,tokenProvider:r.tokenProvider,key:r.key,appContext:r.appContext,protectMutations:r.protectMutations}),a=C({port:e,key:r.key,query:r.query,variables:r.variables,apiVersion:r.apiVersion});try{i(h`GraphiQL is running at ${f.link(a)}`),r.additionalReadyMessages?.forEach(s=>i(s)),i("Press Ctrl+C to stop."),await u(a)||y("Browser did not open automatically. Open the URL above manually."),await T(r.abortSignal)}finally{t.close()}}async function T(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 I(r){let e=r.remoteApp.apiSecretKeys[0]?.secret??"",t=L(void 0,e,r.store),a=w({apiKey:r.remoteApp.apiKey,apiSecret:e,storeFqdn:r.store}),m=await l(),s=P(r.store,r.remoteApp.apiKey,m);await k({port:r.port,storeFqdn:r.store,tokenProvider:a,key:t,appContext:{appName:r.remoteApp.title,appUrl:s,apiSecret:e},variables:r.variables,apiVersion:r.apiVersion,abortSignal:r.abortSignal})}var n=Q(q(),1),p=class r extends G{static summary="Open a local GraphiQL UI for your app and store.";static 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.`;static description=this.descriptionWithoutMarkdown();static examples=["<%= config.bin %> <%= command.id %> --store shop.myshopify.com","<%= config.bin %> <%= command.id %> --store shop.myshopify.com --port 9123"];static flags={...v,...S,store:n.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 e=>d(e)}),port:b({description:"Local port for the GraphiQL server.",env:"SHOPIFY_FLAG_PORT"}),variables:n.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES"}),version:n.Flags.string({description:"The API version to use in GraphiQL. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})};async run(){let{flags:e}=await this.parse(r),{appContextResult:t,store:a}=await F(e);return await I({remoteApp:t.remoteApp,store:a.shopDomain,port:e.port,variables:e.variables,apiVersion:e.version}),{app:t.app}}};export{K as a,k as b,p as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as N}from"./chunk-LFOBYEWG.js";import{
|
|
1
|
+
import{b as N}from"./chunk-LFOBYEWG.js";import{L as E,b}from"./chunk-3JXPOOFV.js";import{V as O}from"./chunk-YFINLODF.js";import{d as _}from"./chunk-NHAUJWEG.js";import{h as f}from"./chunk-BWJIZYAG.js";import{a as q}from"./chunk-CTNBSUVU.js";import{$ as F,qb as d,sb as g,wb as $}from"./chunk-VFM2KQRM.js";import{c as P}from"./chunk-R6ICQT2D.js";import{a as T}from"./chunk-JD5P5RAJ.js";import{e as j,g as w}from"./chunk-VKWPEFWQ.js";w();var u=j(q()),h=class extends u.Command{static baseFlags={};static get requiresSyncAnalytics(){return!1}static nonTTYFlagRequirements(e){return[]}static descriptionWithoutMarkdown(){return(this.descriptionWithMarkdown??"").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm,'"$2" ($5)')}static analyticsNameOverride(){}static analyticsStopCommand(){}async catch(e){e.skipOclifErrorHandling=!0;let{errorHandler:t}=await import("./error-handler-PIGEJ7BT.js");return await t(e,this.config),u.Errors.handle(e)}async init(){if(this.exitWithTimestampWhenEnvVariablePresent(),N(this.id??""),!P()){let{registerCleanBugsnagErrorsFromWithinPlugins:t}=await import("./error-handler-PIGEJ7BT.js");await t(this.config)}await M(this.config),this.showNpmFlagWarning();let{showNotificationsIfNeeded:e}=await import("./notifications-system-652OG5KL.js");return await e(),super.init()}showNpmFlagWarning(){let e=this.constructor;Object.keys(e.flags||{}).map(r=>`npm_config_${F(r).replace(/^no_/,"")}`).some(r=>process.env[r]!==void 0)&&import("./ui-H5I5YVKV.js").then(({renderWarning:r})=>{r({body:["NPM scripts require an extra",{command:"--"},"separator to pass the flags. Example:",{command:"npm run dev -- --reset"}]})})}exitWithTimestampWhenEnvVariablePresent(){T(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN)&&($(`
|
|
2
2
|
SHOPIFY_CLI_TIMESTAMP_START
|
|
3
3
|
{ "timestamp": ${Date.now()} }
|
|
4
4
|
SHOPIFY_CLI_TIMESTAMP_END
|
|
@@ -7,6 +7,6 @@ import{b as N}from"./chunk-LFOBYEWG.js";import{K as E,a as b}from"./chunk-YN6A26
|
|
|
7
7
|
|
|
8
8
|
${d.cyan(i)}
|
|
9
9
|
|
|
10
|
-
${a} in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the options in the command, or run the command in an interactive environment such as your local terminal.")}applicableNonTTYFlagRequirements(e){let t=this.constructor,n={...t.baseFlags,...t.flags},r=Object.entries(n).filter(([,a])=>!!a.requiredIfNonInteractive).map(([a])=>({flags:[a]})),i=(t.nonTTYFlagRequirements?.(e)??[]).filter(a=>a.when?.(e)??!0);return[...r,...i]}async resultWithEnvironment(e,t,n){let r=e.flags,i=this.environmentsFilename();if(!i)return e;let{environmentFilePath:a}=await import("./environments-
|
|
11
|
-
`),{renderWarning:a}=await import("./ui-
|
|
10
|
+
${a} in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the options in the command, or run the command in an interactive environment such as your local terminal.")}applicableNonTTYFlagRequirements(e){let t=this.constructor,n={...t.baseFlags,...t.flags},r=Object.entries(n).filter(([,a])=>!!a.requiredIfNonInteractive).map(([a])=>({flags:[a]})),i=(t.nonTTYFlagRequirements?.(e)??[]).filter(a=>a.when?.(e)??!0);return[...r,...i]}async resultWithEnvironment(e,t,n){let r=e.flags,i=this.environmentsFilename();if(!i)return e;let{environmentFilePath:a}=await import("./environments-HSTNEQRG.js"),o=await a(i,{from:r.path}),l=[];r.environment&&(l=Array.isArray(r.environment)?r.environment:[r.environment]);let c=l.length>0;if(!o&&!c||c&&l.length>1)return e;let{environment:m,isDefaultEnvironment:p}=await this.loadEnvironmentForCommand(r.path,i,l[0]);if(!m||p&&!S(t?.flags,"environment"))return e;let v=await super.parse(A(t),n),y=await super.parse(t,[...n??this.argv,...R(m,t,v),...p?["--environment","default"]:[]]);return I(v.flags,y.flags,p?"default":l[0],m),y}async loadEnvironmentForCommand(e,t,n){let{loadEnvironment:r}=await import("./environments-HSTNEQRG.js");return n?{environment:await r(n,t,{from:e}),isDefaultEnvironment:!1}:{environment:await r("default",t,{from:e,silent:!0}),isDefaultEnvironment:!0}}};async function C(s){await _(()=>({cmd_all_verbose:s.verbose,cmd_all_path_override:s.path!==void 0,cmd_all_path_override_hash:s.path===void 0?void 0:b(s.path)}))}function I(s,e,t,n){let r={};for(let[a,o]of Object.entries(e)){let l=Object.prototype.hasOwnProperty.call(s,a),c=Object.prototype.hasOwnProperty.call(n,a);if(!l&&c){let m=a==="password"?`********${o.substr(-4)}`:o;r[a]=m}}if(Object.keys(r).length===0)return;let i=Object.entries(r).map(([a,o])=>`${a}: ${o}`);import("./ui-H5I5YVKV.js").then(({renderInfo:a})=>{a({headline:["Using applicable flags from",{userInput:t},"environment:"],body:[{list:{items:i}}]})})}function A(s){return s?.flags?{...s,flags:Object.fromEntries(Object.entries(s.flags).map(([e,t])=>{let n={...t};return delete n.default,[e,n]}))}:s}function R(s,e,t){let n=[];for(let[r,i]of Object.entries(s)){let a=S(e?.flags,r),o=t.flags&&Object.prototype.hasOwnProperty.call(t.flags,r);if(a&&!o)if(typeof i=="boolean")if(i)n.push(`--${r}`);else throw new f(g`Environments can only specify true for boolean flags. Attempted to set ${d.yellow(r)} to false.`);else Array.isArray(i)?i.forEach(l=>n.push(`--${r}`,`${l}`)):n.push(`--${r}`,`${i}`)}return n}function S(s,e){return!!s&&Object.prototype.hasOwnProperty.call(s,e)}async function M(s){let e=Array.from(s.plugins.values()),t=["@shopify/app","@shopify/plugin-cloudflare"],n=e.filter(i=>t.includes(i.name));if(n.length>0){let i=n.map(o=>` - shopify plugins remove ${o.name}`).join(`
|
|
11
|
+
`),{renderWarning:a}=await import("./ui-H5I5YVKV.js");a({headline:`Unsupported plugins detected: ${n.map(o=>o.name).join(", ")}`,body:["They are already included in the CLI and installing them as custom plugins can cause conflicts.",`You can fix it by running:
|
|
12
12
|
${i}`]})}let r=e.filter(i=>!t.includes(i.name));s.plugins=new Map(r.map(i=>[i.name,i]))}var z=h;export{A as a,z as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o,c as l,f as m}from"./chunk-
|
|
1
|
+
import{b as o,c as l,f as m}from"./chunk-ZZRFG6ME.js";import{A as a,S as h}from"./chunk-YFINLODF.js";import{Ta as f,na as c}from"./chunk-VFM2KQRM.js";import{d as s}from"./chunk-773TIA5M.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();async function d(n){if(n.features.includes("function")&&n.isJavaScript){let e=await m(n);return o(e.functionRunner)}return o()}function p(n){return n.configuration.build?.path?s(n.directory,n.configuration.build.path):n.outputPath}async function y(n,e){try{if(!await f(e))return;let i=c(e);if(!WebAssembly.validate(i))return;let t=new WebAssembly.Module(i);if(WebAssembly.Module.customSections(t,"name").length>0)return;if(n.isJavaScript){a({headline:"The profile won't contain names for your function.",body:"JavaScript functions built with Javy don't include a WebAssembly function name section, regardless of the wasm_opt setting. Function names will appear as <unknown> in the profile."});return}a({headline:"The profile won't contain names for your function.",body:["The built WebAssembly module doesn't contain a function name section. The default wasm-opt step removes this section, and the function compiler can also omit it. To preserve function names, set ",{userInput:"wasm_opt = false"}," under ",{userInput:"[extensions.build]"}," in shopify.extension.toml, configure the compiler to emit function names, and rebuild the function."]})}catch{}}async function W(n){let e=n.functionExtension,i=await d(e);await l(i);let t=[];n.inputPath&&t.push("--input",n.inputPath),n.export&&t.push("--export",n.export),n.json&&t.push("--json"),n.profile&&t.push("--profile"),n.schemaPath&&n.queryPath&&(t.push("--schema-path",n.schemaPath),t.push("--query-path",n.queryPath));let r=p(e);return n.profile&&await y(e,r),h(i.path,["-f",r,...t],{cwd:n.functionExtension.directory,stdin:n.stdin,stdout:n.stdout??"inherit",stderr:n.stderr??"inherit",input:n.input})}export{W as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as x}from"./chunk-
|
|
1
|
+
import{a as x}from"./chunk-EX5GVHGE.js";import{wa as D}from"./chunk-ZZRFG6ME.js";import{b as u,d as B}from"./chunk-KWVOJWO7.js";import{k as W,r as y}from"./chunk-3JXPOOFV.js";import{B as A,I as N,T as F}from"./chunk-YFINLODF.js";import{h as s,k as C}from"./chunk-BWJIZYAG.js";import{Ta as _,ma as T,qb as m,sb as o}from"./chunk-VFM2KQRM.js";import{e as z,g as t}from"./chunk-VKWPEFWQ.js";t();var b=z(W(),1);function H(e){return e.startsWith("gid://")?e:/^\d+$/.test(e)?`gid://shopify/BulkOperation/${e}`:e}function J(e){return e.match(/^gid:\/\/shopify\/BulkOperation\/(\d+)$/)?.[1]??e}function g(e){let n;try{n=(0,b.parse)(e)}catch(i){throw i instanceof Error?new s(`Invalid GraphQL syntax: ${i.message}`):i}if(n.definitions.filter(i=>i.kind==="OperationDefinition").length!==1)throw new s("GraphQL document must contain exactly one operation definition. Multiple operations are not supported.")}function X(e){let n;try{n=(0,b.parse)(e)}catch(i){throw i instanceof Error?new s(`Invalid GraphQL syntax: ${i.message}`):i}return n.definitions.find(i=>i.kind==="OperationDefinition")?.operation==="mutation"}async function Y(e){let{adminSession:n,userSpecifiedVersion:a,minimumDefaultVersion:i}=e;if(a==="unstable")return a;let r=await B(n);if(!a){let c=r.filter(v=>v.supported).map(v=>v.handle);i&&c.push(i);let f=c.sort().reverse()[0];if(!f)throw new s("No supported API versions available for this store.");return f}let l=r.map(c=>c.handle);if(l.includes(a))return a;let d=o`Invalid API version: ${a}`.value,k=o`Allowed versions: ${l.join(", ")}`.value;throw new s(d,k)}t();t();var p="2026-01";t();async function E(e){let n;if(e.query!==void 0){if(!e.query.trim())throw new s("The --query flag value is empty. Please provide a valid GraphQL query or mutation.");n=e.query}else if(e.queryFile){if(!await _(e.queryFile))throw new s(o`Query file not found at ${m.path(e.queryFile)}. Please check the path and try again.`);let a=await T(e.queryFile,{encoding:"utf8"});if(!a.trim())throw new s(o`Query file at ${m.path(e.queryFile)} is empty. Please provide a valid GraphQL query or mutation.`);n=a}else throw new C("Query should have been provided via --query or --query-file flags due to exactlyOne constraint. This indicates the oclif flag validation failed.");return g(n),n}t();t();var R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationRunQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationRunQuery"},arguments:[{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function Z(e){let{adminSession:n,query:a,version:i}=e;return(await u({query:R,session:n,variables:{query:a},...i&&{version:i}})).bulkOperationRunQuery}t();t();t();var L={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"StagedUploadsCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StagedUploadInput"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stagedUploadsCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stagedTargets"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"resourceUrl"}},{kind:"Field",name:{kind:"Name",value:"parameters"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function h(e){let{adminSession:n,variablesJsonl:a}=e,i=Buffer.from(a??"","utf-8"),r="bulk-variables.jsonl",l=i.length,d=await ee(n,r,l),k=ne(d);return await ie(i,k.url,k.parameters,r),k.stagedUploadKey}async function ee(e,n,a){return u({query:L,session:e,variables:{input:[{filename:n,fileSize:a.toString(),httpMethod:"POST",mimeType:"text/jsonl",resource:"BULK_MUTATION_VARIABLES"}]}})}function ne(e){if(!e.stagedUploadsCreate)throw new s("No response received from stagedUploadsCreate mutation");if(e.stagedUploadsCreate.userErrors.length>0){let i=e.stagedUploadsCreate.userErrors.map(r=>r.message).join(", ");throw new s(`Failed to create staged upload: ${i}`)}let n=e.stagedUploadsCreate.stagedTargets?.[0];if(!n)throw new s("No staged upload target returned from Shopify");if(!n.url||!n.resourceUrl)throw new s("Invalid staged upload target: missing required URLs");let a=n.parameters.find(i=>i.name==="key")?.value;if(!a)throw new s("No key parameter found in staged upload target");return{url:n.url,resourceUrl:n.resourceUrl,parameters:n.parameters,stagedUploadKey:a}}async function ie(e,n,a,i){let r=new FormData;for(let d of a)r.append(d.name,d.value);r.append("file",new Blob([new Uint8Array(e)],{type:"text/jsonl"}),i);let l=await N({title:o`Uploading bulk operation variables`,task:async()=>y(n,{method:"POST",body:r},"slow-request"),renderOptions:{stdout:process.stderr}});if(!l.ok){let d=await l.text();throw new s(`Failed to upload file to staged URL: ${l.statusText}
|
|
2
2
|
${d}`)}}t();var U={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationRunMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mutation"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"stagedUploadPath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"clientIdentifier"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationRunMutation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mutation"},value:{kind:"Variable",name:{kind:"Name",value:"mutation"}}},{kind:"Argument",name:{kind:"Name",value:"stagedUploadPath"},value:{kind:"Variable",name:{kind:"Name",value:"stagedUploadPath"}}},{kind:"Argument",name:{kind:"Name",value:"clientIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"clientIdentifier"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function ae(e){let{adminSession:n,query:a,variablesJsonl:i,version:r}=e,l=await h({adminSession:n,variablesJsonl:i});return(await u({query:U,session:n,variables:{mutation:a,stagedUploadPath:l},...r&&{version:r}})).bulkOperationRunMutation}t();t();var S={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetBulkOperationById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};t();var q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListBulkOperations"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BulkOperationsSortKeys"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperations"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}},{kind:"Argument",name:{kind:"Name",value:"sortKey"},value:{kind:"Variable",name:{kind:"Name",value:"sortKey"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function te(e){let{adminSession:n,operationId:a,version:i}=e;return(await u({query:S,session:n,variables:{id:a},version:i??p})).bulkOperation}async function re(e){let{adminSession:n,version:a,sinceDays:i=7,first:r=100}=e,l=new Date(Date.now()-i*24*60*60*1e3).toISOString().split("T")[0];return(await u({query:q,session:n,variables:{query:`created_at:>=${l}`,first:r,sortKey:"CREATED_AT"},version:a??p})).bulkOperations.nodes}t();t();var P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationCancel"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationCancel"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"fileSize"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"query"}},{kind:"Field",name:{kind:"Name",value:"rootObjectCount"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function oe(e){let{adminSession:n,operationId:a,version:i}=e;return(await u({query:P,session:n,variables:{id:a},version:i??p})).bulkOperationCancel}t();t();function O(e){switch(e.status){case"RUNNING":return o`Bulk operation in progress${e.objectCount>0?m.gray(` (${String(e.objectCount)} objects ${e.type==="MUTATION"?"written":"read"})`):""}`;case"CREATED":return o`Starting`;case"COMPLETED":return o`Bulk operation succeeded: ${m.gray(`${String(e.objectCount)} objects`)}`;case"FAILED":return o`Bulk operation failed. ${m.errorText(`Error: ${e.errorCode??"unknown"}`)}`;case"CANCELING":return o`Bulk operation canceling...`;case"CANCELED":return o`Bulk operation canceled.`;case"EXPIRED":return o`Bulk operation expired.`;default:return o`Bulk operation status: ${e.status}`}}function le(e,n){let a=e.map(i=>o`${i.field?.join(".")??"unknown"}: ${i.message}`.value).join(`
|
|
3
3
|
`);A({headline:n,body:a})}function de(e){let n=O(e).value;switch(e.status){case"CANCELING":return{headline:"Bulk operation is being cancelled.",renderType:"success"};case"CANCELED":case"COMPLETED":case"FAILED":{let a=[o`ID: ${m.cyan(e.id)}`.value,o`Status: ${m.yellow(e.status)}`.value,o`Created at: ${m.gray(String(e.createdAt))}`.value,...e.completedAt?[o`Completed at: ${m.gray(String(e.completedAt))}`.value]:[]];return{headline:o`Bulk operation is already ${e.status.toLowerCase()}.`.value,body:o`This operation has already finished and can't be canceled.`.value,customSections:[{body:[{list:{items:a}}]}],renderType:"warning"}}case"CREATED":case"EXPIRED":case"RUNNING":return{headline:n,renderType:"info"}}}var se=["COMPLETED","FAILED","CANCELED","EXPIRED"],V=1,ue=5,M=10,$=3e3,Q=300;async function me(e,n){return N({title:o`Starting bulk operation`,task:async()=>{let a=Date.now(),i=j({adminSession:e,operationId:n,pollIntervalSeconds:Q/1e3,useAdaptivePolling:!1}),r;do{let{value:l,done:d}=await i.next();if(r=l,d)return r}while(Date.now()-a<$);return r},renderOptions:{stdout:process.stderr}})}async function ke(e,n,a,i){return N({title:o`Polling bulk operation`,task:async r=>{let l=j({adminSession:e,operationId:n,pollIntervalSeconds:ue,initialPollIntervalSeconds:V,initialPollCount:M,useAdaptivePolling:!0,abortSignal:a});for(;;){let{value:d,done:k}=await l.next();if(k)return d;r(O(d))}},onAbort:i,renderOptions:{stdout:process.stderr}})}async function*j({adminSession:e,operationId:n,pollIntervalSeconds:a,useAdaptivePolling:i=!1,initialPollIntervalSeconds:r=V,initialPollCount:l=M,abortSignal:d}){let k=0;for(;;){let c=await pe(e,n);if(!c.bulkOperation)throw new Error("bulk operation not found");let f=c.bulkOperation;if(se.includes(f.status)||d?.aborted)return f;yield f,k++;let v=a;if(i&&k<=l&&(v=r),d){let w,K=new Promise(G=>{let I=()=>G();d.addEventListener("abort",I,{once:!0}),w=()=>d.removeEventListener("abort",I)});await Promise.race([F(v),K]),w?.()}else await F(v)}}async function pe(e,n){return u({query:S,session:e,variables:{id:n},version:p})}t();async function ce(e){let n=await y(e);if(!n.ok)throw new s(`Failed to download bulk operation results: ${n.statusText}`);return n.text()}function ve(e){return e.trim().split(`
|
|
4
4
|
`).filter(a=>a.trim().length>0).some(a=>{let i;try{i=JSON.parse(a)}catch(l){if(l instanceof SyntaxError)return!1;throw l}if(!i.data)return!1;let r=Object.values(i.data)[0];return r?.userErrors!==void 0&&r.userErrors.length>0})}t();async function fe(e){let n=await D({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),a=await x({appContextResult:n,storeFqdn:e.store,forceReselectStore:e.reset,storeTypes:["APP_DEVELOPMENT","DEVELOPMENT","DEVELOPMENT_SUPERSET","PRODUCTION"]});return{appContextResult:n,store:a}}async function Jn(e){let n=await E({query:e.query,queryFile:e["query-file"]}),{appContextResult:a,store:i}=await fe(e);return{query:n,appContextResult:a,store:i}}export{p as a,H as b,J as c,g as d,X as e,Y as f,E as g,Z as h,ae as i,te as j,re as k,oe as l,O as m,le as n,de as o,me as p,ke as q,ce as r,ve as s,fe as t,Jn as u};
|