import{loadConfig as r}from"@redocly/openapi-core";import a from"node:path";import{access as e}from"node:fs/promises";import{CONFIG_FILE_NAME as i}from"../../../../constants/common.js";import{getPortalConfigStats as s}from"../../../telemetry/get-portal-config-stats.js";const p=async({context:o})=>{const t=a.join(o.fs.cwd,i),n=await f(t);return{version:"2",name:"buildContext",value:s(n)}};async function f(o){try{await e(o)}catch{return{}}const{resolvedConfig:t}=await r({configPath:o});return t}export{p as getConfigStatsUsage};
