@redocly/cli 2.71.0 → 2.71.1

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.
Files changed (156) hide show
  1. package/THIRD_PARTY_NOTICES +3 -3
  2. package/lib/chunks/{SXIMN47K.js → 25RSTUQA.js} +1 -1
  3. package/lib/chunks/{N37OGNC4.js → 2IUGP2IH.js} +3 -3
  4. package/lib/chunks/{STAMDB3P.js → 2NYYNBAC.js} +1 -1
  5. package/lib/chunks/{YDGFDJ2K.js → 3N7LKSDD.js} +1 -1
  6. package/lib/chunks/4DUOPCYP.js +7 -0
  7. package/lib/chunks/{QAPQYNI3.js → 54EKLNNI.js} +1 -1
  8. package/lib/chunks/5BQNATJZ.js +20 -0
  9. package/lib/chunks/{PF43QQZA.js → 5DW3QRJB.js} +2 -2
  10. package/lib/chunks/{E4MPGN3Z.js → 5SSWNONM.js} +1 -1
  11. package/lib/chunks/{B5KSRXXW.js → 6TCEQRVX.js} +1 -1
  12. package/lib/chunks/{G2M6SQCS.js → 6ZNJ7RDX.js} +2 -2
  13. package/lib/chunks/{YLRH4RVF.js → 7HFLPQAB.js} +2 -2
  14. package/lib/chunks/{JCP37EY3.js → ACAPGKSR.js} +59 -25
  15. package/lib/chunks/ACECCMWJ.js +14 -0
  16. package/lib/chunks/{O37B7ABT.js → AH6ANNYP.js} +1 -1
  17. package/lib/chunks/{EHQY7ZOF.js → B5SUTVG4.js} +1 -1
  18. package/lib/chunks/{HAOBCQWB.js → BE4Z5FOC.js} +10 -8
  19. package/lib/chunks/{TXSBWL3Y.js → BOWZV5S6.js} +1 -1
  20. package/lib/chunks/{IULINGO6.js → BPSWCUZE.js} +1 -1
  21. package/lib/chunks/{V6VNRABV.js → BXXX3ZCV.js} +1 -1
  22. package/lib/chunks/{QMS4UKIK.js → CHX7O5AM.js} +5 -5
  23. package/lib/chunks/{2NVGTELR.js → CJWIDJTB.js} +1 -1
  24. package/lib/chunks/{L4F2ERUL.js → CX76LEFC.js} +1 -1
  25. package/lib/chunks/{WBWCX3LS.js → DORXGE7Z.js} +93 -93
  26. package/lib/chunks/{LD5MEXEL.js → DP3T6VZX.js} +1 -1
  27. package/lib/chunks/{FKKC7G6X.js → DURXFJ7H.js} +1 -1
  28. package/lib/chunks/DVLD4FET.js +20 -0
  29. package/lib/chunks/{MV3ZJ5HR.js → EAFZ6DNQ.js} +1 -1
  30. package/lib/chunks/{LS3G7CUH.js → EBHQXW6Z.js} +1 -1
  31. package/lib/chunks/{RIGQPR2I.js → EO65RJ4Z.js} +1 -1
  32. package/lib/chunks/{T55LQK2H.js → EQOFXQKD.js} +1 -1
  33. package/lib/chunks/FBEEMKTB.js +7 -0
  34. package/lib/chunks/{BU4AMVHN.js → FGJDZKD2.js} +1 -1
  35. package/lib/chunks/G6SB4ZP5.js +7 -0
  36. package/lib/chunks/{LRMOPAZ4.js → GAKWND4S.js} +1 -1
  37. package/lib/chunks/HAGYQ4BK.js +20 -0
  38. package/lib/chunks/{LNEXTJNF.js → HBWCMTP3.js} +1 -1
  39. package/lib/chunks/{2R2CXBRH.js → HWOL3HHR.js} +1 -1
  40. package/lib/chunks/{2UAA6O26.js → ILYXMZRT.js} +1 -1
  41. package/lib/chunks/{NBMSBQEL.js → INGAWMLB.js} +1 -1
  42. package/lib/chunks/{3DMXMP4K.js → IYV7EO2J.js} +1 -1
  43. package/lib/chunks/IZMDARCL.js +22 -0
  44. package/lib/chunks/JOWPA3MJ.js +7 -0
  45. package/lib/chunks/KFQC57GK.js +145 -0
  46. package/lib/chunks/{CZS2ZXJ7.js → KJIUDCYZ.js} +1 -1
  47. package/lib/chunks/{QB6CQ2CV.js → L2O63VRM.js} +1 -1
  48. package/lib/chunks/{MYSYBBIO.js → MH5X2EVH.js} +1 -1
  49. package/lib/chunks/{RLJVKAOL.js → NLAPR7D4.js} +1 -1
  50. package/lib/chunks/O53IFFP3.js +98 -0
  51. package/lib/chunks/{MQUZ5IJ2.js → PBQOGZ5C.js} +1 -1
  52. package/lib/chunks/{BCRM4BTA.js → Q3IJURM3.js} +1 -1
  53. package/lib/chunks/{HHCU6T2V.js → QXBSAWH3.js} +1 -1
  54. package/lib/chunks/QXHFS5G6.js +7 -0
  55. package/lib/chunks/{E3FBSKNS.js → QZJAXPYF.js} +1 -1
  56. package/lib/chunks/{QTGTCBFK.js → RBJCAITC.js} +1 -1
  57. package/lib/chunks/{CN2ZOHYL.js → RBNQC5ZB.js} +1 -1
  58. package/lib/chunks/{2CMKIFTE.js → RNA6JDRC.js} +1 -1
  59. package/lib/chunks/{DHP4BBTH.js → RNL7TC2W.js} +1 -1
  60. package/lib/chunks/{WKDC6LN3.js → RUPTJCF5.js} +1 -1
  61. package/lib/chunks/{YDQCJP4F.js → S6W63XAS.js} +1 -1
  62. package/lib/chunks/{B3GE7EIX.js → TN3JQHMS.js} +1 -1
  63. package/lib/chunks/TNRIBQHV.js +7 -0
  64. package/lib/chunks/TZROZMVE.js +20 -0
  65. package/lib/chunks/{TR67FYLT.js → U7KIB7CD.js} +1 -1
  66. package/lib/chunks/{EFB2YVY2.js → UMN7TKTH.js} +2 -2
  67. package/lib/chunks/{VXD5O25A.js → V34D5CUU.js} +1 -1
  68. package/lib/chunks/{SBHCUK5I.js → W2CABGMW.js} +1 -1
  69. package/lib/chunks/{MYOQDPQZ.js → WCJ2HAN3.js} +1 -1
  70. package/lib/chunks/{5ECOOGVW.js → WJ3YDHQA.js} +1 -1
  71. package/lib/chunks/{6TE6AFQ3.js → WLI2XLEP.js} +1 -1
  72. package/lib/chunks/{NCDX4IGX.js → X7C43UBI.js} +1 -1
  73. package/lib/chunks/{EH6VW7JO.js → XGPGFZMH.js} +1 -1
  74. package/lib/chunks/{YUEIHUPX.js → XZIK3H6V.js} +1 -1
  75. package/lib/chunks/{P7LM57HK.js → Y3LDWYZD.js} +1 -1
  76. package/lib/chunks/{VJHJJBVN.js → Y5DDX2MU.js} +1 -1
  77. package/lib/chunks/{MT4W54PL.js → YL3LVBZF.js} +1 -1
  78. package/lib/chunks/{O6NMXFEP.js → ZBB6PS6I.js} +1 -1
  79. package/lib/chunks/{NZE22F7Q.js → ZQTHHPK3.js} +2 -2
  80. package/lib/eject-assets/generators/cli/docs.ts +1 -1
  81. package/lib/eject-assets/generators/cli/engine-source.ts +1 -1
  82. package/lib/eject-assets/generators/cli/index.ts +2 -2
  83. package/lib/eject-assets/generators/cli/render.ts +1 -1
  84. package/lib/eject-assets/generators/go/client.ts +1 -1
  85. package/lib/eject-assets/generators/go/descriptor.ts +1 -1
  86. package/lib/eject-assets/generators/go/index.ts +2 -2
  87. package/lib/eject-assets/generators/go/models.ts +7 -2
  88. package/lib/eject-assets/generators/go/naming.ts +1 -1
  89. package/lib/eject-assets/generators/go/operations.ts +1 -1
  90. package/lib/eject-assets/generators/go/pagination.ts +1 -1
  91. package/lib/eject-assets/generators/go/types.ts +1 -1
  92. package/lib/eject-assets/generators/mock/faker.ts +17 -9
  93. package/lib/eject-assets/generators/mock/index.ts +4 -3
  94. package/lib/eject-assets/generators/mock/render.ts +128 -9
  95. package/lib/eject-assets/generators/mock/sample.ts +87 -4
  96. package/lib/eject-assets/generators/mock/values.ts +1 -1
  97. package/lib/eject-assets/generators/php/client.ts +1 -1
  98. package/lib/eject-assets/generators/php/descriptor.ts +10 -1
  99. package/lib/eject-assets/generators/php/index.ts +2 -2
  100. package/lib/eject-assets/generators/php/models.ts +8 -3
  101. package/lib/eject-assets/generators/php/naming.ts +1 -1
  102. package/lib/eject-assets/generators/php/operations.ts +11 -6
  103. package/lib/eject-assets/generators/php/pagination.ts +3 -2
  104. package/lib/eject-assets/generators/php/types.ts +12 -2
  105. package/lib/eject-assets/generators/python/client.ts +1 -1
  106. package/lib/eject-assets/generators/python/descriptor.ts +1 -1
  107. package/lib/eject-assets/generators/python/index.ts +3 -3
  108. package/lib/eject-assets/generators/python/models.ts +9 -3
  109. package/lib/eject-assets/generators/python/naming.ts +1 -1
  110. package/lib/eject-assets/generators/python/operations.ts +6 -5
  111. package/lib/eject-assets/generators/python/pagination.ts +1 -1
  112. package/lib/eject-assets/generators/python/types.ts +1 -1
  113. package/lib/eject-assets/generators/swr/index.ts +2 -2
  114. package/lib/eject-assets/generators/swr/render.ts +1 -1
  115. package/lib/eject-assets/generators/tanstack-query/index.ts +2 -2
  116. package/lib/eject-assets/generators/tanstack-query/render.ts +6 -5
  117. package/lib/eject-assets/generators/transformers/index.ts +2 -2
  118. package/lib/eject-assets/generators/transformers/render.ts +34 -7
  119. package/lib/eject-assets/generators/typescript/banner.ts +1 -1
  120. package/lib/eject-assets/generators/typescript/client.ts +1 -1
  121. package/lib/eject-assets/generators/typescript/descriptor.ts +1 -1
  122. package/lib/eject-assets/generators/typescript/index.ts +2 -2
  123. package/lib/eject-assets/generators/typescript/inline-runtime.ts +1 -1
  124. package/lib/eject-assets/generators/typescript/operation-signature.ts +1 -1
  125. package/lib/eject-assets/generators/typescript/operation-types.ts +1 -1
  126. package/lib/eject-assets/generators/typescript/operations.ts +1 -1
  127. package/lib/eject-assets/generators/typescript/response-headers.ts +1 -1
  128. package/lib/eject-assets/generators/typescript/type-guards.ts +1 -1
  129. package/lib/eject-assets/generators/typescript/types.ts +1 -1
  130. package/lib/eject-assets/generators/zod/index.ts +2 -2
  131. package/lib/eject-assets/generators/zod/schemas.ts +1 -1
  132. package/lib/eject-assets/skills/go-generator/SKILL.md +3 -0
  133. package/lib/eject-assets/skills/mock-generator/SKILL.md +22 -0
  134. package/lib/eject-assets/skills/php-generator/SKILL.md +9 -2
  135. package/lib/eject-assets/skills/python-generator/SKILL.md +6 -0
  136. package/lib/eject-assets/skills/tanstack-query-generator/SKILL.md +2 -1
  137. package/lib/eject-assets/skills/transformers-generator/SKILL.md +4 -0
  138. package/lib/eject-assets/skills/typescript-generator/SKILL.md +5 -0
  139. package/lib/index.js +5 -5
  140. package/lib/skills/redocly-cli/SKILL.md +20 -1
  141. package/package.json +1 -1
  142. package/lib/chunks/2Y7MGFQS.js +0 -105
  143. package/lib/chunks/BPDHBW3N.js +0 -7
  144. package/lib/chunks/EWU57NBY.js +0 -20
  145. package/lib/chunks/GKXY6U4S.js +0 -145
  146. package/lib/chunks/GMGZQR6Q.js +0 -7
  147. package/lib/chunks/JM7BMZLD.js +0 -13
  148. package/lib/chunks/K6VR5YNF.js +0 -22
  149. package/lib/chunks/M6UVHV6D.js +0 -7
  150. package/lib/chunks/O72R3AD4.js +0 -20
  151. package/lib/chunks/RZ3FGCBT.js +0 -20
  152. package/lib/chunks/SBT63VHF.js +0 -7
  153. package/lib/chunks/UW4UC7ZI.js +0 -9
  154. package/lib/chunks/VQRJE4I2.js +0 -7
  155. package/lib/chunks/WACZWFKN.js +0 -19
  156. package/lib/chunks/WJXIZZA6.js +0 -7
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 Kn,f as te}from"./chunks/U5DIFWGH.js";import{a as Xn,c as Jn}from"./chunks/LRRSU5UY.js";import{a as Jt,b as ei,c as ti,d as ri,e as ni,f as ii}from"./chunks/G2M6SQCS.js";import{a as Aa}from"./chunks/ERBLCNSR.js";import{a as He,b as Bn,c as Yn,g as Qn}from"./chunks/VXD5O25A.js";import{a as Zn}from"./chunks/QAPQYNI3.js";import{a as Vn}from"./chunks/QMS4UKIK.js";import{L as qn,O as Mn,W as Nt,Z as At,_ as Kt,a as Dn,ba as it,c as ke,da as Fn,fa as z,ga as Un,ha as kn,k as vr,la as ge,ma as Xt,pa as Gn,sa as zn,ta as Wn,ya as Hn}from"./chunks/WBWCX3LS.js";import"./chunks/NEWT5A6S.js";import{a as Ue,c as U,e as Yt}from"./chunks/RFWIIJFG.js";var St=U((nd,si)=>{"use strict";var Sa="2.0.0",Ca=Number.MAX_SAFE_INTEGER||9007199254740991,Ra=16,ja=250,xa=["major","premajor","minor","preminor","patch","prepatch","prerelease"];si.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Ra,MAX_SAFE_BUILD_LENGTH:ja,MAX_SAFE_INTEGER:Ca,RELEASE_TYPES:xa,SEMVER_SPEC_VERSION:Sa,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Tt=U((id,oi)=>{"use strict";var $a=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};oi.exports=$a});var Ct=U((Ge,ai)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:_r,MAX_SAFE_BUILD_LENGTH:va,MAX_LENGTH:_a}=St(),Ia=Tt();Ge=ai.exports={};var Pa=Ge.re=[],La=Ge.safeRe=[],R=Ge.src=[],Na=Ge.safeSrc=[],j=Ge.t={},Ta=0,Ir="[a-zA-Z0-9-]",Da=[["\\s",1],["\\d",_a],[Ir,va]],qa=r=>{for(let[e,t]of Da)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},G=(r,e,t)=>{let n=qa(e),i=Ta++;Ia(r,i,e),j[r]=i,R[i]=e,Na[i]=n,Pa[i]=new RegExp(e,t?"g":void 0),La[i]=new RegExp(n,t?"g":void 0)};G("NUMERICIDENTIFIER","0|[1-9]\\d*");G("NUMERICIDENTIFIERLOOSE","\\d+");G("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Ir}*`);G("MAINVERSION",`(${R[j.NUMERICIDENTIFIER]})\\.(${R[j.NUMERICIDENTIFIER]})\\.(${R[j.NUMERICIDENTIFIER]})`);G("MAINVERSIONLOOSE",`(${R[j.NUMERICIDENTIFIERLOOSE]})\\.(${R[j.NUMERICIDENTIFIERLOOSE]})\\.(${R[j.NUMERICIDENTIFIERLOOSE]})`);G("PRERELEASEIDENTIFIER",`(?:${R[j.NONNUMERICIDENTIFIER]}|${R[j.NUMERICIDENTIFIER]})`);G("PRERELEASEIDENTIFIERLOOSE",`(?:${R[j.NONNUMERICIDENTIFIER]}|${R[j.NUMERICIDENTIFIERLOOSE]})`);G("PRERELEASE",`(?:-(${R[j.PRERELEASEIDENTIFIER]}(?:\\.${R[j.PRERELEASEIDENTIFIER]})*))`);G("PRERELEASELOOSE",`(?:-?(${R[j.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${R[j.PRERELEASEIDENTIFIERLOOSE]})*))`);G("BUILDIDENTIFIER",`${Ir}+`);G("BUILD",`(?:\\+(${R[j.BUILDIDENTIFIER]}(?:\\.${R[j.BUILDIDENTIFIER]})*))`);G("FULLPLAIN",`v?${R[j.MAINVERSION]}${R[j.PRERELEASE]}?${R[j.BUILD]}?`);G("FULL",`^${R[j.FULLPLAIN]}$`);G("LOOSEPLAIN",`[v=\\s]*${R[j.MAINVERSIONLOOSE]}${R[j.PRERELEASELOOSE]}?${R[j.BUILD]}?`);G("LOOSE",`^${R[j.LOOSEPLAIN]}$`);G("GTLT","((?:<|>)?=?)");G("XRANGEIDENTIFIERLOOSE",`${R[j.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);G("XRANGEIDENTIFIER",`${R[j.NUMERICIDENTIFIER]}|x|X|\\*`);G("XRANGEPLAIN",`[v=\\s]*(${R[j.XRANGEIDENTIFIER]})(?:\\.(${R[j.XRANGEIDENTIFIER]})(?:\\.(${R[j.XRANGEIDENTIFIER]})(?:${R[j.PRERELEASE]})?${R[j.BUILD]}?)?)?`);G("XRANGEPLAINLOOSE",`[v=\\s]*(${R[j.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[j.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[j.XRANGEIDENTIFIERLOOSE]})(?:${R[j.PRERELEASELOOSE]})?${R[j.BUILD]}?)?)?`);G("XRANGE",`^${R[j.GTLT]}\\s*${R[j.XRANGEPLAIN]}$`);G("XRANGELOOSE",`^${R[j.GTLT]}\\s*${R[j.XRANGEPLAINLOOSE]}$`);G("COERCEPLAIN",`(^|[^\\d])(\\d{1,${_r}})(?:\\.(\\d{1,${_r}}))?(?:\\.(\\d{1,${_r}}))?`);G("COERCE",`${R[j.COERCEPLAIN]}(?:$|[^\\d])`);G("COERCEFULL",R[j.COERCEPLAIN]+`(?:${R[j.PRERELEASE]})?(?:${R[j.BUILD]})?(?:$|[^\\d])`);G("COERCERTL",R[j.COERCE],!0);G("COERCERTLFULL",R[j.COERCEFULL],!0);G("LONETILDE","(?:~>?)");G("TILDETRIM",`(\\s*)${R[j.LONETILDE]}\\s+`,!0);Ge.tildeTrimReplace="$1~";G("TILDE",`^${R[j.LONETILDE]}${R[j.XRANGEPLAIN]}$`);G("TILDELOOSE",`^${R[j.LONETILDE]}${R[j.XRANGEPLAINLOOSE]}$`);G("LONECARET","(?:\\^)");G("CARETTRIM",`(\\s*)${R[j.LONECARET]}\\s+`,!0);Ge.caretTrimReplace="$1^";G("CARET",`^${R[j.LONECARET]}${R[j.XRANGEPLAIN]}$`);G("CARETLOOSE",`^${R[j.LONECARET]}${R[j.XRANGEPLAINLOOSE]}$`);G("COMPARATORLOOSE",`^${R[j.GTLT]}\\s*(${R[j.LOOSEPLAIN]})$|^$`);G("COMPARATOR",`^${R[j.GTLT]}\\s*(${R[j.FULLPLAIN]})$|^$`);G("COMPARATORTRIM",`(\\s*)${R[j.GTLT]}\\s*(${R[j.LOOSEPLAIN]}|${R[j.XRANGEPLAIN]})`,!0);Ge.comparatorTrimReplace="$1$2$3";G("HYPHENRANGE",`^\\s*(${R[j.XRANGEPLAIN]})\\s+-\\s+(${R[j.XRANGEPLAIN]})\\s*$`);G("HYPHENRANGELOOSE",`^\\s*(${R[j.XRANGEPLAINLOOSE]})\\s+-\\s+(${R[j.XRANGEPLAINLOOSE]})\\s*$`);G("STAR","(<|>)?=?\\s*\\*");G("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");G("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Qt=U((sd,ci)=>{"use strict";var Ma=Object.freeze({loose:!0}),Fa=Object.freeze({}),Ua=r=>r?typeof r!="object"?Ma:r:Fa;ci.exports=Ua});var Pr=U((od,fi)=>{"use strict";var li=/^[0-9]+$/,ui=(r,e)=>{if(typeof r=="number"&&typeof e=="number")return r===e?0:r<e?-1:1;let t=li.test(r),n=li.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},ka=(r,e)=>ui(e,r);fi.exports={compareIdentifiers:ui,rcompareIdentifiers:ka}});var ye=U((ad,pi)=>{"use strict";var Zt=Tt(),{MAX_LENGTH:di,MAX_SAFE_INTEGER:er}=St(),{safeRe:tr,t:rr}=Ct(),Ga=Qt(),{compareIdentifiers:Lr}=Pr(),za=(r,e)=>{let t=e.split(".");if(t.length>r.length)return!1;for(let n=0;n<t.length;n++)if(Lr(r[n],t[n])!==0)return!1;return!0},Nr=class r{constructor(e,t){if(t=Ga(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>di)throw new TypeError(`version is longer than ${di} characters`);Zt("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?tr[rr.LOOSE]:tr[rr.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>er||this.major<0)throw new TypeError("Invalid major version");if(this.minor>er||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>er||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<er)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(Zt("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(Zt("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 Lr(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(Zt("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 Lr(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?tr[rr.PRERELEASELOOSE]:tr[rr.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]),za(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}};pi.exports=Nr});var Xe=U((cd,mi)=>{"use strict";var hi=ye(),Wa=(r,e,t=!1)=>{if(r instanceof hi)return r;try{return new hi(r,e)}catch(n){if(!t)return null;throw n}};mi.exports=Wa});var yi=U((ld,gi)=>{"use strict";var Ha=Xe(),Va=(r,e)=>{let t=Ha(r,e);return t?t.version:null};gi.exports=Va});var wi=U((ud,bi)=>{"use strict";var Ba=Xe(),Ya=(r,e)=>{let t=Ba(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};bi.exports=Ya});var Ai=U((fd,Oi)=>{"use strict";var Ei=ye(),Ka=(r,e,t,n,i)=>{typeof t=="string"&&(i=n,n=t,t=void 0);try{return new Ei(r instanceof Ei?r.version:r,t).inc(e,n,i).version}catch{return null}};Oi.exports=Ka});var Ri=U((dd,Ci)=>{"use strict";var Si=Xe(),Xa=(r,e)=>{let t=Si(r,null,!0),n=Si(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"};Ci.exports=Xa});var xi=U((pd,ji)=>{"use strict";var Ja=ye(),Qa=(r,e)=>new Ja(r,e).major;ji.exports=Qa});var vi=U((hd,$i)=>{"use strict";var Za=ye(),ec=(r,e)=>new Za(r,e).minor;$i.exports=ec});var Ii=U((md,_i)=>{"use strict";var tc=ye(),rc=(r,e)=>new tc(r,e).patch;_i.exports=rc});var Li=U((gd,Pi)=>{"use strict";var nc=Xe(),ic=(r,e)=>{let t=nc(r,e);return t&&t.prerelease.length?t.prerelease:null};Pi.exports=ic});var _e=U((yd,Ti)=>{"use strict";var Ni=ye(),sc=(r,e,t)=>new Ni(r,t).compare(new Ni(e,t));Ti.exports=sc});var qi=U((bd,Di)=>{"use strict";var oc=_e(),ac=(r,e,t)=>oc(e,r,t);Di.exports=ac});var Fi=U((wd,Mi)=>{"use strict";var cc=_e(),lc=(r,e)=>cc(r,e,!0);Mi.exports=lc});var nr=U((Ed,ki)=>{"use strict";var Ui=ye(),uc=(r,e,t)=>{let n=new Ui(r,t),i=new Ui(e,t);return n.compare(i)||n.compareBuild(i)};ki.exports=uc});var zi=U((Od,Gi)=>{"use strict";var fc=nr(),dc=(r,e)=>r.sort((t,n)=>fc(t,n,e));Gi.exports=dc});var Hi=U((Ad,Wi)=>{"use strict";var pc=nr(),hc=(r,e)=>r.sort((t,n)=>pc(n,t,e));Wi.exports=hc});var Dt=U((Sd,Vi)=>{"use strict";var mc=_e(),gc=(r,e,t)=>mc(r,e,t)>0;Vi.exports=gc});var ir=U((Cd,Bi)=>{"use strict";var yc=_e(),bc=(r,e,t)=>yc(r,e,t)<0;Bi.exports=bc});var Tr=U((Rd,Yi)=>{"use strict";var wc=_e(),Ec=(r,e,t)=>wc(r,e,t)===0;Yi.exports=Ec});var Dr=U((jd,Ki)=>{"use strict";var Oc=_e(),Ac=(r,e,t)=>Oc(r,e,t)!==0;Ki.exports=Ac});var sr=U((xd,Xi)=>{"use strict";var Sc=_e(),Cc=(r,e,t)=>Sc(r,e,t)>=0;Xi.exports=Cc});var or=U(($d,Ji)=>{"use strict";var Rc=_e(),jc=(r,e,t)=>Rc(r,e,t)<=0;Ji.exports=jc});var qr=U((vd,Qi)=>{"use strict";var xc=Tr(),$c=Dr(),vc=Dt(),_c=sr(),Ic=ir(),Pc=or(),Lc=(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 xc(r,t,n);case"!=":return $c(r,t,n);case">":return vc(r,t,n);case">=":return _c(r,t,n);case"<":return Ic(r,t,n);case"<=":return Pc(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Qi.exports=Lc});var es=U((_d,Zi)=>{"use strict";var Nc=ye(),Tc=Xe(),{safeRe:ar,t:cr}=Ct(),Dc=(r,e)=>{if(r instanceof Nc)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?ar[cr.COERCEFULL]:ar[cr.COERCE]);else{let u=e.includePrerelease?ar[cr.COERCERTLFULL]:ar[cr.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 Tc(`${n}.${i}.${s}${o}${c}`,e)};Zi.exports=Dc});var rs=U((Id,ts)=>{"use strict";var qc=Xe(),Mc=St(),Fc=ye(),Uc=(r,e,t)=>{if(!Mc.RELEASE_TYPES.includes(e))return null;let n=kc(r,t);return n&&Gc(n,e)},kc=(r,e)=>{let t=r instanceof Fc?r.version:r;return qc(t,e)},Gc=(r,e)=>{if(zc(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()},zc=r=>r.startsWith("pre");ts.exports=Uc});var is=U((Pd,ns)=>{"use strict";var Mr=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}};ns.exports=Mr});var Ie=U((Ld,cs)=>{"use strict";var Wc=/\s+/g,Fr=class r{constructor(e,t){if(t=Vc(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof Ur)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(Wc," "),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=>!os(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&&tl(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(el,"");let n=((this.options.includePrerelease&&Qc)|(this.options.loose&&Zc))+":"+e,i=ss.get(n);if(i)return i;let s=this.options.loose,o=s?Ae[be.HYPHENRANGELOOSE]:Ae[be.HYPHENRANGE];e=e.replace(o,dl(this.options.includePrerelease)),re("hyphen replace",e),e=e.replace(Ae[be.COMPARATORTRIM],Kc),re("comparator trim",e),e=e.replace(Ae[be.TILDETRIM],Xc),re("tilde trim",e),e=e.replace(Ae[be.CARETTRIM],Jc),re("caret trim",e);let c=e.split(" ").map(l=>rl(l,this.options)).join(" ").split(/\s+/).map(l=>fl(l,this.options));s&&(c=c.filter(l=>(re("loose invalid filter",l,this.options),!!l.match(Ae[be.COMPARATORLOOSE])))),re("range list",c);let u=new Map,p=c.map(l=>new Ur(l,this.options));for(let l of p){if(os(l))return[l];u.set(l.value,l)}u.size>1&&u.has("")&&u.delete("");let h=[...u.values()];return ss.set(n,h),h}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>as(n,t)&&e.set.some(i=>as(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 Bc(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(pl(this.set[t],e,this.options))return!0;return!1}};cs.exports=Fr;var Hc=is(),ss=new Hc,Vc=Qt(),Ur=qt(),re=Tt(),Bc=ye(),{safeRe:Ae,src:Yc,t:be,comparatorTrimReplace:Kc,tildeTrimReplace:Xc,caretTrimReplace:Jc}=Ct(),{FLAG_INCLUDE_PRERELEASE:Qc,FLAG_LOOSE:Zc}=St(),el=new RegExp(Yc[be.BUILD],"g"),os=r=>r.value==="<0.0.0-0",tl=r=>r.value==="",as=(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},rl=(r,e)=>(r=r.replace(Ae[be.BUILD],""),re("comp",r,e),r=ol(r,e),re("caret",r),r=il(r,e),re("tildes",r),r=cl(r,e),re("xrange",r),r=ul(r,e),re("stars",r),r),de=r=>!r||r.toLowerCase()==="x"||r==="*",nl=(r,e,t)=>de(r)&&!de(e)||de(e)&&t&&!de(t),il=(r,e)=>r.trim().split(/\s+/).map(t=>sl(t,e)).join(" "),sl=(r,e)=>{let t=e.loose?Ae[be.TILDELOOSE]:Ae[be.TILDE],n=e.includePrerelease?"-0":"";return r.replace(t,(i,s,o,c,u)=>{re("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?(re("replaceTilde pr",u),p=`>=${s}.${o}.${c}-${u} <${s}.${+o+1}.0-0`):p=`>=${s}.${o}.${c} <${s}.${+o+1}.0-0`,re("tilde return",p),p})},ol=(r,e)=>r.trim().split(/\s+/).map(t=>al(t,e)).join(" "),al=(r,e)=>{re("caret",r,e);let t=e.loose?Ae[be.CARETLOOSE]:Ae[be.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(i,s,o,c,u)=>{re("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?(re("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`):(re("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`),re("caret return",p),p})},cl=(r,e)=>(re("replaceXRanges",r,e),r.split(/\s+/).map(t=>ll(t,e)).join(" ")),ll=(r,e)=>{r=r.trim();let t=e.loose?Ae[be.XRANGELOOSE]:Ae[be.XRANGE];return r.replace(t,(n,i,s,o,c,u)=>{if(re("xRange",r,n,i,s,o,c,u),nl(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`),re("xRange return",n),n})},ul=(r,e)=>(re("replaceStars",r,e),r.trim().replace(Ae[be.STAR],"")),fl=(r,e)=>(re("replaceGTE0",r,e),r.trim().replace(Ae[e.includePrerelease?be.GTE0PRE:be.GTE0],"")),dl=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()),pl=(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(re(r[n].semver),r[n].semver!==Ur.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 qt=U((Nd,hs)=>{"use strict";var Mt=Symbol("SemVer ANY"),zr=class r{static get ANY(){return Mt}constructor(e,t){if(t=ls(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Gr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Mt?this.value="":this.value=this.operator+this.semver.version,Gr("comp",this)}parse(e){let t=this.options.loose?us[fs.COMPARATORLOOSE]:us[fs.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 ds(n[2],this.options.loose):this.semver=Mt}toString(){return this.value}test(e){if(Gr("Comparator.test",e,this.options.loose),this.semver===Mt||e===Mt)return!0;if(typeof e=="string")try{e=new ds(e,this.options)}catch{return!1}return kr(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 ps(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new ps(this.value,t).test(e.semver):(t=ls(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("=")||kr(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||kr(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};hs.exports=zr;var ls=Qt(),{safeRe:us,t:fs}=Ct(),kr=qr(),Gr=Tt(),ds=ye(),ps=Ie()});var Ft=U((Td,ms)=>{"use strict";var hl=Ie(),ml=(r,e,t)=>{try{e=new hl(e,t)}catch{return!1}return e.test(r)};ms.exports=ml});var ys=U((Dd,gs)=>{"use strict";var gl=Ie(),yl=(r,e)=>new gl(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));gs.exports=yl});var ws=U((qd,bs)=>{"use strict";var bl=ye(),wl=Ie(),El=(r,e,t)=>{let n=null,i=null,s=null;try{s=new wl(e,t)}catch{return null}return r.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new bl(n,t))}),n};bs.exports=El});var Os=U((Md,Es)=>{"use strict";var Ol=ye(),Al=Ie(),Sl=(r,e,t)=>{let n=null,i=null,s=null;try{s=new Al(e,t)}catch{return null}return r.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new Ol(n,t))}),n};Es.exports=Sl});var Cs=U((Fd,Ss)=>{"use strict";var Wr=ye(),Cl=Ie(),As=Dt(),Rl=(r,e)=>{r=new Cl(r,e);let t=new Wr("0.0.0");if(r.test(t)||(t=new Wr("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 Wr(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||As(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!t||As(t,s))&&(t=s)}return t&&r.test(t)?t:null};Ss.exports=Rl});var js=U((Ud,Rs)=>{"use strict";var jl=Ie(),xl=(r,e)=>{try{return new jl(r,e).range||"*"}catch{return null}};Rs.exports=xl});var lr=U((kd,_s)=>{"use strict";var $l=ye(),vs=qt(),{ANY:vl}=vs,_l=Ie(),Il=Ft(),xs=Dt(),$s=ir(),Pl=or(),Ll=sr(),Nl=(r,e,t,n)=>{r=new $l(r,n),e=new _l(e,n);let i,s,o,c,u;switch(t){case">":i=xs,s=Pl,o=$s,c=">",u=">=";break;case"<":i=$s,s=Ll,o=xs,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Il(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(y=>{y.semver===vl&&(y=new vs(">=0.0.0")),l=l||y,b=b||y,i(y.semver,l.semver,n)?l=y:o(y.semver,b.semver,n)&&(b=y)}),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};_s.exports=Nl});var Ps=U((Gd,Is)=>{"use strict";var Tl=lr(),Dl=(r,e,t)=>Tl(r,e,">",t);Is.exports=Dl});var Ns=U((zd,Ls)=>{"use strict";var ql=lr(),Ml=(r,e,t)=>ql(r,e,"<",t);Ls.exports=Ml});var qs=U((Wd,Ds)=>{"use strict";var Ts=Ie(),Fl=(r,e,t)=>(r=new Ts(r,t),e=new Ts(e,t),r.intersects(e,t));Ds.exports=Fl});var Fs=U((Hd,Ms)=>{"use strict";var Ul=Ft(),kl=_e();Ms.exports=(r,e,t)=>{let n=[],i=null,s=null,o=r.sort((h,l)=>kl(h,l,t));for(let h of o)Ul(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 Hs=U((Vd,Ws)=>{"use strict";var Us=Ie(),Br=qt(),{ANY:Hr}=Br,Vr=Ft(),Yr=_e(),Gl=(r,e,t={})=>{if(r===e)return!0;r=new Us(r,t),e=new Us(e,t);let n=!1;e:for(let i of r.set){for(let s of e.set){let o=Wl(i,s,t);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},zl=[new Br(">=0.0.0-0")],ks=[new Br(">=0.0.0")],Wl=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===Hr){if(e.length===1&&e[0].semver===Hr)return!0;t.includePrerelease?r=zl:r=ks}if(e.length===1&&e[0].semver===Hr){if(t.includePrerelease)return!0;e=ks}let n=new Set,i,s;for(let y of r)y.operator===">"||y.operator===">="?i=Gs(i,y,t):y.operator==="<"||y.operator==="<="?s=zs(s,y,t):n.add(y.semver);if(n.size>1)return null;let o;if(i&&s){if(o=Yr(i.semver,s.semver,t),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let y of n){if(i&&!Vr(y,String(i),t)||s&&!Vr(y,String(s),t))return null;for(let E of e)if(!Vr(y,String(E),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 y of e){if(h=h||y.operator===">"||y.operator===">=",p=p||y.operator==="<"||y.operator==="<=",i){if(b&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===b.major&&y.semver.minor===b.minor&&y.semver.patch===b.patch&&(b=!1),y.operator===">"||y.operator===">="){if(c=Gs(i,y,t),c===y&&c!==i)return!1}else if(i.operator===">="&&!y.test(i.semver))return!1}if(s){if(l&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===l.major&&y.semver.minor===l.minor&&y.semver.patch===l.patch&&(l=!1),y.operator==="<"||y.operator==="<="){if(u=zs(s,y,t),u===y&&u!==s)return!1}else if(s.operator==="<="&&!y.test(s.semver))return!1}if(!y.operator&&(s||i)&&o!==0)return!1}return!(i&&p&&!s&&o!==0||s&&h&&!i&&o!==0||b||l)},Gs=(r,e,t)=>{if(!r)return e;let n=Yr(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},zs=(r,e,t)=>{if(!r)return e;let n=Yr(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};Ws.exports=Gl});var ur=U((Bd,Ys)=>{"use strict";var Kr=Ct(),Vs=St(),Hl=ye(),Bs=Pr(),Vl=Xe(),Bl=yi(),Yl=wi(),Kl=Ai(),Xl=Ri(),Jl=xi(),Ql=vi(),Zl=Ii(),eu=Li(),tu=_e(),ru=qi(),nu=Fi(),iu=nr(),su=zi(),ou=Hi(),au=Dt(),cu=ir(),lu=Tr(),uu=Dr(),fu=sr(),du=or(),pu=qr(),hu=es(),mu=rs(),gu=qt(),yu=Ie(),bu=Ft(),wu=ys(),Eu=ws(),Ou=Os(),Au=Cs(),Su=js(),Cu=lr(),Ru=Ps(),ju=Ns(),xu=qs(),$u=Fs(),vu=Hs();Ys.exports={parse:Vl,valid:Bl,clean:Yl,inc:Kl,diff:Xl,major:Jl,minor:Ql,patch:Zl,prerelease:eu,compare:tu,rcompare:ru,compareLoose:nu,compareBuild:iu,sort:su,rsort:ou,gt:au,lt:cu,eq:lu,neq:uu,gte:fu,lte:du,cmp:pu,coerce:hu,truncate:mu,Comparator:gu,Range:yu,satisfies:bu,toComparators:wu,maxSatisfying:Eu,minSatisfying:Ou,minVersion:Au,validRange:Su,outside:Cu,gtr:Ru,ltr:ju,intersects:xu,simplifyRange:$u,subset:vu,SemVer:Hl,re:Kr.re,src:Kr.src,tokens:Kr.t,SEMVER_SPEC_VERSION:Vs.SEMVER_SPEC_VERSION,RELEASE_TYPES:Vs.RELEASE_TYPES,compareIdentifiers:Bs.compareIdentifiers,rcompareIdentifiers:Bs.rcompareIdentifiers}});var fr=Yt(ur(),1);import*as Ut from"node:process";try{let r=Yn?.node;typeof r=="string"&&!fr.satisfies(Ut.version,r)&&z.warn(`
8
+ import{a as Kn,f as te}from"./chunks/U5DIFWGH.js";import{a as Xn,c as Jn}from"./chunks/LRRSU5UY.js";import{a as Jt,b as ei,c as ti,d as ri,e as ni,f as ii}from"./chunks/6ZNJ7RDX.js";import{a as Aa}from"./chunks/ERBLCNSR.js";import{a as He,b as Bn,c as Yn,g as Qn}from"./chunks/V34D5CUU.js";import{a as Zn}from"./chunks/54EKLNNI.js";import{a as Vn}from"./chunks/CHX7O5AM.js";import{L as qn,O as Mn,W as Nt,Z as At,_ as Kt,a as Dn,ba as it,c as ke,da as Fn,fa as z,ga as Un,ha as kn,k as vr,la as ge,ma as Xt,pa as Gn,sa as zn,ta as Wn,ya as Hn}from"./chunks/DORXGE7Z.js";import"./chunks/NEWT5A6S.js";import{a as Ue,c as U,e as Yt}from"./chunks/RFWIIJFG.js";var St=U((nd,si)=>{"use strict";var Sa="2.0.0",Ca=Number.MAX_SAFE_INTEGER||9007199254740991,Ra=16,ja=250,xa=["major","premajor","minor","preminor","patch","prepatch","prerelease"];si.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Ra,MAX_SAFE_BUILD_LENGTH:ja,MAX_SAFE_INTEGER:Ca,RELEASE_TYPES:xa,SEMVER_SPEC_VERSION:Sa,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Tt=U((id,oi)=>{"use strict";var $a=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};oi.exports=$a});var Ct=U((Ge,ai)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:_r,MAX_SAFE_BUILD_LENGTH:va,MAX_LENGTH:_a}=St(),Ia=Tt();Ge=ai.exports={};var Pa=Ge.re=[],La=Ge.safeRe=[],R=Ge.src=[],Na=Ge.safeSrc=[],j=Ge.t={},Ta=0,Ir="[a-zA-Z0-9-]",Da=[["\\s",1],["\\d",_a],[Ir,va]],qa=r=>{for(let[e,t]of Da)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},G=(r,e,t)=>{let n=qa(e),i=Ta++;Ia(r,i,e),j[r]=i,R[i]=e,Na[i]=n,Pa[i]=new RegExp(e,t?"g":void 0),La[i]=new RegExp(n,t?"g":void 0)};G("NUMERICIDENTIFIER","0|[1-9]\\d*");G("NUMERICIDENTIFIERLOOSE","\\d+");G("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Ir}*`);G("MAINVERSION",`(${R[j.NUMERICIDENTIFIER]})\\.(${R[j.NUMERICIDENTIFIER]})\\.(${R[j.NUMERICIDENTIFIER]})`);G("MAINVERSIONLOOSE",`(${R[j.NUMERICIDENTIFIERLOOSE]})\\.(${R[j.NUMERICIDENTIFIERLOOSE]})\\.(${R[j.NUMERICIDENTIFIERLOOSE]})`);G("PRERELEASEIDENTIFIER",`(?:${R[j.NONNUMERICIDENTIFIER]}|${R[j.NUMERICIDENTIFIER]})`);G("PRERELEASEIDENTIFIERLOOSE",`(?:${R[j.NONNUMERICIDENTIFIER]}|${R[j.NUMERICIDENTIFIERLOOSE]})`);G("PRERELEASE",`(?:-(${R[j.PRERELEASEIDENTIFIER]}(?:\\.${R[j.PRERELEASEIDENTIFIER]})*))`);G("PRERELEASELOOSE",`(?:-?(${R[j.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${R[j.PRERELEASEIDENTIFIERLOOSE]})*))`);G("BUILDIDENTIFIER",`${Ir}+`);G("BUILD",`(?:\\+(${R[j.BUILDIDENTIFIER]}(?:\\.${R[j.BUILDIDENTIFIER]})*))`);G("FULLPLAIN",`v?${R[j.MAINVERSION]}${R[j.PRERELEASE]}?${R[j.BUILD]}?`);G("FULL",`^${R[j.FULLPLAIN]}$`);G("LOOSEPLAIN",`[v=\\s]*${R[j.MAINVERSIONLOOSE]}${R[j.PRERELEASELOOSE]}?${R[j.BUILD]}?`);G("LOOSE",`^${R[j.LOOSEPLAIN]}$`);G("GTLT","((?:<|>)?=?)");G("XRANGEIDENTIFIERLOOSE",`${R[j.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);G("XRANGEIDENTIFIER",`${R[j.NUMERICIDENTIFIER]}|x|X|\\*`);G("XRANGEPLAIN",`[v=\\s]*(${R[j.XRANGEIDENTIFIER]})(?:\\.(${R[j.XRANGEIDENTIFIER]})(?:\\.(${R[j.XRANGEIDENTIFIER]})(?:${R[j.PRERELEASE]})?${R[j.BUILD]}?)?)?`);G("XRANGEPLAINLOOSE",`[v=\\s]*(${R[j.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[j.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[j.XRANGEIDENTIFIERLOOSE]})(?:${R[j.PRERELEASELOOSE]})?${R[j.BUILD]}?)?)?`);G("XRANGE",`^${R[j.GTLT]}\\s*${R[j.XRANGEPLAIN]}$`);G("XRANGELOOSE",`^${R[j.GTLT]}\\s*${R[j.XRANGEPLAINLOOSE]}$`);G("COERCEPLAIN",`(^|[^\\d])(\\d{1,${_r}})(?:\\.(\\d{1,${_r}}))?(?:\\.(\\d{1,${_r}}))?`);G("COERCE",`${R[j.COERCEPLAIN]}(?:$|[^\\d])`);G("COERCEFULL",R[j.COERCEPLAIN]+`(?:${R[j.PRERELEASE]})?(?:${R[j.BUILD]})?(?:$|[^\\d])`);G("COERCERTL",R[j.COERCE],!0);G("COERCERTLFULL",R[j.COERCEFULL],!0);G("LONETILDE","(?:~>?)");G("TILDETRIM",`(\\s*)${R[j.LONETILDE]}\\s+`,!0);Ge.tildeTrimReplace="$1~";G("TILDE",`^${R[j.LONETILDE]}${R[j.XRANGEPLAIN]}$`);G("TILDELOOSE",`^${R[j.LONETILDE]}${R[j.XRANGEPLAINLOOSE]}$`);G("LONECARET","(?:\\^)");G("CARETTRIM",`(\\s*)${R[j.LONECARET]}\\s+`,!0);Ge.caretTrimReplace="$1^";G("CARET",`^${R[j.LONECARET]}${R[j.XRANGEPLAIN]}$`);G("CARETLOOSE",`^${R[j.LONECARET]}${R[j.XRANGEPLAINLOOSE]}$`);G("COMPARATORLOOSE",`^${R[j.GTLT]}\\s*(${R[j.LOOSEPLAIN]})$|^$`);G("COMPARATOR",`^${R[j.GTLT]}\\s*(${R[j.FULLPLAIN]})$|^$`);G("COMPARATORTRIM",`(\\s*)${R[j.GTLT]}\\s*(${R[j.LOOSEPLAIN]}|${R[j.XRANGEPLAIN]})`,!0);Ge.comparatorTrimReplace="$1$2$3";G("HYPHENRANGE",`^\\s*(${R[j.XRANGEPLAIN]})\\s+-\\s+(${R[j.XRANGEPLAIN]})\\s*$`);G("HYPHENRANGELOOSE",`^\\s*(${R[j.XRANGEPLAINLOOSE]})\\s+-\\s+(${R[j.XRANGEPLAINLOOSE]})\\s*$`);G("STAR","(<|>)?=?\\s*\\*");G("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");G("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Qt=U((sd,ci)=>{"use strict";var Ma=Object.freeze({loose:!0}),Fa=Object.freeze({}),Ua=r=>r?typeof r!="object"?Ma:r:Fa;ci.exports=Ua});var Pr=U((od,fi)=>{"use strict";var li=/^[0-9]+$/,ui=(r,e)=>{if(typeof r=="number"&&typeof e=="number")return r===e?0:r<e?-1:1;let t=li.test(r),n=li.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},ka=(r,e)=>ui(e,r);fi.exports={compareIdentifiers:ui,rcompareIdentifiers:ka}});var ye=U((ad,pi)=>{"use strict";var Zt=Tt(),{MAX_LENGTH:di,MAX_SAFE_INTEGER:er}=St(),{safeRe:tr,t:rr}=Ct(),Ga=Qt(),{compareIdentifiers:Lr}=Pr(),za=(r,e)=>{let t=e.split(".");if(t.length>r.length)return!1;for(let n=0;n<t.length;n++)if(Lr(r[n],t[n])!==0)return!1;return!0},Nr=class r{constructor(e,t){if(t=Ga(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>di)throw new TypeError(`version is longer than ${di} characters`);Zt("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?tr[rr.LOOSE]:tr[rr.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>er||this.major<0)throw new TypeError("Invalid major version");if(this.minor>er||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>er||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<er)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(Zt("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(Zt("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 Lr(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(Zt("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 Lr(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?tr[rr.PRERELEASELOOSE]:tr[rr.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]),za(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}};pi.exports=Nr});var Xe=U((cd,mi)=>{"use strict";var hi=ye(),Wa=(r,e,t=!1)=>{if(r instanceof hi)return r;try{return new hi(r,e)}catch(n){if(!t)return null;throw n}};mi.exports=Wa});var yi=U((ld,gi)=>{"use strict";var Ha=Xe(),Va=(r,e)=>{let t=Ha(r,e);return t?t.version:null};gi.exports=Va});var wi=U((ud,bi)=>{"use strict";var Ba=Xe(),Ya=(r,e)=>{let t=Ba(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};bi.exports=Ya});var Ai=U((fd,Oi)=>{"use strict";var Ei=ye(),Ka=(r,e,t,n,i)=>{typeof t=="string"&&(i=n,n=t,t=void 0);try{return new Ei(r instanceof Ei?r.version:r,t).inc(e,n,i).version}catch{return null}};Oi.exports=Ka});var Ri=U((dd,Ci)=>{"use strict";var Si=Xe(),Xa=(r,e)=>{let t=Si(r,null,!0),n=Si(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"};Ci.exports=Xa});var xi=U((pd,ji)=>{"use strict";var Ja=ye(),Qa=(r,e)=>new Ja(r,e).major;ji.exports=Qa});var vi=U((hd,$i)=>{"use strict";var Za=ye(),ec=(r,e)=>new Za(r,e).minor;$i.exports=ec});var Ii=U((md,_i)=>{"use strict";var tc=ye(),rc=(r,e)=>new tc(r,e).patch;_i.exports=rc});var Li=U((gd,Pi)=>{"use strict";var nc=Xe(),ic=(r,e)=>{let t=nc(r,e);return t&&t.prerelease.length?t.prerelease:null};Pi.exports=ic});var _e=U((yd,Ti)=>{"use strict";var Ni=ye(),sc=(r,e,t)=>new Ni(r,t).compare(new Ni(e,t));Ti.exports=sc});var qi=U((bd,Di)=>{"use strict";var oc=_e(),ac=(r,e,t)=>oc(e,r,t);Di.exports=ac});var Fi=U((wd,Mi)=>{"use strict";var cc=_e(),lc=(r,e)=>cc(r,e,!0);Mi.exports=lc});var nr=U((Ed,ki)=>{"use strict";var Ui=ye(),uc=(r,e,t)=>{let n=new Ui(r,t),i=new Ui(e,t);return n.compare(i)||n.compareBuild(i)};ki.exports=uc});var zi=U((Od,Gi)=>{"use strict";var fc=nr(),dc=(r,e)=>r.sort((t,n)=>fc(t,n,e));Gi.exports=dc});var Hi=U((Ad,Wi)=>{"use strict";var pc=nr(),hc=(r,e)=>r.sort((t,n)=>pc(n,t,e));Wi.exports=hc});var Dt=U((Sd,Vi)=>{"use strict";var mc=_e(),gc=(r,e,t)=>mc(r,e,t)>0;Vi.exports=gc});var ir=U((Cd,Bi)=>{"use strict";var yc=_e(),bc=(r,e,t)=>yc(r,e,t)<0;Bi.exports=bc});var Tr=U((Rd,Yi)=>{"use strict";var wc=_e(),Ec=(r,e,t)=>wc(r,e,t)===0;Yi.exports=Ec});var Dr=U((jd,Ki)=>{"use strict";var Oc=_e(),Ac=(r,e,t)=>Oc(r,e,t)!==0;Ki.exports=Ac});var sr=U((xd,Xi)=>{"use strict";var Sc=_e(),Cc=(r,e,t)=>Sc(r,e,t)>=0;Xi.exports=Cc});var or=U(($d,Ji)=>{"use strict";var Rc=_e(),jc=(r,e,t)=>Rc(r,e,t)<=0;Ji.exports=jc});var qr=U((vd,Qi)=>{"use strict";var xc=Tr(),$c=Dr(),vc=Dt(),_c=sr(),Ic=ir(),Pc=or(),Lc=(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 xc(r,t,n);case"!=":return $c(r,t,n);case">":return vc(r,t,n);case">=":return _c(r,t,n);case"<":return Ic(r,t,n);case"<=":return Pc(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Qi.exports=Lc});var es=U((_d,Zi)=>{"use strict";var Nc=ye(),Tc=Xe(),{safeRe:ar,t:cr}=Ct(),Dc=(r,e)=>{if(r instanceof Nc)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?ar[cr.COERCEFULL]:ar[cr.COERCE]);else{let u=e.includePrerelease?ar[cr.COERCERTLFULL]:ar[cr.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 Tc(`${n}.${i}.${s}${o}${c}`,e)};Zi.exports=Dc});var rs=U((Id,ts)=>{"use strict";var qc=Xe(),Mc=St(),Fc=ye(),Uc=(r,e,t)=>{if(!Mc.RELEASE_TYPES.includes(e))return null;let n=kc(r,t);return n&&Gc(n,e)},kc=(r,e)=>{let t=r instanceof Fc?r.version:r;return qc(t,e)},Gc=(r,e)=>{if(zc(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()},zc=r=>r.startsWith("pre");ts.exports=Uc});var is=U((Pd,ns)=>{"use strict";var Mr=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}};ns.exports=Mr});var Ie=U((Ld,cs)=>{"use strict";var Wc=/\s+/g,Fr=class r{constructor(e,t){if(t=Vc(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof Ur)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(Wc," "),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=>!os(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&&tl(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(el,"");let n=((this.options.includePrerelease&&Qc)|(this.options.loose&&Zc))+":"+e,i=ss.get(n);if(i)return i;let s=this.options.loose,o=s?Ae[be.HYPHENRANGELOOSE]:Ae[be.HYPHENRANGE];e=e.replace(o,dl(this.options.includePrerelease)),re("hyphen replace",e),e=e.replace(Ae[be.COMPARATORTRIM],Kc),re("comparator trim",e),e=e.replace(Ae[be.TILDETRIM],Xc),re("tilde trim",e),e=e.replace(Ae[be.CARETTRIM],Jc),re("caret trim",e);let c=e.split(" ").map(l=>rl(l,this.options)).join(" ").split(/\s+/).map(l=>fl(l,this.options));s&&(c=c.filter(l=>(re("loose invalid filter",l,this.options),!!l.match(Ae[be.COMPARATORLOOSE])))),re("range list",c);let u=new Map,p=c.map(l=>new Ur(l,this.options));for(let l of p){if(os(l))return[l];u.set(l.value,l)}u.size>1&&u.has("")&&u.delete("");let h=[...u.values()];return ss.set(n,h),h}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>as(n,t)&&e.set.some(i=>as(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 Bc(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(pl(this.set[t],e,this.options))return!0;return!1}};cs.exports=Fr;var Hc=is(),ss=new Hc,Vc=Qt(),Ur=qt(),re=Tt(),Bc=ye(),{safeRe:Ae,src:Yc,t:be,comparatorTrimReplace:Kc,tildeTrimReplace:Xc,caretTrimReplace:Jc}=Ct(),{FLAG_INCLUDE_PRERELEASE:Qc,FLAG_LOOSE:Zc}=St(),el=new RegExp(Yc[be.BUILD],"g"),os=r=>r.value==="<0.0.0-0",tl=r=>r.value==="",as=(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},rl=(r,e)=>(r=r.replace(Ae[be.BUILD],""),re("comp",r,e),r=ol(r,e),re("caret",r),r=il(r,e),re("tildes",r),r=cl(r,e),re("xrange",r),r=ul(r,e),re("stars",r),r),de=r=>!r||r.toLowerCase()==="x"||r==="*",nl=(r,e,t)=>de(r)&&!de(e)||de(e)&&t&&!de(t),il=(r,e)=>r.trim().split(/\s+/).map(t=>sl(t,e)).join(" "),sl=(r,e)=>{let t=e.loose?Ae[be.TILDELOOSE]:Ae[be.TILDE],n=e.includePrerelease?"-0":"";return r.replace(t,(i,s,o,c,u)=>{re("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?(re("replaceTilde pr",u),p=`>=${s}.${o}.${c}-${u} <${s}.${+o+1}.0-0`):p=`>=${s}.${o}.${c} <${s}.${+o+1}.0-0`,re("tilde return",p),p})},ol=(r,e)=>r.trim().split(/\s+/).map(t=>al(t,e)).join(" "),al=(r,e)=>{re("caret",r,e);let t=e.loose?Ae[be.CARETLOOSE]:Ae[be.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(i,s,o,c,u)=>{re("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?(re("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`):(re("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`),re("caret return",p),p})},cl=(r,e)=>(re("replaceXRanges",r,e),r.split(/\s+/).map(t=>ll(t,e)).join(" ")),ll=(r,e)=>{r=r.trim();let t=e.loose?Ae[be.XRANGELOOSE]:Ae[be.XRANGE];return r.replace(t,(n,i,s,o,c,u)=>{if(re("xRange",r,n,i,s,o,c,u),nl(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`),re("xRange return",n),n})},ul=(r,e)=>(re("replaceStars",r,e),r.trim().replace(Ae[be.STAR],"")),fl=(r,e)=>(re("replaceGTE0",r,e),r.trim().replace(Ae[e.includePrerelease?be.GTE0PRE:be.GTE0],"")),dl=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()),pl=(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(re(r[n].semver),r[n].semver!==Ur.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 qt=U((Nd,hs)=>{"use strict";var Mt=Symbol("SemVer ANY"),zr=class r{static get ANY(){return Mt}constructor(e,t){if(t=ls(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Gr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Mt?this.value="":this.value=this.operator+this.semver.version,Gr("comp",this)}parse(e){let t=this.options.loose?us[fs.COMPARATORLOOSE]:us[fs.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 ds(n[2],this.options.loose):this.semver=Mt}toString(){return this.value}test(e){if(Gr("Comparator.test",e,this.options.loose),this.semver===Mt||e===Mt)return!0;if(typeof e=="string")try{e=new ds(e,this.options)}catch{return!1}return kr(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 ps(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new ps(this.value,t).test(e.semver):(t=ls(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("=")||kr(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||kr(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};hs.exports=zr;var ls=Qt(),{safeRe:us,t:fs}=Ct(),kr=qr(),Gr=Tt(),ds=ye(),ps=Ie()});var Ft=U((Td,ms)=>{"use strict";var hl=Ie(),ml=(r,e,t)=>{try{e=new hl(e,t)}catch{return!1}return e.test(r)};ms.exports=ml});var ys=U((Dd,gs)=>{"use strict";var gl=Ie(),yl=(r,e)=>new gl(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));gs.exports=yl});var ws=U((qd,bs)=>{"use strict";var bl=ye(),wl=Ie(),El=(r,e,t)=>{let n=null,i=null,s=null;try{s=new wl(e,t)}catch{return null}return r.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new bl(n,t))}),n};bs.exports=El});var Os=U((Md,Es)=>{"use strict";var Ol=ye(),Al=Ie(),Sl=(r,e,t)=>{let n=null,i=null,s=null;try{s=new Al(e,t)}catch{return null}return r.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new Ol(n,t))}),n};Es.exports=Sl});var Cs=U((Fd,Ss)=>{"use strict";var Wr=ye(),Cl=Ie(),As=Dt(),Rl=(r,e)=>{r=new Cl(r,e);let t=new Wr("0.0.0");if(r.test(t)||(t=new Wr("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 Wr(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||As(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!t||As(t,s))&&(t=s)}return t&&r.test(t)?t:null};Ss.exports=Rl});var js=U((Ud,Rs)=>{"use strict";var jl=Ie(),xl=(r,e)=>{try{return new jl(r,e).range||"*"}catch{return null}};Rs.exports=xl});var lr=U((kd,_s)=>{"use strict";var $l=ye(),vs=qt(),{ANY:vl}=vs,_l=Ie(),Il=Ft(),xs=Dt(),$s=ir(),Pl=or(),Ll=sr(),Nl=(r,e,t,n)=>{r=new $l(r,n),e=new _l(e,n);let i,s,o,c,u;switch(t){case">":i=xs,s=Pl,o=$s,c=">",u=">=";break;case"<":i=$s,s=Ll,o=xs,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Il(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(y=>{y.semver===vl&&(y=new vs(">=0.0.0")),l=l||y,b=b||y,i(y.semver,l.semver,n)?l=y:o(y.semver,b.semver,n)&&(b=y)}),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};_s.exports=Nl});var Ps=U((Gd,Is)=>{"use strict";var Tl=lr(),Dl=(r,e,t)=>Tl(r,e,">",t);Is.exports=Dl});var Ns=U((zd,Ls)=>{"use strict";var ql=lr(),Ml=(r,e,t)=>ql(r,e,"<",t);Ls.exports=Ml});var qs=U((Wd,Ds)=>{"use strict";var Ts=Ie(),Fl=(r,e,t)=>(r=new Ts(r,t),e=new Ts(e,t),r.intersects(e,t));Ds.exports=Fl});var Fs=U((Hd,Ms)=>{"use strict";var Ul=Ft(),kl=_e();Ms.exports=(r,e,t)=>{let n=[],i=null,s=null,o=r.sort((h,l)=>kl(h,l,t));for(let h of o)Ul(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 Hs=U((Vd,Ws)=>{"use strict";var Us=Ie(),Br=qt(),{ANY:Hr}=Br,Vr=Ft(),Yr=_e(),Gl=(r,e,t={})=>{if(r===e)return!0;r=new Us(r,t),e=new Us(e,t);let n=!1;e:for(let i of r.set){for(let s of e.set){let o=Wl(i,s,t);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},zl=[new Br(">=0.0.0-0")],ks=[new Br(">=0.0.0")],Wl=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===Hr){if(e.length===1&&e[0].semver===Hr)return!0;t.includePrerelease?r=zl:r=ks}if(e.length===1&&e[0].semver===Hr){if(t.includePrerelease)return!0;e=ks}let n=new Set,i,s;for(let y of r)y.operator===">"||y.operator===">="?i=Gs(i,y,t):y.operator==="<"||y.operator==="<="?s=zs(s,y,t):n.add(y.semver);if(n.size>1)return null;let o;if(i&&s){if(o=Yr(i.semver,s.semver,t),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let y of n){if(i&&!Vr(y,String(i),t)||s&&!Vr(y,String(s),t))return null;for(let E of e)if(!Vr(y,String(E),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 y of e){if(h=h||y.operator===">"||y.operator===">=",p=p||y.operator==="<"||y.operator==="<=",i){if(b&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===b.major&&y.semver.minor===b.minor&&y.semver.patch===b.patch&&(b=!1),y.operator===">"||y.operator===">="){if(c=Gs(i,y,t),c===y&&c!==i)return!1}else if(i.operator===">="&&!y.test(i.semver))return!1}if(s){if(l&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===l.major&&y.semver.minor===l.minor&&y.semver.patch===l.patch&&(l=!1),y.operator==="<"||y.operator==="<="){if(u=zs(s,y,t),u===y&&u!==s)return!1}else if(s.operator==="<="&&!y.test(s.semver))return!1}if(!y.operator&&(s||i)&&o!==0)return!1}return!(i&&p&&!s&&o!==0||s&&h&&!i&&o!==0||b||l)},Gs=(r,e,t)=>{if(!r)return e;let n=Yr(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},zs=(r,e,t)=>{if(!r)return e;let n=Yr(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};Ws.exports=Gl});var ur=U((Bd,Ys)=>{"use strict";var Kr=Ct(),Vs=St(),Hl=ye(),Bs=Pr(),Vl=Xe(),Bl=yi(),Yl=wi(),Kl=Ai(),Xl=Ri(),Jl=xi(),Ql=vi(),Zl=Ii(),eu=Li(),tu=_e(),ru=qi(),nu=Fi(),iu=nr(),su=zi(),ou=Hi(),au=Dt(),cu=ir(),lu=Tr(),uu=Dr(),fu=sr(),du=or(),pu=qr(),hu=es(),mu=rs(),gu=qt(),yu=Ie(),bu=Ft(),wu=ys(),Eu=ws(),Ou=Os(),Au=Cs(),Su=js(),Cu=lr(),Ru=Ps(),ju=Ns(),xu=qs(),$u=Fs(),vu=Hs();Ys.exports={parse:Vl,valid:Bl,clean:Yl,inc:Kl,diff:Xl,major:Jl,minor:Ql,patch:Zl,prerelease:eu,compare:tu,rcompare:ru,compareLoose:nu,compareBuild:iu,sort:su,rsort:ou,gt:au,lt:cu,eq:lu,neq:uu,gte:fu,lte:du,cmp:pu,coerce:hu,truncate:mu,Comparator:gu,Range:yu,satisfies:bu,toComparators:wu,maxSatisfying:Eu,minSatisfying:Ou,minVersion:Au,validRange:Su,outside:Cu,gtr:Ru,ltr:ju,intersects:xu,simplifyRange:$u,subset:vu,SemVer:Hl,re:Kr.re,src:Kr.src,tokens:Kr.t,SEMVER_SPEC_VERSION:Vs.SEMVER_SPEC_VERSION,RELEASE_TYPES:Vs.RELEASE_TYPES,compareIdentifiers:Bs.compareIdentifiers,rcompareIdentifiers:Bs.rcompareIdentifiers}});var fr=Yt(ur(),1);import*as Ut from"node:process";try{let r=Yn?.node;typeof r=="string"&&!fr.satisfies(Ut.version,r)&&z.warn(`
9
9
  \u26A0\uFE0F Warning: failed to satisfy expected node version. Expected: "${r}", Current "${Ut.version}"
10
10
 
11
11
  `),fr.major(Ut.version)===20&&z.info(Jt([Nt(Kt("Deprecation warning: Node.js 20 support is ending")),"","Node.js 20 reached end-of-life on April 30, 2026.","Future Redocly CLI releases require Node.js 22.12.0 or later.",`You are using Node.js ${Ut.version}.`,"",`Update Node.js: ${it("https://nodejs.org/en/download")}`]))}catch{}var Ea=Yt(Aa(),1);import*as Oa from"node:path";import{notStrictEqual as Zu,strictEqual as ef}from"assert";var _u={right:Tu,center:Du},Iu=0,dr=1,Pu=2,pr=3,Xr=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(!_t.has(t))throw te.eject_generator_outcome="unknown-generator",new ge(`
124
124
  \u274C Unknown generator "${t}". Ejectable generators: ${[..._t].join(", ")}.
125
- `);let i=vf(),s=_f(i,t),{GENERATOR_VERSION:o}=await import("./chunks/WJXIZZA6.js"),c=jf(r.dir??"./generators"),u=s===void 0?H(c,`${t}.mjs`):H(c,t,"index.ts"),p=qe(process.cwd(),u)||u;if(r.update){if(s===void 0){let C=Ee(H(i,"generators",`${t}.mjs`),"utf-8");Nf({name:t,asset:C,toolkitVersion:o,assetsDir:i,dir:c,target:u,printedTarget:p})}else Lf({name:t,files:s,toolkitVersion:o,assetsDir:i,dir:c,targetDir:H(c,t)});return}if(we(u)&&!r.force)throw te.eject_generator_outcome="already-exists",new ge(`
125
+ `);let i=vf(),s=_f(i,t),{GENERATOR_VERSION:o}=await import("./chunks/FBEEMKTB.js"),c=jf(r.dir??"./generators"),u=s===void 0?H(c,`${t}.mjs`):H(c,t,"index.ts"),p=qe(process.cwd(),u)||u;if(r.update){if(s===void 0){let C=Ee(H(i,"generators",`${t}.mjs`),"utf-8");Nf({name:t,asset:C,toolkitVersion:o,assetsDir:i,dir:c,target:u,printedTarget:p})}else Lf({name:t,files:s,toolkitVersion:o,assetsDir:i,dir:c,targetDir:H(c,t)});return}if(we(u)&&!r.force)throw te.eject_generator_outcome="already-exists",new ge(`
126
126
  \u274C ${p} already exists. Use --update to merge the newer version in, or --force to overwrite.
127
127
  `);Rn(Vt(u),{recursive:!0});let h=s===void 0?[Ee(H(i,"generators",`${t}.mjs`),"utf-8")]:s.map(C=>Ee(H(i,"generators",t,C),"utf-8"));s===void 0?ae(u,h[0],"utf-8"):s.forEach((C,B)=>{ae(H(c,t,C),h[B],"utf-8")});let l=Jo("client-generators",i),b=Jo(`${t}-generator`,i);jn(c,$n(c));let y=`./${qe(e.configPath===void 0?process.cwd():Yo(Vt(e.configPath)),Yo(u)).split("\\").join("/")}`,E=vn({[Re]:o}),d=h.some(C=>C.includes(`from "${An}"`)||C.includes(`from '${An}'`)),x=Pf(e.configPath,t,y),A=s===void 0?p:qe(process.cwd(),H(c,t))+"/";z.info(`Ejected the "${t}" generator to ${A}.
128
128
  `+(E==="added"?`Added ${Re} to devDependencies (the ejected file imports its toolkit) \u2014 run your installer.
@@ -151,7 +151,7 @@ Reference: ${$f}
151
151
  `),o=c):o=o?`${o} ${c}`:c;z.output(` ${o}
152
152
 
153
153
  `)}z.output(`To install the skills, run: ${Nt("redocly skills")}
154
- `)}function Hf(r,e,t){return e.agent?e.agent.includes(r.name):xr(r.homeDir)?!0:!e.global&&xr(me(t,r.projectDir))}function Vf(){let r=[new URL("./skills/",import.meta.url),new URL("../../lib/skills/",import.meta.url)];for(let e of r){let t=Uf(e);if(xr(t))return t}throw new ge("The bundled agent skills are missing. In a checkout of the CLI, run: npm run compile")}var pa=Yt(ur(),1);import{existsSync as Bf,writeFileSync as Yf,readFileSync as Kf,statSync as Xf}from"node:fs";import{tmpdir as Pn}from"node:os";import{join as Ln}from"node:path";import*as Bt from"node:process";var Nn="redocly-cli-version",Jf=1e3*60*60*12,ha=Bt.env.NODE_ENV==="test"||Bt.env.CI||!!Bt.env.LAMBDA_TASK_ROOT||Bt.env.REDOCLY_SUPPRESS_UPDATE_NOTICE==="true",ma=()=>{if(!ha)try{let r=Kf(Ln(Pn(),Nn)).toString();Qf(He,r)&&ed(He,r)}catch{return}},Qf=(r,e)=>(0,pa.compare)(r,e)<0,Zf=async r=>{let e=`http://registry.npmjs.org/${r}/latest`;try{let{fetchWithTimeout:t}=await import("./chunks/HHCU6T2V.js");return(await(await t(e,{timeout:Qn})).json()).version}catch{return}},ga=()=>{!td()||ha||Zf(Bn).then(r=>{if(r){let e=Ln(Pn(),Nn);Yf(e,r)}}).catch(()=>{})},ed=(r,e)=>{z.info(Jt([`A new version of ${it("Redocly CLI")} (${At(e)}) is available.`,`Update now: \`${it("npm i -g @redocly/cli@latest")}\`.`,"Changelog: https://redocly.com/docs/cli/changelog/"]))},td=()=>{try{let r=Ln(Pn(),Nn);if(!Bf(r))return!0;let e=new Date().getTime(),n=Xf(r).mtime.getTime();return e-n>=Jf}catch{return!1}};function ya(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 nt(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}}function ba(r){return r?._?.[0]??""}async function wa(r,e,t){let n;try{n=await Gn({configPath:r.config,customExtends:r.extends,plugins:t})}catch(o){throw new ge(`Failed to load the configuration file:
154
+ `)}function Hf(r,e,t){return e.agent?e.agent.includes(r.name):xr(r.homeDir)?!0:!e.global&&xr(me(t,r.projectDir))}function Vf(){let r=[new URL("./skills/",import.meta.url),new URL("../../lib/skills/",import.meta.url)];for(let e of r){let t=Uf(e);if(xr(t))return t}throw new ge("The bundled agent skills are missing. In a checkout of the CLI, run: npm run compile")}var pa=Yt(ur(),1);import{existsSync as Bf,writeFileSync as Yf,readFileSync as Kf,statSync as Xf}from"node:fs";import{tmpdir as Pn}from"node:os";import{join as Ln}from"node:path";import*as Bt from"node:process";var Nn="redocly-cli-version",Jf=1e3*60*60*12,ha=Bt.env.NODE_ENV==="test"||Bt.env.CI||!!Bt.env.LAMBDA_TASK_ROOT||Bt.env.REDOCLY_SUPPRESS_UPDATE_NOTICE==="true",ma=()=>{if(!ha)try{let r=Kf(Ln(Pn(),Nn)).toString();Qf(He,r)&&ed(He,r)}catch{return}},Qf=(r,e)=>(0,pa.compare)(r,e)<0,Zf=async r=>{let e=`http://registry.npmjs.org/${r}/latest`;try{let{fetchWithTimeout:t}=await import("./chunks/QXBSAWH3.js");return(await(await t(e,{timeout:Qn})).json()).version}catch{return}},ga=()=>{!td()||ha||Zf(Bn).then(r=>{if(r){let e=Ln(Pn(),Nn);Yf(e,r)}}).catch(()=>{})},ed=(r,e)=>{z.info(Jt([`A new version of ${it("Redocly CLI")} (${At(e)}) is available.`,`Update now: \`${it("npm i -g @redocly/cli@latest")}\`.`,"Changelog: https://redocly.com/docs/cli/changelog/"]))},td=()=>{try{let r=Ln(Pn(),Nn);if(!Bf(r))return!0;let e=new Date().getTime(),n=Xf(r).mtime.getTime();return e-n>=Jf}catch{return!1}};function ya(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 nt(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}}function ba(r){return r?._?.[0]??""}async function wa(r,e,t){let n;try{n=await Gn({configPath:r.config,customExtends:r.extends,plugins:t})}catch(o){throw new ge(`Failed to load the configuration file:
155
155
 
156
156
  - ${o.message}`)}if(r["lint-config"]==="off"||n.document===void 0)return n;let i=await Hn({config:n,severity:r["lint-config"]||"warn"}),s=zn(i);if(Wn(i,{maxProblems:r["max-problems"],totals:s,version:e,command:"check-config"}),rd(s,ba(r)),s.errors>0)throw new Xt("Config check failed.");return n}function rd(r,e){r.errors>0?z.error(`\u274C Your config has ${r.errors} ${vr("error",r.errors)}.
157
157
  `):r.warnings>0?z.warn(`\u26A0\uFE0F Your config has ${r.warnings} ${vr("warning",r.warnings)}.
@@ -161,8 +161,8 @@ Reference: ${$f}
161
161
  `):(z.error(`An unexpected error occurred. This is likely a bug that should be reported.
162
162
  `),z.error(A instanceof Error?A.stack||A.message:String(A)),z.error(`
163
163
  `)))}finally{if(ei(u)){let A=Math.round(performance.now()-n);await ti({config:u,argv:t,exit_code:i,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:[...y],lint_rules_with_warnings:[...E],lint_rules_with_ignored_problems:[...d],generate_client:Kn,eject_generator:te,bundle:Zn})}process.once("beforeExit",()=>{process.exit(i)})}}}Ea.config({path:Oa.resolve(process.cwd(),"./.env")});ga();Bo(tn(process.argv)).version(!1).option("version",{type:"boolean",description:"Show version number.",global:!1}).middleware(r=>{r.version&&r._.length===0&&(z.output(`${He}
164
- `),process.exit(0))},!0).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/YDGFDJ2K.js");K(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/CN2ZOHYL.js");K(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/QTGTCBFK.js");K(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:"_"},"file-name-conflicts-severity":{description:"Severity level for file name conflicts.",choices:["warn","error","off"],default:"warn"},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/VJHJJBVN.js");K(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/V6VNRABV.js");K(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:"ID of the organization to push to.",type:"string",alias:"o",required:!0},project:{description:"ID 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/LNEXTJNF.js");K(e)(r)}).command("push [files...]","Push documents to the Redocly platform.",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:"ID of the organization to push to.",type:"string",alias:"o",required:!0},project:{description:"ID 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:ya},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/5ECOOGVW.js");K(e)(r)}).command("recheck [paths..]","Lint Markdown prose and structure from the recheck block in redocly.yaml.",r=>r.env("REDOCLY_CLI_RECHECK").positional("paths",{array:!0,type:"string",describe:"Files or directories to lint. Default: the current directory."}).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:["table","json","sarif","github-actions"],default:"table"},tags:{description:"Run only rules with these tags.",array:!0,type:"string"},rule:{description:"Run only these rules.",alias:"r",array:!0,type:"string"},"skip-rule":{description:"Skip these rules.",array:!0,type:"string"},stats:{description:"Print rule statistics.",alias:"s",type:"boolean"},fix:{description:"Apply fixes to Markdown files.",alias:"f",type:"boolean"},"max-problems":{description:"Maximum number of problems in the report.",type:"number"},summary:{description:"Print a run summary.",choices:["json","text"],type:"string"},"summary-path":{description:"Write the summary to a file.",type:"string"},readability:{description:"Report readability scores instead of linting.",type:"boolean"},"generate-baseline":{description:"Write the baseline file from the current findings.",type:"boolean"},"generate-markdoc-schema":{description:"Generate a Markdoc tag schema from theme modules.",type:"boolean"},from:{description:"Module paths to read Markdoc tags from (with --generate-markdoc-schema).",array:!0,type:"string"},output:{description:"Output file for the generated schema.",type:"string"},check:{description:"Fail if the generated schema differs from --output.",type:"boolean"}}),async r=>{let{handleRecheck:e}=await import("./chunks/6TE6AFQ3.js"),{recheckPresetsPlugin:t}=await import("./chunks/WSDNWUOV.js");K(e,{plugins:[t]})(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/O6NMXFEP.js");K(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:Vn},"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/BCRM4BTA.js");K(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=>{K()(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/E4MPGN3Z.js");K(e)(r)}).command("logout","Clear your stored credentials.",r=>r,async r=>{let{handleLogout:e}=await import("./chunks/P7LM57HK.js");K(e)(r)}).command("project","[early access] Work with a Redocly-hosted project.",r=>r.env("REDOCLY_CLI_PROJECT").command("clone <project> [directory]","Clone a Redocly-hosted project as a Git repository.",e=>e.positional("project",{description:"Organization and project slugs or IDs, as `<organization>/<project>`.",type:"string",demandOption:!0}).positional("directory",{description:"Directory to clone into. Defaults to the project.",type:"string"}).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"}}),async e=>{let{handleProjectClone:t}=await import("./chunks/MQUZ5IJ2.js");K(t)(e)}).command("pr","Work with the pull requests of a cloned project.",e=>e.command("create","Open a pull request in the Redocly platform for the current branch.",t=>t.options({title:{description:"Pull request title. Defaults to the subject of the last commit.",alias:["t"],type:"string"},body:{description:"Pull request body.",alias:["b"],type:"string"},"body-file":{description:"Read the body from a file. Use `-` to read from standard input.",alias:["F"],type:"string",conflicts:"body"},base:{description:"Branch to merge into. Defaults to the project's default branch.",alias:["B"],type:"string"},draft:{description:"Open the pull request as a draft.",alias:["d"],type:"boolean"},config:{description:"Path to the config file.",requiresArg:!0,type:"string"}}),async t=>{let{handleProjectPrCreate:n}=await import("./chunks/B5KSRXXW.js");K(n)(t)}).command("status","Show the state, review, checks, and preview URL of the pull request for the current branch.",t=>t.options({config:{description:"Path to the config file.",requiresArg:!0,type:"string"}}),async t=>{let{handleProjectPrStatus:n}=await import("./chunks/B5KSRXXW.js");K(n)(t)}).demandCommand(1,"Specify a pr subcommand: create or status.")).command("git-credentials <operation>",!1,e=>e.positional("operation",{description:"Credential helper operation: get, store, or erase.",type:"string",demandOption:!0}),async e=>{let{handleProjectGitCredentials:t}=await import("./chunks/L4F2ERUL.js");process.stdout.write(await t({operation:e.operation,input:process.stdin,version:He}))}).demandCommand(1,"Specify a project subcommand: clone or pr.")).command("preview","Preview Redocly project.",r=>r.env("REDOCLY_CLI_PREVIEW").options({product:{type:"string",choices:Object.keys(Xn),hidden:!0,deprecated:"the preview reads the package from package.json, @redocly/framework by default."},plan:{type:"string",choices:Jn,default:"enterprise",description:"Plan whose features the preview enables: pro, scale or enterprise."},port:{alias:"p",type:"number",description:"Preview port.",default:4e3,coerce:nt("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"))&&z.error(`Option --source-dir is deprecated and will be removed soon. Use --project-dir instead.
165
- `);let{previewProject:e}=await import("./chunks/T55LQK2H.js");K(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"},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"},openapi:{describe:"Redoc configuration. Use dot notation, e.g. openapi.hideDownloadButtons"},asyncapi:{describe:"Redoc configuration. Use dot notation, e.g. asyncapi.jsonSamplesDepth"},graphql:{describe:"Redoc configuration. Use dot notation, e.g. graphql.showBuiltInScalars"},inlineBundle:{describe:"Embed the Redoc scripts into the output file instead of loading them from the Redocly CDN.",type:"boolean",default:!1},config:{describe:"Path to the config file.",type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"},theme:{hidden:!0},disableGoogleFont:{hidden:!0,type:"boolean"}}).check(e=>{if(e.theme!==void 0)throw new Error("The --theme.openapi option was removed. Pass Redoc options with --openapi instead: https://redocly.com/docs/cli/guides/migrate-to-v2#changes-in-the-build-docs-command");if(e.disableGoogleFont!==void 0)throw new Error("The --disableGoogleFont option was removed because the page no longer loads Google Fonts. Remove the option from your command.");return!0}),async r=>{let{handlerBuildCommand:e}=await import("./chunks/NBMSBQEL.js");K(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/2CMKIFTE.js");K(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/MT4W54PL.js");K(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:ca},severity:{describe:"Severity of the check.",type:"string"},"max-steps":{describe:"Maximum number of steps to run (default: 2000).",type:"number",default:2e3,coerce:nt("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:nt("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:nt("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/PF43QQZA.js");K(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:nt("ai-concurrency",!0)},"max-workflows":{describe:"Most workflows the AI may design with --with-ai.",type:"number",default:10,coerce:nt("max-workflows",!0)}}),async r=>{let{handleGenerateArazzo:e}=await import("./chunks/NZE22F7Q.js");K(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/N37OGNC4.js");K(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 (${[..._t].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=>{K(oa)(r)}).command("skills","Install the Redocly CLI agent skills for AI coding agents.",r=>r.options({agent:{description:"Agents to install the skills for. Default: detected agents.",type:"array",string:!0,choices:fa},global:{description:"Install in your home folder instead of the current project.",type:"boolean",default:!1},list:{description:"List the bundled skills without installing them.",type:"boolean",default:!1}}),async r=>{K(da)(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"},"openapi-version":{describe:"OpenAPI version of the generated description.",type:"string",choices:["3.1","3.2"],default:"3.2"},"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:nt("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/MV3ZJ5HR.js");K(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/2Y7MGFQS.js");K(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/MYOQDPQZ.js");K(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"},coverage:{describe:"Print how much of the description the traffic exercised: operations, parameters, schema properties, and response codes.",type:"boolean",default:!1},"coverage-output":{describe:"Write a detailed JSON coverage report (per operation, with covered and missing items) to this file.",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/DHP4BBTH.js");K(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/B3GE7EIX.js");K(e)(r)}).completion("completion","Generate autocomplete script for `redocly` command.").demandCommand(1).middleware([ma]).strict().argv;
164
+ `),process.exit(0))},!0).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/3N7LKSDD.js");K(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/RBNQC5ZB.js");K(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/RBJCAITC.js");K(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:"_"},"file-name-conflicts-severity":{description:"Severity level for file name conflicts.",choices:["warn","error","off"],default:"warn"},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/Y5DDX2MU.js");K(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/BXXX3ZCV.js");K(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:"ID of the organization to push to.",type:"string",alias:"o",required:!0},project:{description:"ID 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/HBWCMTP3.js");K(e)(r)}).command("push [files...]","Push documents to the Redocly platform.",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:"ID of the organization to push to.",type:"string",alias:"o",required:!0},project:{description:"ID 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:ya},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/WJ3YDHQA.js");K(e)(r)}).command("recheck [paths..]","Lint Markdown prose and structure from the recheck block in redocly.yaml.",r=>r.env("REDOCLY_CLI_RECHECK").positional("paths",{array:!0,type:"string",describe:"Files or directories to lint. Default: the current directory."}).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:["table","json","sarif","github-actions"],default:"table"},tags:{description:"Run only rules with these tags.",array:!0,type:"string"},rule:{description:"Run only these rules.",alias:"r",array:!0,type:"string"},"skip-rule":{description:"Skip these rules.",array:!0,type:"string"},stats:{description:"Print rule statistics.",alias:"s",type:"boolean"},fix:{description:"Apply fixes to Markdown files.",alias:"f",type:"boolean"},"max-problems":{description:"Maximum number of problems in the report.",type:"number"},summary:{description:"Print a run summary.",choices:["json","text"],type:"string"},"summary-path":{description:"Write the summary to a file.",type:"string"},readability:{description:"Report readability scores instead of linting.",type:"boolean"},"generate-baseline":{description:"Write the baseline file from the current findings.",type:"boolean"},"generate-markdoc-schema":{description:"Generate a Markdoc tag schema from theme modules.",type:"boolean"},from:{description:"Module paths to read Markdoc tags from (with --generate-markdoc-schema).",array:!0,type:"string"},output:{description:"Output file for the generated schema.",type:"string"},check:{description:"Fail if the generated schema differs from --output.",type:"boolean"}}),async r=>{let{handleRecheck:e}=await import("./chunks/WLI2XLEP.js"),{recheckPresetsPlugin:t}=await import("./chunks/WSDNWUOV.js");K(e,{plugins:[t]})(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/ZBB6PS6I.js");K(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:Vn},"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/Q3IJURM3.js");K(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=>{K()(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/5SSWNONM.js");K(e)(r)}).command("logout","Clear your stored credentials.",r=>r,async r=>{let{handleLogout:e}=await import("./chunks/Y3LDWYZD.js");K(e)(r)}).command("project","[early access] Work with a Redocly-hosted project.",r=>r.env("REDOCLY_CLI_PROJECT").command("clone <project> [directory]","Clone a Redocly-hosted project as a Git repository.",e=>e.positional("project",{description:"Organization and project slugs or IDs, as `<organization>/<project>`.",type:"string",demandOption:!0}).positional("directory",{description:"Directory to clone into. Defaults to the project.",type:"string"}).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"}}),async e=>{let{handleProjectClone:t}=await import("./chunks/PBQOGZ5C.js");K(t)(e)}).command("pr","Work with the pull requests of a cloned project.",e=>e.command("create","Open a pull request in the Redocly platform for the current branch.",t=>t.options({title:{description:"Pull request title. Defaults to the subject of the last commit.",alias:["t"],type:"string"},body:{description:"Pull request body.",alias:["b"],type:"string"},"body-file":{description:"Read the body from a file. Use `-` to read from standard input.",alias:["F"],type:"string",conflicts:"body"},base:{description:"Branch to merge into. Defaults to the project's default branch.",alias:["B"],type:"string"},draft:{description:"Open the pull request as a draft.",alias:["d"],type:"boolean"},config:{description:"Path to the config file.",requiresArg:!0,type:"string"}}),async t=>{let{handleProjectPrCreate:n}=await import("./chunks/6TCEQRVX.js");K(n)(t)}).command("status","Show the state, review, checks, and preview URL of the pull request for the current branch.",t=>t.options({config:{description:"Path to the config file.",requiresArg:!0,type:"string"}}),async t=>{let{handleProjectPrStatus:n}=await import("./chunks/6TCEQRVX.js");K(n)(t)}).demandCommand(1,"Specify a pr subcommand: create or status.")).command("git-credentials <operation>",!1,e=>e.positional("operation",{description:"Credential helper operation: get, store, or erase.",type:"string",demandOption:!0}),async e=>{let{handleProjectGitCredentials:t}=await import("./chunks/CX76LEFC.js");process.stdout.write(await t({operation:e.operation,input:process.stdin,version:He}))}).demandCommand(1,"Specify a project subcommand: clone or pr.")).command("preview","Preview Redocly project.",r=>r.env("REDOCLY_CLI_PREVIEW").options({product:{type:"string",choices:Object.keys(Xn),hidden:!0,deprecated:"the preview reads the package from package.json, @redocly/framework by default."},plan:{type:"string",choices:Jn,default:"enterprise",description:"Plan whose features the preview enables: pro, scale or enterprise."},port:{alias:"p",type:"number",description:"Preview port.",default:4e3,coerce:nt("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"))&&z.error(`Option --source-dir is deprecated and will be removed soon. Use --project-dir instead.
165
+ `);let{previewProject:e}=await import("./chunks/EQOFXQKD.js");K(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"},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"},openapi:{describe:"Redoc configuration. Use dot notation, e.g. openapi.hideDownloadButtons"},asyncapi:{describe:"Redoc configuration. Use dot notation, e.g. asyncapi.jsonSamplesDepth"},graphql:{describe:"Redoc configuration. Use dot notation, e.g. graphql.showBuiltInScalars"},inlineBundle:{describe:"Embed the Redoc scripts into the output file instead of loading them from the Redocly CDN.",type:"boolean",default:!1},config:{describe:"Path to the config file.",type:"string"},"lint-config":{description:"Severity level for config file linting.",choices:["warn","error","off"],default:"warn"},theme:{hidden:!0},disableGoogleFont:{hidden:!0,type:"boolean"}}).check(e=>{if(e.theme!==void 0)throw new Error("The --theme.openapi option was removed. Pass Redoc options with --openapi instead: https://redocly.com/docs/cli/guides/migrate-to-v2#changes-in-the-build-docs-command");if(e.disableGoogleFont!==void 0)throw new Error("The --disableGoogleFont option was removed because the page no longer loads Google Fonts. Remove the option from your command.");return!0}),async r=>{let{handlerBuildCommand:e}=await import("./chunks/INGAWMLB.js");K(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/RNA6JDRC.js");K(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/YL3LVBZF.js");K(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:ca},severity:{describe:"Severity of the check.",type:"string"},"max-steps":{describe:"Maximum number of steps to run (default: 2000).",type:"number",default:2e3,coerce:nt("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:nt("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:nt("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/5DW3QRJB.js");K(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:nt("ai-concurrency",!0)},"max-workflows":{describe:"Most workflows the AI may design with --with-ai.",type:"number",default:10,coerce:nt("max-workflows",!0)}}),async r=>{let{handleGenerateArazzo:e}=await import("./chunks/ZQTHHPK3.js");K(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/2IUGP2IH.js");K(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 (${[..._t].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=>{K(oa)(r)}).command("skills","Install the Redocly CLI agent skills for AI coding agents.",r=>r.options({agent:{description:"Agents to install the skills for. Default: detected agents.",type:"array",string:!0,choices:fa},global:{description:"Install in your home folder instead of the current project.",type:"boolean",default:!1},list:{description:"List the bundled skills without installing them.",type:"boolean",default:!1}}),async r=>{K(da)(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"},"openapi-version":{describe:"OpenAPI version of the generated description.",type:"string",choices:["3.1","3.2"],default:"3.2"},"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:nt("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/EAFZ6DNQ.js");K(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/O53IFFP3.js");K(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/WCJ2HAN3.js");K(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"},coverage:{describe:"Print how much of the description the traffic exercised: operations, parameters, schema properties, and response codes.",type:"boolean",default:!1},"coverage-output":{describe:"Write a detailed JSON coverage report (per operation, with covered and missing items) to this file.",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/RNL7TC2W.js");K(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/TN3JQHMS.js");K(e)(r)}).completion("completion","Generate autocomplete script for `redocly` command.").demandCommand(1).middleware([ma]).strict().argv;
166
166
  /*! Bundled license information:
167
167
 
168
168
  yargs-parser/build/lib/string-utils.js:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: redocly-cli
3
- description: Redocly CLI for OpenAPI, AsyncAPI, Arazzo, and Overlay descriptions, and for Markdown docs. Use when the user wants to lint, bundle, split, or join an API description, apply decorators or overlays, build or preview API docs, lint Markdown or prose with recheck, test a live API with respect or Arazzo, capture traffic or check drift, get stats or a score, generate a TypeScript client, document an MCP server in an OpenAPI description, push to the Redocly platform, or find the node type a rule or plugin should target.
3
+ description: Redocly CLI for OpenAPI, AsyncAPI, Arazzo, and Overlay descriptions, and for Markdown docs. Use when the user wants to lint, bundle, split, or join an API description, apply decorators or overlays, build or preview API docs, lint Markdown or prose with recheck, test a live API with respect or Arazzo, capture traffic or check drift, get stats or a score, generate a TypeScript client, document an MCP server in an OpenAPI description, push to the Redocly platform, clone a Redocly-hosted project and open its pull requests, or find the node type a rule or plugin should target.
4
4
  ---
5
5
 
6
6
  # Redocly CLI usage
@@ -49,6 +49,9 @@ Install: `npm i @redocly/cli@latest`, or run without installing: `npx @redocly/c
49
49
  | `inspect-node-types` | Show the node type at a pointer, or list every node with its type [experimental] | Redocly configuration |
50
50
  | `push` | Push an API description to the Redocly platform | Platform |
51
51
  | `push-status` | Track an in-progress push to the platform | Platform |
52
+ | `project clone` | Clone a Redocly-hosted project as a Git repository [early access] | Platform |
53
+ | `project pr create` | Open a pull request for the current branch of a cloned project [early access] | Platform |
54
+ | `project pr status` | Show the state, review, checks, and preview URL of that pull request [early access] | Platform |
52
55
  | `skills` | Install the Redocly CLI agent skills into `.agents/skills/` and detected agent folders | Agent setup |
53
56
  | `completion` | Generate shell autocomplete commands | Shell setup |
54
57
 
@@ -181,6 +184,22 @@ With `apis.<name>.clientOutput` set, a bare `redocly generate-client` generates
181
184
  An API's own `client` block replaces the top-level one wholesale — repeat the shared fields in it.
182
185
  With `client.codeSamples: true`, it also writes `<output>.code-samples.yaml`, an overlay that adds `x-codeSamples`; add it to the API's `overlays` (or pass `--overlay`) so `bundle` puts the samples in the description.
183
186
 
187
+ ## Work on a Redocly-hosted project
188
+
189
+ After `redocly login`, `project clone <organization>/<project>` clones a project that the Redocly platform hosts.
190
+ The clone uses Redocly CLI as its Git credential helper, so `git pull` and `git push` work without a token.
191
+ The platform rejects pushes to the default branch: push another branch, then open a pull request for it:
192
+
193
+ ```bash
194
+ git push -u origin fix-typo
195
+ redocly project pr create --title "Fix a typo" --body-file - <<'BODY'
196
+ Fixes the install command in the quickstart.
197
+ BODY
198
+ ```
199
+
200
+ The command prints the pull request URL.
201
+ The platform builds a preview in a few minutes; `redocly project pr status` then shows the state, the review decision, the checks, and the preview URL after the preview is deployed.
202
+
184
203
  ## Test a live API
185
204
 
186
205
  `respect` executes an [Arazzo](https://spec.openapis.org/arazzo/latest.html) description as a test suite against a running API, asserting real responses match the description.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/cli",
3
- "version": "2.71.0",
3
+ "version": "2.71.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "type": "module",