@redocly/cli 2.56.1 → 2.57.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/lib/chunks/{XXP75TZV.js → 2PGNW76R.js} +1 -1
- package/lib/chunks/{MGBZEDQJ.js → 3I7XLHPY.js} +1 -1
- package/lib/chunks/{OGD5QBKV.js → 3QGJWJKQ.js} +1 -1
- package/lib/chunks/{BNT5BXON.js → 4HG5PCQA.js} +1 -1
- package/lib/chunks/{E5XZY3Q2.js → 4JBK2BSL.js} +1 -1
- package/lib/chunks/{MB5P3K2R.js → 4SXCDBB7.js} +1 -1
- package/lib/chunks/{VCODEISK.js → 52MXI4PU.js} +1 -1
- package/lib/chunks/{XJ7LVK2B.js → 5FVKAWNE.js} +1 -1
- package/lib/chunks/{XACYMDME.js → 5UDC2SWY.js} +1 -1
- package/lib/chunks/{MU74CSJJ.js → 65AQJO4M.js} +2 -2
- package/lib/chunks/{OKP4XLDY.js → 664FDTDV.js} +1 -1
- package/lib/chunks/{DLPIGJ4V.js → 7EB22KXX.js} +1 -1
- package/lib/chunks/{HJZMPHXS.js → 7XKYPQPI.js} +1 -1
- package/lib/chunks/{35XUUJLG.js → AOCVSFC3.js} +1 -1
- package/lib/chunks/{DJ2P263F.js → ARDTVDGR.js} +1 -1
- package/lib/chunks/{I7GIWE3P.js → CWEET26O.js} +1 -1
- package/lib/chunks/{6BC7FVBU.js → D7WNH6Z5.js} +1 -1
- package/lib/chunks/{DCVTFQBO.js → DMW5VJBT.js} +1 -1
- package/lib/chunks/{3W3OLLTF.js → DT66L2TO.js} +1 -1
- package/lib/chunks/{VD6XNXNY.js → EDU3YBRA.js} +1 -1
- package/lib/chunks/{ISV7E3WY.js → F57WBWGV.js} +2 -2
- package/lib/chunks/{SRIYNICE.js → F5V42ZYY.js} +1 -1
- package/lib/chunks/{HDOITPQ3.js → FDOONAMV.js} +1 -1
- package/lib/chunks/{FUETBXGV.js → GEWI247R.js} +1 -1
- package/lib/chunks/{UVP374Z3.js → GHOLYNZA.js} +1 -1
- package/lib/chunks/{25UBBA3J.js → GVJFU4AP.js} +1 -1
- package/lib/chunks/{2M6C5LHI.js → H5OX3UOD.js} +1 -1
- package/lib/chunks/{R5EOHC5A.js → IDI3SURO.js} +1 -1
- package/lib/chunks/{PJRRECUU.js → J3DL5HGI.js} +1 -1
- package/lib/chunks/{MRVYTOFX.js → JMFIKCPX.js} +1 -1
- package/lib/chunks/{M3P4YXWZ.js → K2ENYHHD.js} +1 -1
- package/lib/chunks/{FX2A3GCS.js → LI6IH6DJ.js} +1 -1
- package/lib/chunks/{RAZQQ2DW.js → LJPUHAWE.js} +1 -1
- package/lib/chunks/{W5WXQVTO.js → LUW2ZJJO.js} +1 -1
- package/lib/chunks/{ZOVYQ36P.js → M4YE5ALG.js} +46 -46
- package/lib/chunks/{XJSNA6VQ.js → MKS4O6F4.js} +2 -2
- package/lib/chunks/{I6CD22RU.js → MZWBJKK2.js} +1 -1
- package/lib/chunks/{5TJ3WQMW.js → N2GTHB37.js} +1 -1
- package/lib/chunks/{YW2GBLJX.js → NALRPITK.js} +1 -1
- package/lib/chunks/{G47ZYA3C.js → OM4VGI2Q.js} +1 -1
- package/lib/chunks/{A5VZWAMI.js → OR3KBRCI.js} +1 -1
- package/lib/chunks/{QAC4XUNG.js → P7A7BCIN.js} +1 -1
- package/lib/chunks/{MTHNGTMB.js → QDSAT32N.js} +1 -1
- package/lib/chunks/{MS356BQ6.js → R2FG6TUX.js} +1 -1
- package/lib/chunks/{7ARFLNUA.js → S5PUZGYS.js} +1 -1
- package/lib/chunks/{ZCIVIBWW.js → SRCGYHDN.js} +1 -1
- package/lib/chunks/{Z22TFV6U.js → UXFJO2OQ.js} +1 -1
- package/lib/chunks/{5CEXCXYZ.js → VBHLPG5Q.js} +1 -1
- package/lib/chunks/{P6LCRZC4.js → VE7VT5PT.js} +1 -1
- package/lib/chunks/{NV7DJMMF.js → VIPV4IEH.js} +1 -1
- package/lib/chunks/{IGD6TJGQ.js → VT3BHT6S.js} +3 -3
- package/lib/chunks/{VTGQPPGI.js → VUU57INZ.js} +1 -1
- package/lib/chunks/{2UTQDU6B.js → VYHYEZI5.js} +1 -1
- package/lib/chunks/{7QLACFLT.js → WKCOTH3C.js} +1 -1
- package/lib/chunks/{CXUJFJ3V.js → X5NXRMUW.js} +1 -1
- package/lib/chunks/{JO2R43LS.js → XTTR5PBC.js} +1 -1
- package/lib/chunks/{VUKQLVFA.js → XYKNLM5G.js} +1 -1
- package/lib/chunks/{D7OG7544.js → Y2AFRRAT.js} +1 -1
- package/lib/chunks/{2KLHD2U7.js → YDVOCOBI.js} +1 -1
- package/lib/chunks/{T3LLCSAJ.js → YEACSN2C.js} +1 -1
- package/lib/chunks/{PIMM4UUT.js → YFI3NLJF.js} +1 -1
- package/lib/chunks/{IXUAYOCK.js → YMDFCK3F.js} +1 -1
- package/lib/chunks/{VMGZLFL4.js → YOBULQYM.js} +1 -1
- package/lib/chunks/{HSBHQBL2.js → YUNIBLZR.js} +1 -1
- package/lib/chunks/{TWIJOWYT.js → ZBOUASE7.js} +1 -1
- package/lib/chunks/{ALAAZCRE.js → ZFJHZEI3.js} +1 -1
- package/lib/chunks/{IRZBI5PN.js → ZVXAH4QD.js} +1 -1
- package/lib/eject-assets/generators/cli/docs.ts +1 -1
- package/lib/eject-assets/generators/cli/engine-source.ts +1 -1
- package/lib/eject-assets/generators/cli/index.ts +2 -2
- package/lib/eject-assets/generators/cli/render.ts +1 -1
- package/lib/eject-assets/generators/go/client.ts +1 -1
- package/lib/eject-assets/generators/go/descriptor.ts +1 -1
- package/lib/eject-assets/generators/go/index.ts +2 -2
- package/lib/eject-assets/generators/go/models.ts +1 -1
- package/lib/eject-assets/generators/go/naming.ts +1 -1
- package/lib/eject-assets/generators/go/operations.ts +1 -1
- package/lib/eject-assets/generators/go/pagination.ts +1 -1
- package/lib/eject-assets/generators/go/types.ts +1 -1
- package/lib/eject-assets/generators/mock/faker.ts +1 -1
- package/lib/eject-assets/generators/mock/index.ts +2 -2
- package/lib/eject-assets/generators/mock/render.ts +1 -1
- package/lib/eject-assets/generators/mock/sample.ts +1 -1
- package/lib/eject-assets/generators/mock/values.ts +1 -1
- package/lib/eject-assets/generators/php/client.ts +1 -1
- package/lib/eject-assets/generators/php/descriptor.ts +1 -1
- package/lib/eject-assets/generators/php/index.ts +2 -2
- package/lib/eject-assets/generators/php/models.ts +1 -1
- package/lib/eject-assets/generators/php/naming.ts +1 -1
- package/lib/eject-assets/generators/php/operations.ts +1 -1
- package/lib/eject-assets/generators/php/pagination.ts +1 -1
- package/lib/eject-assets/generators/php/types.ts +1 -1
- package/lib/eject-assets/generators/python/client.ts +1 -1
- package/lib/eject-assets/generators/python/descriptor.ts +1 -1
- package/lib/eject-assets/generators/python/index.ts +2 -2
- package/lib/eject-assets/generators/python/models.ts +1 -1
- package/lib/eject-assets/generators/python/naming.ts +1 -1
- package/lib/eject-assets/generators/python/operations.ts +1 -1
- package/lib/eject-assets/generators/python/pagination.ts +1 -1
- package/lib/eject-assets/generators/python/types.ts +1 -1
- package/lib/eject-assets/generators/swr/index.ts +2 -2
- package/lib/eject-assets/generators/swr/render.ts +1 -1
- package/lib/eject-assets/generators/tanstack-query/index.ts +2 -2
- package/lib/eject-assets/generators/tanstack-query/render.ts +1 -1
- package/lib/eject-assets/generators/transformers/index.ts +2 -2
- package/lib/eject-assets/generators/transformers/render.ts +1 -1
- package/lib/eject-assets/generators/typescript/banner.ts +1 -1
- package/lib/eject-assets/generators/typescript/client.ts +1 -1
- package/lib/eject-assets/generators/typescript/descriptor.ts +1 -1
- package/lib/eject-assets/generators/typescript/index.ts +2 -2
- package/lib/eject-assets/generators/typescript/inline-runtime.ts +1 -1
- package/lib/eject-assets/generators/typescript/operation-signature.ts +1 -1
- package/lib/eject-assets/generators/typescript/operation-types.ts +1 -1
- package/lib/eject-assets/generators/typescript/operations.ts +1 -1
- package/lib/eject-assets/generators/typescript/response-headers.ts +1 -1
- package/lib/eject-assets/generators/typescript/type-guards.ts +1 -1
- package/lib/eject-assets/generators/typescript/types.ts +1 -1
- package/lib/eject-assets/generators/zod/index.ts +2 -2
- package/lib/eject-assets/generators/zod/schemas.ts +1 -1
- package/lib/index.js +5 -5
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
5
5
|
const require = __createRequire(import.meta.url);
|
|
6
6
|
var __filename = __fileURLToPath(import.meta.url);
|
|
7
7
|
var __dirname = __pathDirname(__filename);
|
|
8
|
-
import{a as Vn,f as ee}from"./chunks/U5DIFWGH.js";import{c as Bn}from"./chunks/4PTNG4EI.js";import{a as Xn}from"./chunks/25UBBA3J.js";import{a as xa,b as Qn,c as Zn}from"./chunks/GHSNC2OX.js";import{a as Jn,c as Vt,d as Rr,e as ti,g as ri}from"./chunks/TZMWTSOQ.js";import{a as Fe,b as kn,c as Hn}from"./chunks/I7GIWE3P.js";import{a as ei}from"./chunks/QAC4XUNG.js";import{a as Ra}from"./chunks/LRUXN6H5.js";import{a as Yn,t as Kn}from"./chunks/MGBZEDQJ.js";import{C as Fn,F as zn,P as Un,T as xr,X as ne,Y as Ht,Z as Gn,a as Dn,c as we,ca as xe,da as Wn,t as Mn}from"./chunks/ZOVYQ36P.js";import"./chunks/NEWT5A6S.js";import{a as Ue,c as z,e as Pt}from"./chunks/RFWIIJFG.js";var wt=z((od,ni)=>{"use strict";var va="2.0.0",ja=Number.MAX_SAFE_INTEGER||9007199254740991,$a=16,Ia=250,Pa=["major","premajor","minor","preminor","patch","prepatch","prerelease"];ni.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:$a,MAX_SAFE_BUILD_LENGTH:Ia,MAX_SAFE_INTEGER:ja,RELEASE_TYPES:Pa,SEMVER_SPEC_VERSION:va,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Lt=z((ad,ii)=>{"use strict";var La=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};ii.exports=La});var Ot=z((Ge,si)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:vr,MAX_SAFE_BUILD_LENGTH:Na,MAX_LENGTH:Ta}=wt(),qa=Lt();Ge=si.exports={};var Da=Ge.re=[],Ma=Ge.safeRe=[],x=Ge.src=[],Fa=Ge.safeSrc=[],R=Ge.t={},za=0,jr="[a-zA-Z0-9-]",Ua=[["\\s",1],["\\d",Ta],[jr,Na]],Ga=r=>{for(let[e,t]of Ua)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},G=(r,e,t)=>{let n=Ga(e),i=za++;qa(r,i,e),R[r]=i,x[i]=e,Fa[i]=n,Da[i]=new RegExp(e,t?"g":void 0),Ma[i]=new RegExp(n,t?"g":void 0)};G("NUMERICIDENTIFIER","0|[1-9]\\d*");G("NUMERICIDENTIFIERLOOSE","\\d+");G("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${jr}*`);G("MAINVERSION",`(${x[R.NUMERICIDENTIFIER]})\\.(${x[R.NUMERICIDENTIFIER]})\\.(${x[R.NUMERICIDENTIFIER]})`);G("MAINVERSIONLOOSE",`(${x[R.NUMERICIDENTIFIERLOOSE]})\\.(${x[R.NUMERICIDENTIFIERLOOSE]})\\.(${x[R.NUMERICIDENTIFIERLOOSE]})`);G("PRERELEASEIDENTIFIER",`(?:${x[R.NONNUMERICIDENTIFIER]}|${x[R.NUMERICIDENTIFIER]})`);G("PRERELEASEIDENTIFIERLOOSE",`(?:${x[R.NONNUMERICIDENTIFIER]}|${x[R.NUMERICIDENTIFIERLOOSE]})`);G("PRERELEASE",`(?:-(${x[R.PRERELEASEIDENTIFIER]}(?:\\.${x[R.PRERELEASEIDENTIFIER]})*))`);G("PRERELEASELOOSE",`(?:-?(${x[R.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${x[R.PRERELEASEIDENTIFIERLOOSE]})*))`);G("BUILDIDENTIFIER",`${jr}+`);G("BUILD",`(?:\\+(${x[R.BUILDIDENTIFIER]}(?:\\.${x[R.BUILDIDENTIFIER]})*))`);G("FULLPLAIN",`v?${x[R.MAINVERSION]}${x[R.PRERELEASE]}?${x[R.BUILD]}?`);G("FULL",`^${x[R.FULLPLAIN]}$`);G("LOOSEPLAIN",`[v=\\s]*${x[R.MAINVERSIONLOOSE]}${x[R.PRERELEASELOOSE]}?${x[R.BUILD]}?`);G("LOOSE",`^${x[R.LOOSEPLAIN]}$`);G("GTLT","((?:<|>)?=?)");G("XRANGEIDENTIFIERLOOSE",`${x[R.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);G("XRANGEIDENTIFIER",`${x[R.NUMERICIDENTIFIER]}|x|X|\\*`);G("XRANGEPLAIN",`[v=\\s]*(${x[R.XRANGEIDENTIFIER]})(?:\\.(${x[R.XRANGEIDENTIFIER]})(?:\\.(${x[R.XRANGEIDENTIFIER]})(?:${x[R.PRERELEASE]})?${x[R.BUILD]}?)?)?`);G("XRANGEPLAINLOOSE",`[v=\\s]*(${x[R.XRANGEIDENTIFIERLOOSE]})(?:\\.(${x[R.XRANGEIDENTIFIERLOOSE]})(?:\\.(${x[R.XRANGEIDENTIFIERLOOSE]})(?:${x[R.PRERELEASELOOSE]})?${x[R.BUILD]}?)?)?`);G("XRANGE",`^${x[R.GTLT]}\\s*${x[R.XRANGEPLAIN]}$`);G("XRANGELOOSE",`^${x[R.GTLT]}\\s*${x[R.XRANGEPLAINLOOSE]}$`);G("COERCEPLAIN",`(^|[^\\d])(\\d{1,${vr}})(?:\\.(\\d{1,${vr}}))?(?:\\.(\\d{1,${vr}}))?`);G("COERCE",`${x[R.COERCEPLAIN]}(?:$|[^\\d])`);G("COERCEFULL",x[R.COERCEPLAIN]+`(?:${x[R.PRERELEASE]})?(?:${x[R.BUILD]})?(?:$|[^\\d])`);G("COERCERTL",x[R.COERCE],!0);G("COERCERTLFULL",x[R.COERCEFULL],!0);G("LONETILDE","(?:~>?)");G("TILDETRIM",`(\\s*)${x[R.LONETILDE]}\\s+`,!0);Ge.tildeTrimReplace="$1~";G("TILDE",`^${x[R.LONETILDE]}${x[R.XRANGEPLAIN]}$`);G("TILDELOOSE",`^${x[R.LONETILDE]}${x[R.XRANGEPLAINLOOSE]}$`);G("LONECARET","(?:\\^)");G("CARETTRIM",`(\\s*)${x[R.LONECARET]}\\s+`,!0);Ge.caretTrimReplace="$1^";G("CARET",`^${x[R.LONECARET]}${x[R.XRANGEPLAIN]}$`);G("CARETLOOSE",`^${x[R.LONECARET]}${x[R.XRANGEPLAINLOOSE]}$`);G("COMPARATORLOOSE",`^${x[R.GTLT]}\\s*(${x[R.LOOSEPLAIN]})$|^$`);G("COMPARATOR",`^${x[R.GTLT]}\\s*(${x[R.FULLPLAIN]})$|^$`);G("COMPARATORTRIM",`(\\s*)${x[R.GTLT]}\\s*(${x[R.LOOSEPLAIN]}|${x[R.XRANGEPLAIN]})`,!0);Ge.comparatorTrimReplace="$1$2$3";G("HYPHENRANGE",`^\\s*(${x[R.XRANGEPLAIN]})\\s+-\\s+(${x[R.XRANGEPLAIN]})\\s*$`);G("HYPHENRANGELOOSE",`^\\s*(${x[R.XRANGEPLAINLOOSE]})\\s+-\\s+(${x[R.XRANGEPLAINLOOSE]})\\s*$`);G("STAR","(<|>)?=?\\s*\\*");G("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");G("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Bt=z((cd,oi)=>{"use strict";var Wa=Object.freeze({loose:!0}),ka=Object.freeze({}),Ha=r=>r?typeof r!="object"?Wa:r:ka;oi.exports=Ha});var $r=z((ld,li)=>{"use strict";var ai=/^[0-9]+$/,ci=(r,e)=>{if(typeof r=="number"&&typeof e=="number")return r===e?0:r<e?-1:1;let t=ai.test(r),n=ai.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},Va=(r,e)=>ci(e,r);li.exports={compareIdentifiers:ci,rcompareIdentifiers:Va}});var me=z((ud,fi)=>{"use strict";var Yt=Lt(),{MAX_LENGTH:ui,MAX_SAFE_INTEGER:Kt}=wt(),{safeRe:Xt,t:Jt}=Ot(),Ba=Bt(),{compareIdentifiers:Ir}=$r(),Ya=(r,e)=>{let t=e.split(".");if(t.length>r.length)return!1;for(let n=0;n<t.length;n++)if(Ir(r[n],t[n])!==0)return!1;return!0},Pr=class r{constructor(e,t){if(t=Ba(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ui)throw new TypeError(`version is longer than ${ui} characters`);Yt("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?Xt[Jt.LOOSE]:Xt[Jt.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Kt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Kt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Kt||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<Kt)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Yt("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof r||(e=new r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],i=e.prerelease[t];if(Yt("prerelease compare",t,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Ir(n,i)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let n=this.build[t],i=e.build[t];if(Yt("build compare",t,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Ir(n,i)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(t){let i=`-${t}`.match(this.options.loose?Xt[Jt.PRERELEASELOOSE]:Xt[Jt.PRERELEASE]);if(!i||i[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(t){let s=[t,i];if(n===!1&&(s=[t]),Ya(this.prerelease,t)){let o=this.prerelease[t.split(".").length];isNaN(o)&&(this.prerelease=s)}else this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};fi.exports=Pr});var Qe=z((fd,pi)=>{"use strict";var di=me(),Ka=(r,e,t=!1)=>{if(r instanceof di)return r;try{return new di(r,e)}catch(n){if(!t)return null;throw n}};pi.exports=Ka});var mi=z((dd,hi)=>{"use strict";var Xa=Qe(),Ja=(r,e)=>{let t=Xa(r,e);return t?t.version:null};hi.exports=Ja});var yi=z((pd,gi)=>{"use strict";var Qa=Qe(),Za=(r,e)=>{let t=Qa(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};gi.exports=Za});var wi=z((hd,Ei)=>{"use strict";var bi=me(),ec=(r,e,t,n,i)=>{typeof t=="string"&&(i=n,n=t,t=void 0);try{return new bi(r instanceof bi?r.version:r,t).inc(e,n,i).version}catch{return null}};Ei.exports=ec});var _i=z((md,Ai)=>{"use strict";var Oi=Qe(),tc=(r,e)=>{let t=Oi(r,null,!0),n=Oi(e,null,!0),i=t.compare(n);if(i===0)return null;let s=i>0,o=s?t:n,c=s?n:t,u=!!o.prerelease.length;if(!!c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(c.compareMain(o)===0)return c.minor&&!c.patch?"minor":"patch"}let h=u?"pre":"";return t.major!==n.major?h+"major":t.minor!==n.minor?h+"minor":t.patch!==n.patch?h+"patch":"prerelease"};Ai.exports=tc});var Ci=z((gd,Si)=>{"use strict";var rc=me(),nc=(r,e)=>new rc(r,e).major;Si.exports=nc});var Ri=z((yd,xi)=>{"use strict";var ic=me(),sc=(r,e)=>new ic(r,e).minor;xi.exports=sc});var ji=z((bd,vi)=>{"use strict";var oc=me(),ac=(r,e)=>new oc(r,e).patch;vi.exports=ac});var Ii=z((Ed,$i)=>{"use strict";var cc=Qe(),lc=(r,e)=>{let t=cc(r,e);return t&&t.prerelease.length?t.prerelease:null};$i.exports=lc});var Ie=z((wd,Li)=>{"use strict";var Pi=me(),uc=(r,e,t)=>new Pi(r,t).compare(new Pi(e,t));Li.exports=uc});var Ti=z((Od,Ni)=>{"use strict";var fc=Ie(),dc=(r,e,t)=>fc(e,r,t);Ni.exports=dc});var Di=z((Ad,qi)=>{"use strict";var pc=Ie(),hc=(r,e)=>pc(r,e,!0);qi.exports=hc});var Qt=z((_d,Fi)=>{"use strict";var Mi=me(),mc=(r,e,t)=>{let n=new Mi(r,t),i=new Mi(e,t);return n.compare(i)||n.compareBuild(i)};Fi.exports=mc});var Ui=z((Sd,zi)=>{"use strict";var gc=Qt(),yc=(r,e)=>r.sort((t,n)=>gc(t,n,e));zi.exports=yc});var Wi=z((Cd,Gi)=>{"use strict";var bc=Qt(),Ec=(r,e)=>r.sort((t,n)=>bc(n,t,e));Gi.exports=Ec});var Nt=z((xd,ki)=>{"use strict";var wc=Ie(),Oc=(r,e,t)=>wc(r,e,t)>0;ki.exports=Oc});var Zt=z((Rd,Hi)=>{"use strict";var Ac=Ie(),_c=(r,e,t)=>Ac(r,e,t)<0;Hi.exports=_c});var Lr=z((vd,Vi)=>{"use strict";var Sc=Ie(),Cc=(r,e,t)=>Sc(r,e,t)===0;Vi.exports=Cc});var Nr=z((jd,Bi)=>{"use strict";var xc=Ie(),Rc=(r,e,t)=>xc(r,e,t)!==0;Bi.exports=Rc});var er=z(($d,Yi)=>{"use strict";var vc=Ie(),jc=(r,e,t)=>vc(r,e,t)>=0;Yi.exports=jc});var tr=z((Id,Ki)=>{"use strict";var $c=Ie(),Ic=(r,e,t)=>$c(r,e,t)<=0;Ki.exports=Ic});var Tr=z((Pd,Xi)=>{"use strict";var Pc=Lr(),Lc=Nr(),Nc=Nt(),Tc=er(),qc=Zt(),Dc=tr(),Mc=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Pc(r,t,n);case"!=":return Lc(r,t,n);case">":return Nc(r,t,n);case">=":return Tc(r,t,n);case"<":return qc(r,t,n);case"<=":return Dc(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Xi.exports=Mc});var Qi=z((Ld,Ji)=>{"use strict";var Fc=me(),zc=Qe(),{safeRe:rr,t:nr}=Ot(),Uc=(r,e)=>{if(r instanceof Fc)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(e.includePrerelease?rr[nr.COERCEFULL]:rr[nr.COERCE]);else{let u=e.includePrerelease?rr[nr.COERCERTLFULL]:rr[nr.COERCERTL],p;for(;(p=u.exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||p.index+p[0].length!==t.index+t[0].length)&&(t=p),u.lastIndex=p.index+p[1].length+p[2].length;u.lastIndex=-1}if(t===null)return null;let n=t[2],i=t[3]||"0",s=t[4]||"0",o=e.includePrerelease&&t[5]?`-${t[5]}`:"",c=e.includePrerelease&&t[6]?`+${t[6]}`:"";return zc(`${n}.${i}.${s}${o}${c}`,e)};Ji.exports=Uc});var es=z((Nd,Zi)=>{"use strict";var Gc=Qe(),Wc=wt(),kc=me(),Hc=(r,e,t)=>{if(!Wc.RELEASE_TYPES.includes(e))return null;let n=Vc(r,t);return n&&Bc(n,e)},Vc=(r,e)=>{let t=r instanceof kc?r.version:r;return Gc(t,e)},Bc=(r,e)=>{if(Yc(e))return r.version;switch(r.prerelease=[],e){case"major":r.minor=0,r.patch=0;break;case"minor":r.patch=0;break}return r.format()},Yc=r=>r.startsWith("pre");Zi.exports=Hc});var rs=z((Td,ts)=>{"use strict";var qr=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(e,t)}return this}};ts.exports=qr});var Pe=z((qd,os)=>{"use strict";var Kc=/\s+/g,Dr=class r{constructor(e,t){if(t=Jc(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof Mr)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(Kc," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!is(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&ol(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(sl,"");let n=((this.options.includePrerelease&&nl)|(this.options.loose&&il))+":"+e,i=ns.get(n);if(i)return i;let s=this.options.loose,o=s?Oe[ge.HYPHENRANGELOOSE]:Oe[ge.HYPHENRANGE];e=e.replace(o,yl(this.options.includePrerelease)),te("hyphen replace",e),e=e.replace(Oe[ge.COMPARATORTRIM],el),te("comparator trim",e),e=e.replace(Oe[ge.TILDETRIM],tl),te("tilde trim",e),e=e.replace(Oe[ge.CARETTRIM],rl),te("caret trim",e);let c=e.split(" ").map(l=>al(l,this.options)).join(" ").split(/\s+/).map(l=>gl(l,this.options));s&&(c=c.filter(l=>(te("loose invalid filter",l,this.options),!!l.match(Oe[ge.COMPARATORLOOSE])))),te("range list",c);let u=new Map,p=c.map(l=>new Mr(l,this.options));for(let l of p){if(is(l))return[l];u.set(l.value,l)}u.size>1&&u.has("")&&u.delete("");let h=[...u.values()];return ns.set(n,h),h}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>ss(n,t)&&e.set.some(i=>ss(i,t)&&n.every(s=>i.every(o=>s.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Qc(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(bl(this.set[t],e,this.options))return!0;return!1}};os.exports=Dr;var Xc=rs(),ns=new Xc,Jc=Bt(),Mr=Tt(),te=Lt(),Qc=me(),{safeRe:Oe,src:Zc,t:ge,comparatorTrimReplace:el,tildeTrimReplace:tl,caretTrimReplace:rl}=Ot(),{FLAG_INCLUDE_PRERELEASE:nl,FLAG_LOOSE:il}=wt(),sl=new RegExp(Zc[ge.BUILD],"g"),is=r=>r.value==="<0.0.0-0",ol=r=>r.value==="",ss=(r,e)=>{let t=!0,n=r.slice(),i=n.pop();for(;t&&n.length;)t=n.every(s=>i.intersects(s,e)),i=n.pop();return t},al=(r,e)=>(r=r.replace(Oe[ge.BUILD],""),te("comp",r,e),r=fl(r,e),te("caret",r),r=ll(r,e),te("tildes",r),r=pl(r,e),te("xrange",r),r=ml(r,e),te("stars",r),r),de=r=>!r||r.toLowerCase()==="x"||r==="*",cl=(r,e,t)=>de(r)&&!de(e)||de(e)&&t&&!de(t),ll=(r,e)=>r.trim().split(/\s+/).map(t=>ul(t,e)).join(" "),ul=(r,e)=>{let t=e.loose?Oe[ge.TILDELOOSE]:Oe[ge.TILDE],n=e.includePrerelease?"-0":"";return r.replace(t,(i,s,o,c,u)=>{te("tilde",r,i,s,o,c,u);let p;return de(s)?p="":de(o)?p=`>=${s}.0.0${n} <${+s+1}.0.0-0`:de(c)?p=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:u?(te("replaceTilde pr",u),p=`>=${s}.${o}.${c}-${u} <${s}.${+o+1}.0-0`):p=`>=${s}.${o}.${c} <${s}.${+o+1}.0-0`,te("tilde return",p),p})},fl=(r,e)=>r.trim().split(/\s+/).map(t=>dl(t,e)).join(" "),dl=(r,e)=>{te("caret",r,e);let t=e.loose?Oe[ge.CARETLOOSE]:Oe[ge.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(i,s,o,c,u)=>{te("caret",r,i,s,o,c,u);let p;return de(s)?p="":de(o)?p=`>=${s}.0.0${n} <${+s+1}.0.0-0`:de(c)?s==="0"?p=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:p=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:u?(te("replaceCaret pr",u),s==="0"?o==="0"?p=`>=${s}.${o}.${c}-${u} <${s}.${o}.${+c+1}-0`:p=`>=${s}.${o}.${c}-${u} <${s}.${+o+1}.0-0`:p=`>=${s}.${o}.${c}-${u} <${+s+1}.0.0-0`):(te("no pr"),s==="0"?o==="0"?p=`>=${s}.${o}.${c} <${s}.${o}.${+c+1}-0`:p=`>=${s}.${o}.${c} <${s}.${+o+1}.0-0`:p=`>=${s}.${o}.${c} <${+s+1}.0.0-0`),te("caret return",p),p})},pl=(r,e)=>(te("replaceXRanges",r,e),r.split(/\s+/).map(t=>hl(t,e)).join(" ")),hl=(r,e)=>{r=r.trim();let t=e.loose?Oe[ge.XRANGELOOSE]:Oe[ge.XRANGE];return r.replace(t,(n,i,s,o,c,u)=>{if(te("xRange",r,n,i,s,o,c,u),cl(s,o,c))return r;let p=de(s),h=p||de(o),l=h||de(c),b=l;return i==="="&&b&&(i=""),u=e.includePrerelease?"-0":"",p?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&b?(h&&(o=0),c=0,i===">"?(i=">=",h?(s=+s+1,o=0,c=0):(o=+o+1,c=0)):i==="<="&&(i="<",h?s=+s+1:o=+o+1),i==="<"&&(u="-0"),n=`${i+s}.${o}.${c}${u}`):h?n=`>=${s}.0.0${u} <${+s+1}.0.0-0`:l&&(n=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),te("xRange return",n),n})},ml=(r,e)=>(te("replaceStars",r,e),r.trim().replace(Oe[ge.STAR],"")),gl=(r,e)=>(te("replaceGTE0",r,e),r.trim().replace(Oe[e.includePrerelease?ge.GTE0PRE:ge.GTE0],"")),yl=r=>(e,t,n,i,s,o,c,u,p,h,l,b)=>(de(n)?t="":de(i)?t=`>=${n}.0.0${r?"-0":""}`:de(s)?t=`>=${n}.${i}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,de(p)?u="":de(h)?u=`<${+p+1}.0.0-0`:de(l)?u=`<${p}.${+h+1}.0-0`:b?u=`<=${p}.${h}.${l}-${b}`:r?u=`<${p}.${h}.${+l+1}-0`:u=`<=${u}`,`${t} ${u}`.trim()),bl=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(te(r[n].semver),r[n].semver!==Mr.ANY&&r[n].semver.prerelease.length>0){let i=r[n].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}});var Tt=z((Dd,ds)=>{"use strict";var qt=Symbol("SemVer ANY"),Ur=class r{static get ANY(){return qt}constructor(e,t){if(t=as(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),zr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===qt?this.value="":this.value=this.operator+this.semver.version,zr("comp",this)}parse(e){let t=this.options.loose?cs[ls.COMPARATORLOOSE]:cs[ls.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new us(n[2],this.options.loose):this.semver=qt}toString(){return this.value}test(e){if(zr("Comparator.test",e,this.options.loose),this.semver===qt||e===qt)return!0;if(typeof e=="string")try{e=new us(e,this.options)}catch{return!1}return Fr(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new fs(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new fs(this.value,t).test(e.semver):(t=as(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Fr(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Fr(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};ds.exports=Ur;var as=Bt(),{safeRe:cs,t:ls}=Ot(),Fr=Tr(),zr=Lt(),us=me(),fs=Pe()});var Dt=z((Md,ps)=>{"use strict";var El=Pe(),wl=(r,e,t)=>{try{e=new El(e,t)}catch{return!1}return e.test(r)};ps.exports=wl});var ms=z((Fd,hs)=>{"use strict";var Ol=Pe(),Al=(r,e)=>new Ol(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));hs.exports=Al});var ys=z((zd,gs)=>{"use strict";var _l=me(),Sl=Pe(),Cl=(r,e,t)=>{let n=null,i=null,s=null;try{s=new Sl(e,t)}catch{return null}return r.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new _l(n,t))}),n};gs.exports=Cl});var Es=z((Ud,bs)=>{"use strict";var xl=me(),Rl=Pe(),vl=(r,e,t)=>{let n=null,i=null,s=null;try{s=new Rl(e,t)}catch{return null}return r.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new xl(n,t))}),n};bs.exports=vl});var As=z((Gd,Os)=>{"use strict";var Gr=me(),jl=Pe(),ws=Nt(),$l=(r,e)=>{r=new jl(r,e);let t=new Gr("0.0.0");if(r.test(t)||(t=new Gr("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){let i=r.set[n],s=null;i.forEach(o=>{let c=new Gr(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||ws(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!t||ws(t,s))&&(t=s)}return t&&r.test(t)?t:null};Os.exports=$l});var Ss=z((Wd,_s)=>{"use strict";var Il=Pe(),Pl=(r,e)=>{try{return new Il(r,e).range||"*"}catch{return null}};_s.exports=Pl});var ir=z((kd,vs)=>{"use strict";var Ll=me(),Rs=Tt(),{ANY:Nl}=Rs,Tl=Pe(),ql=Dt(),Cs=Nt(),xs=Zt(),Dl=tr(),Ml=er(),Fl=(r,e,t,n)=>{r=new Ll(r,n),e=new Tl(e,n);let i,s,o,c,u;switch(t){case">":i=Cs,s=Dl,o=xs,c=">",u=">=";break;case"<":i=xs,s=Ml,o=Cs,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ql(r,e,n))return!1;for(let p=0;p<e.set.length;++p){let h=e.set[p],l=null,b=null;if(h.forEach(m=>{m.semver===Nl&&(m=new Rs(">=0.0.0")),l=l||m,b=b||m,i(m.semver,l.semver,n)?l=m:o(m.semver,b.semver,n)&&(b=m)}),l.operator===c||l.operator===u||(!b.operator||b.operator===c)&&s(r,b.semver))return!1;if(b.operator===u&&o(r,b.semver))return!1}return!0};vs.exports=Fl});var $s=z((Hd,js)=>{"use strict";var zl=ir(),Ul=(r,e,t)=>zl(r,e,">",t);js.exports=Ul});var Ps=z((Vd,Is)=>{"use strict";var Gl=ir(),Wl=(r,e,t)=>Gl(r,e,"<",t);Is.exports=Wl});var Ts=z((Bd,Ns)=>{"use strict";var Ls=Pe(),kl=(r,e,t)=>(r=new Ls(r,t),e=new Ls(e,t),r.intersects(e,t));Ns.exports=kl});var Ds=z((Yd,qs)=>{"use strict";var Hl=Dt(),Vl=Ie();qs.exports=(r,e,t)=>{let n=[],i=null,s=null,o=r.sort((h,l)=>Vl(h,l,t));for(let h of o)Hl(h,e,t)?(s=h,i||(i=h)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let c=[];for(let[h,l]of n)h===l?c.push(h):!l&&h===o[0]?c.push("*"):l?h===o[0]?c.push(`<=${l}`):c.push(`${h} - ${l}`):c.push(`>=${h}`);let u=c.join(" || "),p=typeof e.raw=="string"?e.raw:String(e);return u.length<p.length?u:e}});var Ws=z((Kd,Gs)=>{"use strict";var Ms=Pe(),Hr=Tt(),{ANY:Wr}=Hr,kr=Dt(),Vr=Ie(),Bl=(r,e,t={})=>{if(r===e)return!0;r=new Ms(r,t),e=new Ms(e,t);let n=!1;e:for(let i of r.set){for(let s of e.set){let o=Kl(i,s,t);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},Yl=[new Hr(">=0.0.0-0")],Fs=[new Hr(">=0.0.0")],Kl=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===Wr){if(e.length===1&&e[0].semver===Wr)return!0;t.includePrerelease?r=Yl:r=Fs}if(e.length===1&&e[0].semver===Wr){if(t.includePrerelease)return!0;e=Fs}let n=new Set,i,s;for(let m of r)m.operator===">"||m.operator===">="?i=zs(i,m,t):m.operator==="<"||m.operator==="<="?s=Us(s,m,t):n.add(m.semver);if(n.size>1)return null;let o;if(i&&s){if(o=Vr(i.semver,s.semver,t),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let m of n){if(i&&!kr(m,String(i),t)||s&&!kr(m,String(s),t))return null;for(let w of e)if(!kr(m,String(w),t))return!1;return!0}let c,u,p,h,l=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1,b=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1;l&&l.prerelease.length===1&&s.operator==="<"&&l.prerelease[0]===0&&(l=!1);for(let m of e){if(h=h||m.operator===">"||m.operator===">=",p=p||m.operator==="<"||m.operator==="<=",i){if(b&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===b.major&&m.semver.minor===b.minor&&m.semver.patch===b.patch&&(b=!1),m.operator===">"||m.operator===">="){if(c=zs(i,m,t),c===m&&c!==i)return!1}else if(i.operator===">="&&!m.test(i.semver))return!1}if(s){if(l&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===l.major&&m.semver.minor===l.minor&&m.semver.patch===l.patch&&(l=!1),m.operator==="<"||m.operator==="<="){if(u=Us(s,m,t),u===m&&u!==s)return!1}else if(s.operator==="<="&&!m.test(s.semver))return!1}if(!m.operator&&(s||i)&&o!==0)return!1}return!(i&&p&&!s&&o!==0||s&&h&&!i&&o!==0||b||l)},zs=(r,e,t)=>{if(!r)return e;let n=Vr(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},Us=(r,e,t)=>{if(!r)return e;let n=Vr(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};Gs.exports=Bl});var sr=z((Xd,Vs)=>{"use strict";var Br=Ot(),ks=wt(),Xl=me(),Hs=$r(),Jl=Qe(),Ql=mi(),Zl=yi(),eu=wi(),tu=_i(),ru=Ci(),nu=Ri(),iu=ji(),su=Ii(),ou=Ie(),au=Ti(),cu=Di(),lu=Qt(),uu=Ui(),fu=Wi(),du=Nt(),pu=Zt(),hu=Lr(),mu=Nr(),gu=er(),yu=tr(),bu=Tr(),Eu=Qi(),wu=es(),Ou=Tt(),Au=Pe(),_u=Dt(),Su=ms(),Cu=ys(),xu=Es(),Ru=As(),vu=Ss(),ju=ir(),$u=$s(),Iu=Ps(),Pu=Ts(),Lu=Ds(),Nu=Ws();Vs.exports={parse:Jl,valid:Ql,clean:Zl,inc:eu,diff:tu,major:ru,minor:nu,patch:iu,prerelease:su,compare:ou,rcompare:au,compareLoose:cu,compareBuild:lu,sort:uu,rsort:fu,gt:du,lt:pu,eq:hu,neq:mu,gte:gu,lte:yu,cmp:bu,coerce:Eu,truncate:wu,Comparator:Ou,Range:Au,satisfies:_u,toComparators:Su,maxSatisfying:Cu,minSatisfying:xu,minVersion:Ru,validRange:vu,outside:ju,gtr:$u,ltr:Iu,intersects:Pu,simplifyRange:Lu,subset:Nu,SemVer:Xl,re:Br.re,src:Br.src,tokens:Br.t,SEMVER_SPEC_VERSION:ks.SEMVER_SPEC_VERSION,RELEASE_TYPES:ks.RELEASE_TYPES,compareIdentifiers:Hs.compareIdentifiers,rcompareIdentifiers:Hs.rcompareIdentifiers}});var Bs=Pt(sr(),1);import*as Yr from"node:process";try{let r=Hn?.node;typeof r=="string"&&!Bs.satisfies(Yr.version,r)&&ne.warn(`
|
|
8
|
+
import{a as Vn,f as ee}from"./chunks/U5DIFWGH.js";import{c as Bn}from"./chunks/4PTNG4EI.js";import{a as Xn}from"./chunks/GVJFU4AP.js";import{a as xa,b as Qn,c as Zn}from"./chunks/GHSNC2OX.js";import{a as Jn,c as Vt,d as Rr,e as ti,g as ri}from"./chunks/TZMWTSOQ.js";import{a as Fe,b as kn,c as Hn}from"./chunks/CWEET26O.js";import{a as ei}from"./chunks/P7A7BCIN.js";import{a as Ra}from"./chunks/LRUXN6H5.js";import{a as Yn,t as Kn}from"./chunks/3I7XLHPY.js";import{C as Fn,F as zn,P as Un,T as xr,X as ne,Y as Ht,Z as Gn,a as Dn,c as we,ca as xe,da as Wn,t as Mn}from"./chunks/M4YE5ALG.js";import"./chunks/NEWT5A6S.js";import{a as Ue,c as z,e as Pt}from"./chunks/RFWIIJFG.js";var wt=z((od,ni)=>{"use strict";var va="2.0.0",ja=Number.MAX_SAFE_INTEGER||9007199254740991,$a=16,Ia=250,Pa=["major","premajor","minor","preminor","patch","prepatch","prerelease"];ni.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:$a,MAX_SAFE_BUILD_LENGTH:Ia,MAX_SAFE_INTEGER:ja,RELEASE_TYPES:Pa,SEMVER_SPEC_VERSION:va,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Lt=z((ad,ii)=>{"use strict";var La=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};ii.exports=La});var Ot=z((Ge,si)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:vr,MAX_SAFE_BUILD_LENGTH:Na,MAX_LENGTH:Ta}=wt(),qa=Lt();Ge=si.exports={};var Da=Ge.re=[],Ma=Ge.safeRe=[],x=Ge.src=[],Fa=Ge.safeSrc=[],R=Ge.t={},za=0,jr="[a-zA-Z0-9-]",Ua=[["\\s",1],["\\d",Ta],[jr,Na]],Ga=r=>{for(let[e,t]of Ua)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},G=(r,e,t)=>{let n=Ga(e),i=za++;qa(r,i,e),R[r]=i,x[i]=e,Fa[i]=n,Da[i]=new RegExp(e,t?"g":void 0),Ma[i]=new RegExp(n,t?"g":void 0)};G("NUMERICIDENTIFIER","0|[1-9]\\d*");G("NUMERICIDENTIFIERLOOSE","\\d+");G("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${jr}*`);G("MAINVERSION",`(${x[R.NUMERICIDENTIFIER]})\\.(${x[R.NUMERICIDENTIFIER]})\\.(${x[R.NUMERICIDENTIFIER]})`);G("MAINVERSIONLOOSE",`(${x[R.NUMERICIDENTIFIERLOOSE]})\\.(${x[R.NUMERICIDENTIFIERLOOSE]})\\.(${x[R.NUMERICIDENTIFIERLOOSE]})`);G("PRERELEASEIDENTIFIER",`(?:${x[R.NONNUMERICIDENTIFIER]}|${x[R.NUMERICIDENTIFIER]})`);G("PRERELEASEIDENTIFIERLOOSE",`(?:${x[R.NONNUMERICIDENTIFIER]}|${x[R.NUMERICIDENTIFIERLOOSE]})`);G("PRERELEASE",`(?:-(${x[R.PRERELEASEIDENTIFIER]}(?:\\.${x[R.PRERELEASEIDENTIFIER]})*))`);G("PRERELEASELOOSE",`(?:-?(${x[R.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${x[R.PRERELEASEIDENTIFIERLOOSE]})*))`);G("BUILDIDENTIFIER",`${jr}+`);G("BUILD",`(?:\\+(${x[R.BUILDIDENTIFIER]}(?:\\.${x[R.BUILDIDENTIFIER]})*))`);G("FULLPLAIN",`v?${x[R.MAINVERSION]}${x[R.PRERELEASE]}?${x[R.BUILD]}?`);G("FULL",`^${x[R.FULLPLAIN]}$`);G("LOOSEPLAIN",`[v=\\s]*${x[R.MAINVERSIONLOOSE]}${x[R.PRERELEASELOOSE]}?${x[R.BUILD]}?`);G("LOOSE",`^${x[R.LOOSEPLAIN]}$`);G("GTLT","((?:<|>)?=?)");G("XRANGEIDENTIFIERLOOSE",`${x[R.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);G("XRANGEIDENTIFIER",`${x[R.NUMERICIDENTIFIER]}|x|X|\\*`);G("XRANGEPLAIN",`[v=\\s]*(${x[R.XRANGEIDENTIFIER]})(?:\\.(${x[R.XRANGEIDENTIFIER]})(?:\\.(${x[R.XRANGEIDENTIFIER]})(?:${x[R.PRERELEASE]})?${x[R.BUILD]}?)?)?`);G("XRANGEPLAINLOOSE",`[v=\\s]*(${x[R.XRANGEIDENTIFIERLOOSE]})(?:\\.(${x[R.XRANGEIDENTIFIERLOOSE]})(?:\\.(${x[R.XRANGEIDENTIFIERLOOSE]})(?:${x[R.PRERELEASELOOSE]})?${x[R.BUILD]}?)?)?`);G("XRANGE",`^${x[R.GTLT]}\\s*${x[R.XRANGEPLAIN]}$`);G("XRANGELOOSE",`^${x[R.GTLT]}\\s*${x[R.XRANGEPLAINLOOSE]}$`);G("COERCEPLAIN",`(^|[^\\d])(\\d{1,${vr}})(?:\\.(\\d{1,${vr}}))?(?:\\.(\\d{1,${vr}}))?`);G("COERCE",`${x[R.COERCEPLAIN]}(?:$|[^\\d])`);G("COERCEFULL",x[R.COERCEPLAIN]+`(?:${x[R.PRERELEASE]})?(?:${x[R.BUILD]})?(?:$|[^\\d])`);G("COERCERTL",x[R.COERCE],!0);G("COERCERTLFULL",x[R.COERCEFULL],!0);G("LONETILDE","(?:~>?)");G("TILDETRIM",`(\\s*)${x[R.LONETILDE]}\\s+`,!0);Ge.tildeTrimReplace="$1~";G("TILDE",`^${x[R.LONETILDE]}${x[R.XRANGEPLAIN]}$`);G("TILDELOOSE",`^${x[R.LONETILDE]}${x[R.XRANGEPLAINLOOSE]}$`);G("LONECARET","(?:\\^)");G("CARETTRIM",`(\\s*)${x[R.LONECARET]}\\s+`,!0);Ge.caretTrimReplace="$1^";G("CARET",`^${x[R.LONECARET]}${x[R.XRANGEPLAIN]}$`);G("CARETLOOSE",`^${x[R.LONECARET]}${x[R.XRANGEPLAINLOOSE]}$`);G("COMPARATORLOOSE",`^${x[R.GTLT]}\\s*(${x[R.LOOSEPLAIN]})$|^$`);G("COMPARATOR",`^${x[R.GTLT]}\\s*(${x[R.FULLPLAIN]})$|^$`);G("COMPARATORTRIM",`(\\s*)${x[R.GTLT]}\\s*(${x[R.LOOSEPLAIN]}|${x[R.XRANGEPLAIN]})`,!0);Ge.comparatorTrimReplace="$1$2$3";G("HYPHENRANGE",`^\\s*(${x[R.XRANGEPLAIN]})\\s+-\\s+(${x[R.XRANGEPLAIN]})\\s*$`);G("HYPHENRANGELOOSE",`^\\s*(${x[R.XRANGEPLAINLOOSE]})\\s+-\\s+(${x[R.XRANGEPLAINLOOSE]})\\s*$`);G("STAR","(<|>)?=?\\s*\\*");G("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");G("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Bt=z((cd,oi)=>{"use strict";var Wa=Object.freeze({loose:!0}),ka=Object.freeze({}),Ha=r=>r?typeof r!="object"?Wa:r:ka;oi.exports=Ha});var $r=z((ld,li)=>{"use strict";var ai=/^[0-9]+$/,ci=(r,e)=>{if(typeof r=="number"&&typeof e=="number")return r===e?0:r<e?-1:1;let t=ai.test(r),n=ai.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},Va=(r,e)=>ci(e,r);li.exports={compareIdentifiers:ci,rcompareIdentifiers:Va}});var me=z((ud,fi)=>{"use strict";var Yt=Lt(),{MAX_LENGTH:ui,MAX_SAFE_INTEGER:Kt}=wt(),{safeRe:Xt,t:Jt}=Ot(),Ba=Bt(),{compareIdentifiers:Ir}=$r(),Ya=(r,e)=>{let t=e.split(".");if(t.length>r.length)return!1;for(let n=0;n<t.length;n++)if(Ir(r[n],t[n])!==0)return!1;return!0},Pr=class r{constructor(e,t){if(t=Ba(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ui)throw new TypeError(`version is longer than ${ui} characters`);Yt("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?Xt[Jt.LOOSE]:Xt[Jt.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Kt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Kt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Kt||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<Kt)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Yt("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof r||(e=new r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],i=e.prerelease[t];if(Yt("prerelease compare",t,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Ir(n,i)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let n=this.build[t],i=e.build[t];if(Yt("build compare",t,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Ir(n,i)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(t){let i=`-${t}`.match(this.options.loose?Xt[Jt.PRERELEASELOOSE]:Xt[Jt.PRERELEASE]);if(!i||i[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(t){let s=[t,i];if(n===!1&&(s=[t]),Ya(this.prerelease,t)){let o=this.prerelease[t.split(".").length];isNaN(o)&&(this.prerelease=s)}else this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};fi.exports=Pr});var Qe=z((fd,pi)=>{"use strict";var di=me(),Ka=(r,e,t=!1)=>{if(r instanceof di)return r;try{return new di(r,e)}catch(n){if(!t)return null;throw n}};pi.exports=Ka});var mi=z((dd,hi)=>{"use strict";var Xa=Qe(),Ja=(r,e)=>{let t=Xa(r,e);return t?t.version:null};hi.exports=Ja});var yi=z((pd,gi)=>{"use strict";var Qa=Qe(),Za=(r,e)=>{let t=Qa(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};gi.exports=Za});var wi=z((hd,Ei)=>{"use strict";var bi=me(),ec=(r,e,t,n,i)=>{typeof t=="string"&&(i=n,n=t,t=void 0);try{return new bi(r instanceof bi?r.version:r,t).inc(e,n,i).version}catch{return null}};Ei.exports=ec});var _i=z((md,Ai)=>{"use strict";var Oi=Qe(),tc=(r,e)=>{let t=Oi(r,null,!0),n=Oi(e,null,!0),i=t.compare(n);if(i===0)return null;let s=i>0,o=s?t:n,c=s?n:t,u=!!o.prerelease.length;if(!!c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(c.compareMain(o)===0)return c.minor&&!c.patch?"minor":"patch"}let h=u?"pre":"";return t.major!==n.major?h+"major":t.minor!==n.minor?h+"minor":t.patch!==n.patch?h+"patch":"prerelease"};Ai.exports=tc});var Ci=z((gd,Si)=>{"use strict";var rc=me(),nc=(r,e)=>new rc(r,e).major;Si.exports=nc});var Ri=z((yd,xi)=>{"use strict";var ic=me(),sc=(r,e)=>new ic(r,e).minor;xi.exports=sc});var ji=z((bd,vi)=>{"use strict";var oc=me(),ac=(r,e)=>new oc(r,e).patch;vi.exports=ac});var Ii=z((Ed,$i)=>{"use strict";var cc=Qe(),lc=(r,e)=>{let t=cc(r,e);return t&&t.prerelease.length?t.prerelease:null};$i.exports=lc});var Ie=z((wd,Li)=>{"use strict";var Pi=me(),uc=(r,e,t)=>new Pi(r,t).compare(new Pi(e,t));Li.exports=uc});var Ti=z((Od,Ni)=>{"use strict";var fc=Ie(),dc=(r,e,t)=>fc(e,r,t);Ni.exports=dc});var Di=z((Ad,qi)=>{"use strict";var pc=Ie(),hc=(r,e)=>pc(r,e,!0);qi.exports=hc});var Qt=z((_d,Fi)=>{"use strict";var Mi=me(),mc=(r,e,t)=>{let n=new Mi(r,t),i=new Mi(e,t);return n.compare(i)||n.compareBuild(i)};Fi.exports=mc});var Ui=z((Sd,zi)=>{"use strict";var gc=Qt(),yc=(r,e)=>r.sort((t,n)=>gc(t,n,e));zi.exports=yc});var Wi=z((Cd,Gi)=>{"use strict";var bc=Qt(),Ec=(r,e)=>r.sort((t,n)=>bc(n,t,e));Gi.exports=Ec});var Nt=z((xd,ki)=>{"use strict";var wc=Ie(),Oc=(r,e,t)=>wc(r,e,t)>0;ki.exports=Oc});var Zt=z((Rd,Hi)=>{"use strict";var Ac=Ie(),_c=(r,e,t)=>Ac(r,e,t)<0;Hi.exports=_c});var Lr=z((vd,Vi)=>{"use strict";var Sc=Ie(),Cc=(r,e,t)=>Sc(r,e,t)===0;Vi.exports=Cc});var Nr=z((jd,Bi)=>{"use strict";var xc=Ie(),Rc=(r,e,t)=>xc(r,e,t)!==0;Bi.exports=Rc});var er=z(($d,Yi)=>{"use strict";var vc=Ie(),jc=(r,e,t)=>vc(r,e,t)>=0;Yi.exports=jc});var tr=z((Id,Ki)=>{"use strict";var $c=Ie(),Ic=(r,e,t)=>$c(r,e,t)<=0;Ki.exports=Ic});var Tr=z((Pd,Xi)=>{"use strict";var Pc=Lr(),Lc=Nr(),Nc=Nt(),Tc=er(),qc=Zt(),Dc=tr(),Mc=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Pc(r,t,n);case"!=":return Lc(r,t,n);case">":return Nc(r,t,n);case">=":return Tc(r,t,n);case"<":return qc(r,t,n);case"<=":return Dc(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Xi.exports=Mc});var Qi=z((Ld,Ji)=>{"use strict";var Fc=me(),zc=Qe(),{safeRe:rr,t:nr}=Ot(),Uc=(r,e)=>{if(r instanceof Fc)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(e.includePrerelease?rr[nr.COERCEFULL]:rr[nr.COERCE]);else{let u=e.includePrerelease?rr[nr.COERCERTLFULL]:rr[nr.COERCERTL],p;for(;(p=u.exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||p.index+p[0].length!==t.index+t[0].length)&&(t=p),u.lastIndex=p.index+p[1].length+p[2].length;u.lastIndex=-1}if(t===null)return null;let n=t[2],i=t[3]||"0",s=t[4]||"0",o=e.includePrerelease&&t[5]?`-${t[5]}`:"",c=e.includePrerelease&&t[6]?`+${t[6]}`:"";return zc(`${n}.${i}.${s}${o}${c}`,e)};Ji.exports=Uc});var es=z((Nd,Zi)=>{"use strict";var Gc=Qe(),Wc=wt(),kc=me(),Hc=(r,e,t)=>{if(!Wc.RELEASE_TYPES.includes(e))return null;let n=Vc(r,t);return n&&Bc(n,e)},Vc=(r,e)=>{let t=r instanceof kc?r.version:r;return Gc(t,e)},Bc=(r,e)=>{if(Yc(e))return r.version;switch(r.prerelease=[],e){case"major":r.minor=0,r.patch=0;break;case"minor":r.patch=0;break}return r.format()},Yc=r=>r.startsWith("pre");Zi.exports=Hc});var rs=z((Td,ts)=>{"use strict";var qr=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(e,t)}return this}};ts.exports=qr});var Pe=z((qd,os)=>{"use strict";var Kc=/\s+/g,Dr=class r{constructor(e,t){if(t=Jc(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof Mr)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(Kc," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!is(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&ol(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(sl,"");let n=((this.options.includePrerelease&&nl)|(this.options.loose&&il))+":"+e,i=ns.get(n);if(i)return i;let s=this.options.loose,o=s?Oe[ge.HYPHENRANGELOOSE]:Oe[ge.HYPHENRANGE];e=e.replace(o,yl(this.options.includePrerelease)),te("hyphen replace",e),e=e.replace(Oe[ge.COMPARATORTRIM],el),te("comparator trim",e),e=e.replace(Oe[ge.TILDETRIM],tl),te("tilde trim",e),e=e.replace(Oe[ge.CARETTRIM],rl),te("caret trim",e);let c=e.split(" ").map(l=>al(l,this.options)).join(" ").split(/\s+/).map(l=>gl(l,this.options));s&&(c=c.filter(l=>(te("loose invalid filter",l,this.options),!!l.match(Oe[ge.COMPARATORLOOSE])))),te("range list",c);let u=new Map,p=c.map(l=>new Mr(l,this.options));for(let l of p){if(is(l))return[l];u.set(l.value,l)}u.size>1&&u.has("")&&u.delete("");let h=[...u.values()];return ns.set(n,h),h}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>ss(n,t)&&e.set.some(i=>ss(i,t)&&n.every(s=>i.every(o=>s.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Qc(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(bl(this.set[t],e,this.options))return!0;return!1}};os.exports=Dr;var Xc=rs(),ns=new Xc,Jc=Bt(),Mr=Tt(),te=Lt(),Qc=me(),{safeRe:Oe,src:Zc,t:ge,comparatorTrimReplace:el,tildeTrimReplace:tl,caretTrimReplace:rl}=Ot(),{FLAG_INCLUDE_PRERELEASE:nl,FLAG_LOOSE:il}=wt(),sl=new RegExp(Zc[ge.BUILD],"g"),is=r=>r.value==="<0.0.0-0",ol=r=>r.value==="",ss=(r,e)=>{let t=!0,n=r.slice(),i=n.pop();for(;t&&n.length;)t=n.every(s=>i.intersects(s,e)),i=n.pop();return t},al=(r,e)=>(r=r.replace(Oe[ge.BUILD],""),te("comp",r,e),r=fl(r,e),te("caret",r),r=ll(r,e),te("tildes",r),r=pl(r,e),te("xrange",r),r=ml(r,e),te("stars",r),r),de=r=>!r||r.toLowerCase()==="x"||r==="*",cl=(r,e,t)=>de(r)&&!de(e)||de(e)&&t&&!de(t),ll=(r,e)=>r.trim().split(/\s+/).map(t=>ul(t,e)).join(" "),ul=(r,e)=>{let t=e.loose?Oe[ge.TILDELOOSE]:Oe[ge.TILDE],n=e.includePrerelease?"-0":"";return r.replace(t,(i,s,o,c,u)=>{te("tilde",r,i,s,o,c,u);let p;return de(s)?p="":de(o)?p=`>=${s}.0.0${n} <${+s+1}.0.0-0`:de(c)?p=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:u?(te("replaceTilde pr",u),p=`>=${s}.${o}.${c}-${u} <${s}.${+o+1}.0-0`):p=`>=${s}.${o}.${c} <${s}.${+o+1}.0-0`,te("tilde return",p),p})},fl=(r,e)=>r.trim().split(/\s+/).map(t=>dl(t,e)).join(" "),dl=(r,e)=>{te("caret",r,e);let t=e.loose?Oe[ge.CARETLOOSE]:Oe[ge.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(i,s,o,c,u)=>{te("caret",r,i,s,o,c,u);let p;return de(s)?p="":de(o)?p=`>=${s}.0.0${n} <${+s+1}.0.0-0`:de(c)?s==="0"?p=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:p=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:u?(te("replaceCaret pr",u),s==="0"?o==="0"?p=`>=${s}.${o}.${c}-${u} <${s}.${o}.${+c+1}-0`:p=`>=${s}.${o}.${c}-${u} <${s}.${+o+1}.0-0`:p=`>=${s}.${o}.${c}-${u} <${+s+1}.0.0-0`):(te("no pr"),s==="0"?o==="0"?p=`>=${s}.${o}.${c} <${s}.${o}.${+c+1}-0`:p=`>=${s}.${o}.${c} <${s}.${+o+1}.0-0`:p=`>=${s}.${o}.${c} <${+s+1}.0.0-0`),te("caret return",p),p})},pl=(r,e)=>(te("replaceXRanges",r,e),r.split(/\s+/).map(t=>hl(t,e)).join(" ")),hl=(r,e)=>{r=r.trim();let t=e.loose?Oe[ge.XRANGELOOSE]:Oe[ge.XRANGE];return r.replace(t,(n,i,s,o,c,u)=>{if(te("xRange",r,n,i,s,o,c,u),cl(s,o,c))return r;let p=de(s),h=p||de(o),l=h||de(c),b=l;return i==="="&&b&&(i=""),u=e.includePrerelease?"-0":"",p?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&b?(h&&(o=0),c=0,i===">"?(i=">=",h?(s=+s+1,o=0,c=0):(o=+o+1,c=0)):i==="<="&&(i="<",h?s=+s+1:o=+o+1),i==="<"&&(u="-0"),n=`${i+s}.${o}.${c}${u}`):h?n=`>=${s}.0.0${u} <${+s+1}.0.0-0`:l&&(n=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),te("xRange return",n),n})},ml=(r,e)=>(te("replaceStars",r,e),r.trim().replace(Oe[ge.STAR],"")),gl=(r,e)=>(te("replaceGTE0",r,e),r.trim().replace(Oe[e.includePrerelease?ge.GTE0PRE:ge.GTE0],"")),yl=r=>(e,t,n,i,s,o,c,u,p,h,l,b)=>(de(n)?t="":de(i)?t=`>=${n}.0.0${r?"-0":""}`:de(s)?t=`>=${n}.${i}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,de(p)?u="":de(h)?u=`<${+p+1}.0.0-0`:de(l)?u=`<${p}.${+h+1}.0-0`:b?u=`<=${p}.${h}.${l}-${b}`:r?u=`<${p}.${h}.${+l+1}-0`:u=`<=${u}`,`${t} ${u}`.trim()),bl=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(te(r[n].semver),r[n].semver!==Mr.ANY&&r[n].semver.prerelease.length>0){let i=r[n].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}});var Tt=z((Dd,ds)=>{"use strict";var qt=Symbol("SemVer ANY"),Ur=class r{static get ANY(){return qt}constructor(e,t){if(t=as(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),zr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===qt?this.value="":this.value=this.operator+this.semver.version,zr("comp",this)}parse(e){let t=this.options.loose?cs[ls.COMPARATORLOOSE]:cs[ls.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new us(n[2],this.options.loose):this.semver=qt}toString(){return this.value}test(e){if(zr("Comparator.test",e,this.options.loose),this.semver===qt||e===qt)return!0;if(typeof e=="string")try{e=new us(e,this.options)}catch{return!1}return Fr(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new fs(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new fs(this.value,t).test(e.semver):(t=as(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Fr(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Fr(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};ds.exports=Ur;var as=Bt(),{safeRe:cs,t:ls}=Ot(),Fr=Tr(),zr=Lt(),us=me(),fs=Pe()});var Dt=z((Md,ps)=>{"use strict";var El=Pe(),wl=(r,e,t)=>{try{e=new El(e,t)}catch{return!1}return e.test(r)};ps.exports=wl});var ms=z((Fd,hs)=>{"use strict";var Ol=Pe(),Al=(r,e)=>new Ol(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));hs.exports=Al});var ys=z((zd,gs)=>{"use strict";var _l=me(),Sl=Pe(),Cl=(r,e,t)=>{let n=null,i=null,s=null;try{s=new Sl(e,t)}catch{return null}return r.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new _l(n,t))}),n};gs.exports=Cl});var Es=z((Ud,bs)=>{"use strict";var xl=me(),Rl=Pe(),vl=(r,e,t)=>{let n=null,i=null,s=null;try{s=new Rl(e,t)}catch{return null}return r.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new xl(n,t))}),n};bs.exports=vl});var As=z((Gd,Os)=>{"use strict";var Gr=me(),jl=Pe(),ws=Nt(),$l=(r,e)=>{r=new jl(r,e);let t=new Gr("0.0.0");if(r.test(t)||(t=new Gr("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){let i=r.set[n],s=null;i.forEach(o=>{let c=new Gr(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||ws(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!t||ws(t,s))&&(t=s)}return t&&r.test(t)?t:null};Os.exports=$l});var Ss=z((Wd,_s)=>{"use strict";var Il=Pe(),Pl=(r,e)=>{try{return new Il(r,e).range||"*"}catch{return null}};_s.exports=Pl});var ir=z((kd,vs)=>{"use strict";var Ll=me(),Rs=Tt(),{ANY:Nl}=Rs,Tl=Pe(),ql=Dt(),Cs=Nt(),xs=Zt(),Dl=tr(),Ml=er(),Fl=(r,e,t,n)=>{r=new Ll(r,n),e=new Tl(e,n);let i,s,o,c,u;switch(t){case">":i=Cs,s=Dl,o=xs,c=">",u=">=";break;case"<":i=xs,s=Ml,o=Cs,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ql(r,e,n))return!1;for(let p=0;p<e.set.length;++p){let h=e.set[p],l=null,b=null;if(h.forEach(m=>{m.semver===Nl&&(m=new Rs(">=0.0.0")),l=l||m,b=b||m,i(m.semver,l.semver,n)?l=m:o(m.semver,b.semver,n)&&(b=m)}),l.operator===c||l.operator===u||(!b.operator||b.operator===c)&&s(r,b.semver))return!1;if(b.operator===u&&o(r,b.semver))return!1}return!0};vs.exports=Fl});var $s=z((Hd,js)=>{"use strict";var zl=ir(),Ul=(r,e,t)=>zl(r,e,">",t);js.exports=Ul});var Ps=z((Vd,Is)=>{"use strict";var Gl=ir(),Wl=(r,e,t)=>Gl(r,e,"<",t);Is.exports=Wl});var Ts=z((Bd,Ns)=>{"use strict";var Ls=Pe(),kl=(r,e,t)=>(r=new Ls(r,t),e=new Ls(e,t),r.intersects(e,t));Ns.exports=kl});var Ds=z((Yd,qs)=>{"use strict";var Hl=Dt(),Vl=Ie();qs.exports=(r,e,t)=>{let n=[],i=null,s=null,o=r.sort((h,l)=>Vl(h,l,t));for(let h of o)Hl(h,e,t)?(s=h,i||(i=h)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let c=[];for(let[h,l]of n)h===l?c.push(h):!l&&h===o[0]?c.push("*"):l?h===o[0]?c.push(`<=${l}`):c.push(`${h} - ${l}`):c.push(`>=${h}`);let u=c.join(" || "),p=typeof e.raw=="string"?e.raw:String(e);return u.length<p.length?u:e}});var Ws=z((Kd,Gs)=>{"use strict";var Ms=Pe(),Hr=Tt(),{ANY:Wr}=Hr,kr=Dt(),Vr=Ie(),Bl=(r,e,t={})=>{if(r===e)return!0;r=new Ms(r,t),e=new Ms(e,t);let n=!1;e:for(let i of r.set){for(let s of e.set){let o=Kl(i,s,t);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},Yl=[new Hr(">=0.0.0-0")],Fs=[new Hr(">=0.0.0")],Kl=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===Wr){if(e.length===1&&e[0].semver===Wr)return!0;t.includePrerelease?r=Yl:r=Fs}if(e.length===1&&e[0].semver===Wr){if(t.includePrerelease)return!0;e=Fs}let n=new Set,i,s;for(let m of r)m.operator===">"||m.operator===">="?i=zs(i,m,t):m.operator==="<"||m.operator==="<="?s=Us(s,m,t):n.add(m.semver);if(n.size>1)return null;let o;if(i&&s){if(o=Vr(i.semver,s.semver,t),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let m of n){if(i&&!kr(m,String(i),t)||s&&!kr(m,String(s),t))return null;for(let w of e)if(!kr(m,String(w),t))return!1;return!0}let c,u,p,h,l=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1,b=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1;l&&l.prerelease.length===1&&s.operator==="<"&&l.prerelease[0]===0&&(l=!1);for(let m of e){if(h=h||m.operator===">"||m.operator===">=",p=p||m.operator==="<"||m.operator==="<=",i){if(b&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===b.major&&m.semver.minor===b.minor&&m.semver.patch===b.patch&&(b=!1),m.operator===">"||m.operator===">="){if(c=zs(i,m,t),c===m&&c!==i)return!1}else if(i.operator===">="&&!m.test(i.semver))return!1}if(s){if(l&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===l.major&&m.semver.minor===l.minor&&m.semver.patch===l.patch&&(l=!1),m.operator==="<"||m.operator==="<="){if(u=Us(s,m,t),u===m&&u!==s)return!1}else if(s.operator==="<="&&!m.test(s.semver))return!1}if(!m.operator&&(s||i)&&o!==0)return!1}return!(i&&p&&!s&&o!==0||s&&h&&!i&&o!==0||b||l)},zs=(r,e,t)=>{if(!r)return e;let n=Vr(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},Us=(r,e,t)=>{if(!r)return e;let n=Vr(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};Gs.exports=Bl});var sr=z((Xd,Vs)=>{"use strict";var Br=Ot(),ks=wt(),Xl=me(),Hs=$r(),Jl=Qe(),Ql=mi(),Zl=yi(),eu=wi(),tu=_i(),ru=Ci(),nu=Ri(),iu=ji(),su=Ii(),ou=Ie(),au=Ti(),cu=Di(),lu=Qt(),uu=Ui(),fu=Wi(),du=Nt(),pu=Zt(),hu=Lr(),mu=Nr(),gu=er(),yu=tr(),bu=Tr(),Eu=Qi(),wu=es(),Ou=Tt(),Au=Pe(),_u=Dt(),Su=ms(),Cu=ys(),xu=Es(),Ru=As(),vu=Ss(),ju=ir(),$u=$s(),Iu=Ps(),Pu=Ts(),Lu=Ds(),Nu=Ws();Vs.exports={parse:Jl,valid:Ql,clean:Zl,inc:eu,diff:tu,major:ru,minor:nu,patch:iu,prerelease:su,compare:ou,rcompare:au,compareLoose:cu,compareBuild:lu,sort:uu,rsort:fu,gt:du,lt:pu,eq:hu,neq:mu,gte:gu,lte:yu,cmp:bu,coerce:Eu,truncate:wu,Comparator:Ou,Range:Au,satisfies:_u,toComparators:Su,maxSatisfying:Cu,minSatisfying:xu,minVersion:Ru,validRange:vu,outside:ju,gtr:$u,ltr:Iu,intersects:Pu,simplifyRange:Lu,subset:Nu,SemVer:Xl,re:Br.re,src:Br.src,tokens:Br.t,SEMVER_SPEC_VERSION:ks.SEMVER_SPEC_VERSION,RELEASE_TYPES:ks.RELEASE_TYPES,compareIdentifiers:Hs.compareIdentifiers,rcompareIdentifiers:Hs.rcompareIdentifiers}});var Bs=Pt(sr(),1);import*as Yr from"node:process";try{let r=Hn?.node;typeof r=="string"&&!Bs.satisfies(Yr.version,r)&&ne.warn(`
|
|
9
9
|
\u26A0\uFE0F Warning: failed to satisfy expected node version. Expected: "${r}", Current "${Yr.version}"
|
|
10
10
|
|
|
11
11
|
`)}catch{}var Sa=Pt(xa(),1);import*as Ca from"node:path";import{notStrictEqual as sf,strictEqual as of}from"assert";var Tu={right:zu,center:Uu},qu=0,or=1,Du=2,ar=3,Kr=class{constructor(e){var t;this.width=e.width,this.wrap=(t=e.wrap)!==null&&t!==void 0?t:!0,this.rows=[]}span(...e){let t=this.div(...e);t.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]=="string")return this.applyLayoutDSL(e[0]);let t=e.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]=="string"&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let t=e.split(`
|
|
@@ -122,7 +122,7 @@ Eject that one and set the framework in your copy's default export:
|
|
|
122
122
|
# then in generators/tanstack-query/index.ts: run: tanstackQueryGenerator('${n}')
|
|
123
123
|
`);return}if(!Rt.has(t))throw ee.eject_generator_outcome="unknown-generator",new xe(`
|
|
124
124
|
\u274C Unknown generator "${t}". Ejectable generators: ${[...Rt].join(", ")}.
|
|
125
|
-
`);let i=Nf(),s=Tf(i,t),{GENERATOR_VERSION:o}=await import("./chunks/
|
|
125
|
+
`);let i=Nf(),s=Tf(i,t),{GENERATOR_VERSION:o}=await import("./chunks/QDSAT32N.js"),c=If(r.dir??"./generators"),u=s===void 0?H(c,`${t}.mjs`):H(c,t,"index.ts"),p=Me(process.cwd(),u)||u;if(r.update){if(s===void 0){let S=be(H(i,"generators",`${t}.mjs`),"utf-8");Ff({name:t,asset:S,toolkitVersion:o,assetsDir:i,dir:c,target:u,printedTarget:p})}else Mf({name:t,files:s,toolkitVersion:o,assetsDir:i,dir:c,targetDir:H(c,t)});return}if(ye(u)&&!r.force)throw ee.eject_generator_outcome="already-exists",new xe(`
|
|
126
126
|
\u274C ${p} already exists. Use --update to merge the newer version in, or --force to overwrite.
|
|
127
127
|
`);Sn(Wt(u),{recursive:!0});let h=s===void 0?[be(H(i,"generators",`${t}.mjs`),"utf-8")]:s.map(S=>be(H(i,"generators",t,S),"utf-8"));s===void 0?ae(u,h[0],"utf-8"):s.forEach((S,k)=>{ae(H(c,t,S),h[k],"utf-8")});let l=Xo("client-generators",i),b=Xo(`${t}-generator`,i);Cn(c,Rn(c));let m=`./${Me(e.configPath===void 0?process.cwd():Bo(Wt(e.configPath)),Bo(u)).split("\\").join("/")}`,w=vn({[Se]:o}),d=h.some(S=>S.includes(`from "${On}"`)||S.includes(`from '${On}'`)),C=Df(e.configPath,t,m),A=s===void 0?p:Me(process.cwd(),H(c,t))+"/";ne.info(`Ejected the "${t}" generator to ${A}.
|
|
128
128
|
`+(w==="added"?`Added ${Se} to devDependencies (the ejected file imports its toolkit) \u2014 run your installer.
|
|
@@ -141,12 +141,12 @@ Eject that one and set the framework in your copy's default export:
|
|
|
141
141
|
Run it: redocly generate-client <api> --output <path>${C?"":` --generator ${m}`}
|
|
142
142
|
Edit ${A} and run that again to see your change.
|
|
143
143
|
Reference: ${Lf}
|
|
144
|
-
`),ee.eject_generator_outcome="success"};function aa(r){if(Array.isArray(r)){let e={};for(let t of r)if(t&&typeof t=="string"){let n=oa(t);Object.assign(e,n)}return Object.keys(e).length>0?e:void 0}if(!(!r||typeof r!="string"))return oa(r)}function oa(r){try{let e=JSON.parse(r);if(!we(e))throw new Error("mTLS config must be an object mapping domains to certificate configurations");for(let[t,n]of Object.entries(e)){if(!we(n))throw new Error(`mTLS config for domain "${t}" must be an object`);jn(n,"clientCert",t,!0),jn(n,"clientKey",t,!0),jn(n,"caCert",t,!1)}return e}catch(e){throw e instanceof SyntaxError?new Error(`Invalid JSON for --mtls option: ${e.message}`):e}}function jn(r,e,t,n){let i=r[e];if(!i){if(n)throw new Error(`${e} is required for domain "${t}"`);return}if(typeof i!="string")throw new Error(`${e} for domain "${t}" must be a string`)}var ca=Pt(sr(),1);import{existsSync as zf,writeFileSync as Uf,readFileSync as Gf,statSync as Wf}from"node:fs";import{tmpdir as $n}from"node:os";import{join as In}from"node:path";import*as kt from"node:process";var Or=Pt(Ra(),1);var Ar=async(r,{timeout:e,...t}={})=>{let n=Qn(),i=n&&!Zn(r),s,o=e?{connect:{timeout:e}}:{};return i?s=new Or.ProxyAgent({uri:n,...o}):e&&(s=new Or.Agent(o)),await fetch(r,{signal:e?AbortSignal.timeout(e):void 0,...t,dispatcher:s})};var Pn="redocly-cli-version",kf=1e3*60*60*12,la=kt.env.NODE_ENV==="test"||kt.env.CI||!!kt.env.LAMBDA_TASK_ROOT||kt.env.REDOCLY_SUPPRESS_UPDATE_NOTICE==="true",ua=()=>{if(!la)try{let r=Gf(In($n(),Pn)).toString();Hf(Fe,r)&&Bf(Fe,r)}catch{return}},Hf=(r,e)=>(0,ca.compare)(r,e)<0,Vf=async r=>{let e=`http://registry.npmjs.org/${r}/latest`;try{return(await(await Ar(e,{timeout:Vt})).json()).version}catch{return}},fa=()=>{!Yf()||la||Vf(kn).then(r=>{if(r){let e=In($n(),Pn);Uf(e,r)}}).catch(()=>{})},Bf=(r,e)=>{ne.info(Xn([`A new version of ${xr("Redocly CLI")} (${Un(e)}) is available.`,`Update now: \`${xr("npm i -g @redocly/cli@latest")}\`.`,"Changelog: https://redocly.com/docs/cli/changelog/"]))},Yf=()=>{try{let r=In($n(),Pn);if(!zf(r))return!0;let e=new Date().getTime(),n=Wf(r).mtime.getTime();return e-n>=kf}catch{return!1}};function da(r){if(!r||r==="/")throw new Error("Mount path cannot be empty or root path. Please use --mount-path option with a valid path.");return r}function st(r,e=!1){return t=>{let n=Number(t);if(isNaN(n)||n<=0)throw new Error(`${r} must be a positive number`);if(e&&!Number.isInteger(n))throw new Error(`${r} must be a positive integer`);return n}}import{execSync as Kf}from"node:child_process";import*as $t from"node:fs";import{existsSync as Xf,writeFileSync as Jf,readFileSync as ma}from"node:fs";import*as ga from"node:os";import{tmpdir as ya}from"node:os";import{dirname as ha,join as Sr}from"node:path";async function pa(r=Vt){try{return await Ar(Jn,{timeout:r}),!0}catch{return!1}}var _r="***";async function ba({config:r,argv:e,exit_code:t,execution_time:n,spec_version:i,spec_keyword:s,spec_full_version:o,respect_x_security_auth_types:c,respect_source_description_types:u,respect_criterion_object_types:p,lint_rules_with_errors:h,lint_rules_with_warnings:l,lint_rules_with_ignored_problems:b,generate_client:m,eject_generator:w,bundle:d}){try{if(!e||!await pa(1e3))return;let{_:[A],$0:S,...k}=e,{RedoclyOAuthClient:W,getReuniteUrl:Ce}=await import("./chunks/
|
|
144
|
+
`),ee.eject_generator_outcome="success"};function aa(r){if(Array.isArray(r)){let e={};for(let t of r)if(t&&typeof t=="string"){let n=oa(t);Object.assign(e,n)}return Object.keys(e).length>0?e:void 0}if(!(!r||typeof r!="string"))return oa(r)}function oa(r){try{let e=JSON.parse(r);if(!we(e))throw new Error("mTLS config must be an object mapping domains to certificate configurations");for(let[t,n]of Object.entries(e)){if(!we(n))throw new Error(`mTLS config for domain "${t}" must be an object`);jn(n,"clientCert",t,!0),jn(n,"clientKey",t,!0),jn(n,"caCert",t,!1)}return e}catch(e){throw e instanceof SyntaxError?new Error(`Invalid JSON for --mtls option: ${e.message}`):e}}function jn(r,e,t,n){let i=r[e];if(!i){if(n)throw new Error(`${e} is required for domain "${t}"`);return}if(typeof i!="string")throw new Error(`${e} for domain "${t}" must be a string`)}var ca=Pt(sr(),1);import{existsSync as zf,writeFileSync as Uf,readFileSync as Gf,statSync as Wf}from"node:fs";import{tmpdir as $n}from"node:os";import{join as In}from"node:path";import*as kt from"node:process";var Or=Pt(Ra(),1);var Ar=async(r,{timeout:e,...t}={})=>{let n=Qn(),i=n&&!Zn(r),s,o=e?{connect:{timeout:e}}:{};return i?s=new Or.ProxyAgent({uri:n,...o}):e&&(s=new Or.Agent(o)),await fetch(r,{signal:e?AbortSignal.timeout(e):void 0,...t,dispatcher:s})};var Pn="redocly-cli-version",kf=1e3*60*60*12,la=kt.env.NODE_ENV==="test"||kt.env.CI||!!kt.env.LAMBDA_TASK_ROOT||kt.env.REDOCLY_SUPPRESS_UPDATE_NOTICE==="true",ua=()=>{if(!la)try{let r=Gf(In($n(),Pn)).toString();Hf(Fe,r)&&Bf(Fe,r)}catch{return}},Hf=(r,e)=>(0,ca.compare)(r,e)<0,Vf=async r=>{let e=`http://registry.npmjs.org/${r}/latest`;try{return(await(await Ar(e,{timeout:Vt})).json()).version}catch{return}},fa=()=>{!Yf()||la||Vf(kn).then(r=>{if(r){let e=In($n(),Pn);Uf(e,r)}}).catch(()=>{})},Bf=(r,e)=>{ne.info(Xn([`A new version of ${xr("Redocly CLI")} (${Un(e)}) is available.`,`Update now: \`${xr("npm i -g @redocly/cli@latest")}\`.`,"Changelog: https://redocly.com/docs/cli/changelog/"]))},Yf=()=>{try{let r=In($n(),Pn);if(!zf(r))return!0;let e=new Date().getTime(),n=Wf(r).mtime.getTime();return e-n>=kf}catch{return!1}};function da(r){if(!r||r==="/")throw new Error("Mount path cannot be empty or root path. Please use --mount-path option with a valid path.");return r}function st(r,e=!1){return t=>{let n=Number(t);if(isNaN(n)||n<=0)throw new Error(`${r} must be a positive number`);if(e&&!Number.isInteger(n))throw new Error(`${r} must be a positive integer`);return n}}import{execSync as Kf}from"node:child_process";import*as $t from"node:fs";import{existsSync as Xf,writeFileSync as Jf,readFileSync as ma}from"node:fs";import*as ga from"node:os";import{tmpdir as ya}from"node:os";import{dirname as ha,join as Sr}from"node:path";async function pa(r=Vt){try{return await Ar(Jn,{timeout:r}),!0}catch{return!1}}var _r="***";async function ba({config:r,argv:e,exit_code:t,execution_time:n,spec_version:i,spec_keyword:s,spec_full_version:o,respect_x_security_auth_types:c,respect_source_description_types:u,respect_criterion_object_types:p,lint_rules_with_errors:h,lint_rules_with_warnings:l,lint_rules_with_ignored_problems:b,generate_client:m,eject_generator:w,bundle:d}){try{if(!e||!await pa(1e3))return;let{_:[A],$0:S,...k}=e,{RedoclyOAuthClient:W,getReuniteUrl:Ce}=await import("./chunks/K2ENYHHD.js"),Ye=new W(Fe),Ke=Ce(r,k.residency),Xe=await Ye.isAuthorized(Ke),V=sd();V||(V=`ann_${ri()}`,id(V));let ke=Ht(i),I=[{id:A,object:"command",uri:`urn:redocly:cli:command:${A}`,logged_in:Xe?"yes":"no",command:A,...td(k,process.argv.slice(2)),node_version:process.version,npm_version:nd(),version:Fe,exit_code:t,execution_time:n,metadata:process.env.REDOCLY_CLI_TELEMETRY_METADATA,environment_ci:process.env.CI,environment:process.env.REDOCLY_ENVIRONMENT,has_config:typeof r?.document?.parsed>"u"?"no":"yes",spec_version:i,spec_keyword:s,spec_full_version:o,respect_x_security_auth_types:ke==="arazzo1"&&c?.length?JSON.stringify(c):void 0,respect_source_description_types:ke==="arazzo1"&&u?.length?JSON.stringify(u):void 0,respect_criterion_object_types:ke==="arazzo1"&&p?.length?JSON.stringify(p):void 0,lint_rules_with_errors:h?.length?JSON.stringify(h):void 0,lint_rules_with_warnings:l?.length?JSON.stringify(l):void 0,lint_rules_with_ignored_problems:b?.length?JSON.stringify(b):void 0,generate_client_builtin_generators:m?.generate_client_builtin_generators?.length?JSON.stringify(m.generate_client_builtin_generators):void 0,generate_client_custom_generators_count:m?.generate_client_custom_generators_count,generate_client_toolkit_imports:m?.generate_client_toolkit_imports?.length?JSON.stringify(m.generate_client_toolkit_imports):void 0,generate_client_error_category:m?.generate_client_error_category,generate_client_ejected_generators:m?.generate_client_ejected_generators?.length?JSON.stringify(m.generate_client_ejected_generators):void 0,generate_client_composed_apis_count:m?.generate_client_composed_apis_count,eject_generator_action:w?.eject_generator_action,eject_generator_name:w?.eject_generator_name,eject_generator_outcome:w?.eject_generator_outcome,eject_generator_conflicts:w?.eject_generator_conflicts,eject_generator_from_version:w?.eject_generator_from_version,eject_generator_to_version:w?.eject_generator_to_version,bundle_overlays_count:d?.bundle_overlays_count}],_=ti.mapToCloudEvent({type:"com.redocly.command.ran",source:"urn:redocly:cli",origin:"redocly-cli",env:"production",osPlatform:ga.platform(),actor:{id:V,object:"user",uri:""},category:"product",data:I}),{otelTelemetry:N}=await import("./chunks/D7WNH6Z5.js");N.send(_)}catch{}}function Ea(r,e){for(let t of r.sourceDescriptions??[])t.type&&e.add(t.type)}function wa(r,e){for(let t of r.workflows??[]){jt(t.successActions,e),jt(t.failureActions,e);for(let n of t.steps??[])Oa(n.successCriteria,e),jt(n.onSuccess,e),jt(n.onFailure,e)}jt(Object.values(r.components?.successActions??{}),e),jt(Object.values(r.components?.failureActions??{}),e)}function jt(r,e){for(let t of r??[])Oa(t.criteria,e)}function Oa(r,e){for(let t of r??[]){let n=Qf(t);n&&e.add(n)}}function Qf(r){let e=r.type;return typeof e=="string"?e:e?.type||(r.condition?"simple":void 0)}function Aa(r,e){for(let t of r.workflows??[]){for(let n of t["x-security"]??[]){let i=n.scheme;if(i?.type){let s=i.type==="http"?i.scheme:i.type;s&&e.add(s)}}for(let n of t.steps??[])for(let i of n["x-security"]??[]){let s=i.scheme;if(s?.type){let c=s.type==="http"?s.scheme:s.type;c&&e.add(c)}let o=i.schemeName;o&&e.add(o)}}}function Zf(r){return $t.existsSync(r)&&$t.statSync(r).isFile()}function ed(r){return $t.existsSync(r)&&$t.statSync(r).isDirectory()}function Ln(r){return r&&(Mn(r)?r.split("://")[0]+"://url":Zf(r)?r.replace(/.+\.([^.]+)$/,(e,t)=>"file-"+t):ed(r)?"folder":r)}function Nn(r,e,t){let n=Array.isArray(e)?e:[e];for(let i of n)i.length>1&&(r=r.replaceAll(i,t));return r}function _a(r,e){let t={};for(let[n,i]of Object.entries(r))e.includes(n)?t[n]=_r:we(i)?t[n]=_a(i,e):t[n]=i;return t}function Tn(r,e,t=[]){if(Array.isArray(r))return r.forEach(n=>Tn(n,e,t)),t;if(we(r))for(let[n,i]of Object.entries(r))e.includes(n)&&typeof i=="string"?t.push(i):(we(i)||Array.isArray(i))&&Tn(i,e,t);return t}function td(r,e){let t=["organization","o","input","i","author","a","clientCert","clientKey","caCert","server","S"],n=e.join(" "),i={};for(let[s,o]of Object.entries(r))if(t.includes(s))i[s]=_r,n=Nn(n,o,_r);else if(typeof o=="string"){let c=Ln(o);i[s]=c,n=Nn(n,o,c)}else if(Array.isArray(o)){i[s]=o.map(Ln);for(let c of o){let u=Ln(c);n.includes(c)&&(n=n.replaceAll(c,u))}}else if(we(o)){let c=Tn(o,t);for(let u of c)n=Nn(n,u,_r);i[s]=_a(o,t)}else i[s]=o;return{arguments:JSON.stringify(i),raw_input:n}}var rd=process.platform==="win32"?Sr(ha(process.execPath),"node_modules","npm","package.json"):Sr(ha(process.execPath),"..","lib","node_modules","npm","package.json");function nd(){try{return JSON.parse(ma(rd,"utf8")).version}catch{}try{return Kf("npm -v",{stdio:["ignore","pipe","ignore"]}).toString().trim()}catch{return"unknown"}}var id=r=>{if(!(process.env.CI||!r))try{let t=Sr(ya(),Rr);Jf(t,r)}catch{}},sd=()=>{if(!process.env.CI)try{let e=Sr(ya(),Rr);return Xf(e)?ma(e).toString().trim():void 0}catch{return}};function Q(r){return async e=>{let t=performance.now(),n=2,i,s="unknown",o,c,u,p=new Set,h=new Set,l=new Set,b=({parsed:A,source:S})=>{if(s="unknown",o=void 0,c=void 0,S?.absoluteRef&&zn(S.absoluteRef)){s="graphql";return}try{s=Gn(A)}catch{s="unsupported"}we(A)&&(o=A?.openapi?"openapi":A?.swagger?"swagger":A?.asyncapi?"asyncapi":A?.arazzo?"arazzo":A?.overlay?"overlay":void 0,o&&(c=A[o]),Ht(s)==="arazzo1"&&(Aa(A,p),Ea(A,h),wa(A,l)))},m=new Set,w=new Set,d=new Set,C=A=>{for(let S of A)S.ignored?d.add(S.ruleId):S.severity==="error"?m.add(S.ruleId):S.severity==="warn"&&w.add(S.ruleId)};try{if(e.config&&!Dn(e.config))throw new xe("Please provide a valid path to the configuration file.");u=await Kn(e,Fe),i=u.resolvedConfig.telemetry,n=1,typeof r=="function"&&await r({argv:e,config:u,version:Fe,collectSpecData:b,collectResults:C}),n=0}catch(A){A instanceof Wn||(A instanceof xe?ne.error(A.message+`
|
|
145
145
|
|
|
146
146
|
`):(ne.error(`An unexpected error occurred. This is likely a bug that should be reported.
|
|
147
147
|
`),ne.error(A instanceof Error?A.stack||A.message:String(A)),ne.error(`
|
|
148
|
-
`)))}finally{if(process.env.REDOCLY_TELEMETRY!=="off"&&i!=="off"){let A=Math.round(performance.now()-t);await ba({config:u,argv:e,exit_code:n,execution_time:A,spec_version:s,spec_keyword:o,spec_full_version:c,respect_x_security_auth_types:[...p],respect_source_description_types:[...h],respect_criterion_object_types:[...l],lint_rules_with_errors:[...m],lint_rules_with_warnings:[...w],lint_rules_with_ignored_problems:[...d],generate_client:Vn,eject_generator:ee,bundle:ei})}process.once("beforeExit",()=>{process.exit(n)})}}}Sa.config({path:Ca.resolve(process.cwd(),"./.env")});fa();Vo(en(process.argv)).version("version","Show version number.",Fe).help("help","Show help.").parserConfiguration({"greedy-arrays":!1,"boolean-negation":!1}).command("stats [api]","Show statistics for an API description.",r=>r.env("REDOCLY_CLI_STATS").positional("api",{type:"string"}).option({config:{description:"Path to the config file.",type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"},format:{description:"Use a specific output format.",choices:["stylish","json","markdown"],default:"stylish"}}),async r=>{let{handleStats:e}=await import("./chunks/HDOITPQ3.js");Q(e)(r)}).command("inspect-node-types <api>","Show the node types of an API description, for writing configurable rules and custom plugins [experimental].",r=>r.env("REDOCLY_CLI_INSPECT_NODE_TYPES").positional("api",{description:"API description file to inspect.",type:"string",demandOption:!0}).option({config:{description:"Path to the config file.",type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"},pointer:{description:"JSON pointer to a node, optionally prefixed with a file: `#/paths` or `schemas.yaml#/User`.",type:"string",alias:"p"},type:{description:"List only the nodes of this type.",type:"string"},summary:{description:"List the node types used in the description, with counts.",type:"boolean"},parents:{description:"Show the chain of node types leading to the node: down to the node with --pointer, or the distinct chains that reach the type with --type.",type:"boolean"}}).conflicts({pointer:["type","summary"],type:["summary"],summary:["parents"]}).check(e=>{if(e.parents&&!e.pointer&&!e.type)throw new Error("The --parents option requires --pointer or --type.");return!0}),async r=>{let{handleInspectNodeTypes:e}=await import("./chunks/DLPIGJ4V.js");Q(e)(r)}).command("score [api]","Score an API description for integration simplicity and agent readiness.",r=>r.env("REDOCLY_CLI_SCORE").positional("api",{type:"string"}).option({config:{description:"Path to the config file.",type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"},format:{description:"Use a specific output format.",choices:["stylish","json"],default:"stylish"},"operation-details":{description:"Print per-operation metric details.",type:"boolean",default:!1},"debug-operation-id":{description:"Print detailed schema breakdown for a specific operation.",type:"string"}}),async r=>{let{handleScore:e}=await import("./chunks/PIMM4UUT.js");Q(e)(r)}).command("split [api]","Split an API description into a multi-file structure.",r=>r.env("REDOCLY_CLI_SPLIT").positional("api",{description:"API description file that you want to split",type:"string"}).option({outDir:{description:"Output directory where files will be saved.",required:!0,type:"string"},separator:{description:"File path separator used while splitting.",required:!1,type:"string",default:"_"},config:{description:"Path to the config file.",requiresArg:!0,type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}).demandOption("api"),async r=>{let{handleSplit:e}=await import("./chunks/CXUJFJ3V.js");Q(e)(r)}).command("join [apis...]","Join multiple API descriptions into one [experimental].",r=>r.env("REDOCLY_CLI_JOIN").positional("apis",{array:!0,type:"string",demandOption:!0}).option({"prefix-tags-with-info-prop":{description:"Prefix tags with property value from info object.",requiresArg:!0,type:"string"},"prefix-tags-with-filename":{description:"Prefix tags with property value from file name.",type:"boolean",default:!1},"prefix-components-with-info-prop":{description:"Prefix components with property value from info object.",requiresArg:!0,type:"string"},"without-x-tag-groups":{description:"Skip automated x-tagGroups creation",type:"boolean"},output:{description:"Output file.",alias:"o",type:"string"},config:{description:"Path to the config file.",requiresArg:!0,type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}),async r=>{let{handleJoin:e}=await import("./chunks/IXUAYOCK.js");Q(e)(r)}).command("push-status [pushId]",!1,r=>r.env("REDOCLY_CLI_PUSH_STATUS").positional("pushId",{description:"Push id.",type:"string",demandOption:!0}).implies("max-execution-time","wait").option({organization:{description:"Name of the organization to push to.",type:"string",alias:"o",required:!0},project:{description:"Name of the project to push to.",type:"string",required:!0,alias:"p"},domain:{description:"Specify a domain.",alias:"d",type:"string",required:!1},wait:{description:"Wait for build to finish.",type:"boolean",default:!1},"max-execution-time":{description:"Maximum execution time in seconds.",type:"number"},"continue-on-deploy-failures":{description:"Command does not fail even if the deployment fails.",type:"boolean",default:!1},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}),async r=>{let{handlePushStatus:e}=await import("./chunks/2UTQDU6B.js");Q(e)(r)}).command("push [files...]","Push documents to Reunite.",r=>r.env("REDOCLY_CLI_PUSH").positional("files",{type:"string",array:!0,demandOption:!0}).option({branch:{description:"Branch name to push to.",type:"string",alias:"b",required:!0},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"},organization:{description:"Name of the organization to push to.",type:"string",alias:"o",required:!0},project:{description:"Name of the project to push to.",type:"string",alias:"p",required:!0},"mount-path":{description:"The path files should be pushed to.",type:"string",alias:"mp",required:!0,coerce:da},author:{description:"Author of the commit.",type:"string",alias:"a",required:!0},message:{description:"Commit message.",type:"string",alias:"m",required:!0},"commit-sha":{description:"Commit SHA.",type:"string",alias:"sha"},"commit-url":{description:"Commit URL.",type:"string",alias:"url"},namespace:{description:"Repository namespace.",type:"string"},repository:{description:"Repository name.",type:"string"},"created-at":{description:"Commit creation date.",type:"string"},domain:{description:"Specify a domain.",alias:"d",type:"string"},config:{description:"Path to the config file.",requiresArg:!0,type:"string"},"default-branch":{type:"string",default:"main"},"max-execution-time":{description:"Maximum execution time in seconds.",type:"number"},"wait-for-deployment":{description:"Wait for build to finish.",type:"boolean",default:!1},replace:{description:"Remove the files under the mount path that are not part of this push.",type:"boolean",default:!1},verbose:{type:"boolean",default:!1},"continue-on-deploy-failures":{description:"Command does not fail even if the deployment fails.",type:"boolean",default:!1}}),async r=>{let{handlePush:e}=await import("./chunks/RAZQQ2DW.js");Q(e)(r)}).command("lint [apis...]","Lint an API or Arazzo description.",r=>r.env("REDOCLY_CLI_LINT").positional("apis",{array:!0,type:"string",demandOption:!0}).option({format:{description:"Use a specific output format.",choices:["stylish","codeframe","json","checkstyle","codeclimate","summary","markdown","github-actions","junit"],default:"codeframe"},"max-problems":{requiresArg:!0,description:"Reduce output to a maximum of N problems.",type:"number",default:100},"generate-ignore-file":{description:"Generate an ignore file.",type:"boolean"},"skip-rule":{description:"Ignore certain rules.",array:!0,type:"string"},"skip-preprocessor":{description:"Ignore certain preprocessors.",array:!0,type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"},config:{description:"Path to the config file.",requiresArg:!0,type:"string"},extends:{description:"Override extends configurations (defaults or config file settings).",requiresArg:!0,array:!0,type:"string"}}),async r=>{let{handleLint:e}=await import("./chunks/YW2GBLJX.js");Q(e)(r)}).command("bundle [apis...]","Bundle a multi-file API description to a single file.",r=>r.env("REDOCLY_CLI_BUNDLE").positional("apis",{array:!0,type:"string",demandOption:!0}).options({output:{type:"string",description:"Output file or folder for inline APIs.",alias:"o"},ext:{description:"Bundle file extension.",requiresArg:!0,choices:Yn},"skip-preprocessor":{description:"Ignore certain preprocessors.",array:!0,type:"string"},"skip-decorator":{description:"Ignore certain decorators.",array:!0,type:"string"},overlay:{description:"Overlay file to apply. Repeat to apply several, in order.",array:!0,type:"string",requiresArg:!0},dereferenced:{alias:"d",type:"boolean",description:"Produce a fully dereferenced bundle."},force:{alias:"f",type:"boolean",description:"Produce bundle output even when errors occur."},config:{description:"Path to the config file.",type:"string"},metafile:{description:"Produce metadata about the bundle",type:"string"},extends:{description:"Override extends configurations (defaults or config file settings).",requiresArg:!0,array:!0,type:"string",hidden:!0},"remove-unused-components":{description:"Remove unused components.",type:"boolean",default:!1},"keep-url-references":{description:"Keep absolute url references.",type:"boolean",alias:"k"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"},"component-renaming-conflicts-severity":{description:"Whether to show warnings or fail on renaming conflicts (defaults to warn).",choices:["warn","error","off"]},"component-names-strategy":{description:"How to name inlined Schema components: 'basename' (default) or 'title' (from each schema's `title`).",choices:["basename","title"],default:"basename"}}).check(e=>{if(e.output&&(!e.apis||e.apis.length===0))throw new Error("At least one inline API must be specified when using --output.");return!0}),async r=>{let{handleBundle:e}=await import("./chunks/TWIJOWYT.js");Q(e)(r)}).command("check-config","Lint the Redocly configuration file.",async r=>r.env("REDOCLY_CLI_CHECK_CONFIG").option({config:{description:"Path to the config file.",type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error"],default:"error"}}),r=>{Q()(r)}).command("login","Log in to Redocly.",async r=>r.env("REDOCLY_CLI_LOGIN").options({residency:{description:"Residency of the application. Defaults to `us`.",alias:["r"],type:"string"},config:{description:"Path to the config file.",requiresArg:!0,type:"string"},verbose:{alias:"v",describe:"Apply verbose mode.",type:"boolean"}}),async r=>{let{handleLogin:e}=await import("./chunks/5CEXCXYZ.js");Q(e)(r)}).command("logout","Clear your stored credentials.",r=>r,async r=>{let{handleLogout:e}=await import("./chunks/ALAAZCRE.js");Q(e)(r)}).command("preview","Preview Redocly project using one of the product NPM packages.",r=>r.env("REDOCLY_CLI_PREVIEW").options({product:{type:"string",choices:["redoc","revel","reef","realm","redoc-revel","redoc-reef","revel-reef"],description:"Product used to launch preview. Default is inferred from project's package.json or 'realm' is used."},plan:{type:"string",choices:Bn,default:"enterprise"},port:{alias:"p",type:"number",description:"Preview port.",default:4e3,coerce:st("port",!0)},"project-dir":{alias:["d","source-dir"],type:"string",description:"Specifies the project content directory. The default value is the directory where the command is executed.",default:"."},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}),async r=>{process.argv.some(t=>t.startsWith("--source-dir"))&&ne.error(`Option --source-dir is deprecated and will be removed soon. Use --project-dir instead.
|
|
149
|
-
`);let{previewProject:e}=await import("./chunks/VMGZLFL4.js");Q(e)(r)}).command("build-docs [api]","Produce API documentation as an HTML file",r=>r.positional("api",{type:"string"}).options({o:{describe:"Output destination file.",alias:"output",type:"string",default:"redoc-static.html"},title:{describe:"Page title.",type:"string"},disableGoogleFont:{describe:"Disable Google fonts.",type:"boolean",default:!1},t:{alias:"template",describe:"Path to handlebars page template, see https://github.com/Redocly/redocly-cli/blob/main/packages/cli/src/commands/build-docs/template.hbs for the example.",type:"string"},templateOptions:{describe:"Additional options to pass to the template. Use dot notation, e.g. templateOptions.metaDescription"},theme:{describe:"Redoc theme.openapi configuration. Use dot notation, e.g. theme.openapi.nativeScrollbars"},config:{describe:"Path to the config file.",type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}).check(e=>{if(e.theme&&!e.theme?.openapi)throw new Error("Invalid option: theme.openapi not set.");return!0}),async r=>{let{handlerBuildCommand:e}=await import("./chunks/R5EOHC5A.js");Q(e)(r)}).command("translate <locale>","Creates or updates translations.yaml files and fills them with missing built-in translations and translations from the redocly.yaml and sidebars.yaml files.",r=>r.env("REDOCLY_CLI_TRANSLATE").positional("locale",{description:"Locale code to generate translations for, or `all` for all current project locales.",type:"string",demandOption:!0}).options({"project-dir":{alias:"d",type:"string",description:"Specifies the project content directory. The default value is the directory where the command is executed.",default:"."},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}),async r=>{let{handleTranslations:e}=await import("./chunks/VUKQLVFA.js");Q(e)(r)}).command("eject <type> [path]","Helper function to eject project elements for customization.",r=>r.env("REDOCLY_CLI_EJECT").positional("type",{description:"Specifies what type of project element to eject. Currently this value must be `component`.",demandOption:!0,choices:["component"]}).positional("path",{description:"Filepath to a component or filepath with glob pattern.",type:"string"}).options({"project-dir":{alias:"d",type:"string",description:"Specifies the project content directory. The default value is the directory where the command is executed.",default:"."},force:{alias:"f",type:"boolean",description:'Skips the "overwrite existing" confirmation when ejecting a component that is already ejected in the destination.'},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}),async r=>{let{handleEject:e}=await import("./chunks/I6CD22RU.js");Q(e)(r)}).command("respect [files...]","Run Arazzo tests.",r=>r.env("REDOCLY_CLI_RESPECT").positional("files",{describe:"Test files or glob pattern.",type:"string",array:!0,default:[]}).options({input:{alias:"i",describe:"Input parameters.",type:"string"},server:{alias:"S",describe:"Server parameters.",type:"string"},workflow:{alias:"w",describe:"Workflow name.",type:"string",array:!0},skip:{alias:"s",describe:"Workflow to skip.",type:"string",array:!0},verbose:{alias:"v",describe:"Apply verbose mode.",type:"boolean"},"har-output":{describe:"Har file output name.",type:"string",alias:"H"},"json-output":{describe:"JSON file output name.",type:"string",alias:"J"},mtls:{describe:'Per-domain mutual TLS certificates configuration as JSON. Format: {"<domain>": {"clientCert": "<path>", "clientKey": "<path>", "caCert": "<path>"}}',type:"string",array:!0,coerce:aa},severity:{describe:"Severity of the check.",type:"string"},"max-steps":{describe:"Maximum number of steps to run (default: 2000).",type:"number",default:2e3,coerce:st("max-steps",!0)},"max-fetch-timeout":{describe:"Maximum time to wait for API response per request in milliseconds (default: 40 seconds).",type:"number",default:4e4,coerce:st("max-fetch-timeout",!1)},"execution-timeout":{describe:"Maximum time to wait for the Respect execution in milliseconds (default: 1 hour).",type:"number",default:36e5,coerce:st("execution-timeout",!1)},"no-secrets-masking":{describe:"Do not mask secrets in the output.",type:"boolean",default:!1}}),async r=>{let{handleRespect:e}=await import("./chunks/ISV7E3WY.js");Q(e)(r)}).command("generate-arazzo <descriptionPath>","Auto-generate arazzo description file from an API description.",r=>r.env("REDOCLY_CLI_GENERATE_ARAZZO").positional("descriptionPath",{describe:"Description file path.",type:"string"}).options({"output-file":{alias:"o",describe:"Output File name.",type:"string",requiresArg:!0},"with-ai":{describe:"Redesign the generated workflows with an AI provider, using the OpenAPI description as context.",type:"boolean",default:!1},"ai-provider":{describe:'AI provider used with --with-ai; runs the "claude", "codex", or "cursor" CLI in non-interactive mode.',choices:["claude","codex","cursor"],default:"claude"},"ai-model":{describe:"Model passed to the selected AI provider (provider-specific default applies).",type:"string"},"ai-concurrency":{describe:"Number of workflows designed in parallel with --with-ai for large descriptions.",type:"number",default:4,coerce:st("ai-concurrency",!0)},"max-workflows":{describe:"Most workflows the AI may design with --with-ai.",type:"number",default:10,coerce:st("max-workflows",!0)}}),async r=>{let{handleGenerateArazzo:e}=await import("./chunks/XJSNA6VQ.js");Q(e)(r)}).command("generate-client [api]","Generate a TypeScript client from an OpenAPI description [experimental].",r=>r.env("REDOCLY_CLI_GENERATE_CLIENT").positional("api",{describe:"OpenAPI description file path (or alias from redocly.yaml `apis:`).",type:"string"}).options({output:{alias:"o",describe:"Output file path for the generated client (must end in .ts).",type:"string",requiresArg:!0},"server-url":{describe:"Override the server URL inlined into the generated runtime. Defaults to `servers[0].url`.",type:"string",requiresArg:!0},"output-mode":{describe:"How the client is split across files: `single` (default, one file) or `split` (schema types and guards in a sibling `<name>.schemas.ts` the entry re-exports).",choices:["single","split"],requiresArg:!0},runtime:{describe:"Runtime distribution: 'inline' (default) embeds the runtime in the generated file; 'module' writes it as real files in a runtime/ folder beside the client.",choices:["inline","module"],requiresArg:!0},docs:{description:"Also write reference documentation for what this run generates: one Markdown page per selected generator that documents itself (the CLI, and each SDK).",type:"boolean"},"go-package":{description:"Package clause of the `go` generator's output (a valid Go package name). Defaults to `client`.",type:"string",requiresArg:!0},"import-ext":{describe:"Extension in generated relative imports: 'js' (default) suits tsc and bundlers; 'ts' suits runtimes that resolve specifiers literally, like Node's built-in type stripping (node client.ts).",choices:["js","ts"],requiresArg:!0},setup:{describe:"Path to a publisher setup module (a file default-exporting { config, middleware }) that gets included into the generated client \u2014 pre-configure defaults such as the server URL, retries, headers, and middleware, so a published SDK ships with them built in. Works across all output modes.",type:"string",requiresArg:!0},"args-style":{describe:"How operation inputs are passed: `flat` (default) spreads path params as positional arguments followed by `params`/`body`/`headers`; `grouped` bundles every input into a single `args` object (the per-call request `init` stays a separate trailing argument).",choices:["flat","grouped"],requiresArg:!0},"error-mode":{describe:"Error handling: 'throw' (default) throws ApiError on non-2xx; 'result' returns { data, error, response }.",choices:["throw","result"],requiresArg:!0},"date-type":{describe:"How `date-time`/`date` string fields are typed: 'string' (default) keeps the ISO wire shape; 'Date' emits a `Date` (pair with --generator transformers so the runtime value matches).",choices:["string","Date"],requiresArg:!0},"mock-data":{describe:"How the `mock` generator produces data: 'static' (default) inlines deterministic literals (zero-dep); 'faker' emits @faker-js/faker calls for realistic data (install @faker-js/faker as a dev dependency).",choices:["static","faker"],requiresArg:!0},"mock-seed":{describe:"Seed for faker-mode mocks: emits a top-level `faker.seed(<n>)` so generated data is reproducible across runs. Ignored in static mode.",type:"number",requiresArg:!0},generator:{describe:'Generator to run; repeat the flag to run several (default: typescript). Built-in: typescript, zod, tanstack-query, tanstack-query-vue, tanstack-query-svelte, tanstack-query-solid, swr, mock, transformers, cli, python, go, php \u2014 or a path/package specifier for a custom generator. What each one emits is in the "Use the generated client" guide. Example: --generator typescript --generator zod',type:"string",array:!0,requiresArg:!0},config:{describe:"Path to the config file.",type:"string",requiresArg:!0}}),async r=>{let{handleGenerateClient:e}=await import("./chunks/IGD6TJGQ.js");Q(e)(r)}).command("eject-generator [generator]","Vendor a built-in client generator into your repo as an editable file [experimental].",r=>r.positional("generator",{describe:`Built-in generator to eject (${[...Rt].join(", ")}).`,type:"string"}).options({config:{description:"Path to the config file.",type:"string"},dir:{describe:"Directory to eject into (default: ./generators).",type:"string",requiresArg:!0},force:{describe:"Overwrite an existing ejected file (discards local edits).",type:"boolean",default:!1},update:{describe:"Three-way merge a newer generator version into your customized copy (pristine \xD7 new \xD7 yours).",type:"boolean",default:!1}}),async r=>{Q(sa)(r)}).command("generate-spec <traffic>","Infer an OpenAPI description from recorded HTTP traffic, optionally refined with AI [experimental].",r=>r.env("REDOCLY_CLI_GENERATE_SPEC").positional("traffic",{describe:"Path to a traffic log file or folder (HAR, Kong, Nginx/Apache JSON, NDJSON).",type:"string"}).option({type:{describe:"Target API description type.",choices:["openapi"],default:"openapi"},"traffic-format":{describe:"Traffic input format.",choices:["auto","har","kong","nginx-json","apache-json","ndjson"],default:"auto"},server:{describe:"Server URL the traffic was captured against: only requests under it are considered, the rest of their URL becomes the API path, and it becomes the servers URL of the generated description.",type:"string"},title:{describe:"Title for the generated API description.",type:"string"},"with-ai":{describe:"Refine the inferred description with an AI provider to narrow the hypothesis.",type:"boolean",default:!1},"ai-provider":{describe:'AI provider used with --with-ai; runs the "claude", "codex", or "cursor" CLI in non-interactive mode.',choices:["claude","codex","cursor"],default:"claude"},"ai-model":{describe:"Model passed to the selected AI provider (provider-specific default applies).",type:"string"},"ai-concurrency":{describe:"Number of operations refined in parallel with --with-ai.",type:"number",default:4,coerce:st("ai-concurrency",!0)},output:{alias:"o",describe:"Write the generated description to this file instead of stdout.",type:"string"},config:{describe:"Path to the config file.",type:"string"}}),async r=>{let{handleGenerateSpec:e}=await import("./chunks/VCODEISK.js");Q(e)(r)}).command("introspect-mcp [server-url]","Introspect a running MCP server and record its capabilities in the x-mcp extension of an OpenAPI description [experimental].",r=>r.env("REDOCLY_CLI_INTROSPECT_MCP").positional("server-url",{describe:"URL of the MCP server (Streamable HTTP, with a fallback to the legacy HTTP+SSE transport). Alternative to --command.",type:"string"}).option({command:{describe:'Command that starts a local MCP server to introspect over stdio, for example "npx -y my-mcp-server". Quote arguments that contain spaces. Alternative to a server URL.',type:"string",requiresArg:!0},output:{alias:"o",describe:"OpenAPI description file to create or update.",type:"string",default:"openapi.yaml"},header:{alias:"H",describe:'Header sent with every request to the MCP server, in "Name: value" format. Repeat the option for multiple headers.',array:!0,type:"string"},check:{describe:"Verify the description is up to date with the MCP server instead of writing: report the differences and exit with an error when it is not.",type:"boolean",default:!1},config:{describe:"Path to the config file.",type:"string"}}).check(e=>{if(!!e["server-url"]==!!e.command)throw new Error("Provide either an MCP server URL or --command, not both.");if(e.command&&e.header)throw new Error("The --header option only applies to an MCP server URL.");return!0}),async r=>{let{handleIntrospectMcp:e}=await import("./chunks/HJZMPHXS.js");Q(e)(r)}).command("scorecard-classic [api]","Run quality scorecards with multiple rule levels to validate and maintain API description standards.",r=>r.positional("api",{type:"string"}).option({config:{describe:"Path to the config file.",type:"string"},"project-url":{describe:"URL to the project scorecard configuration.",type:"string"},format:{description:"Use a specific output format.",choices:["stylish","json","checkstyle","junit"],default:"stylish"},"target-level":{describe:"Target level for the scorecard.",type:"string"},verbose:{alias:"v",describe:"Apply verbose mode.",type:"boolean"}}),async r=>{let{handleScorecardClassic:e}=await import("./chunks/Z22TFV6U.js");Q(e)(r)}).command("drift <traffic>","Detect drift between recorded HTTP traffic and an OpenAPI description [experimental].",r=>r.env("REDOCLY_CLI_DRIFT").positional("traffic",{describe:"Path to a traffic log file or folder (HAR, Kong, Nginx/Apache JSON, NDJSON).",type:"string"}).option({api:{describe:"OpenAPI description file or folder to validate against.",type:"string",demandOption:!0},"traffic-format":{describe:"Traffic input format.",choices:["auto","har","kong","nginx-json","apache-json","ndjson"],default:"auto"},"report-format":{describe:"Output format.",alias:"format",choices:["pretty","json","csv","sarif"],default:"pretty"},"match-mode":{describe:"Endpoint matching mode (how requests are located via the description servers). Mutually exclusive with --server.",choices:["strict-host","basepath"],defaultDescription:"strict-host"},"ignore-cookies":{describe:"Ignore cookie-based checks (useful for logs exported without cookies).",type:"boolean",default:!1},"ignore-headers":{describe:'Comma-separated header names to skip in undocumented-header checks. A trailing "*" matches by prefix, e.g. "x-consumer-*".',type:"string"},"max-findings":{describe:"Maximum findings shown in pretty output.",type:"number",default:10},"min-severity":{describe:"Discard findings below this severity from the report.",choices:["info","warning","error"],default:"info"},rules:{describe:"Comma-separated builtin rules to run.",type:"string"},output:{alias:"o",describe:"Write the drift report (in the format selected with --format) to this file instead of stdout.",type:"string"},server:{describe:"Server URL the traffic was captured against: only requests under it are considered, and the rest of their URL is treated as the API path. It replaces the description servers and the remaining path is matched against the description paths directly. Mutually exclusive with --match-mode.",type:"string"},config:{describe:"Path to the config file.",type:"string"},"lint-config":{describe:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}),async r=>{let{handleDrift:e}=await import("./chunks/XXP75TZV.js");Q(e)(r)}).command("proxy","Capture live HTTP traffic through a reverse proxy into a HAR file, optionally validating it against an OpenAPI description [experimental].",r=>r.env("REDOCLY_CLI_PROXY").option({target:{describe:"Upstream base URL to forward captured requests to.",type:"string",demandOption:!0},port:{describe:"Port the proxy listens on.",type:"number",default:4040},host:{describe:"Host the proxy binds to.",type:"string",default:"127.0.0.1"},har:{describe:"Path to the HAR file where captured traffic is written.",type:"string",demandOption:!0},api:{describe:"OpenAPI description file or folder to validate captured traffic against (live).",type:"string"},"report-format":{describe:"Output format for the validation report printed on shutdown.",alias:"format",choices:["pretty","json","csv","sarif"],default:"pretty"},"match-mode":{describe:"Endpoint matching mode.",choices:["strict-host","basepath"],default:"strict-host"},"ignore-cookies":{describe:"Ignore cookie-based checks.",type:"boolean",default:!1},"ignore-headers":{describe:'Comma-separated header names to skip in undocumented-header checks. A trailing "*" matches by prefix, e.g. "x-consumer-*".',type:"string"},"max-findings":{describe:"Maximum findings shown in pretty output.",type:"number",default:10},rules:{describe:"Comma-separated builtin rules to run.",type:"string"},config:{describe:"Path to the config file.",type:"string"},"lint-config":{describe:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}),async r=>{let{handleProxy:e}=await import("./chunks/OKP4XLDY.js");Q(e)(r)}).completion("completion","Generate autocomplete script for `redocly` command.").demandCommand(1).middleware([ua]).strict().argv;
|
|
148
|
+
`)))}finally{if(process.env.REDOCLY_TELEMETRY!=="off"&&i!=="off"){let A=Math.round(performance.now()-t);await ba({config:u,argv:e,exit_code:n,execution_time:A,spec_version:s,spec_keyword:o,spec_full_version:c,respect_x_security_auth_types:[...p],respect_source_description_types:[...h],respect_criterion_object_types:[...l],lint_rules_with_errors:[...m],lint_rules_with_warnings:[...w],lint_rules_with_ignored_problems:[...d],generate_client:Vn,eject_generator:ee,bundle:ei})}process.once("beforeExit",()=>{process.exit(n)})}}}Sa.config({path:Ca.resolve(process.cwd(),"./.env")});fa();Vo(en(process.argv)).version("version","Show version number.",Fe).help("help","Show help.").parserConfiguration({"greedy-arrays":!1,"boolean-negation":!1}).command("stats [api]","Show statistics for an API description.",r=>r.env("REDOCLY_CLI_STATS").positional("api",{type:"string"}).option({config:{description:"Path to the config file.",type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"},format:{description:"Use a specific output format.",choices:["stylish","json","markdown"],default:"stylish"}}),async r=>{let{handleStats:e}=await import("./chunks/FDOONAMV.js");Q(e)(r)}).command("inspect-node-types <api>","Show the node types of an API description, for writing configurable rules and custom plugins [experimental].",r=>r.env("REDOCLY_CLI_INSPECT_NODE_TYPES").positional("api",{description:"API description file to inspect.",type:"string",demandOption:!0}).option({config:{description:"Path to the config file.",type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"},pointer:{description:"JSON pointer to a node, optionally prefixed with a file: `#/paths` or `schemas.yaml#/User`.",type:"string",alias:"p"},type:{description:"List only the nodes of this type.",type:"string"},summary:{description:"List the node types used in the description, with counts.",type:"boolean"},parents:{description:"Show the chain of node types leading to the node: down to the node with --pointer, or the distinct chains that reach the type with --type.",type:"boolean"}}).conflicts({pointer:["type","summary"],type:["summary"],summary:["parents"]}).check(e=>{if(e.parents&&!e.pointer&&!e.type)throw new Error("The --parents option requires --pointer or --type.");return!0}),async r=>{let{handleInspectNodeTypes:e}=await import("./chunks/7EB22KXX.js");Q(e)(r)}).command("score [api]","Score an API description for integration simplicity and agent readiness.",r=>r.env("REDOCLY_CLI_SCORE").positional("api",{type:"string"}).option({config:{description:"Path to the config file.",type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"},format:{description:"Use a specific output format.",choices:["stylish","json"],default:"stylish"},"operation-details":{description:"Print per-operation metric details.",type:"boolean",default:!1},"debug-operation-id":{description:"Print detailed schema breakdown for a specific operation.",type:"string"}}),async r=>{let{handleScore:e}=await import("./chunks/YFI3NLJF.js");Q(e)(r)}).command("split [api]","Split an API description into a multi-file structure.",r=>r.env("REDOCLY_CLI_SPLIT").positional("api",{description:"API description file that you want to split",type:"string"}).option({outDir:{description:"Output directory where files will be saved.",required:!0,type:"string"},separator:{description:"File path separator used while splitting.",required:!1,type:"string",default:"_"},config:{description:"Path to the config file.",requiresArg:!0,type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}).demandOption("api"),async r=>{let{handleSplit:e}=await import("./chunks/X5NXRMUW.js");Q(e)(r)}).command("join [apis...]","Join multiple API descriptions into one [experimental].",r=>r.env("REDOCLY_CLI_JOIN").positional("apis",{array:!0,type:"string",demandOption:!0}).option({"prefix-tags-with-info-prop":{description:"Prefix tags with property value from info object.",requiresArg:!0,type:"string"},"prefix-tags-with-filename":{description:"Prefix tags with property value from file name.",type:"boolean",default:!1},"prefix-components-with-info-prop":{description:"Prefix components with property value from info object.",requiresArg:!0,type:"string"},"without-x-tag-groups":{description:"Skip automated x-tagGroups creation",type:"boolean"},output:{description:"Output file.",alias:"o",type:"string"},config:{description:"Path to the config file.",requiresArg:!0,type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}),async r=>{let{handleJoin:e}=await import("./chunks/YMDFCK3F.js");Q(e)(r)}).command("push-status [pushId]",!1,r=>r.env("REDOCLY_CLI_PUSH_STATUS").positional("pushId",{description:"Push id.",type:"string",demandOption:!0}).implies("max-execution-time","wait").option({organization:{description:"Name of the organization to push to.",type:"string",alias:"o",required:!0},project:{description:"Name of the project to push to.",type:"string",required:!0,alias:"p"},domain:{description:"Specify a domain.",alias:"d",type:"string",required:!1},wait:{description:"Wait for build to finish.",type:"boolean",default:!1},"max-execution-time":{description:"Maximum execution time in seconds.",type:"number"},"continue-on-deploy-failures":{description:"Command does not fail even if the deployment fails.",type:"boolean",default:!1},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}),async r=>{let{handlePushStatus:e}=await import("./chunks/VYHYEZI5.js");Q(e)(r)}).command("push [files...]","Push documents to Reunite.",r=>r.env("REDOCLY_CLI_PUSH").positional("files",{type:"string",array:!0,demandOption:!0}).option({branch:{description:"Branch name to push to.",type:"string",alias:"b",required:!0},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"},organization:{description:"Name of the organization to push to.",type:"string",alias:"o",required:!0},project:{description:"Name of the project to push to.",type:"string",alias:"p",required:!0},"mount-path":{description:"The path files should be pushed to.",type:"string",alias:"mp",required:!0,coerce:da},author:{description:"Author of the commit.",type:"string",alias:"a",required:!0},message:{description:"Commit message.",type:"string",alias:"m",required:!0},"commit-sha":{description:"Commit SHA.",type:"string",alias:"sha"},"commit-url":{description:"Commit URL.",type:"string",alias:"url"},namespace:{description:"Repository namespace.",type:"string"},repository:{description:"Repository name.",type:"string"},"created-at":{description:"Commit creation date.",type:"string"},domain:{description:"Specify a domain.",alias:"d",type:"string"},config:{description:"Path to the config file.",requiresArg:!0,type:"string"},"default-branch":{type:"string",default:"main"},"max-execution-time":{description:"Maximum execution time in seconds.",type:"number"},"wait-for-deployment":{description:"Wait for build to finish.",type:"boolean",default:!1},replace:{description:"Remove the files under the mount path that are not part of this push.",type:"boolean",default:!1},verbose:{type:"boolean",default:!1},"continue-on-deploy-failures":{description:"Command does not fail even if the deployment fails.",type:"boolean",default:!1}}),async r=>{let{handlePush:e}=await import("./chunks/LJPUHAWE.js");Q(e)(r)}).command("lint [apis...]","Lint an API or Arazzo description.",r=>r.env("REDOCLY_CLI_LINT").positional("apis",{array:!0,type:"string",demandOption:!0}).option({format:{description:"Use a specific output format.",choices:["stylish","codeframe","json","checkstyle","codeclimate","summary","markdown","github-actions","junit"],default:"codeframe"},"max-problems":{requiresArg:!0,description:"Reduce output to a maximum of N problems.",type:"number",default:100},"generate-ignore-file":{description:"Generate an ignore file.",type:"boolean"},"skip-rule":{description:"Ignore certain rules.",array:!0,type:"string"},"skip-preprocessor":{description:"Ignore certain preprocessors.",array:!0,type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"},config:{description:"Path to the config file.",requiresArg:!0,type:"string"},extends:{description:"Override extends configurations (defaults or config file settings).",requiresArg:!0,array:!0,type:"string"}}),async r=>{let{handleLint:e}=await import("./chunks/NALRPITK.js");Q(e)(r)}).command("bundle [apis...]","Bundle a multi-file API description to a single file.",r=>r.env("REDOCLY_CLI_BUNDLE").positional("apis",{array:!0,type:"string",demandOption:!0}).options({output:{type:"string",description:"Output file or folder for inline APIs.",alias:"o"},ext:{description:"Bundle file extension.",requiresArg:!0,choices:Yn},"skip-preprocessor":{description:"Ignore certain preprocessors.",array:!0,type:"string"},"skip-decorator":{description:"Ignore certain decorators.",array:!0,type:"string"},overlay:{description:"Overlay file to apply. Repeat to apply several, in order.",array:!0,type:"string",requiresArg:!0},dereferenced:{alias:"d",type:"boolean",description:"Produce a fully dereferenced bundle."},force:{alias:"f",type:"boolean",description:"Produce bundle output even when errors occur."},config:{description:"Path to the config file.",type:"string"},metafile:{description:"Produce metadata about the bundle",type:"string"},extends:{description:"Override extends configurations (defaults or config file settings).",requiresArg:!0,array:!0,type:"string",hidden:!0},"remove-unused-components":{description:"Remove unused components.",type:"boolean",default:!1},"keep-url-references":{description:"Keep absolute url references.",type:"boolean",alias:"k"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"},"component-renaming-conflicts-severity":{description:"Whether to show warnings or fail on renaming conflicts (defaults to warn).",choices:["warn","error","off"]},"component-names-strategy":{description:"How to name inlined Schema components: 'basename' (default) or 'title' (from each schema's `title`).",choices:["basename","title"],default:"basename"}}).check(e=>{if(e.output&&(!e.apis||e.apis.length===0))throw new Error("At least one inline API must be specified when using --output.");return!0}),async r=>{let{handleBundle:e}=await import("./chunks/ZBOUASE7.js");Q(e)(r)}).command("check-config","Lint the Redocly configuration file.",async r=>r.env("REDOCLY_CLI_CHECK_CONFIG").option({config:{description:"Path to the config file.",type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error"],default:"error"}}),r=>{Q()(r)}).command("login","Log in to Redocly.",async r=>r.env("REDOCLY_CLI_LOGIN").options({residency:{description:"Residency of the application. Defaults to `us`.",alias:["r"],type:"string"},config:{description:"Path to the config file.",requiresArg:!0,type:"string"},verbose:{alias:"v",describe:"Apply verbose mode.",type:"boolean"}}),async r=>{let{handleLogin:e}=await import("./chunks/VBHLPG5Q.js");Q(e)(r)}).command("logout","Clear your stored credentials.",r=>r,async r=>{let{handleLogout:e}=await import("./chunks/ZFJHZEI3.js");Q(e)(r)}).command("preview","Preview Redocly project using one of the product NPM packages.",r=>r.env("REDOCLY_CLI_PREVIEW").options({product:{type:"string",choices:["redoc","revel","reef","realm","redoc-revel","redoc-reef","revel-reef"],description:"Product used to launch preview. Default is inferred from project's package.json or 'realm' is used."},plan:{type:"string",choices:Bn,default:"enterprise"},port:{alias:"p",type:"number",description:"Preview port.",default:4e3,coerce:st("port",!0)},"project-dir":{alias:["d","source-dir"],type:"string",description:"Specifies the project content directory. The default value is the directory where the command is executed.",default:"."},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}),async r=>{process.argv.some(t=>t.startsWith("--source-dir"))&&ne.error(`Option --source-dir is deprecated and will be removed soon. Use --project-dir instead.
|
|
149
|
+
`);let{previewProject:e}=await import("./chunks/YOBULQYM.js");Q(e)(r)}).command("build-docs [api]","Produce API documentation as an HTML file",r=>r.positional("api",{type:"string"}).options({o:{describe:"Output destination file.",alias:"output",type:"string",default:"redoc-static.html"},title:{describe:"Page title.",type:"string"},disableGoogleFont:{describe:"Disable Google fonts.",type:"boolean",default:!1},t:{alias:"template",describe:"Path to handlebars page template, see https://github.com/Redocly/redocly-cli/blob/main/packages/cli/src/commands/build-docs/template.hbs for the example.",type:"string"},templateOptions:{describe:"Additional options to pass to the template. Use dot notation, e.g. templateOptions.metaDescription"},theme:{describe:"Redoc theme.openapi configuration. Use dot notation, e.g. theme.openapi.nativeScrollbars"},config:{describe:"Path to the config file.",type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}).check(e=>{if(e.theme&&!e.theme?.openapi)throw new Error("Invalid option: theme.openapi not set.");return!0}),async r=>{let{handlerBuildCommand:e}=await import("./chunks/IDI3SURO.js");Q(e)(r)}).command("translate <locale>","Creates or updates translations.yaml files and fills them with missing built-in translations and translations from the redocly.yaml and sidebars.yaml files.",r=>r.env("REDOCLY_CLI_TRANSLATE").positional("locale",{description:"Locale code to generate translations for, or `all` for all current project locales.",type:"string",demandOption:!0}).options({"project-dir":{alias:"d",type:"string",description:"Specifies the project content directory. The default value is the directory where the command is executed.",default:"."},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}),async r=>{let{handleTranslations:e}=await import("./chunks/XYKNLM5G.js");Q(e)(r)}).command("eject <type> [path]","Helper function to eject project elements for customization.",r=>r.env("REDOCLY_CLI_EJECT").positional("type",{description:"Specifies what type of project element to eject. Currently this value must be `component`.",demandOption:!0,choices:["component"]}).positional("path",{description:"Filepath to a component or filepath with glob pattern.",type:"string"}).options({"project-dir":{alias:"d",type:"string",description:"Specifies the project content directory. The default value is the directory where the command is executed.",default:"."},force:{alias:"f",type:"boolean",description:'Skips the "overwrite existing" confirmation when ejecting a component that is already ejected in the destination.'},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}),async r=>{let{handleEject:e}=await import("./chunks/MZWBJKK2.js");Q(e)(r)}).command("respect [files...]","Run Arazzo tests.",r=>r.env("REDOCLY_CLI_RESPECT").positional("files",{describe:"Test files or glob pattern.",type:"string",array:!0,default:[]}).options({input:{alias:"i",describe:"Input parameters.",type:"string"},server:{alias:"S",describe:"Server parameters.",type:"string"},workflow:{alias:"w",describe:"Workflow name.",type:"string",array:!0},skip:{alias:"s",describe:"Workflow to skip.",type:"string",array:!0},verbose:{alias:"v",describe:"Apply verbose mode.",type:"boolean"},"har-output":{describe:"Har file output name.",type:"string",alias:"H"},"json-output":{describe:"JSON file output name.",type:"string",alias:"J"},mtls:{describe:'Per-domain mutual TLS certificates configuration as JSON. Format: {"<domain>": {"clientCert": "<path>", "clientKey": "<path>", "caCert": "<path>"}}',type:"string",array:!0,coerce:aa},severity:{describe:"Severity of the check.",type:"string"},"max-steps":{describe:"Maximum number of steps to run (default: 2000).",type:"number",default:2e3,coerce:st("max-steps",!0)},"max-fetch-timeout":{describe:"Maximum time to wait for API response per request in milliseconds (default: 40 seconds).",type:"number",default:4e4,coerce:st("max-fetch-timeout",!1)},"execution-timeout":{describe:"Maximum time to wait for the Respect execution in milliseconds (default: 1 hour).",type:"number",default:36e5,coerce:st("execution-timeout",!1)},"no-secrets-masking":{describe:"Do not mask secrets in the output.",type:"boolean",default:!1}}),async r=>{let{handleRespect:e}=await import("./chunks/F57WBWGV.js");Q(e)(r)}).command("generate-arazzo <descriptionPath>","Auto-generate arazzo description file from an API description.",r=>r.env("REDOCLY_CLI_GENERATE_ARAZZO").positional("descriptionPath",{describe:"Description file path.",type:"string"}).options({"output-file":{alias:"o",describe:"Output File name.",type:"string",requiresArg:!0},"with-ai":{describe:"Redesign the generated workflows with an AI provider, using the OpenAPI description as context.",type:"boolean",default:!1},"ai-provider":{describe:'AI provider used with --with-ai; runs the "claude", "codex", or "cursor" CLI in non-interactive mode.',choices:["claude","codex","cursor"],default:"claude"},"ai-model":{describe:"Model passed to the selected AI provider (provider-specific default applies).",type:"string"},"ai-concurrency":{describe:"Number of workflows designed in parallel with --with-ai for large descriptions.",type:"number",default:4,coerce:st("ai-concurrency",!0)},"max-workflows":{describe:"Most workflows the AI may design with --with-ai.",type:"number",default:10,coerce:st("max-workflows",!0)}}),async r=>{let{handleGenerateArazzo:e}=await import("./chunks/MKS4O6F4.js");Q(e)(r)}).command("generate-client [api]","Generate a TypeScript client from an OpenAPI description [experimental].",r=>r.env("REDOCLY_CLI_GENERATE_CLIENT").positional("api",{describe:"OpenAPI description file path (or alias from redocly.yaml `apis:`).",type:"string"}).options({output:{alias:"o",describe:"Output file path for the generated client (must end in .ts).",type:"string",requiresArg:!0},"server-url":{describe:"Override the server URL inlined into the generated runtime. Defaults to `servers[0].url`.",type:"string",requiresArg:!0},"output-mode":{describe:"How the client is split across files: `single` (default, one file) or `split` (schema types and guards in a sibling `<name>.schemas.ts` the entry re-exports).",choices:["single","split"],requiresArg:!0},runtime:{describe:"Runtime distribution: 'inline' (default) embeds the runtime in the generated file; 'module' writes it as real files in a runtime/ folder beside the client.",choices:["inline","module"],requiresArg:!0},docs:{description:"Also write reference documentation for what this run generates: one Markdown page per selected generator that documents itself (the CLI, and each SDK).",type:"boolean"},"go-package":{description:"Package clause of the `go` generator's output (a valid Go package name). Defaults to `client`.",type:"string",requiresArg:!0},"import-ext":{describe:"Extension in generated relative imports: 'js' (default) suits tsc and bundlers; 'ts' suits runtimes that resolve specifiers literally, like Node's built-in type stripping (node client.ts).",choices:["js","ts"],requiresArg:!0},setup:{describe:"Path to a publisher setup module (a file default-exporting { config, middleware }) that gets included into the generated client \u2014 pre-configure defaults such as the server URL, retries, headers, and middleware, so a published SDK ships with them built in. Works across all output modes.",type:"string",requiresArg:!0},"args-style":{describe:"How operation inputs are passed: `flat` (default) spreads path params as positional arguments followed by `params`/`body`/`headers`; `grouped` bundles every input into a single `args` object (the per-call request `init` stays a separate trailing argument).",choices:["flat","grouped"],requiresArg:!0},"error-mode":{describe:"Error handling: 'throw' (default) throws ApiError on non-2xx; 'result' returns { data, error, response }.",choices:["throw","result"],requiresArg:!0},"date-type":{describe:"How `date-time`/`date` string fields are typed: 'string' (default) keeps the ISO wire shape; 'Date' emits a `Date` (pair with --generator transformers so the runtime value matches).",choices:["string","Date"],requiresArg:!0},"mock-data":{describe:"How the `mock` generator produces data: 'static' (default) inlines deterministic literals (zero-dep); 'faker' emits @faker-js/faker calls for realistic data (install @faker-js/faker as a dev dependency).",choices:["static","faker"],requiresArg:!0},"mock-seed":{describe:"Seed for faker-mode mocks: emits a top-level `faker.seed(<n>)` so generated data is reproducible across runs. Ignored in static mode.",type:"number",requiresArg:!0},generator:{describe:'Generator to run; repeat the flag to run several (default: typescript). Built-in: typescript, zod, tanstack-query, tanstack-query-vue, tanstack-query-svelte, tanstack-query-solid, swr, mock, transformers, cli, python, go, php \u2014 or a path/package specifier for a custom generator. What each one emits is in the "Use the generated client" guide. Example: --generator typescript --generator zod',type:"string",array:!0,requiresArg:!0},config:{describe:"Path to the config file.",type:"string",requiresArg:!0}}),async r=>{let{handleGenerateClient:e}=await import("./chunks/VT3BHT6S.js");Q(e)(r)}).command("eject-generator [generator]","Vendor a built-in client generator into your repo as an editable file [experimental].",r=>r.positional("generator",{describe:`Built-in generator to eject (${[...Rt].join(", ")}).`,type:"string"}).options({config:{description:"Path to the config file.",type:"string"},dir:{describe:"Directory to eject into (default: ./generators).",type:"string",requiresArg:!0},force:{describe:"Overwrite an existing ejected file (discards local edits).",type:"boolean",default:!1},update:{describe:"Three-way merge a newer generator version into your customized copy (pristine \xD7 new \xD7 yours).",type:"boolean",default:!1}}),async r=>{Q(sa)(r)}).command("generate-spec <traffic>","Infer an OpenAPI description from recorded HTTP traffic, optionally refined with AI [experimental].",r=>r.env("REDOCLY_CLI_GENERATE_SPEC").positional("traffic",{describe:"Path to a traffic log file or folder (HAR, Kong, Nginx/Apache JSON, NDJSON).",type:"string"}).option({type:{describe:"Target API description type.",choices:["openapi"],default:"openapi"},"traffic-format":{describe:"Traffic input format.",choices:["auto","har","kong","nginx-json","apache-json","ndjson"],default:"auto"},server:{describe:"Server URL the traffic was captured against: only requests under it are considered, the rest of their URL becomes the API path, and it becomes the servers URL of the generated description.",type:"string"},title:{describe:"Title for the generated API description.",type:"string"},"with-ai":{describe:"Refine the inferred description with an AI provider to narrow the hypothesis.",type:"boolean",default:!1},"ai-provider":{describe:'AI provider used with --with-ai; runs the "claude", "codex", or "cursor" CLI in non-interactive mode.',choices:["claude","codex","cursor"],default:"claude"},"ai-model":{describe:"Model passed to the selected AI provider (provider-specific default applies).",type:"string"},"ai-concurrency":{describe:"Number of operations refined in parallel with --with-ai.",type:"number",default:4,coerce:st("ai-concurrency",!0)},output:{alias:"o",describe:"Write the generated description to this file instead of stdout.",type:"string"},config:{describe:"Path to the config file.",type:"string"}}),async r=>{let{handleGenerateSpec:e}=await import("./chunks/52MXI4PU.js");Q(e)(r)}).command("introspect-mcp [server-url]","Introspect a running MCP server and record its capabilities in the x-mcp extension of an OpenAPI description [experimental].",r=>r.env("REDOCLY_CLI_INTROSPECT_MCP").positional("server-url",{describe:"URL of the MCP server (Streamable HTTP, with a fallback to the legacy HTTP+SSE transport). Alternative to --command.",type:"string"}).option({command:{describe:'Command that starts a local MCP server to introspect over stdio, for example "npx -y my-mcp-server". Quote arguments that contain spaces. Alternative to a server URL.',type:"string",requiresArg:!0},output:{alias:"o",describe:"OpenAPI description file to create or update.",type:"string",default:"openapi.yaml"},header:{alias:"H",describe:'Header sent with every request to the MCP server, in "Name: value" format. Repeat the option for multiple headers.',array:!0,type:"string"},check:{describe:"Verify the description is up to date with the MCP server instead of writing: report the differences and exit with an error when it is not.",type:"boolean",default:!1},config:{describe:"Path to the config file.",type:"string"}}).check(e=>{if(!!e["server-url"]==!!e.command)throw new Error("Provide either an MCP server URL or --command, not both.");if(e.command&&e.header)throw new Error("The --header option only applies to an MCP server URL.");return!0}),async r=>{let{handleIntrospectMcp:e}=await import("./chunks/7XKYPQPI.js");Q(e)(r)}).command("scorecard-classic [api]","Run quality scorecards with multiple rule levels to validate and maintain API description standards.",r=>r.positional("api",{type:"string"}).option({config:{describe:"Path to the config file.",type:"string"},"project-url":{describe:"URL to the project scorecard configuration.",type:"string"},format:{description:"Use a specific output format.",choices:["stylish","json","checkstyle","junit"],default:"stylish"},"target-level":{describe:"Target level for the scorecard.",type:"string"},verbose:{alias:"v",describe:"Apply verbose mode.",type:"boolean"}}),async r=>{let{handleScorecardClassic:e}=await import("./chunks/UXFJO2OQ.js");Q(e)(r)}).command("drift <traffic>","Detect drift between recorded HTTP traffic and an OpenAPI description [experimental].",r=>r.env("REDOCLY_CLI_DRIFT").positional("traffic",{describe:"Path to a traffic log file or folder (HAR, Kong, Nginx/Apache JSON, NDJSON).",type:"string"}).option({api:{describe:"OpenAPI description file or folder to validate against.",type:"string",demandOption:!0},"traffic-format":{describe:"Traffic input format.",choices:["auto","har","kong","nginx-json","apache-json","ndjson"],default:"auto"},"report-format":{describe:"Output format.",alias:"format",choices:["pretty","json","csv","sarif"],default:"pretty"},"match-mode":{describe:"Endpoint matching mode (how requests are located via the description servers). Mutually exclusive with --server.",choices:["strict-host","basepath"],defaultDescription:"strict-host"},"ignore-cookies":{describe:"Ignore cookie-based checks (useful for logs exported without cookies).",type:"boolean",default:!1},"ignore-headers":{describe:'Comma-separated header names to skip in undocumented-header checks. A trailing "*" matches by prefix, e.g. "x-consumer-*".',type:"string"},"max-findings":{describe:"Maximum findings shown in pretty output.",type:"number",default:10},"min-severity":{describe:"Discard findings below this severity from the report.",choices:["info","warning","error"],default:"info"},rules:{describe:"Comma-separated builtin rules to run.",type:"string"},output:{alias:"o",describe:"Write the drift report (in the format selected with --format) to this file instead of stdout.",type:"string"},server:{describe:"Server URL the traffic was captured against: only requests under it are considered, and the rest of their URL is treated as the API path. It replaces the description servers and the remaining path is matched against the description paths directly. Mutually exclusive with --match-mode.",type:"string"},config:{describe:"Path to the config file.",type:"string"},"lint-config":{describe:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}),async r=>{let{handleDrift:e}=await import("./chunks/2PGNW76R.js");Q(e)(r)}).command("proxy","Capture live HTTP traffic through a reverse proxy into a HAR file, optionally validating it against an OpenAPI description [experimental].",r=>r.env("REDOCLY_CLI_PROXY").option({target:{describe:"Upstream base URL to forward captured requests to.",type:"string",demandOption:!0},port:{describe:"Port the proxy listens on.",type:"number",default:4040},host:{describe:"Host the proxy binds to.",type:"string",default:"127.0.0.1"},har:{describe:"Path to the HAR file where captured traffic is written.",type:"string",demandOption:!0},api:{describe:"OpenAPI description file or folder to validate captured traffic against (live).",type:"string"},"report-format":{describe:"Output format for the validation report printed on shutdown.",alias:"format",choices:["pretty","json","csv","sarif"],default:"pretty"},"match-mode":{describe:"Endpoint matching mode.",choices:["strict-host","basepath"],default:"strict-host"},"ignore-cookies":{describe:"Ignore cookie-based checks.",type:"boolean",default:!1},"ignore-headers":{describe:'Comma-separated header names to skip in undocumented-header checks. A trailing "*" matches by prefix, e.g. "x-consumer-*".',type:"string"},"max-findings":{describe:"Maximum findings shown in pretty output.",type:"number",default:10},rules:{describe:"Comma-separated builtin rules to run.",type:"string"},config:{describe:"Path to the config file.",type:"string"},"lint-config":{describe:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"}}),async r=>{let{handleProxy:e}=await import("./chunks/664FDTDV.js");Q(e)(r)}).completion("completion","Generate autocomplete script for `redocly` command.").demandCommand(1).middleware([ua]).strict().argv;
|
|
150
150
|
/*! Bundled license information:
|
|
151
151
|
|
|
152
152
|
yargs-parser/build/lib/string-utils.js:
|