@shopify/cli 4.8.5 → 4.9.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-QK4RFCB6.js +1 -0
- package/dist/analytics-R6I5APDB.js +1 -0
- package/dist/assets/hydrogen/starter/package.json +1 -1
- package/dist/bootstrap.js +1 -3
- package/dist/chunk-22LJALHJ.js +7 -0
- package/dist/{chunk-6ICRPFG4.js → chunk-23K3B23N.js} +1 -1
- package/dist/chunk-2KLXRVGQ.js +317 -0
- package/dist/{chunk-ZMD5TNU5.js → chunk-2LZQM5JG.js} +1 -1
- package/dist/chunk-2OHSGC4Q.js +1 -0
- package/dist/chunk-2Q3WIH7S.js +6 -0
- package/dist/{chunk-HSETBDXR.js → chunk-2W6M7YDY.js} +1 -1
- package/dist/{chunk-2JM3XHTQ.js → chunk-2YFB3PTV.js} +9 -9
- package/dist/chunk-2YRVHJEY.js +4 -0
- package/dist/{chunk-DKAWQBTI.js → chunk-3AASYIOA.js} +3 -3
- package/dist/chunk-3DMDSAWK.js +20 -0
- package/dist/{chunk-NZ3HLDJG.js → chunk-3SG5EJFC.js} +1 -1
- package/dist/chunk-3T2WMZHC.js +1 -0
- package/dist/{chunk-773TIA5M.js → chunk-3VYOLEQE.js} +2 -2
- package/dist/chunk-3WVEL423.js +1 -0
- package/dist/{chunk-H5MENHJ2.js → chunk-3ZK5JZLY.js} +1 -1
- package/dist/chunk-44QTWXOJ.js +8 -0
- package/dist/{chunk-4QBJ5JBX.js → chunk-4A7FPJVT.js} +16 -15
- package/dist/chunk-4TQFTZVD.js +18 -0
- package/dist/chunk-4WACZNFF.js +1 -0
- package/dist/{chunk-4UD2LW4O.js → chunk-4XSYMLQG.js} +1 -1
- package/dist/{chunk-T3B6KIPU.js → chunk-4Y22EM45.js} +1 -1
- package/dist/chunk-53U6XS3J.js +1 -0
- package/dist/chunk-55NKAIIT.js +1 -0
- package/dist/chunk-55PABKRC.js +5 -0
- package/dist/chunk-5BLXN5WU.js +1 -0
- package/dist/{chunk-AOPEKBDL.js → chunk-5BYVVXGD.js} +1 -1
- package/dist/{chunk-ZMTTZXC4.js → chunk-5HEBS5DG.js} +3 -3
- package/dist/{chunk-VIMFXQ3Q.js → chunk-5HONV6NQ.js} +1 -1
- package/dist/chunk-5RL6DKWR.js +5 -0
- package/dist/chunk-5XO6PAMV.js +1 -0
- package/dist/chunk-6DHY67FO.js +6 -0
- package/dist/{chunk-5GUXN2RU.js → chunk-6GA56I3E.js} +1 -1
- package/dist/chunk-6IL3B5Z5.js +4 -0
- package/dist/{chunk-AEPBX4GI.js → chunk-6ILP6QCH.js} +1 -1
- package/dist/{chunk-PL7AJVTV.js → chunk-6RBCFXJT.js} +1 -1
- package/dist/{chunk-NZE4C4OI.js → chunk-72HS7MHV.js} +1 -1
- package/dist/{chunk-RU6J6QQF.js → chunk-74HXMIDM.js} +1 -1
- package/dist/{chunk-PJ7L6NSD.js → chunk-77B77IGP.js} +1 -1
- package/dist/chunk-7DRKDQRT.js +1 -0
- package/dist/chunk-7HDJBEBP.js +3 -0
- package/dist/chunk-7IGMIDKK.js +15 -0
- package/dist/chunk-7QQPAT4L.js +1 -0
- package/dist/chunk-7Y4X5I6N.js +1 -0
- package/dist/{chunk-NPATN7YS.js → chunk-7ZSN2QT5.js} +1 -1
- package/dist/chunk-A54V5UCD.js +5 -0
- package/dist/{chunk-MNYKIPG7.js → chunk-AD4S2VEI.js} +1 -1
- package/dist/chunk-ADW7ECNU.js +7 -0
- package/dist/chunk-AS2O62JX.js +1 -0
- package/dist/chunk-ASUARYJD.js +1 -0
- package/dist/chunk-B4RPJYDH.js +1 -0
- package/dist/{chunk-PIQI72DV.js → chunk-BJOJNAKH.js} +1 -1
- package/dist/chunk-BL5JWD3Y.js +16 -0
- package/dist/chunk-BOFCBTX7.js +1 -0
- package/dist/chunk-BPIQ4YTW.js +1 -0
- package/dist/chunk-C6FZII5S.js +1 -0
- package/dist/{chunk-6LNTC6EK.js → chunk-CACPRKUF.js} +1 -1
- package/dist/{chunk-WKTIQUQP.js → chunk-CHLSNYF7.js} +1 -1
- package/dist/chunk-CMICT4XI.js +1 -0
- package/dist/chunk-CPFAATMO.js +6 -0
- package/dist/{chunk-R4TOHQH3.js → chunk-CSRNHTHO.js} +2 -2
- package/dist/chunk-D3K42KBL.js +9 -0
- package/dist/chunk-DGMRL5DQ.js +1 -0
- package/dist/chunk-DKJPE42V.js +2 -0
- package/dist/{chunk-SOJHJ4QK.js → chunk-DYA5UUXL.js} +1 -1
- package/dist/chunk-E5ND6RBL.js +1 -0
- package/dist/{chunk-DV7FOLG4.js → chunk-E75DJTAF.js} +1 -1
- package/dist/chunk-ECEOBSGD.js +1 -0
- package/dist/{chunk-6IOVTFAH.js → chunk-EYSZRIUL.js} +1 -1
- package/dist/chunk-FCULF3JA.js +1 -0
- package/dist/chunk-FL34EOXG.js +1 -0
- package/dist/chunk-FW5HGFSZ.js +20 -0
- package/dist/{chunk-M2M3I63K.js → chunk-G54BKNIX.js} +1 -1
- package/dist/{chunk-PU6KWWVK.js → chunk-G7OIACY5.js} +1 -1
- package/dist/{chunk-VVPIXC3W.js → chunk-GALDYSEX.js} +1 -1
- package/dist/{chunk-WQOV3LQA.js → chunk-GDQLA5NB.js} +1 -1
- package/dist/{chunk-GCJAY2XJ.js → chunk-GJJBOCKD.js} +3 -3
- package/dist/{chunk-OJSF3H2G.js → chunk-GQZPGTG7.js} +2 -2
- package/dist/{chunk-MMHTYLTG.js → chunk-GVRFO4CV.js} +1 -1
- package/dist/chunk-HB3MJYBK.js +1 -0
- package/dist/{chunk-AEUCDGTB.js → chunk-HDQXFGYG.js} +1 -1
- package/dist/chunk-HSTNTHWM.js +1 -0
- package/dist/{chunk-WAZL37JY.js → chunk-HSZC2LBB.js} +1 -1
- package/dist/chunk-I4FGM6UH.js +8 -0
- package/dist/chunk-I7GYNNCU.js +6 -0
- package/dist/{chunk-MFP63IUM.js → chunk-IBTQO3JD.js} +1 -1
- package/dist/{chunk-MVJSQT7V.js → chunk-IISE7SBT.js} +1 -1
- package/dist/chunk-IUZZWXJG.js +3 -0
- package/dist/chunk-IWML2HLC.js +5 -0
- package/dist/{chunk-CTNBSUVU.js → chunk-JA2QZ635.js} +2 -2
- package/dist/chunk-JOJRABPY.js +3 -0
- package/dist/chunk-JQKB3D37.js +1 -0
- package/dist/chunk-JROJL6RV.js +1 -0
- package/dist/{chunk-4JU7N2OF.js → chunk-JTPVSO6Y.js} +1 -1
- package/dist/chunk-JWDUSMCA.js +1 -0
- package/dist/{chunk-3CKUOG4B.js → chunk-KLYJDAP6.js} +1 -1
- package/dist/{chunk-LZZAD3FW.js → chunk-KVROYIUQ.js} +1 -1
- package/dist/chunk-L5XWYTHY.js +836 -0
- package/dist/chunk-LOTGSNS5.js +2 -0
- package/dist/{chunk-KHRZFJHM.js → chunk-LQLFMDVD.js} +1 -1
- package/dist/{chunk-Z4E2EXZV.js → chunk-LSWFHTJT.js} +1 -1
- package/dist/{chunk-BPJRQOHO.js → chunk-LV2IWYGL.js} +1 -1
- package/dist/{chunk-XRWQ7AXY.js → chunk-LYPNQFWX.js} +1 -1
- package/dist/{chunk-UJSCQJLW.js → chunk-MRVQ6XRW.js} +1 -1
- package/dist/chunk-MVVHISCR.js +2 -0
- package/dist/{chunk-VPOAOUT4.js → chunk-N4DE5H65.js} +1 -1
- package/dist/{chunk-W6ST525S.js → chunk-N56BJ3F7.js} +1 -1
- package/dist/{chunk-POOKYUTJ.js → chunk-NF7MOA4K.js} +1 -1
- package/dist/{chunk-PQDB3FUL.js → chunk-NGN7U2UF.js} +1 -1
- package/dist/{chunk-KDMJ2BLO.js → chunk-NTVEJYKI.js} +1 -1
- package/dist/chunk-NYABB6XW.js +1 -0
- package/dist/{chunk-RSGIMVPN.js → chunk-O6E7YL7N.js} +2 -2
- package/dist/chunk-OASB6XPV.js +16 -0
- package/dist/{chunk-I6DVGPJ7.js → chunk-OBYY45BX.js} +1 -1
- package/dist/chunk-OETFY7FE.js +28 -0
- package/dist/{chunk-K5OTE6CX.js → chunk-OEZATTOS.js} +1 -1
- package/dist/{chunk-D34ZSTCK.js → chunk-OG7SF4FU.js} +1 -1
- package/dist/chunk-OM243CQ6.js +6 -0
- package/dist/chunk-P3Z5RLVV.js +3 -0
- package/dist/{chunk-ZFA5DIJ3.js → chunk-PBBZNGS4.js} +1 -1
- package/dist/chunk-PGTKKP2B.js +11 -0
- package/dist/chunk-PK4ID32C.js +1 -0
- package/dist/{chunk-G7C4LBG2.js → chunk-PVOWU77O.js} +1 -1
- package/dist/{chunk-SYBKHTVU.js → chunk-PXD2WJOI.js} +3 -3
- package/dist/chunk-PXXTSW6I.js +4 -0
- package/dist/{chunk-IYFHBTJ2.js → chunk-PZHE37Z4.js} +1 -1
- package/dist/{chunk-WHXY372K.js → chunk-Q34PKJRR.js} +1 -1
- package/dist/{chunk-6QWLOSUQ.js → chunk-Q3O3AFZT.js} +1 -1
- package/dist/chunk-Q45XAEG2.js +16 -0
- package/dist/{chunk-DPMOLROM.js → chunk-QAXFCAOV.js} +5 -5
- package/dist/{chunk-FXBQKJTS.js → chunk-QBGSSUJP.js} +1 -1
- package/dist/chunk-QILWHHAQ.js +1 -0
- package/dist/{chunk-HGFCNPSN.js → chunk-QJST4LZX.js} +1 -1
- package/dist/chunk-QQN4PJZD.js +1 -0
- package/dist/{chunk-OAEGTH4Q.js → chunk-QSKOR3ED.js} +1 -1
- package/dist/{chunk-C4UCOQUP.js → chunk-QTEWTPAQ.js} +2 -2
- package/dist/chunk-QWDJRSJJ.js +1 -0
- package/dist/{chunk-TUWRPDTE.js → chunk-R757TSQ6.js} +1 -1
- package/dist/chunk-RCIU7NHA.js +1 -0
- package/dist/chunk-RGIUP4FW.js +1 -0
- package/dist/{chunk-4SXHXMK6.js → chunk-RHNFWHFY.js} +1 -1
- package/dist/{chunk-6QU2BHVL.js → chunk-S7536EWZ.js} +4 -4
- package/dist/{chunk-GW7IEG4G.js → chunk-SDFO7P2M.js} +1 -1
- package/dist/{chunk-7O2KMA4J.js → chunk-SDJNAUU6.js} +1 -1
- package/dist/chunk-SGBLCVUX.js +1 -0
- package/dist/chunk-SJARQZVN.js +3 -0
- package/dist/chunk-SKRUMRB4.js +383 -0
- package/dist/{chunk-BU6LJZG7.js → chunk-SW5EWGBJ.js} +1 -1
- package/dist/chunk-SXPWOYLT.js +7 -0
- package/dist/chunk-T234RERA.js +7 -0
- package/dist/chunk-TJJVX7CU.js +4 -0
- package/dist/{chunk-TTV2GWNE.js → chunk-TMV37ENR.js} +1 -1
- package/dist/{chunk-4UAJ6ULU.js → chunk-TNXZWQZU.js} +1 -1
- package/dist/{chunk-GUPUXFIP.js → chunk-TO7TXDLU.js} +1 -1
- package/dist/chunk-TSLZNTFM.js +3 -0
- package/dist/{chunk-NAQ7KT6L.js → chunk-UFU2LGFK.js} +1 -1
- package/dist/chunk-VDDNDA5K.js +15 -0
- package/dist/{chunk-F33TYJM5.js → chunk-VFO5OYQ4.js} +1 -1
- package/dist/{chunk-4DIR65KL.js → chunk-VFP3PUGZ.js} +24 -24
- package/dist/{chunk-6QDOCBD4.js → chunk-VZUHMW5E.js} +4 -3
- package/dist/chunk-W7CBJNXD.js +12 -0
- package/dist/chunk-WCAGYCT7.js +4 -0
- package/dist/{chunk-DPNZWBT5.js → chunk-WNO2V53C.js} +1 -1
- package/dist/{chunk-4XE6E4DC.js → chunk-WPUQTUDX.js} +1 -1
- package/dist/chunk-WU7MSL3I.js +8 -0
- package/dist/chunk-WXV35TPE.js +1 -0
- package/dist/{chunk-77KSMVIO.js → chunk-XBSWZ6BT.js} +6 -6
- package/dist/chunk-XCNJL7ES.js +1 -0
- package/dist/{chunk-WM3GKSPE.js → chunk-XFZDFDZV.js} +1 -1
- package/dist/chunk-XTYSJIZY.js +1 -0
- package/dist/chunk-Y5ZN62VF.js +1 -0
- package/dist/{chunk-EBBS7VG6.js → chunk-YAH5WFYR.js} +3 -3
- package/dist/{chunk-EJJPVVQ2.js → chunk-YBQKJHZW.js} +1 -1
- package/dist/chunk-YD66PU3Y.js +1 -0
- package/dist/chunk-YGFEUXKQ.js +1 -0
- package/dist/chunk-YJWNM4XO.js +18 -0
- package/dist/{chunk-RX63KGTK.js → chunk-YQQHBFMA.js} +1 -1
- package/dist/chunk-YRHFPXC3.js +1 -0
- package/dist/chunk-YTJ3EPD3.js +1 -0
- package/dist/chunk-YX5GRXRS.js +2368 -0
- package/dist/chunk-Z35PUKKP.js +7 -0
- package/dist/{chunk-WKRX4FBZ.js → chunk-Z3XIZMEM.js} +1 -1
- package/dist/chunk-ZGASBRSQ.js +5 -0
- package/dist/{chunk-HS3VTFW3.js → chunk-ZHJ6KA43.js} +1 -1
- package/dist/{chunk-H6TWXT6Q.js → chunk-ZO4IBP4B.js} +1 -1
- package/dist/chunk-ZOYSMJ27.js +1 -0
- package/dist/chunk-ZPCCSPAE.js +3 -0
- package/dist/chunk-ZSJXZCAW.js +4 -0
- package/dist/{chunk-A2BZY6TE.js → chunk-ZSVR5NEO.js} +1 -1
- package/dist/{chunk-J774336K.js → chunk-ZUVAHONX.js} +1 -1
- package/dist/chunk-ZVDFCUJT.js +2 -0
- 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/channel-config.js +1 -0
- package/dist/cli/commands/app/import/custom-data-definitions.js +1 -0
- package/dist/cli/commands/app/import/dashboard-extensions.js +1 -0
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/security/check.js +1 -0
- package/dist/cli/commands/app/security/clean.js +1 -0
- package/dist/cli/commands/app/security/instructions.js +1 -0
- package/dist/cli/commands/app/security/record.js +1 -0
- package/dist/cli/commands/app/security/review.js +1 -0
- package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.d.ts +16 -1
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.d.ts +16 -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.d.ts +13 -0
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.d.ts +13 -0
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.d.ts +13 -0
- 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.d.ts +2 -0
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.d.ts +1 -0
- 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.d.ts +1 -0
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.d.ts +431 -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.d.ts +11 -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.d.ts +15 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.d.ts +5 -2
- package/dist/cli/help.js +6 -2
- package/dist/cli/services/commands/auth/login/types.d.ts +11 -0
- package/dist/cli/services/commands/auth/login/types.js +7 -0
- package/dist/cli/services/commands/config/autoupgrade/index.d.ts +3 -0
- package/dist/cli/services/commands/config/autoupgrade/index.js +9 -0
- package/dist/cli/services/commands/config/autoupgrade/result.d.ts +2 -0
- package/dist/cli/services/commands/config/autoupgrade/result.js +15 -0
- package/dist/cli/services/commands/config/autoupgrade/types.d.ts +10 -0
- package/dist/cli/services/commands/config/autoupgrade/types.js +7 -0
- package/dist/cli/services/commands/doc/fetch.d.ts +1 -1
- package/dist/cli/services/commands/doc/fetch.js +11 -2
- package/dist/cli/services/commands/help/index.d.ts +3 -0
- package/dist/cli/services/commands/help/index.js +51 -0
- package/dist/cli/services/commands/help/result.d.ts +2 -0
- package/dist/cli/services/commands/help/result.js +6 -0
- package/dist/cli/services/commands/help/types.d.ts +431 -0
- package/dist/cli/services/commands/help/types.js +71 -0
- package/dist/cli/services/commands/search/index.d.ts +2 -0
- package/dist/cli/services/commands/search/index.js +8 -0
- package/dist/cli/services/commands/search/result.d.ts +2 -0
- package/dist/cli/services/commands/search/result.js +12 -0
- package/dist/cli/services/commands/search/types.d.ts +10 -0
- package/dist/cli/services/commands/search/types.js +7 -0
- package/dist/cli/services/commands/version/index.d.ts +2 -0
- package/dist/cli/services/commands/version/index.js +5 -0
- package/dist/cli/services/commands/version/result.d.ts +2 -0
- package/dist/cli/services/commands/version/result.js +6 -0
- package/dist/cli/services/commands/version/types.d.ts +10 -0
- package/dist/cli/services/commands/version/types.js +7 -0
- package/dist/command-json-schema-Y3N2NUZN.js +1 -0
- package/dist/command-registry.js +1 -1
- package/dist/{conf-store-5UUKEHZV.js → conf-store-5ZA3ILWV.js} +1 -1
- package/dist/custom-oclif-loader-VQKMCXNH.js +1 -0
- package/dist/deprecations-PFQXWNF6.js +1 -0
- package/dist/dist-4X53WJBQ.js +1 -0
- package/dist/dist-5M2V3YCM.js +1 -0
- package/dist/environment-ZUTBXY7U.js +1 -0
- package/dist/environments-3RUZ7F4Q.js +1 -0
- package/dist/error-FBSXLW22.js +1 -0
- package/dist/error-handler-D5BURRJ7.js +1 -0
- package/dist/fs-ZLV5W4TV.js +1 -0
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/http-proxy-node16-D3JUYA5D.js +38 -0
- package/dist/index.js +13 -14
- package/dist/is-global-GZ5CIXQA.js +1 -0
- package/dist/json-error-2BL3UZ7H.js +1 -0
- package/dist/lib-AD2G3QH3.js +1 -0
- package/dist/lib-VEVNMHDE.js +1 -0
- package/dist/lib-ZQW4E7QU.js +1 -0
- package/dist/local-KAZJAYLX.js +1 -0
- package/dist/metadata-M3ZE24WB.js +1 -0
- package/dist/{morph-BMYYMQNX.js → morph-42EXMN3K.js} +3 -3
- package/dist/node-package-manager-RVPONQBY.js +1 -0
- package/dist/notifications-system-MYEMV7JF.js +1 -0
- package/dist/os-DRUILZZR.js +1 -0
- package/dist/output-SDE274Y5.js +1 -0
- package/dist/{path-MBXP7ZIC.js → path-6YMSTSWG.js} +1 -1
- package/dist/system-5FQ3L5PA.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-TEZZM7SE.js +1 -0
- package/dist/uncaught-error-handler.d.ts +6 -0
- package/dist/uncaught-error-handler.js +33 -0
- package/dist/upgrade-3PIVJYBL.js +1 -0
- package/dist/version-FMWTVLMF.js +1 -0
- package/dist/version-IAMVSP7U.js +1 -0
- package/dist/workerd-WRW4ZUYM.js +18 -0
- package/oclif.manifest.json +2646 -226
- package/package.json +17 -8
- package/dist/analytics-4D5FCVMV.js +0 -1
- package/dist/analytics-XRYJEPWC.js +0 -1
- package/dist/chunk-2IZROVCY.js +0 -1
- package/dist/chunk-2KD4LHRT.js +0 -5
- package/dist/chunk-2SOA4M4G.js +0 -1
- package/dist/chunk-2WNF5BX4.js +0 -18
- package/dist/chunk-2Z52XJQG.js +0 -1
- package/dist/chunk-34PQ6LJC.js +0 -1
- package/dist/chunk-3NW372KT.js +0 -1
- package/dist/chunk-4JLOCGTK.js +0 -3
- package/dist/chunk-4NZ465W4.js +0 -1
- package/dist/chunk-5EME57E6.js +0 -7
- package/dist/chunk-5N33O2RV.js +0 -1
- package/dist/chunk-5PAPCPUM.js +0 -1
- package/dist/chunk-5U24BORP.js +0 -6
- package/dist/chunk-6ARAJULJ.js +0 -1
- package/dist/chunk-7VJPQ52S.js +0 -15
- package/dist/chunk-7ZEVVGCH.js +0 -1
- package/dist/chunk-A5FV7HOY.js +0 -16
- package/dist/chunk-ADS7BFDG.js +0 -15
- package/dist/chunk-ADUMJRRY.js +0 -1
- package/dist/chunk-AI4SPBPV.js +0 -2
- package/dist/chunk-AKETXXYD.js +0 -1
- package/dist/chunk-ANOCIVJ3.js +0 -8
- package/dist/chunk-BMPCDXJR.js +0 -4
- package/dist/chunk-CAKGQWX4.js +0 -7
- package/dist/chunk-CBGDD3ZG.js +0 -317
- package/dist/chunk-CRALWNNO.js +0 -1
- package/dist/chunk-CUGLV7UX.js +0 -1
- package/dist/chunk-CWSQIPY5.js +0 -5
- package/dist/chunk-D6LV5CJL.js +0 -2
- package/dist/chunk-DGMHUJV3.js +0 -4
- package/dist/chunk-ENUN2VSC.js +0 -2
- package/dist/chunk-EX7Y3BEH.js +0 -1
- package/dist/chunk-FDK3NDYQ.js +0 -5
- package/dist/chunk-FLV6UQRA.js +0 -1
- package/dist/chunk-FTC3BXSD.js +0 -3
- package/dist/chunk-FXWNYGIW.js +0 -1
- package/dist/chunk-G5272L77.js +0 -7
- package/dist/chunk-G5QSVBYP.js +0 -19
- package/dist/chunk-G6SURO6V.js +0 -8
- package/dist/chunk-GBYDMHZ3.js +0 -3
- package/dist/chunk-GCN4O7HM.js +0 -1
- package/dist/chunk-GR6NR5QK.js +0 -1
- package/dist/chunk-HKHGJYRC.js +0 -1
- package/dist/chunk-IKNCFVVX.js +0 -1
- package/dist/chunk-IMIPD73V.js +0 -6
- package/dist/chunk-IPN5OHBY.js +0 -6
- package/dist/chunk-J2HBEHCX.js +0 -9
- package/dist/chunk-K3OI5VDE.js +0 -1
- package/dist/chunk-KB43BSFM.js +0 -3
- package/dist/chunk-KGRDHI2A.js +0 -2
- package/dist/chunk-KNCYAIJ2.js +0 -7
- package/dist/chunk-KYNXMDFU.js +0 -836
- package/dist/chunk-L7CQQML6.js +0 -6
- package/dist/chunk-LCVDLQEZ.js +0 -1
- package/dist/chunk-NDAUL4H4.js +0 -1
- package/dist/chunk-NDFKLPHJ.js +0 -1705
- package/dist/chunk-NUKSSKYR.js +0 -1
- package/dist/chunk-NVNDQQN6.js +0 -8
- package/dist/chunk-O452KNRL.js +0 -1
- package/dist/chunk-P5R6JZMT.js +0 -6
- package/dist/chunk-PDWJ2YH2.js +0 -1
- package/dist/chunk-PSSOCUUD.js +0 -375
- package/dist/chunk-PWXGGZQB.js +0 -1
- package/dist/chunk-QKUTVLRJ.js +0 -4
- package/dist/chunk-QOOVB6RW.js +0 -6
- package/dist/chunk-RGJVJ22M.js +0 -3
- package/dist/chunk-TIG7SSKB.js +0 -3
- package/dist/chunk-TU47HMTL.js +0 -1
- package/dist/chunk-UBTHWHPB.js +0 -12
- package/dist/chunk-UDWSRNKO.js +0 -1
- package/dist/chunk-VE6BYYBP.js +0 -5
- package/dist/chunk-W3BNL2Q5.js +0 -1
- package/dist/chunk-WDY5CK2T.js +0 -11
- package/dist/chunk-WHZKFG2B.js +0 -1
- package/dist/chunk-WLU7UG44.js +0 -3
- package/dist/chunk-WNBRPWSB.js +0 -1
- package/dist/chunk-WWRLFLGM.js +0 -2
- package/dist/chunk-XOEBZR5C.js +0 -3
- package/dist/chunk-YGSXN3YD.js +0 -28
- package/dist/chunk-YN5SVIOI.js +0 -11
- package/dist/chunk-YVB7ZPHR.js +0 -20
- package/dist/chunk-ZIAXZ5VG.js +0 -1
- package/dist/chunk-ZZNGFCJ3.js +0 -4
- package/dist/cli/commands/app/doctor/instructions.js +0 -1
- package/dist/cli/commands/app/doctor.js +0 -1
- package/dist/cli/commands/config/autoupgrade/constants.d.ts +0 -4
- package/dist/cli/commands/config/autoupgrade/constants.js +0 -1
- package/dist/cli/services/commands/search.d.ts +0 -1
- package/dist/cli/services/commands/search.js +0 -7
- package/dist/cli/services/commands/version.d.ts +0 -1
- package/dist/cli/services/commands/version.js +0 -6
- package/dist/custom-oclif-loader-BWAMUFQ4.js +0 -1
- package/dist/deprecations-DVGWC3RL.js +0 -1
- package/dist/dist-CN7N5IOM.js +0 -1
- package/dist/dist-Q5U4WGYG.js +0 -1
- package/dist/environments-M4CFP4XF.js +0 -1
- package/dist/error-ZES2RSN7.js +0 -1
- package/dist/error-handler-CRTU67VJ.js +0 -1
- package/dist/fs-GELMKEWX.js +0 -1
- package/dist/http-proxy-node16-A6AKKRQH.js +0 -38
- package/dist/is-global-X2QNCXXB.js +0 -1
- package/dist/lib-2BR2WN7L.js +0 -1
- package/dist/lib-M72BVWQ3.js +0 -1
- package/dist/lib-P3APEIHY.js +0 -1
- package/dist/local-HMFFXIE3.js +0 -1
- package/dist/metadata-SXJZZMCI.js +0 -1
- package/dist/node-package-manager-2D2CIFTG.js +0 -1
- package/dist/notifications-system-WH6MAXEN.js +0 -1
- package/dist/os-PY42WAOB.js +0 -1
- package/dist/output-MSTNB7GI.js +0 -1
- package/dist/system-7XRI63YJ.js +0 -1
- package/dist/ui-77QYNWJB.js +0 -1
- package/dist/upgrade-UVPNOKKK.js +0 -1
- package/dist/version-DXGPL73I.js +0 -1
- package/dist/version-XMVQO6PD.js +0 -1
- package/dist/workerd-SOWC66FA.js +0 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Gi,c as Ki,d as ln,g as ao,k as un,l as qe,m as lo,n as uo,o as fo,p as po,q as ho,r as mo,s as go,t as _o,u as yo}from"./chunk-TR4OWSEX.js";import{a as ro,b as oo}from"./chunk-2KD4LHRT.js";import{b as so}from"./chunk-I5A6BPCP.js";import{a as io}from"./chunk-CX5CC6P5.js";import{a as co}from"./chunk-ET2CGROE.js";import{a as v,c as y,g as f}from"./chunk-VKWPEFWQ.js";var $=y(F=>{"use strict";f();Object.defineProperty(F,"__esModule",{value:!0});F.pickBy=bo;F.compact=vo;F.uniqBy=wo;F.last=Oo;F.sortBy=jo;F.castArray=Po;F.isProd=Co;F.maxBy=Eo;F.sumBy=$o;F.capitalize=qo;F.isTruthy=Do;F.isNotFalsy=xo;F.uniq=Fo;F.mapValues=Ao;F.mergeNestedObjects=Mo;function bo(t,e){return Object.entries(t).reduce((n,[i,s])=>(e(s)&&(n[i]=s),n),{})}function vo(t){return t.filter(e=>!!e)}function wo(t,e){return t.filter((n,i)=>{let s=e(n);return!t.some((r,o)=>o>i&&e(r)===s)})}function Oo(t){if(t)return t.at(-1)}function dn(t,e){if(t=t===void 0?0:t,e=e===void 0?0:e,Array.isArray(t)&&Array.isArray(e)){if(t.length===0&&e.length===0)return 0;let n=dn(t[0],e[0]);return n!==0?n:dn(t.slice(1),e.slice(1))}return t<e?-1:t>e?1:0}function jo(t,e){return t.sort((n,i)=>dn(e(n),e(i)))}function Po(t){return t===void 0?[]:Array.isArray(t)?t:[t]}function Co(){return!["development","test"].includes(process.env.NODE_ENV??"")}function Eo(t,e){if(t.length!==0)return t.reduce((n,i)=>{let s=e(i),r=e(n);return s>r?i:n})}function $o(t,e){return t.reduce((n,i)=>n+e(i),0)}function qo(t){return t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():""}function Do(t){return["1","true","y","yes"].includes(t.toLowerCase())}function xo(t){return!["0","false","n","no"].includes(t.toLowerCase())}function Fo(t){return[...new Set(t)].sort()}function Ao(t,e){return Object.entries(t).reduce((n,[i,s])=>(n[i]=e(s,i),n),{})}function So(t,e){return e.split(".").reduce((n,i)=>n?.[i],t)}function Mo(t,e){return Object.fromEntries(t.flatMap(n=>Object.entries(So(n,e)??{})).reverse())}});var X=y(ie=>{"use strict";f();Object.defineProperty(ie,"__esModule",{value:!0});ie.fileExists=ie.dirExists=void 0;ie.readJson=Ji;ie.safeReadJson=Ro;ie.existsSync=No;var Io=v("node:fs"),hn=v("node:fs/promises"),ko=$(),To=async t=>{let e;try{e=await(0,hn.stat)(t)}catch{throw new Error(`No directory found at ${t}`)}if(!e.isDirectory())throw new Error(`${t} exists but is not a directory`);return t};ie.dirExists=To;var Lo=async t=>{let e;try{e=await(0,hn.stat)(t)}catch{throw new Error(`No file found at ${t}`)}if(!e.isFile())throw new Error(`${t} exists but is not a file`);return t};ie.fileExists=Lo;var pn=class extends Map{set(e,n){return((0,ko.isProd)()??!1)&&super.set(e,n),this}},fn=new pn;async function Ji(t,e=!0){if(e&&fn.has(t))return JSON.parse(fn.get(t));let n=await(0,hn.readFile)(t,"utf8");return fn.set(t,n),JSON.parse(n)}async function Ro(t,e=!0){try{return await Ji(t,e)}catch{}}function No(t){return(0,Io.existsSync)(t)}});var Xi=y(M=>{"use strict";f();Object.defineProperty(M,"__esModule",{value:!0});M.string=M.url=M.file=M.directory=M.integer=M.boolean=void 0;M.custom=me;var Ho=v("node:url"),Yi=X(),Bo=$();function me(t){return(e={})=>({parse:async(n,i,s)=>n,...t,...e,input:[],type:"option"})}M.boolean=me({parse:async t=>!!t&&(0,Bo.isNotFalsy)(t)});M.integer=me({async parse(t,e,n){if(!/^-?\d+$/.test(t))throw new Error(`Expected an integer but received: ${t}`);let i=Number.parseInt(t,10);if(n.min!==void 0&&i<n.min)throw new Error(`Expected an integer greater than or equal to ${n.min} but received: ${t}`);if(n.max!==void 0&&i>n.max)throw new Error(`Expected an integer less than or equal to ${n.max} but received: ${t}`);return i}});M.directory=me({async parse(t,e,n){return n.exists?(0,Yi.dirExists)(t):t}});M.file=me({async parse(t,e,n){return n.exists?(0,Yi.fileExists)(t):t}});M.url=me({async parse(t){try{return new Ho.URL(t)}catch{throw new Error(`Expected a valid url but received: ${t}`)}}});var Wo=me({});M.string=Wo});var Zi=y((Rf,zo)=>{zo.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"4.8.3",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"ansi-escapes":"^4.3.2",ansis:"^3.17.0","clean-stack":"^3.0.1","cli-spinners":"^2.9.2",debug:"^4.4.3",ejs:"^3.1.10","get-package-type":"^0.1.0","indent-string":"^4.0.0","is-wsl":"^2.2.0",lilconfig:"^3.1.3",minimatch:"^10.2.4",semver:"^7.7.3","string-width":"^4.2.3","supports-color":"^8",tinyglobby:"^0.2.14","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^19","@eslint/compat":"^1.4.1","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^5","@oclif/prettier-config":"^0.2.1","@oclif/test":"^4","@types/benchmark":"^2.1.5","@types/chai":"^4.3.16","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/mocha":"^10.0.10","@types/node":"^18","@types/pnpapi":"^0.0.5","@types/sinon":"^17.0.3","@types/supports-color":"^8.1.3","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.5.0","chai-as-promised":"^7.1.2",commitlint:"^19","cross-env":"^7.0.3",eslint:"^9","eslint-config-oclif":"^6","eslint-config-prettier":"^10",husky:"^9.1.7","lint-staged":"^15",madge:"^6.1.0",mocha:"^11.7.5",nyc:"^15.1.0",prettier:"^3.8.1",shx:"^0.4.0",sinon:"^18","ts-node":"^10.9.2",tsd:"^0.33.0",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",exports:{".":"./lib/index.js","./args":"./lib/args.js","./command":"./lib/command.js","./config":"./lib/config/index.js","./errors":"./lib/errors/index.js","./execute":"./lib/execute.js","./flags":"./lib/flags.js","./flush":"./lib/flush.js","./handle":"./lib/errors/handle.js","./help":"./lib/help/index.js","./hooks":"./lib/interfaces/hooks.js","./interfaces":"./lib/interfaces/index.js","./logger":"./lib/logger.js","./package.json":"./package.json","./parser":"./lib/parser/index.js","./performance":"./lib/performance.js","./run":"./lib/main.js","./settings":"./lib/settings.js","./util/ids":"./lib/util/ids.js","./ux":"./lib/ux/index.js"},repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky","test:circular-deps":"yarn build && madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts" --parallel'},types:"lib/index.d.ts"}});var G=y(gn=>{"use strict";f();Object.defineProperty(gn,"__esModule",{value:!0});var Uo=v("node:fs"),Vo=v("node:path"),mn=class t extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return t.instance||(t.instance=new t),t.instance}get(e){return super.get(e)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:Zi().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,Uo.readFileSync)((0,Vo.join)(__dirname,"..","package.json"),"utf8")).version}}catch{return{name:"@oclif/core",version:"unknown"}}}}};gn.default=mn});var k=y(le=>{"use strict";f();var Go=le&&le.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(le,"__esModule",{value:!0});le.getLogger=Qi;le.makeDebug=Yo;le.setLogger=Xo;le.clearLoggers=Zo;var Ko=Go(oo()),yn="oclif";function Ct(t=yn){let e=(0,Ko.default)(t);return{child:(n,i)=>Ct(`${t}${i??":"}${n}`),debug:e,error:(n,...i)=>Ct(`${t}:error`).debug(n,...i),info:e,namespace:t,trace:e,warn:e}}var se=new Map;function Qi(t){let e=se.get("root");if(e||_n(Ct(yn)),e=se.get("root"),t){let n=se.get(t);if(n)return n;let i=e.child(t);return se.set(t,i),i}return e}function Jo(t){return typeof t.child=="function"&&typeof t.debug=="function"&&typeof t.error=="function"&&typeof t.info=="function"&&typeof t.trace=="function"&&typeof t.warn=="function"&&typeof t.namespace=="string"}function _n(t){se.has(t.namespace)||se.has("root")||(Jo(t)?(se.set(t.namespace,t),se.set("root",t)):process.emitWarning("Logger does not match the Logger interface. Using default logger."))}function Yo(t){return(e,...n)=>Qi(t).debug(e,...n)}function Xo(t){t&&typeof t!="string"&&"logger"in t&&t.logger?_n(t.logger):_n(Ct(yn))}function Zo(){se.clear()}});var tt=y(xe=>{"use strict";f();Object.defineProperty(xe,"__esModule",{value:!0});xe.stderr=xe.stdout=void 0;var De=v("node:util"),Qo=(t,...e)=>{!t&&e?console.log((0,De.format)(...e)):t?console.log(typeof t=="string"?(0,De.format)(t,...e):(0,De.format)(...t,...e)):console.log()};xe.stdout=Qo;var ea=(t,...e)=>{!t&&e?console.error((0,De.format)(...e)):t?console.error(typeof t=="string"?(0,De.format)(t,...e):(0,De.format)(...t,...e)):console.error()};xe.stderr=ea});var re=y(Et=>{"use strict";f();Object.defineProperty(Et,"__esModule",{value:!0});Et.settings=void 0;globalThis.oclif||(globalThis.oclif={});Et.settings=globalThis.oclif});var Ae=y(Fe=>{"use strict";f();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.errtermwidth=Fe.stdtermwidth=void 0;var ta=re();function es(t){if(!t.isTTY)return 80;let e=t.getWindowSize()[0];return e<1?80:e<40?40:e}var ts=Number.parseInt(process.env.OCLIF_COLUMNS,10)||ta.settings.columns;Fe.stdtermwidth=ts||es(process.stdout);Fe.errtermwidth=ts||es(process.stderr)});var ns=y($t=>{"use strict";f();Object.defineProperty($t,"__esModule",{value:!0});$t.STANDARD_ANSI=void 0;$t.STANDARD_ANSI=["white","black","blue","yellow","green","red","magenta","cyan","gray","blackBright","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","bgGray","bgBlackBright","bgRedBright","bgGreenBright","bgYellowBright","bgBlueBright","bgMagentaBright","bgCyanBright","bgWhiteBright","bold","underline","dim","italic","strikethrough"]});var ss=y(bn=>{"use strict";f();Object.defineProperty(bn,"__esModule",{value:!0});bn.supportsColor=na;var is=ro();function na(){return!!is.stdout&&!!is.stderr}});var W=y(Se=>{"use strict";f();var ia=Se&&Se.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Se,"__esModule",{value:!0});Se.colorize=oa;Se.parseTheme=os;var vn=ia(qe()),sa=ns(),ra=ss();function rs(t){return sa.STANDARD_ANSI.includes(t)}function oa(t,e){if(!t||!(0,ra.supportsColor)())return e;if(rs(t))return vn.default[t](e);if(t.startsWith("#"))return vn.default.hex(t)(e);if(t.startsWith("rgb")){let[n,i,s]=t.slice(4,-1).split(",").map(r=>Number.parseInt(r.trim(),10));return vn.default.rgb(n,i,s)(e)}return e}function os(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,typeof n=="string"?aa(n):os(n)]).filter(([e,n])=>n))}function aa(t){return t.startsWith("#")||t.startsWith("rgb")||rs(t)?t:void 0}});var ge=y(ue=>{"use strict";f();var qt=ue&&ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ue,"__esModule",{value:!0});ue.CLIError=void 0;ue.addOclifExitCode=cs;var ca=qt(Ki()),wn=qt(ln()),la=qt(un()),ua=qt(G()),da=Ae(),fa=re(),as=W();function cs(t,e){return"oclif"in t||(t.oclif={}),t.oclif.exit=e?.exit===void 0?ua.default.getInstance().get("exitCodes")?.default??2:e.exit,t}var nt=class extends Error{code;oclif={};skipOclifErrorHandling;suggestions;constructor(e,n={}){super(e instanceof Error?e.message:e),cs(this,n),this.code=n.code,this.suggestions=n.suggestions}get bang(){try{return(0,as.colorize)("red",process.platform==="win32"?"\xBB":"\u203A")}catch{}}get stack(){return(0,ca.default)(super.stack,{pretty:!0})}render(){if(fa.settings.debug)return this.stack;let e=`${this.name}: ${this.message}`;return e=(0,la.default)(e,da.errtermwidth-6,{hard:!0,trim:!1}),e=(0,wn.default)(e,3),e=(0,wn.default)(e,1,{includeEmptyLines:!0,indent:this.bang}),e=(0,wn.default)(e,1),e}};ue.CLIError=nt;(function(t){class e extends t{constructor(i){super(i instanceof Error?i.message:i),this.name="Warning"}get bang(){try{return(0,as.colorize)("yellow",process.platform==="win32"?"\xBB":"\u203A")}catch{}}}t.Warn=e})(nt||(ue.CLIError=nt={}))});var xt=y(Me=>{"use strict";f();var ls=Me&&Me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Me,"__esModule",{value:!0});Me.applyPrettyPrintOptions=ga;Me.default=ya;var Dt=ls(ln()),pa=ls(un()),ha=Ae(),ma=re();function ga(t,e){let n=["message","code","ref","suggestions"];for(let i of n)!(i in t)&&e[i]&&(t[i]=e[i]);return t}var _a=t=>{let e="Try this:";if(!t||t.length===0)return;if(t.length===1)return`${e} ${t[0]}`;let n=t.map(i=>`* ${i}`).join(`
|
|
1
|
+
import{a as Gi,c as Ki,d as ln,g as ao,k as un,l as qe,m as lo,n as uo,o as fo,p as po,q as ho,r as mo,s as go,t as _o,u as yo}from"./chunk-TR4OWSEX.js";import{b as ro,c as oo}from"./chunk-ZGASBRSQ.js";import{b as so}from"./chunk-I5A6BPCP.js";import{a as io}from"./chunk-CX5CC6P5.js";import{a as co}from"./chunk-ET2CGROE.js";import{a as v,c as y,g as f}from"./chunk-VKWPEFWQ.js";var $=y(F=>{"use strict";f();Object.defineProperty(F,"__esModule",{value:!0});F.pickBy=bo;F.compact=vo;F.uniqBy=wo;F.last=Oo;F.sortBy=jo;F.castArray=Po;F.isProd=Co;F.maxBy=Eo;F.sumBy=$o;F.capitalize=qo;F.isTruthy=Do;F.isNotFalsy=xo;F.uniq=Fo;F.mapValues=Ao;F.mergeNestedObjects=Mo;function bo(t,e){return Object.entries(t).reduce((n,[i,s])=>(e(s)&&(n[i]=s),n),{})}function vo(t){return t.filter(e=>!!e)}function wo(t,e){return t.filter((n,i)=>{let s=e(n);return!t.some((r,o)=>o>i&&e(r)===s)})}function Oo(t){if(t)return t.at(-1)}function dn(t,e){if(t=t===void 0?0:t,e=e===void 0?0:e,Array.isArray(t)&&Array.isArray(e)){if(t.length===0&&e.length===0)return 0;let n=dn(t[0],e[0]);return n!==0?n:dn(t.slice(1),e.slice(1))}return t<e?-1:t>e?1:0}function jo(t,e){return t.sort((n,i)=>dn(e(n),e(i)))}function Po(t){return t===void 0?[]:Array.isArray(t)?t:[t]}function Co(){return!["development","test"].includes(process.env.NODE_ENV??"")}function Eo(t,e){if(t.length!==0)return t.reduce((n,i)=>{let s=e(i),r=e(n);return s>r?i:n})}function $o(t,e){return t.reduce((n,i)=>n+e(i),0)}function qo(t){return t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():""}function Do(t){return["1","true","y","yes"].includes(t.toLowerCase())}function xo(t){return!["0","false","n","no"].includes(t.toLowerCase())}function Fo(t){return[...new Set(t)].sort()}function Ao(t,e){return Object.entries(t).reduce((n,[i,s])=>(n[i]=e(s,i),n),{})}function So(t,e){return e.split(".").reduce((n,i)=>n?.[i],t)}function Mo(t,e){return Object.fromEntries(t.flatMap(n=>Object.entries(So(n,e)??{})).reverse())}});var X=y(ie=>{"use strict";f();Object.defineProperty(ie,"__esModule",{value:!0});ie.fileExists=ie.dirExists=void 0;ie.readJson=Ji;ie.safeReadJson=Ro;ie.existsSync=No;var Io=v("node:fs"),hn=v("node:fs/promises"),ko=$(),To=async t=>{let e;try{e=await(0,hn.stat)(t)}catch{throw new Error(`No directory found at ${t}`)}if(!e.isDirectory())throw new Error(`${t} exists but is not a directory`);return t};ie.dirExists=To;var Lo=async t=>{let e;try{e=await(0,hn.stat)(t)}catch{throw new Error(`No file found at ${t}`)}if(!e.isFile())throw new Error(`${t} exists but is not a file`);return t};ie.fileExists=Lo;var pn=class extends Map{set(e,n){return((0,ko.isProd)()??!1)&&super.set(e,n),this}},fn=new pn;async function Ji(t,e=!0){if(e&&fn.has(t))return JSON.parse(fn.get(t));let n=await(0,hn.readFile)(t,"utf8");return fn.set(t,n),JSON.parse(n)}async function Ro(t,e=!0){try{return await Ji(t,e)}catch{}}function No(t){return(0,Io.existsSync)(t)}});var Xi=y(M=>{"use strict";f();Object.defineProperty(M,"__esModule",{value:!0});M.string=M.url=M.file=M.directory=M.integer=M.boolean=void 0;M.custom=me;var Ho=v("node:url"),Yi=X(),Bo=$();function me(t){return(e={})=>({parse:async(n,i,s)=>n,...t,...e,input:[],type:"option"})}M.boolean=me({parse:async t=>!!t&&(0,Bo.isNotFalsy)(t)});M.integer=me({async parse(t,e,n){if(!/^-?\d+$/.test(t))throw new Error(`Expected an integer but received: ${t}`);let i=Number.parseInt(t,10);if(n.min!==void 0&&i<n.min)throw new Error(`Expected an integer greater than or equal to ${n.min} but received: ${t}`);if(n.max!==void 0&&i>n.max)throw new Error(`Expected an integer less than or equal to ${n.max} but received: ${t}`);return i}});M.directory=me({async parse(t,e,n){return n.exists?(0,Yi.dirExists)(t):t}});M.file=me({async parse(t,e,n){return n.exists?(0,Yi.fileExists)(t):t}});M.url=me({async parse(t){try{return new Ho.URL(t)}catch{throw new Error(`Expected a valid url but received: ${t}`)}}});var Wo=me({});M.string=Wo});var Zi=y((Rf,zo)=>{zo.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"4.8.3",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"ansi-escapes":"^4.3.2",ansis:"^3.17.0","clean-stack":"^3.0.1","cli-spinners":"^2.9.2",debug:"^4.4.3",ejs:"^3.1.10","get-package-type":"^0.1.0","indent-string":"^4.0.0","is-wsl":"^2.2.0",lilconfig:"^3.1.3",minimatch:"^10.2.4",semver:"^7.7.3","string-width":"^4.2.3","supports-color":"^8",tinyglobby:"^0.2.14","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^19","@eslint/compat":"^1.4.1","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^5","@oclif/prettier-config":"^0.2.1","@oclif/test":"^4","@types/benchmark":"^2.1.5","@types/chai":"^4.3.16","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/mocha":"^10.0.10","@types/node":"^18","@types/pnpapi":"^0.0.5","@types/sinon":"^17.0.3","@types/supports-color":"^8.1.3","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.5.0","chai-as-promised":"^7.1.2",commitlint:"^19","cross-env":"^7.0.3",eslint:"^9","eslint-config-oclif":"^6","eslint-config-prettier":"^10",husky:"^9.1.7","lint-staged":"^15",madge:"^6.1.0",mocha:"^11.7.5",nyc:"^15.1.0",prettier:"^3.8.1",shx:"^0.4.0",sinon:"^18","ts-node":"^10.9.2",tsd:"^0.33.0",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",exports:{".":"./lib/index.js","./args":"./lib/args.js","./command":"./lib/command.js","./config":"./lib/config/index.js","./errors":"./lib/errors/index.js","./execute":"./lib/execute.js","./flags":"./lib/flags.js","./flush":"./lib/flush.js","./handle":"./lib/errors/handle.js","./help":"./lib/help/index.js","./hooks":"./lib/interfaces/hooks.js","./interfaces":"./lib/interfaces/index.js","./logger":"./lib/logger.js","./package.json":"./package.json","./parser":"./lib/parser/index.js","./performance":"./lib/performance.js","./run":"./lib/main.js","./settings":"./lib/settings.js","./util/ids":"./lib/util/ids.js","./ux":"./lib/ux/index.js"},repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky","test:circular-deps":"yarn build && madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts" --parallel'},types:"lib/index.d.ts"}});var G=y(gn=>{"use strict";f();Object.defineProperty(gn,"__esModule",{value:!0});var Uo=v("node:fs"),Vo=v("node:path"),mn=class t extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return t.instance||(t.instance=new t),t.instance}get(e){return super.get(e)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:Zi().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,Uo.readFileSync)((0,Vo.join)(__dirname,"..","package.json"),"utf8")).version}}catch{return{name:"@oclif/core",version:"unknown"}}}}};gn.default=mn});var k=y(le=>{"use strict";f();var Go=le&&le.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(le,"__esModule",{value:!0});le.getLogger=Qi;le.makeDebug=Yo;le.setLogger=Xo;le.clearLoggers=Zo;var Ko=Go(oo()),yn="oclif";function Ct(t=yn){let e=(0,Ko.default)(t);return{child:(n,i)=>Ct(`${t}${i??":"}${n}`),debug:e,error:(n,...i)=>Ct(`${t}:error`).debug(n,...i),info:e,namespace:t,trace:e,warn:e}}var se=new Map;function Qi(t){let e=se.get("root");if(e||_n(Ct(yn)),e=se.get("root"),t){let n=se.get(t);if(n)return n;let i=e.child(t);return se.set(t,i),i}return e}function Jo(t){return typeof t.child=="function"&&typeof t.debug=="function"&&typeof t.error=="function"&&typeof t.info=="function"&&typeof t.trace=="function"&&typeof t.warn=="function"&&typeof t.namespace=="string"}function _n(t){se.has(t.namespace)||se.has("root")||(Jo(t)?(se.set(t.namespace,t),se.set("root",t)):process.emitWarning("Logger does not match the Logger interface. Using default logger."))}function Yo(t){return(e,...n)=>Qi(t).debug(e,...n)}function Xo(t){t&&typeof t!="string"&&"logger"in t&&t.logger?_n(t.logger):_n(Ct(yn))}function Zo(){se.clear()}});var tt=y(xe=>{"use strict";f();Object.defineProperty(xe,"__esModule",{value:!0});xe.stderr=xe.stdout=void 0;var De=v("node:util"),Qo=(t,...e)=>{!t&&e?console.log((0,De.format)(...e)):t?console.log(typeof t=="string"?(0,De.format)(t,...e):(0,De.format)(...t,...e)):console.log()};xe.stdout=Qo;var ea=(t,...e)=>{!t&&e?console.error((0,De.format)(...e)):t?console.error(typeof t=="string"?(0,De.format)(t,...e):(0,De.format)(...t,...e)):console.error()};xe.stderr=ea});var re=y(Et=>{"use strict";f();Object.defineProperty(Et,"__esModule",{value:!0});Et.settings=void 0;globalThis.oclif||(globalThis.oclif={});Et.settings=globalThis.oclif});var Ae=y(Fe=>{"use strict";f();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.errtermwidth=Fe.stdtermwidth=void 0;var ta=re();function es(t){if(!t.isTTY)return 80;let e=t.getWindowSize()[0];return e<1?80:e<40?40:e}var ts=Number.parseInt(process.env.OCLIF_COLUMNS,10)||ta.settings.columns;Fe.stdtermwidth=ts||es(process.stdout);Fe.errtermwidth=ts||es(process.stderr)});var ns=y($t=>{"use strict";f();Object.defineProperty($t,"__esModule",{value:!0});$t.STANDARD_ANSI=void 0;$t.STANDARD_ANSI=["white","black","blue","yellow","green","red","magenta","cyan","gray","blackBright","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","bgGray","bgBlackBright","bgRedBright","bgGreenBright","bgYellowBright","bgBlueBright","bgMagentaBright","bgCyanBright","bgWhiteBright","bold","underline","dim","italic","strikethrough"]});var ss=y(bn=>{"use strict";f();Object.defineProperty(bn,"__esModule",{value:!0});bn.supportsColor=na;var is=ro();function na(){return!!is.stdout&&!!is.stderr}});var W=y(Se=>{"use strict";f();var ia=Se&&Se.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Se,"__esModule",{value:!0});Se.colorize=oa;Se.parseTheme=os;var vn=ia(qe()),sa=ns(),ra=ss();function rs(t){return sa.STANDARD_ANSI.includes(t)}function oa(t,e){if(!t||!(0,ra.supportsColor)())return e;if(rs(t))return vn.default[t](e);if(t.startsWith("#"))return vn.default.hex(t)(e);if(t.startsWith("rgb")){let[n,i,s]=t.slice(4,-1).split(",").map(r=>Number.parseInt(r.trim(),10));return vn.default.rgb(n,i,s)(e)}return e}function os(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,typeof n=="string"?aa(n):os(n)]).filter(([e,n])=>n))}function aa(t){return t.startsWith("#")||t.startsWith("rgb")||rs(t)?t:void 0}});var ge=y(ue=>{"use strict";f();var qt=ue&&ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ue,"__esModule",{value:!0});ue.CLIError=void 0;ue.addOclifExitCode=cs;var ca=qt(Ki()),wn=qt(ln()),la=qt(un()),ua=qt(G()),da=Ae(),fa=re(),as=W();function cs(t,e){return"oclif"in t||(t.oclif={}),t.oclif.exit=e?.exit===void 0?ua.default.getInstance().get("exitCodes")?.default??2:e.exit,t}var nt=class extends Error{code;oclif={};skipOclifErrorHandling;suggestions;constructor(e,n={}){super(e instanceof Error?e.message:e),cs(this,n),this.code=n.code,this.suggestions=n.suggestions}get bang(){try{return(0,as.colorize)("red",process.platform==="win32"?"\xBB":"\u203A")}catch{}}get stack(){return(0,ca.default)(super.stack,{pretty:!0})}render(){if(fa.settings.debug)return this.stack;let e=`${this.name}: ${this.message}`;return e=(0,la.default)(e,da.errtermwidth-6,{hard:!0,trim:!1}),e=(0,wn.default)(e,3),e=(0,wn.default)(e,1,{includeEmptyLines:!0,indent:this.bang}),e=(0,wn.default)(e,1),e}};ue.CLIError=nt;(function(t){class e extends t{constructor(i){super(i instanceof Error?i.message:i),this.name="Warning"}get bang(){try{return(0,as.colorize)("yellow",process.platform==="win32"?"\xBB":"\u203A")}catch{}}}t.Warn=e})(nt||(ue.CLIError=nt={}))});var xt=y(Me=>{"use strict";f();var ls=Me&&Me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Me,"__esModule",{value:!0});Me.applyPrettyPrintOptions=ga;Me.default=ya;var Dt=ls(ln()),pa=ls(un()),ha=Ae(),ma=re();function ga(t,e){let n=["message","code","ref","suggestions"];for(let i of n)!(i in t)&&e[i]&&(t[i]=e[i]);return t}var _a=t=>{let e="Try this:";if(!t||t.length===0)return;if(t.length===1)return`${e} ${t[0]}`;let n=t.map(i=>`* ${i}`).join(`
|
|
2
2
|
`);return`${e}
|
|
3
3
|
${(0,Dt.default)(n,2)}`};function ya(t){if(ma.settings.debug)return t.stack;let{bang:e,code:n,message:i,name:s,ref:r,suggestions:o}=t,c=i?`${s||"Error"}: ${i}`:void 0,l=n?`Code: ${n}`:void 0,u=_a(o),p=r?`Reference: ${r}`:void 0,a=[c,l,u,p].filter(Boolean).join(`
|
|
4
4
|
`),d=(0,pa.default)(a,ha.errtermwidth-6,{hard:!0,trim:!1});return d=(0,Dt.default)(d,3),d=(0,Dt.default)(d,1,{includeEmptyLines:!0,indent:e||""}),d=(0,Dt.default)(d,1),d}});var Ie=y(Z=>{"use strict";f();var ba=Z&&Z.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(e,n);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,s)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),va=Z&&Z.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),wa=Z&&Z.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&ba(n,e,i[s]);return va(n,e),n}})();Object.defineProperty(Z,"__esModule",{value:!0});Z.error=fs;var Oa=k(),ja=tt(),us=ge(),ds=wa(xt());function fs(t,e={}){let n;if(typeof t=="string")n=new us.CLIError(t,e);else if(t instanceof Error)n=(0,us.addOclifExitCode)(t,e);else throw new TypeError("first argument must be a string or instance of Error");if(n=(0,ds.applyPrettyPrintOptions)(n,e),e.exit===!1){let i=(0,ds.default)(n);i&&(0,ja.stderr)(i),n?.stack&&(0,Oa.getLogger)().error(n.stack)}else throw n}Z.default=fs});var At=y(Ft=>{"use strict";f();Object.defineProperty(Ft,"__esModule",{value:!0});Ft.ExitError=void 0;var Pa=ge(),On=class extends Pa.CLIError{code="EEXIT";constructor(e=1){super(`EEXIT: ${e}`,{exit:e})}render(){return""}};Ft.ExitError=On});var Pn=y(St=>{"use strict";f();Object.defineProperty(St,"__esModule",{value:!0});St.ModuleLoadError=void 0;var Ca=ge(),jn=class extends Ca.CLIError{code="MODULE_NOT_FOUND";constructor(e){super(`[MODULE_NOT_FOUND] ${e}`,{exit:1}),this.name="ModuleLoadError"}};St.ModuleLoadError=jn});var Mt=y(Cn=>{"use strict";f();Object.defineProperty(Cn,"__esModule",{value:!0});Cn.exit=$a;var Ea=At();function $a(t=0){throw new Ea.ExitError(t)}});var ke=y(_e=>{"use strict";f();var qa=_e&&_e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_e,"__esModule",{value:!0});_e.warn=En;_e.memoizedWarn=Aa;var Da=k(),xa=tt(),ps=ge(),Fa=qa(xt());function En(t){let e;if(typeof t=="string")e=new ps.CLIError.Warn(t);else if(t instanceof Error)e=(0,ps.addOclifExitCode)(t);else throw new TypeError("first argument must be a string or instance of Error");let n=(0,Fa.default)(e);n&&(0,xa.stderr)(n),e?.stack&&(0,Da.getLogger)().error(e.stack)}var hs=new Set;function Aa(t){hs.has(t)||En(t),hs.add(t)}_e.default=En});var vs=y($n=>{"use strict";f();Object.defineProperty($n,"__esModule",{value:!0});$n.readTSConfig=ka;var ms=v("node:fs/promises"),ys=v("node:path"),Sa=ke(),Ma=k(),gs=$(),Ia=(0,Ma.makeDebug)("read-tsconfig");function _s(t,e){try{return v.resolve(e,{paths:[t]})}catch{}}async function bs(t,e){let n;try{n=await e(t)}catch{n=!1}if(n)return t;let i=(0,ys.dirname)(t);if(i!==t)return bs(i,e)}async function ka(t,e="tsconfig.json"){let n=[],i;try{i=co()}catch{try{i=v(t+"/node_modules/typescript")}catch{}}if(!i){(0,Sa.memoizedWarn)("Could not find typescript. Please ensure that typescript is a devDependency. Falling back to compiled source.");return}let s=async r=>{let o=await bs(r,async c=>(await(0,ms.readdir)(c)).includes("package.json"));if(o)try{let c=await(0,ms.readFile)(r,"utf8"),l=i?.parseConfigFileTextToJson(r,c).config;if(n.push(l),l.extends){if(l.extends.startsWith(".")){let p=_s(o,l.extends);return p?s(p):void 0}let u=_s(o,l.extends);if(u)return s(u)}return l}catch(c){Ia(c)}};return await s((0,ys.join)(t,e)),{compilerOptions:(0,gs.mergeNestedObjects)(n,"compilerOptions"),"ts-node":(0,gs.mergeNestedObjects)(n,"ts-node")}}});var Te=y(ye=>{"use strict";f();Object.defineProperty(ye,"__esModule",{value:!0});ye.collectUsableIds=void 0;ye.makeDebug=La;ye.getPermutations=qn;ye.getCommandIdPermutations=Ra;var Ta=k();function La(...t){return(e,...n)=>(0,Ta.getLogger)(["config",...t].join(":")).debug(e,...n)}function qn(t){if(t.length===0)return[];if(t.length===1)return[t];let e=[],n=qn(t.slice(1)),i=t[0];for(let s=0,r=n.length;s<r;s++){let o=n[s];for(let c=0,l=o.length;c<=l;c++){let u=o.slice(0,c),p=o.slice(c),a=[...u,i,...p];e.push(a)}}return e}function Ra(t){return qn(t.split(":")).flatMap(e=>e.join(":"))}var Na=t=>new Set(t.flatMap(e=>e.split(":").map((n,i,s)=>s.slice(0,i+1).join(":"))));ye.collectUsableIds=Na});var Le=y(K=>{"use strict";f();var Ha=K&&K.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(K,"__esModule",{value:!0});K.TS_CONFIGS=void 0;K.tsPath=tc;var ws=v("node:fs/promises"),T=v("node:path"),Ba=v("node:url"),Wa=Ha(G()),it=ke(),Os=re(),za=X(),Ua=vs(),Dn=$(),Va=Te(),P=(0,Va.makeDebug)("ts-path");K.TS_CONFIGS={};var It=new Set;function Ga(){return process.execPath.split(T.sep).includes("bun")?"bun":process.execArgv.length===0?"node":process.execArgv[0]==="--require"&&process.execArgv[1].split(T.sep).includes("ts-node")||process.execArgv[0].split(T.sep).includes("ts-node")?"ts-node":process.execArgv[0]==="--require"&&process.execArgv[1].split(T.sep).includes("tsx")?"tsx":"node"}var xn=Ga();function Ka(t){return"code"in t&&t.code==="ENOENT"}async function Ja(t){try{if(K.TS_CONFIGS[t])return K.TS_CONFIGS[t];let e=await(0,Ua.readTSConfig)(t);return e?(P("tsconfig: %O",e),K.TS_CONFIGS[t]=e,K.TS_CONFIGS[t]):void 0}catch(e){if(Ka(e))return;P(`Could not parse tsconfig.json. Skipping typescript path lookup for ${t}.`),(0,it.memoizedWarn)(`Could not parse tsconfig.json for ${t}. Falling back to compiled source.`)}}async function Ya(t,e){if(!It.has(t))try{let n=e==="module"?"tsx/esm/api":"tsx/cjs/api",i=v.resolve(n,{paths:[t]});if(!i)return;P("registering tsx at",t),P("tsx path:",i);let{href:s}=(0,Ba.pathToFileURL)(i);P("tsx href:",s);let{register:r}=await import(s);P("Successfully imported tsx"),r(),It.add(t)}catch(n){P(`Could not find tsx. Skipping tsx registration for ${t}.`),P(n)}}async function Xa(t,e){if(It.has(t))return;P("registering ts-node at",t);let n=v.resolve("ts-node",{paths:[t,__dirname]});P("ts-node path:",n);let i;try{i=v(n),P("Successfully required ts-node")}catch(p){P(`Could not find ts-node at ${n}. Skipping ts-node registration for ${t}.`),P(p),(0,it.memoizedWarn)(`Could not find ts-node at ${n}. Please ensure that ts-node is a devDependency. Falling back to compiled source.`);return}let s=[(0,T.join)(t,"node_modules","@types")],r=[];if(e.compilerOptions.rootDirs)for(let p of e.compilerOptions.rootDirs)r.push((0,T.join)(t,p));else e.compilerOptions.rootDir?r.push((0,T.join)(t,e.compilerOptions.rootDir)):e.compilerOptions.baseUrl?r.push((0,T.join)(t,e.compilerOptions.baseUrl)):r.push((0,T.join)(t,"src"));let{baseUrl:o,rootDir:c,...l}=e.compilerOptions,u={compilerOptions:{...l,rootDirs:r,typeRoots:s},...e["ts-node"],cwd:t,esm:e["ts-node"]?.esm??!0,experimentalSpecifierResolution:e["ts-node"]?.experimentalSpecifierResolution??"explicit",scope:!0,scopeDir:t,skipProject:!0,transpileOnly:!0};P("ts-node options: %O",u),i.register(u),It.add(t)}function Za(t,e,n){return(n||t?.moduleType==="commonjs")&&e?.moduleType==="module"&&!e?.pjson.devDependencies?.tsx}function Qa(t,e,n){if(e?.moduleType!=="module"||n)return!1;let i=Number.parseInt(process.version.replace("v","").split(".")[0],10);return xn==="ts-node"&&i>=20}async function ec(t,e,n){let i=await Ja(t);if(!i)return e;P(`Determining path for ${e}`),xn==="bun"?P(`Skipping ts-node registration for ${t} because the runtime is: ${xn}`):(await Ya(t,n?.moduleType),await Xa(t,i));let{baseUrl:s,outDir:r,rootDir:o,rootDirs:c}=i.compilerOptions,l=o??(c??[])[0]??s;if(!l)return P(`no rootDir, rootDirs, or baseUrl specified in tsconfig.json. Returning default path ${e}`),e;if(!r)return P(`no outDir specified in tsconfig.json. Returning default path ${e}`),e;let u=(0,T.join)(t,r),p=(0,T.join)(t,l),a=(0,T.relative)(u,e),d=(0,T.join)(p,a).replace(/\.js$/,"");return P(`lib dir: ${u}`),P(`src dir: ${p}`),P(`src directory to find: ${d}`),(0,za.existsSync)(d)?(P(`Found source directory for ${e} at ${d}`),d):(await Promise.all([(0,ws.access)(`${d}.ts`).then(()=>`${d}.ts`).catch(()=>!1),(0,ws.access)(`${d}.tsx`).then(()=>`${d}.tsx`).catch(()=>!1)])).some(Boolean)?(P(`Found source file for ${e} at ${d}`),d):(P(`No source file found. Returning default path ${e}`),(0,Dn.isProd)()||(0,it.memoizedWarn)(`Could not find source for ${e} based on tsconfig. Defaulting to compiled source.`),e)}async function tc(t,e,n){let i=n?.options.isRoot?n:Wa.default.getInstance().get("rootPlugin");if(!e)return e;e=e.startsWith(t)?e:(0,T.join)(t,e);let s=Os.settings.enableAutoTranspile??Os.settings.tsnodeEnabled;if(s===!1)return P(`Skipping typescript path lookup for ${t} because enableAutoTranspile is explicitly set to false`),e;let r=(0,Dn.isProd)();if(s===void 0&&r&&n?.type!=="link")return P(`Skipping typescript path lookup for ${t} because NODE_ENV is NOT "test" or "development"`),e;if(Za(i,n,r)){P(`Skipping typescript path lookup for ${t} because it's an ESM module (NODE_ENV: ${process.env.NODE_ENV}, root plugin module type: ${i?.moduleType})`);let o=process.env.OCLIF_DISABLE_LINKED_ESM_WARNING&&(0,Dn.isTruthy)(process.env.OCLIF_DISABLE_LINKED_ESM_WARNING);return n?.type==="link"&&!o&&(0,it.memoizedWarn)(`${n?.name} is a linked ESM module and cannot be auto-transpiled. Existing compiled source will be used instead.`),e}if(Qa(t,n,r))return P(`Skipping typescript path lookup for ${t} because ts-node is run in node version ${process.version}"`),(0,it.memoizedWarn)("ts-node executable cannot transpile ESM in Node 20. Existing compiled source will be used instead. See https://github.com/oclif/core/issues/817."),e;try{return await ec(t,e,n)}catch(o){return P(o),e}}});var st=y(Re=>{"use strict";f();Object.defineProperty(Re,"__esModule",{value:!0});Re.load=oc;Re.loadWithData=ac;Re.loadWithDataFromManifest=cc;Re.isPathModule=An;var nc=lo(),ic=v("node:fs"),kt=v("node:path"),Sn=v("node:url"),js=Le(),Fn=Pn(),Cs=X(),sc=[".ts",".js",".mjs",".cjs",".mts",".cts",".tsx",".jsx"],rc=t=>t.type!==void 0;function Mn(t,e,n){throw t.code==="MODULE_NOT_FOUND"||t.code==="ERR_MODULE_NOT_FOUND"?new Fn.ModuleLoadError(`${e?"import()":"require"} failed to load ${n}: ${t.message}`):t}async function oc(t,e){let n,i;try{return{filePath:n,isESM:i}=await Es(t,e),i?await import((0,Sn.pathToFileURL)(n).href):v(n)}catch(s){Mn(s,i,n??e)}}async function ac(t,e){let n,i;try{({filePath:n,isESM:i}=await Es(t,e));let s=i?await import((0,Sn.pathToFileURL)(n).href):v(n);return{filePath:n,isESM:i,module:s}}catch(s){Mn(s,i,n??e)}}async function cc(t,e){let{id:n,isESM:i,relativePath:s}=t;if(!s)throw new Fn.ModuleLoadError(`Cached command ${n} does not have a relative path`);if(i===void 0)throw new Fn.ModuleLoadError(`Cached command ${n} does not have the isESM property set`);let r=(0,kt.join)(e,s.join(kt.sep));try{let o=i?await import((0,Sn.pathToFileURL)(r).href):v(r);return{filePath:r,isESM:i,module:o}}catch(o){Mn(o,i,r??e)}}function An(t){switch((0,kt.extname)(t).toLowerCase()){case".js":case".jsx":case".ts":case".tsx":return nc.sync(t)==="module";case".mjs":case".mts":return!0;default:return!1}}async function Es(t,e){let n,i;try{i=v.resolve(e),n=An(i)}catch{i=(rc(t)?await(0,js.tsPath)(t.root,e,t):await(0,js.tsPath)(t.root,e))??e;let s=!1,r=!1;if((0,Cs.existsSync)(i)){s=!0;try{(0,ic.lstatSync)(i)?.isDirectory?.()&&(s=!1,r=!0)}catch{}}if(!s){let o=Ps(i);!o&&r&&(o=Ps((0,kt.join)(i,"index"))),o&&(i=o)}n=An(i)}return{filePath:i,isESM:n}}function Ps(t){for(let e of sc){let n=`${t}${e}`;if((0,Cs.existsSync)(n))return n}return null}});var Lt=y(Tt=>{"use strict";f();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.SINGLE_COMMAND_CLI_SYMBOL=void 0;Tt.SINGLE_COMMAND_CLI_SYMBOL=Symbol("SINGLE_COMMAND_CLI").toString()});var In=y(Rt=>{"use strict";f();Object.defineProperty(Rt,"__esModule",{value:!0});Rt.cacheDefaultValue=void 0;var lc=async(t,e)=>{if(!(e&&t.noCacheDefault)){if(typeof t.defaultHelp=="function")try{return await t.defaultHelp({flags:{},options:t})}catch{return}if(typeof t.default=="function")try{return await t.default({flags:{},options:t})}catch{}else return t.default}};Rt.cacheDefaultValue=lc});var be=y(Nt=>{"use strict";f();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.toStandardizedId=uc;Nt.toConfiguredId=dc;function uc(t,e){return t.replaceAll(new RegExp(e.topicSeparator,"g"),":")}function dc(t,e){return t.replaceAll(new RegExp(":","g"),e.topicSeparator||":")}});var Tn=y(Ht=>{"use strict";f();Object.defineProperty(Ht,"__esModule",{value:!0});Ht.ActionBase=void 0;var $s=v("node:util"),qs=$(),kn=class{std="stderr";stdmocks;type;stdmockOrigs={stderr:process.stderr.write,stdout:process.stdout.write};get globals(){globalThis.ux=globalThis.ux||{};let e=globalThis.ux;return e.action=e.action||{},e}get output(){return this.globals.output}set output(e){this.globals.output=e}get running(){return!!this.task}get status(){return this.task?this.task.status:void 0}set status(e){let{task:n}=this;n&&n.status!==e&&(this._updateStatus(e,n.status),n.status=e)}get task(){return this.globals.action.task}set task(e){this.globals.action.task=e}_flushStdout(){try{let e="",n;for(;this.stdmocks&&this.stdmocks.length>0;){let i=this.stdmocks.shift();n=i[0],this._write(n,i[1]),e+=i[1][0].toString("utf8")}e&&n&&e.at(-1)!==`
|
|
@@ -80,4 +80,4 @@ Alternatively, you can use "--" to signify the end of the flags and the beginnin
|
|
|
80
80
|
`))}`;super({exit:Ot.default.getInstance().get("exitCodes")?.failedFlagValidation??e,message:c,parse:i})}};E.FailedFlagValidationError=Fi});var Nr=y(ne=>{"use strict";f();var Fd=ne&&ne.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ne,"__esModule",{value:!0});ne.Parser=ne.readStdin=void 0;var Ad=v("node:os"),Sd=v("node:readline"),Rr=Fd(G()),Md=k(),he=$(),Ce=Ai(),J;try{J=process.env.CLI_FLAGS_DEBUG==="1"?(0,Md.makeDebug)("parser"):()=>{}}catch{J=()=>{}}var Id=async()=>{let{stdin:t,stdout:e}=process;return t.isTTY?null:globalThis.oclif?.stdinCache?(J("resolved stdin from global cache",globalThis.oclif.stdinCache),globalThis.oclif.stdinCache):new Promise(n=>{let i=[],s=new AbortController,{signal:r}=s,o=setTimeout(()=>s.abort(),10),c=(0,Sd.createInterface)({input:t,output:e,terminal:!1});c.on("line",l=>{i.push(l)}),c.once("close",()=>{let l=i.join(Ad.EOL);clearTimeout(o),J("resolved from stdin",l),globalThis.oclif={...globalThis.oclif,stdinCache:l},n(l)}),r.addEventListener("abort",()=>{J("stdin aborted"),clearTimeout(o),c.close(),n(null)},{once:!0})})};ne.readStdin=Id;function kd(t){return/^-\d/g.test(t)}var rn=(t,e)=>{if(t.options&&!t.options.includes(e))throw new Ce.FlagInvalidOptionError(t,e);return e},on="--no-",Si=class{input;argv;booleanFlags;context;currentFlag;flagAliases;raw=[];constructor(e){this.input=e,this.context=e.context??{},this.argv=[...e.argv],this._setNames(),this.booleanFlags=(0,he.pickBy)(e.flags,n=>n.type==="boolean"),this.flagAliases=Object.fromEntries(Object.values(e.flags).flatMap(n=>[...n.aliases??[],...n.charAliases??[]].map(i=>[i,n])))}get _argTokens(){return this.raw.filter(e=>e.type==="arg")}async parse(){this._debugInput();let e=async a=>{let{isLong:d,name:m}=this.findFlag(a);if(!m){let g=a.indexOf("=");if(g!==-1){let b=a.slice(g+1);this.argv.unshift(b);let _=await e(a.slice(0,g));return _||this.argv.shift(),_}return!1}let h=this.input.flags[m];if(h.type==="option"){if(!h.multiple&&this.raw.some(b=>b.type==="flag"&&b.flag===m))throw new Ce.CLIError(`Flag --${m} can only be specified once`);this.currentFlag=h;let g=d||a.length<3?this.argv.shift():a.slice(a[2]==="="?3:2);if(h.allowStdin==="only"&&g!=="-"&&g!==void 0&&!this.findFlag(g).name)throw new Ce.CLIError(`Flag --${m} can only be read from stdin. The value must be "-" or not provided at all.`);if(h.allowStdin&&g==="-"||h.allowStdin==="only"){let b=await(0,ne.readStdin)();b&&(g=b.trim())}if(typeof g!="string"||this.findFlag(g).name)throw h.options?new Ce.CLIError(`Flag --${m} expects one of these values: ${h.options.join(", ")}`):new Ce.CLIError(`Flag --${m} expects a value`);this.raw.push({flag:h.name,input:g,type:"flag"})}else this.raw.push({flag:h.name,input:a,type:"flag"}),!d&&a.length>2&&this.argv.unshift(`-${a.slice(2)}`);return!0},n=!0,i=[],s=!1,r=[...this.argv];for(;this.argv.length>0;){let a=this.argv.shift();if(n&&a.startsWith("-")&&a!=="-"){if(this.input["--"]!==!1&&a==="--"){n=!1;continue}if(await e(a))continue;if(a==="--"){s=!0;continue}if(this.input["--"]!==!1&&!kd(a)){i.push(a);continue}}if(n&&this.currentFlag&&this.currentFlag.multiple&&!this.currentFlag.multipleNonGreedy){this.raw.push({flag:this.currentFlag.name,input:a,type:"flag"});continue}let d=Object.keys(this.input.args)[this._argTokens.length];this.raw.push({arg:d,input:a,type:"arg"})}let[{args:o,argv:c},{flags:l,metadata:u}]=await Promise.all([this._args(),this._flags()]);this._debugOutput(c,o,l);let p=s?[...c,...i,"--"]:[...c,...i];return{args:o,argv:p.sort((a,d)=>r.indexOf(a)-r.indexOf(d)),flags:l,metadata:u,nonExistentFlags:i,raw:this.raw}}async _args(){let e=[],n={},i=this._argTokens,s=!1,r=this.context;for(let[o,c]of Object.entries(this.input.args)){let l=i.find(u=>u.arg===o);if(r.token=l,l){if(c.options&&!c.options.includes(l.input))throw new Ce.ArgInvalidOptionError(c,l.input);let u=await c.parse(l.input,r,c);e.push(u),n[l.arg]=u}else if(!c.ignoreStdin&&!s){let u=await(0,ne.readStdin)();if(u){u=u.trim();let p=await c.parse(u,r,c);e.push(p),n[o]=p}s=!0}if(!n[o]&&(c.default||c.default===!1))if(typeof c.default=="function"){let u=await c.default();e.push(u),n[o]=u}else e.push(c.default),n[o]=c.default}for(let o of i)n[o.arg]===void 0&&e.push(o.input);return{args:n,argv:e}}_debugInput(){J("input: %s",this.argv.join(" "));let e=Object.keys(this.input.args);e.length>0&&J("available args: %s",e.join(" ")),Object.keys(this.input.flags).length!==0&&J("available flags: %s",Object.keys(this.input.flags).map(n=>`--${n}`).join(" "))}_debugOutput(e,n,i){i.length>0&&J("argv: %o",i),Object.keys(e).length>0&&J("args: %o",e),Object.keys(n).length>0&&J("flags: %o",n)}async _flags(){let e=async(a,d,m,h)=>{if(!d.parse)return a;let g={...m,error:m?.error,exit:m?.exit,jsonEnabled:m?.jsonEnabled,log:m?.log,logToStderr:m?.logToStderr,token:h,warn:m?.warn};try{return d.type==="boolean"?await d.parse(a,g,d):await d.parse(a,g,d)}catch(b){throw b.message=`Parsing --${d.name}
|
|
81
81
|
${b.message}
|
|
82
82
|
See more help with --help`,Rr.default.getInstance().get("exitCodes")?.failedFlagParsing&&(b.oclif={exit:Rr.default.getInstance().get("exitCodes")?.failedFlagParsing}),b}},n=a=>{if(a.tokens?.length){if(a.inputFlag.flag.type==="boolean"&&(0,he.last)(a.tokens)?.input){let m=h=>{let g=[h.inputFlag.name,...h.inputFlag.flag.aliases??[]].map(_=>`${on}${_}`),b=(0,he.last)(h.tokens)?.input;return b?!g.includes(b):!0};return{...a,valueFunction:async h=>e(m(h),h.inputFlag.flag,this.context,(0,he.last)(h.tokens))}}if(a.inputFlag.flag.type==="option"&&a.inputFlag.flag.delimiter&&a.inputFlag.flag.multiple){let m=h=>new RegExp(`(?<!\\\\)${h}`);return{...a,valueFunction:async h=>(await Promise.all((h.tokens??[]).flatMap(g=>g.input.split(m(h.inputFlag.flag.delimiter??","))).map(g=>g.trim().replaceAll(new RegExp(`\\\\${h.inputFlag.flag.delimiter}`,"g"),h.inputFlag.flag.delimiter??",").replace(/^"(.*)"$/,"$1").replace(/^'(.*)'$/,"$1")).map(async g=>e(g,h.inputFlag.flag,this.context,{...(0,he.last)(h.tokens),input:g})))).map(g=>rn(h.inputFlag.flag,g))}}if(a.inputFlag.flag.type==="option"&&a.inputFlag.flag.multiple)return{...a,valueFunction:async m=>Promise.all((a.tokens??[]).map(h=>e(rn(m.inputFlag.flag,h.input),m.inputFlag.flag,this.context,h)))};if(a.inputFlag.flag.type==="option")return{...a,valueFunction:async m=>e(rn(m.inputFlag.flag,(0,he.last)(a.tokens)?.input),m.inputFlag.flag,this.context,(0,he.last)(a.tokens))}}if(a.inputFlag.flag.env&&process.env[a.inputFlag.flag.env]){let m=process.env[a.inputFlag.flag.env];if(a.inputFlag.flag.type==="option"&&m)return{...a,valueFunction:async h=>e(rn(h.inputFlag.flag,m),h.inputFlag.flag,this.context)};if(a.inputFlag.flag.type==="boolean")return{...a,valueFunction:async h=>(0,he.isTruthy)(process.env[h.inputFlag.flag.env]??"false")}}return typeof a.inputFlag.flag.default!==void 0?{...a,metadata:{setFromDefault:!0},valueFunction:typeof a.inputFlag.flag.default=="function"?(m,h={})=>a.inputFlag.flag.default({flags:h,options:m.inputFlag.flag}):async()=>a.inputFlag.flag.default}:a},i=a=>a.inputFlag.flag.type==="option"&&a.inputFlag.flag.defaultHelp?{...a,helpFunction:typeof a.inputFlag.flag.defaultHelp=="function"?(d,m,...h)=>d.inputFlag.flag.defaultHelp({flags:m,options:d.inputFlag},...h):d=>d.inputFlag.flag.defaultHelp}:a,s=async a=>{let d=r(u.filter(m=>!m.metadata?.setFromDefault));return Promise.all(a.map(async m=>{try{if(m.helpFunction)return{...m,metadata:{...m.metadata,defaultHelp:await m.helpFunction?.(m,d,this.context)}}}catch{}return m}))},r=a=>Object.fromEntries(a.filter(d=>d.value!==void 0).map(d=>[d.inputFlag.name,d.value])),o=this.mapAndValidateFlags(),c=await Promise.all(Object.entries(this.input.flags).filter(([a,d])=>d.type==="boolean"||d.env||d.default!==void 0||"defaultHelp"in d||o.has(a)).map(([a,d])=>({inputFlag:{flag:d,name:a},tokens:o.get(a)})).map(a=>n(a)).filter(a=>a.valueFunction!==void 0).map(a=>i(a)).map(async a=>a.metadata?.setFromDefault?a:{...a,value:await a.valueFunction?.(a)})),l=r(c.filter(a=>!a.metadata?.setFromDefault)),u=await Promise.all(c.map(async a=>a.metadata?.setFromDefault?{...a,value:await a.valueFunction?.(a,l)}:a)),p=u.some(a=>typeof a.helpFunction=="function")?await s(u):u;return{flags:r(p),metadata:{flags:Object.fromEntries(p.filter(a=>a.metadata).map(a=>[a.inputFlag.name,a.metadata]))}}}_setNames(){for(let e of Object.keys(this.input.flags))this.input.flags[e].name=e;for(let e of Object.keys(this.input.args))this.input.args[e].name=e}findFlag(e){let n=e.startsWith("--"),i=n?!1:e.startsWith("-"),s=n?this.findLongFlag(e):i?this.findShortFlag(e):void 0;return{isLong:n,name:s}}findLongFlag(e){let n=e.slice(2);if(this.input.flags[n])return n;if(this.flagAliases[n])return this.flagAliases[n].name;if(e.startsWith(on)){let i=this.booleanFlags[e.slice(on.length)];if(i&&i.allowNo)return i.name;let s=this.flagAliases[e.slice(on.length)];if(s&&s.type==="boolean"&&s.allowNo)return s.name}}findShortFlag([e,n]){return this.flagAliases[n]?this.flagAliases[n].name:Object.keys(this.input.flags).find(i=>this.input.flags[i].char===n&&n!==void 0&&this.input.flags[i].char!==void 0)}mapAndValidateFlags(){let e=new Map;for(let n of this.raw.filter(i=>i.type==="flag")){if(!(n.flag in this.input.flags))throw new Ce.CLIError(`Unexpected flag ${n.flag}`);let i=e.get(n.flag)??[];e.set(n.flag,[...i,n])}return e}};ne.Parser=Si});var Ii=y(Mi=>{"use strict";f();Object.defineProperty(Mi,"__esModule",{value:!0});Mi.validate=Td;var Hr=$(),jt=Ai();async function Td(t){let e;function n(){if(t.output.nonExistentFlags?.length>0)throw new jt.NonExistentFlagsError({flags:t.output.nonExistentFlags,parse:t});let h=Object.keys(t.input.args).length;if(t.input.strict&&t.output.argv.length>h){let _=t.output.argv.slice(h);throw new jt.UnexpectedArgsError({args:_,parse:t})}let g=[],b=!1;for(let[_,O]of Object.entries(t.input.args)){if(!O.required)b=!0;else if(b)throw new jt.InvalidArgsSpecError({args:t.input.args,parse:t});O.required&&t.output.args[_]===void 0&&g.push(O)}if(g.length>0){let _=Object.entries(t.input.flags).filter(([O,j])=>j.type==="option"&&!!j.multiple).map(([O])=>O);throw new jt.RequiredArgsError({args:g,flagsWithMultiple:_,parse:t})}}async function i(){let h=Object.entries(t.input.flags).flatMap(([_,O])=>t.output.flags[_]!==void 0?[...O.relationships?m(_,O):[],...O.dependsOn?[a(_,O.dependsOn)]:[],...O.exclusive?[l(_,O.exclusive)]:[],...O.combinable?[u(_,O.combinable)]:[],...O.exactlyOne?[p(_,O.exactlyOne)]:[]]:O.required?[{name:_,reason:`Missing required flag ${_}`,status:"failed",validationFn:"required"}]:O.exactlyOne&&O.exactlyOne.length>0?[o(O)]:O.atLeastOne&&O.atLeastOne.length>0?[c(O)]:[]),b=(await Promise.all(h)).filter(_=>_.status==="failed");if(b.length>0)throw new jt.FailedFlagValidationError({failed:b,parse:t})}async function s(h){if(e)return e;let g=h.map(async _=>typeof _=="string"?[_,t.output.flags[_]]:await _.when(t.output.flags)?[_.name,t.output.flags[_.name]]:null),b=await Promise.all(g);return e=Object.fromEntries(b.filter(_=>_!==null)),e}let r=h=>Object.keys(h).filter(g=>g!==void 0);function o(h){let g={name:h.name,validationFn:"validateExactlyOneAcrossFlags"};if(Object.entries(t.input.flags).map(_=>_[0]).filter(_=>t.output.flags[_]!==void 0).filter(_=>h.exactlyOne&&h.exactlyOne.includes(_)).length===0){let O=`Exactly one of the following must be provided: ${(0,Hr.uniq)(h.exactlyOne?.map(j=>`--${j}`)??[]).join(", ")}`;return{...g,reason:O,status:"failed"}}return{...g,status:"success"}}function c(h){let g={name:h.name,validationFn:"validateAtLeastOneAcrossFlags"};if(Object.entries(t.input.flags).map(_=>_[0]).filter(_=>t.output.flags[_]!==void 0).filter(_=>h.atLeastOne&&h.atLeastOne.includes(_)).length===0){let O=`At least one of the following must be provided: ${(0,Hr.uniq)(h.atLeastOne?.map(j=>`--${j}`)??[]).join(", ")}`;return{...g,reason:O,status:"failed"}}return{...g,status:"success"}}async function l(h,g){let b={name:h,validationFn:"validateExclusive"},_=await s(g),O=r(_);for(let j of O)if(!(t.output.metadata.flags&&t.output.metadata.flags[j]?.setFromDefault)&&!(t.output.metadata.flags&&t.output.metadata.flags[h]?.setFromDefault)&&t.output.flags[j]!==void 0){let H=t.output.metadata.flags?.[j]?.defaultHelp??t.output.flags[j];return{...b,reason:`--${j}=${H} cannot also be provided when using --${h}`,status:"failed"}}return{...b,status:"success"}}async function u(h,g){let b={name:h,validationFn:"validateCombinable"},_=new Set(g.map(j=>typeof j=="string"?j:j.name)),O=await s(g);for(let j of Object.keys(t.output.flags))if(!(t.output.metadata.flags&&t.output.metadata.flags[j]?.setFromDefault)&&!(t.output.metadata.flags&&t.output.metadata.flags[h]?.setFromDefault)&&j!==h&&t.output.flags[j]!==void 0&&!_.has(j)){let H=Object.keys(O).map(V=>`--${V}`).join(", ");return{...b,reason:`Only the following can be provided when using --${h}: ${H}`,status:"failed"}}return{...b,status:"success"}}async function p(h,g){let b={name:h,validationFn:"validateExactlyOne"},_=await s(g),O=r(_);for(let j of O)if(j!==h&&t.output.flags[j]!==void 0)return{...b,reason:`--${j} cannot also be provided when using --${h}`,status:"failed"};return{...b,status:"success"}}async function a(h,g){let b={name:h,validationFn:"validateDependsOn"},_=await s(g);if(!Object.values(_).every(j=>j!==void 0)){let j=Object.keys(_).map(H=>`--${H}`).join(", ");return{...b,reason:`All of the following must be provided when using --${h}: ${j}`,status:"failed"}}return{...b,status:"success"}}async function d(h,g){let b={name:h,validationFn:"validateSome"},_=await s(g);if(!Object.values(_).some(Boolean)){let j=Object.keys(_).map(H=>`--${H}`).join(", ");return{...b,reason:`One of the following must be provided when using --${h}: ${j}`,status:"failed"}}return{...b,status:"success"}}function m(h,g){return(g.relationships??[]).map(b=>{switch(b.type){case"all":return a(h,b.flags);case"none":return l(h,b.flags);case"only":return u(h,b.flags);case"some":return d(h,b.flags);default:throw new Error(`Unknown relationship type: ${b.type}`)}})}return n(),i()}});var Wr=y(an=>{"use strict";f();Object.defineProperty(an,"__esModule",{value:!0});an.flagUsage=Br;an.flagUsages=Nd;var Ld=$(),Rd=ve();function Br(t,e={}){let n=[];t.helpLabel?n.push(t.helpLabel):(t.char&&n.push(`-${t.char}`),t.name&&n.push(` --${t.name}`));let i=t.type==="option"?` ${t.name.toUpperCase()}`:"",s=t.summary||t.description||"";return e.displayRequired&&t.required&&(s=`(required) ${s}`),s=s?(0,Rd.colorize)("dim",s):void 0,[` ${n.join(",").trim()}${i}`,s]}function Nd(t,e={}){return t.length===0?[]:(0,Ld.sortBy)(t,n=>[n.char?-1:1,n.char,n.name]).map(n=>Br(n,e))}});var ki=y(Ee=>{"use strict";f();Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validate=Ee.flagUsages=void 0;Ee.parse=Ud;var Hd=Nr(),Bd=Ii(),Wd=Wr();Object.defineProperty(Ee,"flagUsages",{enumerable:!0,get:function(){return Wd.flagUsages}});var zd=Ii();Object.defineProperty(Ee,"validate",{enumerable:!0,get:function(){return zd.validate}});async function Ud(t,e){let n={"--":e["--"],args:e.args??{},argv:t,context:e.context,flags:e.flags??{},strict:e.strict!==!1},s=await new Hd.Parser(n).parse();return await(0,Bd.validate)({input:n,output:s}),s}});var Jr=y(U=>{"use strict";f();var Vd=U&&U.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(e,n);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,s)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Gd=U&&U.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kr=U&&U.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&Vd(n,e,i[s]);return Gd(n,e),n}})(),Kd=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(U,"__esModule",{value:!0});U.Command=void 0;var Jd=v("node:url"),zr=v("node:util"),Ri=Kd(G()),Yd=sn(),Ti=Kr(oe()),Pt=Ne(),Xd=k(),Zd=Kr(ki()),Ur=ai(),Li=be(),Vr=$(),$e=ve(),Gr=Ri.default.getInstance().get("@oclif/core");process.stdout.on("error",t=>{if(!(t&&t.code==="EPIPE"))throw t});var Ni=class{argv;config;static _base=`${Gr.name}@${Gr.version}`;static aliases=[];static args={};static baseFlags;static deprecateAliases;static deprecationOptions;static description;static enableJsonFlag=!1;static examples;static flags;static hasDynamicHelp=!1;static help;static hidden;static hiddenAliases=[];static id;static plugin;static pluginAlias;static pluginName;static pluginType;static state;static strict=!0;static summary;static usage;debug;id;parsed=!1;constructor(e,n){this.argv=e,this.config=n,this.id=this.ctor.id;try{this.debug=(0,Xd.makeDebug)(this.id?`${this.config.bin}:${this.id}`:this.config.bin)}catch{this.debug=()=>{}}}static async run(e,n){e||(e=process.argv.slice(2)),typeof n=="string"&&n.startsWith("file://")&&(n=(0,Jd.fileURLToPath)(n));let i=await Yd.Config.load(n||v.main?.filename||__dirname),s=Ri.default.getInstance();s.has("config")||s.set("config",i);let r=new this(e,i);if(!r.id){let o=r.constructor.name.toLowerCase();r.id=o,r.ctor.id=o}return r._run()}get ctor(){return this.constructor}async _run(){let e,n;try{this.removeEnvVar("REDIRECTED"),await this.init(),n=await this.run()}catch(i){e=i,await this.catch(i)}finally{await this.finally(e)}return n&&this.jsonEnabled()&&this.logJson(this.toSuccessJson(n)),!this.parsed&&!(0,Vr.isProd)()&&process.emitWarning(`Command ${this.id} did not parse its arguments. Did you forget to call 'this.parse'?`,{code:"UnparsedCommand"}),n}async catch(e){if(process.exitCode=process.exitCode??e.exitCode??1,this.jsonEnabled())this.logJson(this.toErrorJson(e));else{if(!e.message)throw e;try{$e.ux.action.stop($e.ux.colorize("bold",$e.ux.colorize("red","!")))}catch{}throw e}}error(e,n={}){return Ti.error(e,n)}exit(e=0){Ti.exit(e)}async finally(e){}async init(){this.debug("init version: %s argv: %o",this.ctor._base,this.argv);let e=globalThis;e["http-call"]=e["http-call"]||{},e["http-call"].userAgent=this.config.userAgent,this.warnIfCommandDeprecated()}jsonEnabled(){if(!this.ctor?.enableJsonFlag)return!1;if(this.config.scopedEnvVar?.("CONTENT_TYPE")?.toLowerCase()==="json")return!0;let e=this.argv.indexOf("--"),n=this.argv.indexOf("--json");return e===-1?n!==-1:n!==-1&&n<e}log(e="",...n){this.jsonEnabled()||(e=typeof e=="string"?e:(0,zr.inspect)(e),$e.ux.stdout(e,...n))}logJson(e){$e.ux.stdout($e.ux.colorizeJson(e,{pretty:!0,theme:this.config.theme?.json}))}logToStderr(e="",...n){this.jsonEnabled()||(e=typeof e=="string"?e:(0,zr.inspect)(e),$e.ux.stderr(e,...n))}async parse(e,n=this.argv){e||(e=this.ctor);let i={context:this,...e,flags:(0,Ur.aggregateFlags)(e.flags,e.baseFlags,e.enableJsonFlag)},s=await this.config.runHook("preparse",{argv:[...n],options:i}),r=s.successes?.length?s.successes.find(c=>c.plugin.root===Ri.default.getInstance().get("rootPlugin")?.root)?.result??n:n;this.argv=[...r];let o=await Zd.parse(r,i);return this.warnIfFlagDeprecated(o.flags??{}),this.parsed=!0,o}toErrorJson(e){return{error:e}}toSuccessJson(e){return e}warn(e){return this.jsonEnabled()||Ti.warn(e),e}warnIfCommandDeprecated(){let[e]=(0,Pt.normalizeArgv)(this.config);if(this.ctor.deprecateAliases&&this.ctor.aliases.includes(e)){let n=(0,Li.toConfiguredId)(this.ctor.id,this.config),i=(0,Li.toConfiguredId)(e,this.config);this.warn((0,Pt.formatCommandDeprecationWarning)(i,{to:n}))}if(this.ctor.state==="deprecated"){let n=(0,Li.toConfiguredId)(this.ctor.id,this.config);this.warn((0,Pt.formatCommandDeprecationWarning)(n,this.ctor.deprecationOptions))}}warnIfFlagDeprecated(e){let n=(0,Ur.aggregateFlags)(this.ctor.flags,this.ctor.baseFlags,this.ctor.enableJsonFlag);for(let i of Object.keys(e)){let s=n[i],r=s?.deprecated;if(r&&this.warn((0,Pt.formatFlagDeprecationWarning)(i,r)),s?.deprecateAliases){let c=(0,Vr.uniq)([...s?.aliases??[],...s?.charAliases??[]]).map(u=>u.length===1?`-${u}`:`--${u}`);if(c.length===0)return;let l=c.filter(u=>this.argv.includes(u));for(let u of l){let p=`--${s?.name}`;s?.char&&(p+=` | -${s?.char}`),this.warn((0,Pt.formatFlagDeprecationWarning)(u,{to:p}))}}}}removeEnvVar(e){let n=[];try{n.push(...this.config.scopedEnvVarKeys(e))}catch{n.push(this.config.scopedEnvVarKey(e))}n.map(i=>delete process.env[i])}};U.Command=Ni});var Bi=y(Hi=>{"use strict";f();Object.defineProperty(Hi,"__esModule",{value:!0});Hi.flush=nf;var Qd=Ie();function ef(t,e){function n(i,s=!1){return new Promise(r=>{let o=setTimeout(()=>r(null),i);s&&o.unref()})}return Promise.race([t,n(e,!0).then(()=>(0,Qd.error)("timed out"))])}async function tf(){let t=new Promise(n=>{process.stdout.once("drain",()=>n(null))});if(!process.stdout.write(""))return t}async function nf(t=1e4){await ef(tf(),t)}});var zi=y(Y=>{"use strict";f();var sf=Y&&Y.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Y,"__esModule",{value:!0});Y.versionAddition=Y.helpAddition=void 0;Y.run=df;var Yr=v("node:url"),rf=sf(G()),of=sn(),Wi=pt(),Xr=k(),Qe=Ue(),af=Lt(),cf=ve(),lf=(t,e)=>{if(t.length===0&&!e.isSingleCommandCLI)return!0;let n=(0,Wi.getHelpFlagAdditions)(e);for(let i of t){if(n.includes(i))return!0;if(i==="--")return!1}return!1};Y.helpAddition=lf;var uf=(t,e)=>{let n=e?.pjson.oclif.additionalVersionFlags??[];return!![...new Set(["--version",...n]).values()].includes(t[0])};Y.versionAddition=uf;async function df(t,e){let n=Qe.Performance.mark(Qe.OCLIF_MARKER_OWNER,"main.run"),i=Qe.Performance.mark(Qe.OCLIF_MARKER_OWNER,"main.run#init"),s=async d=>{let m=await(0,Wi.loadHelpClass)(o);await new m(o,o.pjson.oclif.helpOptions??o.pjson.helpOptions).showHelp(d)};(0,Xr.setLogger)(e);let{debug:r}=(0,Xr.getLogger)("main");r(`process.execPath: ${process.execPath}`),r(`process.execArgv: ${process.execArgv}`),r("process.argv: %O",process.argv),t=t??process.argv.slice(2),e&&(typeof e=="string"&&e.startsWith("file://")||e instanceof Yr.URL)&&(e=(0,Yr.fileURLToPath)(e));let o=await of.Config.load(e??v.main?.filename??__dirname);rf.default.getInstance().set("config",o),o.isSingleCommandCLI&&(t=[af.SINGLE_COMMAND_CLI_SYMBOL,...t]);let[c,...l]=(0,Wi.normalizeArgv)(o,t),u=async(d,m)=>{n?.stop(),i?.stopped||i?.stop(),await Qe.Performance.collect(),Qe.Performance.debug(),await o.runHook("finally",{argv:l,Command:d,error:m,id:c})};if(await o.runHook("init",{argv:l,id:c}),(0,Y.versionAddition)(t,o)){cf.ux.stdout(o.userAgent),await u();return}if((0,Y.helpAddition)(t,o)){await s(t),await u();return}let p=o.findCommand(c);if(!p&&(o.flexibleTaxonomy?null:o.findTopic(c))){await s([c]),await u();return}i?.stop();let a;try{return await o.runCommand(c,l,p)}catch(d){throw a=d,d}finally{await u(p,a)}}});var Zr=y(Ui=>{"use strict";f();Object.defineProperty(Ui,"__esModule",{value:!0});Ui.execute=_f;var ff=oe(),pf=Kt(),hf=Bi(),mf=zi(),gf=re();async function _f(t){if(!t.dir&&!t.loadOptions)throw new ff.CLIError("dir or loadOptions is required.");return t.development&&(process.env.NODE_ENV="development",gf.settings.debug=!0),(0,mf.run)(t.args??process.argv.slice(2),t.loadOptions??t.dir).then(async e=>((0,hf.flush)(),e)).catch(async e=>(0,pf.handle)(e))}});var eo=y(Qr=>{"use strict";f();Object.defineProperty(Qr,"__esModule",{value:!0})});var Af=y(w=>{f();var yf=w&&w.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(e,n);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,s)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),bf=w&&w.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),et=w&&w.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&yf(n,e,i[s]);return bf(n,e),n}})();Object.defineProperty(w,"__esModule",{value:!0});w.ux=w.toStandardizedId=w.toConfiguredId=w.settings=w.Performance=w.Parser=w.ModuleLoader=w.getLogger=w.Interfaces=w.loadHelpClass=w.HelpBase=w.Help=w.CommandHelp=w.flush=w.Flags=w.execute=w.handle=w.Errors=w.Plugin=w.Config=w.Command=w.Args=void 0;var vf=$();function wf(){try{process.cwd()}catch(t){t.code==="ENOENT"&&process.stderr.write(`WARNING: current directory does not exist
|
|
83
|
-
`)}}function Of(){if(!(process.env.OCLIF_DISABLE_ENGINE_WARNING&&(0,vf.isTruthy)(process.env.OCLIF_DISABLE_ENGINE_WARNING)))try{let t=v("node:path"),e=io(),n=t.join(__dirname,".."),i=v(t.join(n,"package.json"));e.satisfies(process.versions.node,i.engines.node)||process.emitWarning(`Node version must be ${i.engines.node} to use this CLI. Current node version: ${process.versions.node}`)}catch{}}wf();Of();w.Args=et(Xi());var jf=Jr();Object.defineProperty(w,"Command",{enumerable:!0,get:function(){return jf.Command}});var to=sn();Object.defineProperty(w,"Config",{enumerable:!0,get:function(){return to.Config}});Object.defineProperty(w,"Plugin",{enumerable:!0,get:function(){return to.Plugin}});w.Errors=et(oe());var Pf=Kt();Object.defineProperty(w,"handle",{enumerable:!0,get:function(){return Pf.handle}});var Cf=Zr();Object.defineProperty(w,"execute",{enumerable:!0,get:function(){return Cf.execute}});w.Flags=et(ri());var Ef=Bi();Object.defineProperty(w,"flush",{enumerable:!0,get:function(){return Ef.flush}});var cn=pt();Object.defineProperty(w,"CommandHelp",{enumerable:!0,get:function(){return cn.CommandHelp}});Object.defineProperty(w,"Help",{enumerable:!0,get:function(){return cn.Help}});Object.defineProperty(w,"HelpBase",{enumerable:!0,get:function(){return cn.HelpBase}});Object.defineProperty(w,"loadHelpClass",{enumerable:!0,get:function(){return cn.loadHelpClass}});w.Interfaces=et(eo());var $f=k();Object.defineProperty(w,"getLogger",{enumerable:!0,get:function(){return $f.getLogger}});var qf=zi();Object.defineProperty(w,"run",{enumerable:!0,get:function(){return qf.run}});w.ModuleLoader=et(st());w.Parser=et(ki());var Df=Ue();Object.defineProperty(w,"Performance",{enumerable:!0,get:function(){return Df.Performance}});var xf=re();Object.defineProperty(w,"settings",{enumerable:!0,get:function(){return xf.settings}});var no=be();Object.defineProperty(w,"toConfiguredId",{enumerable:!0,get:function(){return no.toConfiguredId}});Object.defineProperty(w,"toStandardizedId",{enumerable:!0,get:function(){return no.toStandardizedId}});var Ff=ve();Object.defineProperty(w,"ux",{enumerable:!0,get:function(){return Ff.ux}})});export{Af as
|
|
83
|
+
`)}}function Of(){if(!(process.env.OCLIF_DISABLE_ENGINE_WARNING&&(0,vf.isTruthy)(process.env.OCLIF_DISABLE_ENGINE_WARNING)))try{let t=v("node:path"),e=io(),n=t.join(__dirname,".."),i=v(t.join(n,"package.json"));e.satisfies(process.versions.node,i.engines.node)||process.emitWarning(`Node version must be ${i.engines.node} to use this CLI. Current node version: ${process.versions.node}`)}catch{}}wf();Of();w.Args=et(Xi());var jf=Jr();Object.defineProperty(w,"Command",{enumerable:!0,get:function(){return jf.Command}});var to=sn();Object.defineProperty(w,"Config",{enumerable:!0,get:function(){return to.Config}});Object.defineProperty(w,"Plugin",{enumerable:!0,get:function(){return to.Plugin}});w.Errors=et(oe());var Pf=Kt();Object.defineProperty(w,"handle",{enumerable:!0,get:function(){return Pf.handle}});var Cf=Zr();Object.defineProperty(w,"execute",{enumerable:!0,get:function(){return Cf.execute}});w.Flags=et(ri());var Ef=Bi();Object.defineProperty(w,"flush",{enumerable:!0,get:function(){return Ef.flush}});var cn=pt();Object.defineProperty(w,"CommandHelp",{enumerable:!0,get:function(){return cn.CommandHelp}});Object.defineProperty(w,"Help",{enumerable:!0,get:function(){return cn.Help}});Object.defineProperty(w,"HelpBase",{enumerable:!0,get:function(){return cn.HelpBase}});Object.defineProperty(w,"loadHelpClass",{enumerable:!0,get:function(){return cn.loadHelpClass}});w.Interfaces=et(eo());var $f=k();Object.defineProperty(w,"getLogger",{enumerable:!0,get:function(){return $f.getLogger}});var qf=zi();Object.defineProperty(w,"run",{enumerable:!0,get:function(){return qf.run}});w.ModuleLoader=et(st());w.Parser=et(ki());var Df=Ue();Object.defineProperty(w,"Performance",{enumerable:!0,get:function(){return Df.Performance}});var xf=re();Object.defineProperty(w,"settings",{enumerable:!0,get:function(){return xf.settings}});var no=be();Object.defineProperty(w,"toConfiguredId",{enumerable:!0,get:function(){return no.toConfiguredId}});Object.defineProperty(w,"toStandardizedId",{enumerable:!0,get:function(){return no.toStandardizedId}});var Ff=ve();Object.defineProperty(w,"ux",{enumerable:!0,get:function(){return Ff.ux}})});export{pt as a,Af as b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{b as R}from"./chunk-J3JPJCWP.js";import{a as x,l as M,n as Y}from"./chunk-NTVEJYKI.js";import{a as U}from"./chunk-UFU2LGFK.js";import{a as G,c as p}from"./chunk-ECEOBSGD.js";import{a as O}from"./chunk-GVRFO4CV.js";import{a as S,b as L}from"./chunk-YY6TFARF.js";import{a as H}from"./chunk-LYPNQFWX.js";import{k as A,n as I}from"./chunk-R757TSQ6.js";import{p as D,q as E,r as P,u as _,v as C}from"./chunk-P3Z5RLVV.js";import{h as $,k as V}from"./chunk-IISE7SBT.js";import{b}from"./chunk-DGMRL5DQ.js";import{K as g,oa as m}from"./chunk-L5XWYTHY.js";import{H as k,z as F}from"./chunk-SKRUMRB4.js";import{_a as T}from"./chunk-YJWNM4XO.js";import{b as Q}from"./chunk-JA2QZ635.js";import{q as f}from"./chunk-3VYOLEQE.js";import{e as z,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();async function B(e,t,o,n,r,l){let i=W(o,n,r),a=X(o,e,n,t),s=[...i,...a,{title:"Theme download complete",task:async()=>{}}];s.length>0&&await k(s,{renderOptions:{stdout:l?.stdout??process.stdout},noProgressBar:r.multiEnvironment})}function W(e,t,o){if(o.nodelete)return[];let n=new Set(e.map(i=>i.key));return t.applyIgnoreFilters([...t.files.values()]).map(({key:i})=>i).filter(i=>!n.has(i)).map(i=>({title:`Cleaning your local directory (removing ${i})`,task:async()=>t.delete(i)}))}function X(e,t,o,n){let r=o.applyIgnoreFilters(e);r=r.filter(s=>{let h=s.checksum;return o.files.get(s.key)?.checksum!==h});let l=r.map(s=>s.key),i=s=>s.total===0?"[100%]":`[${Math.round(s.current/s.total*100)}%]`;return R(l,_,(s,h)=>({title:`Downloading files from remote theme ${i({current:h,total:l.length})}`,task:async()=>J(t,o,s,n)}))}async function J(e,t,o,n){let r=await A(e.id,o,n);r&&await Promise.all(r.map(l=>t.write(l)))}async function K(e,t,o,n){m("theme-service:pull:setup"),U({verbose:e.verbose,noColor:e.noColor});let r=t??await g(P({store:e.store}),e.password),l=new O(r),i=await(e.development?l.find():l.fetch()),{path:a,nodelete:s,live:h,development:u,only:q,ignore:N,force:y,environment:w}=e;if(!await te(a??f(),y??!1,w?.[0],o))return;let j=await H(r,{header:"Select a theme to open",filter:{live:h,theme:u?`${i?.id}`:e.theme}});m("theme-service:pull:setup"),await Z(j,r,{environment:w?.[0],force:y??!1,ignore:N??[],multiEnvironment:o,nodelete:s??!1,only:q??[],path:a??f()},n)}async function Z(e,t,o,n){m("theme-service:pull:file-system");let r=M(o.path,{filters:o}),[l]=await Promise.all([I(e.id,t),r.ready()]),i=x(l);m("theme-service:pull:file-system"),await B(e,t,i,r,o,n);let a=o.environment?`Environment: ${o.environment}`:"";F({headline:a,body:["The theme",...G(e),"has been pulled."],nextSteps:[[{link:{label:"View your theme",url:S(e,t)}}],[{link:{label:"Customize your theme at the theme editor",url:L(e,t)}}]]})}async function ee(e){return(await T("*",{cwd:e,deep:1,onlyFiles:!1})).length===0}async function te(e,t,o,n){return t?!0:!(!await ee(e)&&!await Y(e)&&!await p(t,void 0,o,n)||await $(e)&&!await V(e)&&!await p(t,"The current Git directory has uncommitted changes.",o,n))}var d=z(Q(),1);var v=class extends C{static summary="Download your remote theme files locally.";static descriptionWithMarkdown=`Retrieves theme files from Shopify.
|
|
2
|
+
|
|
3
|
+
If no theme is specified, then you're prompted to select the theme to pull from the list of the themes in your store.`;static description=this.descriptionForHelp();static flags={...b,...D,...E("download"),theme:d.Flags.string({char:"t",description:"Theme ID or name of the remote theme. Use --development, --live, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_THEME_ID"}),development:d.Flags.boolean({char:"d",description:"Pull theme files from your remote development theme. Use --development, --live, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),live:d.Flags.boolean({char:"l",description:"Pull theme files from your remote live theme. Use --development, --live, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_LIVE"}),nodelete:d.Flags.boolean({char:"n",description:"Prevent deleting local files that don't exist remotely.",env:"SHOPIFY_FLAG_NODELETE"}),force:d.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"})};static multiEnvironmentsFlags=["store","password","path",["live","development","theme"]];static nonTTYFlagRequirements(){return[{flags:["theme","development","live"]}]}async command(t,o,n,r,l){m("theme-command:pull"),await K({...t,noColor:t["no-color"]},o,n,l),m("theme-command:pull")}storeAuthScopes(){return["read_themes"]}};export{K as a,v as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p}from"./chunk-ZUVAHONX.js";import{a as r,b as c}from"./chunk-SDFO7P2M.js";import{d as s}from"./chunk-4Y22EM45.js";import{a}from"./chunk-YGFEUXKQ.js";import{Ha as n}from"./chunk-2KLXRVGQ.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class d extends a{static summary="Reverses app subscription migrations that are still scheduled.";static descriptionWithMarkdown="Reverses scheduled app subscription migrations that have not migrated yet.\n\nWhen `--input` is omitted, the command reads CSV data from stdin. Use `--input <path>` to read from a file. `--input -` is also supported as an explicit stdin path.\n\n- Required CSV header: `shop_id`.\n- Example row: `123456789`.\n\nThe CSV can contain only the `shop_id` header, or it can reuse the complete CSV supplied to `schedule`; schedule-only columns are ignored.\n\nUnscheduling is not a rollback after a subscription has migrated. The command validates the entire CSV before sending any mutation. Use `--force` to skip confirmation and immediately submit every valid row.\n\nOperations are submitted in batches of 250 shops. Preserve every operation GID printed by the command so you can check or cancel the submitted operations. With `--watch`, human-readable output shows accepted identifiers before polling begins, then displays operation progress and the final outcome. With `--json --watch`, the command outputs one structured JSON document after every operation reaches a terminal status.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static description=this.descriptionWithoutMarkdown();static examples=["<%= config.bin %> <%= command.id %> --input migrations.csv --force","cat migrations.csv | <%= config.bin %> <%= command.id %> --force","<%= config.bin %> <%= command.id %> --input migrations.csv --path ../my-app --config staging --force --json","<%= config.bin %> <%= command.id %> --input migrations.csv --client-id <client-id> --force","<%= config.bin %> <%= command.id %> --input - --force --watch"];static flags={...s};async run(){let{flags:t}=await this.parse(d),{app:m,remoteApp:u}=await n({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),h=await p({action:"unschedule",input:t.input??"-",clientId:u.apiKey,skipConfirmation:t.force,watch:t.watch,...t.watch&&!t.json?{onSubmissionAccepted:r}:{}}),i=c(h,{json:t.json,watch:t.watch});return i!==0&&(process.exitCode=i),{app:m}}};export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{O as A,P as O,Q as z,S as P,U as x}from"./chunk-2KLXRVGQ.js";import{l as $,la as l,oa as L,sa as D}from"./chunk-Q45XAEG2.js";import{a as F}from"./chunk-6RBCFXJT.js";import{u as R}from"./chunk-L5XWYTHY.js";import{H as N,M as v,T as y,y as g,z as k}from"./chunk-SKRUMRB4.js";import{b as E}from"./chunk-YTJ3EPD3.js";import{g as _,i as d}from"./chunk-FCULF3JA.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();p();async function b(e,t){if(t.clientName!==l.AppManagement||!t.devStoreCapReached)return!1;try{return await t.devStoreCapReached(e)}catch{return!1}}async function M(e,t,o,i="disabled"){let c=o.clientName===l.AppManagement,s=async f=>o.devStoresForOrg(t.id,f),n=i!=="disabled"&&o.clientName===l.AppManagement,r=async()=>{if(await b(t.id,o))throw new d(U,W(t.id));let f=await A(),w=await O(),u=await z(),T=await $({name:f,plan:w,withDemoData:u,organization:t,json:!1,summary:!1}),S=await I(t,T,o);return k({headline:`Dev store "${S.shopName}" created successfully.`}),S},a,h;if(n&&e.stores.length===0){if(await b(t.id,o))throw new d(U,W(t.id));if(v()===!1)throw new d("No development store was specified.",H(t.id));a=async()=>(g({body:Y(t)}),r())}else if(n&&i==="selection-option"){if(v()===!1&&(e.stores.length>1||e.hasMorePages))throw new d("No development store was specified.","Run `shopify app dev --store <store-domain>` to select a development store.");v()&&!await b(t.id,o)&&(h=r)}let m=await P({onSearchForStoresByName:s,...e,showDomainOnPrompt:c,...a?{onCreateStoreWhenEmpty:a}:{},...h?{onCreateStore:h}:{}});if(!m){if(a)throw new _;if(g({body:await o.getCreateDevStoreLink(t)}),await y(5),!await x(t))throw new _;let w=await B(t.id,o);m=await M({stores:w,hasMorePages:!1},t,o,i)}return C(m),m}async function I(e,t,o){let s;if(await N([{title:"Fetching organization data",task:async()=>{for(let r=0;r<10;r++){try{let a=await D(e,t,o);if(a){s=a;return}}catch(a){if(!(a instanceof L))throw a}await y(3)}}}]),!s)throw new d(`The newly created development store (${t}) is not available yet.`,`Run \`shopify app dev --store ${t}\` to select it when it is ready.`);return s}async function B(e,t){let c=[];return await N([{title:"Fetching organization data",task:async()=>{for(let n=0;n<10;n++){let{stores:r}=await t.devStoresForOrg(e);if(r.length>0){c=r;return}await y(3)}}}]),c}var U="Your organization has reached its development store limit.";function Y(e){return`You don't have any dev stores associated with ${e.businessName}'s Dev Dashboard. Let's create one.`}function q(e){return`shopify store create dev --organization-id ${e} --name <store-name> --plan <plan>`}function H(e){return`Create a development store with \`${q(e)}\`, then run \`shopify app dev --store <store-domain>\`.`}function W(e){return`Make a development store slot available in Dev Dashboard. Then create a development store with \`${q(e)}\`, then run \`shopify app dev --store <store-domain>\`.`}function C(e){if(!e.transferDisabled)throw!e.transferDisabled&&!e.convertableToPartnerTest?new d(`The store you specified (${e.shopDomain}) is not a dev store`,"Run dev --reset and select an eligible dev store."):new d(`The store you specified (${e.shopDomain}) is not transfer-disabled`,"Run dev --reset and select a transfer-disabled dev store.")}async function fe({appContextResult:e,storeFqdn:t,forceReselectStore:o,storeTypes:i=["APP_DEVELOPMENT"],storeCreationMode:c="disabled"}){let{app:s,organization:n,developerPlatformClient:r}=e,a,h=s.configuration.build?.dev_store_url,m=s.hiddenConfig.dev_store_url,f=h??m,u=t??(o?void 0:f),T=i.length===1&&i[0]==="APP_DEVELOPMENT";if(u)a=await D(n,u,r,i),T&&C(a);else{let S=await r.devStoresForOrg(n.id);a=await M(S,n,r,c)}return a.shopDomain=R(a.shopDomain),await V(a,o),(a.shopDomain!==f||!m)&&await s.updateHiddenConfig({dev_store_url:a.shopDomain}),await r.ensureUserAccessToStore(n.id,a),a}async function V(e,t){await F.addPublicMetadata(()=>({cmd_app_reset_used:t,store_fqdn_hash:E(e.shopDomain),store_domain:e.shopDomain})),await F.addSensitiveMetadata(()=>({store_fqdn:e.shopDomain}))}export{fe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{u as r}from"./chunk-L5XWYTHY.js";import{b as o}from"./chunk-JA2QZ635.js";import{f as t,q as n}from"./chunk-3VYOLEQE.js";import{e as s,g as a}from"./chunk-VKWPEFWQ.js";a();var e=s(o(),1);var c={path:e.Flags.string({description:"The path to your app directory.",parse:async i=>t(i),default:async()=>n(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"}),config:e.Flags.string({hidden:!1,char:"c",description:"The name of the app configuration.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"client-id":e.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),reset:e.Flags.boolean({hidden:!1,description:"Reset all your settings.",env:"SHOPIFY_FLAG_RESET",default:!1,exclusive:["config"]})},p={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation to run as a bulk operation.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your mutation, in JSON format. Can be specified multiple times.",env:"SHOPIFY_FLAG_VARIABLES",multiple:!0,exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSONL format (one JSON object per line). Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),watch:e.Flags.boolean({description:"Wait for bulk operation results before exiting. Defaults to false.",env:"SHOPIFY_FLAG_WATCH"}),"output-file":e.Flags.string({description:"The file path where results should be written if --watch is specified. If not specified, results will be written to STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE",dependsOn:["watch"]}),version:e.Flags.string({description:"The API version to use for the bulk operation. If not specified, uses the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})},h={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation, as a string.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES",exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSON format. Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The myshopify.com domain of the store to execute 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 i=>r(i)}),version:e.Flags.string({description:"The API version to use for the query or mutation. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"}),"output-file":e.Flags.string({description:"The file name where results should be written, instead of STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE"})};export{c as a,p as b,h as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as c}from"./chunk-WXV35TPE.js";import{a as e}from"./chunk-JTPVSO6Y.js";import{F as n,I as p,Ia as s}from"./chunk-2KLXRVGQ.js";import{b as r}from"./chunk-DGMRL5DQ.js";import{b as d}from"./chunk-JA2QZ635.js";import{e as l,g as i}from"./chunk-VKWPEFWQ.js";i();var f=l(d(),1);var{config:b,...u}=e,o=class m extends c{static summary="Activate an app configuration.";static descriptionWithMarkdown="Sets default configuration when you run app-related CLI commands. If you omit the `config-name` parameter, then you'll be prompted to choose from the configuration files in your project.";static description=this.descriptionForHelp();static usage="app config use [config] [flags]";static flags={...r,...u};static args={config:f.Args.string({description:"The name of the app configuration. Can be 'shopify.app.staging.toml' or simply 'staging'."})};async run(){let{flags:t,args:a}=await this.parse(m),{app:g}=await s({directory:t.path,userProvidedConfigName:a.config});return await p(t.path),await n({directory:t.path,configName:a.config,reset:t.reset}),{app:g}}};export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O as i}from"./chunk-
|
|
1
|
+
import{O as i}from"./chunk-SKRUMRB4.js";import{a as l}from"./chunk-7UNQOKZW.js";import{a as p}from"./chunk-CX5CC6P5.js";import{e as u,g as a}from"./chunk-VKWPEFWQ.js";a();var f=u(l(),1),o=u(p(),1);async function h(t){try{return(await i("npm",["list","@shopify/cli"],{cwd:t})).match(/@shopify\/cli@([\w.-]*)/)?.[1]}catch{return}}async function d(){try{let t={...process.env,SHOPIFY_CLI_NO_ANALYTICS:"1"},e=f.default.sync("shopify",{all:!0}).filter(r=>!r.includes("node_modules"));if(!e[0])return;let n=(await i(e[0],[],{env:t})).match(/@shopify\/cli\/([^\s]+)/);if(n&&n[1]){let r=n[1];if((0,o.satisfies)(r,">=3.59.0")||s(r))return r}return}catch{return}}function s(t){return t.startsWith("0.0.0")}function y(t,e){if(s(t)||s(e))return!1;let c=new o.SemVer(t),n=new o.SemVer(e);return c.major!==n.major}export{h as a,d as b,s as c,y as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as U}from"./chunk-
|
|
1
|
+
import{a as U}from"./chunk-5BYVVXGD.js";import{K as H}from"./chunk-2KLXRVGQ.js";import{a as q}from"./chunk-VJEKDBGZ.js";import{q as I}from"./chunk-Q45XAEG2.js";import{a as O,o as D,w as k}from"./chunk-SKRUMRB4.js";import{i as N}from"./chunk-FCULF3JA.js";import{Aa as g,Ga as F,Nb as h,Xa as A,Ya as P,fb as y,ra as R}from"./chunk-YJWNM4XO.js";import{g as S}from"./chunk-SGBLCVUX.js";import{d as x,e as E,g as v,i as C}from"./chunk-3VYOLEQE.js";import{e as X,g as m}from"./chunk-VKWPEFWQ.js";m();function w(){return process.hrtime()}function M(r){let t=process.hrtime(r);return(t[0]*1e3+t[1]/1e6).toFixed(2)}m();m();var $=X(q(),1),G=200,K=6e4,L=200,Q=500,_=class{currentEvents=[];extensionPaths=[];app;options;onChangeCallback;watcher;debouncedEmit;ignored={};extensionWatchedFiles=new Map;constructor(t,e,s=G){this.app=t,this.options=e,this.debouncedEmit=k(this.emitEvents.bind(this),s,{leading:!0,trailing:!0}),this.updateApp(t)}onChange(t){this.onChangeCallback=t}async start(){let e=[...this.app.configuration.extension_directories??["extensions"]].map(n=>x(this.app.directory,n));await Promise.all(e.map(async n=>{try{await g(n.replace(/\/\*+$/,""))}catch{}}));let s=[this.app.configPath,...e],i=this.getAllWatchedFiles();s.push(...i),this.close();let{default:o}=await import("./chokidar-5RWEYTNQ.js");this.watcher=o.watch(s,{ignored:["**/node_modules/**","**/.git/**"],persistent:!0,ignoreInitial:!0}),this.watcher.on("all",this.handleFileEvent),this.addAbortListener(),h(`File watcher started with ${s.length} paths`,this.options.stdout)}updateApp(t){this.app=t,this.extensionPaths=this.app.nonConfigExtensions.map(e=>E(e.directory)).filter(e=>e!==this.app.directory),this.extensionPaths.forEach(e=>{this.ignored[e]??=this.createIgnoreInstance(e)})}addAbortListener(){this.options.signal.removeEventListener("abort",this.close),this.options.signal.addEventListener("abort",this.close)}getAllWatchedFiles(){this.extensionWatchedFiles.clear();let t=this.app.realExtensions.map(s=>({extension:s,watchedFiles:s.watchedFiles()})),e=new Set;for(let{extension:s,watchedFiles:i}of t)for(let o of i){let n=E(o);e.add(n);let a=this.extensionWatchedFiles.get(n)??new Set;a.add(s.handle),this.extensionWatchedFiles.set(n,a)}return Array.from(e)}emitEvents=()=>{let t=this.currentEvents;this.currentEvents=[];let e=`\u{1F509} ${t.length} EVENTS EMITTED in files: ${t.map(s=>s.path).join(`
|
|
2
2
|
`)}`;h(e,this.options.stdout),this.onChangeCallback?.(t)};pushEvent(t){this.shouldIgnoreEvent(t)||(t.type==="extension_folder_created"&&(this.ignored[t.path]=this.createIgnoreInstance(t.path)),!this.currentEvents.some(e=>e.path===t.path&&e.type===t.type&&e.extensionHandle===t.extensionHandle)&&this.currentEvents.push(t))}shouldIgnoreEvent(t){if(t.type==="extension_folder_deleted"||t.type==="extension_folder_created"||t.extensionHandle&&this.extensionWatchedFiles.get(E(t.path))?.has(t.extensionHandle))return!1;let s=(t.extensionHandle?this.app.realExtensions.find(o=>o.handle===t.extensionHandle):void 0)?.watchedFiles(),i=this.ignored[t.extensionPath];if(s)return!s.some(n=>y(t.path,n));if(i){let o=v(t.extensionPath,t.path);return i.ignores(o)}return!1}handleFileEvent=(t,e)=>{let s=w(),i=E(e),o=e===this.app.configPath,n=e.endsWith(".extension.toml");if(h(`\u{1F300}: ${t} ${e.replace(this.app.directory,"")}
|
|
3
3
|
`),o)this.handleEventForExtension(t,e,this.app.directory,s,!1);else{let a=this.extensionWatchedFiles.get(i),d=a===void 0||a.size===0;if(d&&t==="add"&&!n){let c=this.discoverFileOwners(i);c.size>0&&(this.extensionWatchedFiles.set(i,c),a=c,d=!1)}if(d&&!n&&!o){h(`\u{1F300}: File ${e} is not watched by any extension`,this.options.stdout);return}for(let c of a??[]){let l=this.app.realExtensions.find(f=>f.handle===c),u=l?E(l.directory):this.app.directory;this.handleEventForExtension(t,e,u,s,!1,c)}d&&this.handleEventForExtension(t,e,this.app.directory,s,!0)}this.debouncedEmit()};discoverFileOwners(t){let e=new Set;for(let s of this.app.realExtensions){let i=E(s.directory);i!==this.app.directory&&t.startsWith(`${i}/`)&&this.pathMatchesWatchPatterns(t,s)&&e.add(s.handle)}return e}pathMatchesWatchPatterns(t,e){let{paths:s,ignore:i}=e.watchPatterns(),o=v(E(e.directory),t);return i.some(n=>y(o,n))?!1:s.some(n=>y(o,n))}handleEventForExtension(t,e,s,i,o,n){let a=e.endsWith(".extension.toml"),d=e===this.app.configPath;switch(t){case"change":if(o)break;a||d?this.pushEvent({type:"extensions_config_updated",path:e,extensionPath:s,extensionHandle:n,startTime:i}):this.pushEvent({type:"file_updated",path:e,extensionPath:s,extensionHandle:n,startTime:i});break;case"add":if(!a){this.pushEvent({type:"file_created",path:e,extensionPath:s,extensionHandle:n,startTime:i});break}let c=0,l=C(e),u=setInterval(()=>{P(x(l,I.lockFile))?(h(`Waiting for extension to complete creation: ${e}
|
|
4
4
|
`),c+=L):(clearInterval(u),this.extensionPaths.push(l),this.pushEvent({type:"extension_folder_created",path:l,extensionPath:s,startTime:i}),this.debouncedEmit()),c>=K&&(clearInterval(u),this.options.stderr.write(`Error loading new extension at path: ${e}.
|