@redocly/cli 2.65.1 → 2.66.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.
- package/README.md +5 -1
- package/THIRD_PARTY_NOTICES +1 -1
- package/lib/chunks/{3JAAMD2R.js → 36DQZK3T.js} +1 -1
- package/lib/chunks/{LLF5CY3L.js → 46YO7ZAG.js} +8 -8
- package/lib/chunks/{VAWGDT2W.js → 4ABWBH3W.js} +1 -1
- package/lib/chunks/{LVTNHX3K.js → 5EHUKG3I.js} +1 -1
- package/lib/chunks/{TNOMHRE3.js → 6JHVGOS4.js} +1 -1
- package/lib/chunks/{PFDVXHFS.js → 6KF4UNVM.js} +1 -1
- package/lib/chunks/{5UVEGDN5.js → 7NPQH3V7.js} +1 -1
- package/lib/chunks/{QLVSL5ZF.js → AONBK2JI.js} +1 -1
- package/lib/chunks/{SDI3BFVE.js → ARBQ5CUR.js} +1 -1
- package/lib/chunks/{OAZXHMUB.js → AZPQQ3GI.js} +1 -1
- package/lib/chunks/{K7YR4ZCE.js → B4Z2Z4FS.js} +1 -1
- package/lib/chunks/{GPHT4S2M.js → CK2FG2DD.js} +1 -1
- package/lib/chunks/{GY5LIRXF.js → CVCE3TMJ.js} +1 -1
- package/lib/chunks/{4JADC334.js → DRSH6QBU.js} +1 -1
- package/lib/chunks/ERBLCNSR.js +9 -0
- package/lib/chunks/{N7DGFIVS.js → F7K3O6UM.js} +1 -1
- package/lib/chunks/{Z4H5FLK2.js → FHDBQIEB.js} +1 -1
- package/lib/chunks/{PDRYPWBF.js → FOXOWXSK.js} +1 -1
- package/lib/chunks/{Y3UYQPDY.js → FP63LRP5.js} +1 -1
- package/lib/chunks/{7HX75VPL.js → FXCLUZIF.js} +1 -1
- package/lib/chunks/{YMEXZJK4.js → GG6HRP6Y.js} +1 -1
- package/lib/chunks/{W7XDH65E.js → GLUPJCQU.js} +1 -1
- package/lib/chunks/HHCU6T2V.js +7 -0
- package/lib/chunks/{ZHVZ22LO.js → HXPCC4OG.js} +1 -1
- package/lib/chunks/{AHV2L4AT.js → IAAYM25M.js} +1 -1
- package/lib/chunks/{6IEALFNR.js → IVWO724G.js} +1 -1
- package/lib/chunks/{RC2SP4YD.js → JFWECYV5.js} +1 -1
- package/lib/chunks/{GJJKLLSJ.js → JGSM4NRA.js} +1 -1
- package/lib/chunks/{TWAEUQN5.js → JZPKVDJA.js} +1 -1
- package/lib/chunks/{WJHTYCZL.js → JZV7OYQZ.js} +1 -1
- package/lib/chunks/{YUBO3M45.js → K4IZRPJV.js} +77 -77
- package/lib/chunks/{PDOJBUHH.js → KOEA2NZG.js} +2 -2
- package/lib/chunks/{76L5Y4E5.js → KTZA5BVG.js} +1 -1
- package/lib/chunks/{6O4EZZCB.js → L3SH4LDY.js} +1 -1
- package/lib/chunks/{QRGB7OHQ.js → LIDTATJI.js} +1 -1
- package/lib/chunks/{NCJ56PXB.js → LJTGHAPA.js} +1 -1
- package/lib/chunks/{PTPIZYEL.js → LR6VKQFM.js} +2 -2
- package/lib/chunks/{M6USEZHV.js → LSFJCPZH.js} +1 -1
- package/lib/chunks/{6OKAMFUS.js → M37DUXGN.js} +1 -1
- package/lib/chunks/{QET7LMPQ.js → M3VAMERP.js} +1 -1
- package/lib/chunks/{5LDTRSKM.js → MSJZTIMR.js} +3 -3
- package/lib/chunks/{EGRWOCUZ.js → NFCO7FU3.js} +1 -1
- package/lib/chunks/{XLPP6YHU.js → NHOPECWM.js} +1 -1
- package/lib/chunks/{F6CK2H55.js → NT6J6VMM.js} +1 -1
- package/lib/chunks/{YWLFGM2W.js → NUBOB7QM.js} +2 -2
- package/lib/chunks/{L7EAVWQA.js → OMDMN4SS.js} +1 -1
- package/lib/chunks/{GMPZCENU.js → ON2YZD5C.js} +1 -1
- package/lib/chunks/{LMOHVXBG.js → OYDBXGWA.js} +1 -1
- package/lib/chunks/{25STMLZM.js → PGX27JIK.js} +1 -1
- package/lib/chunks/{XVSKACRN.js → POIQ4MUQ.js} +1 -1
- package/lib/chunks/{Z3O5AH5W.js → PYSE2LAG.js} +1 -1
- package/lib/chunks/QMIJ4HMG.js +20 -0
- package/lib/chunks/{Q3SW35UY.js → R5MSEDNK.js} +1 -1
- package/lib/chunks/{FTJ2GLND.js → RALPAYEE.js} +1 -1
- package/lib/chunks/{BM3HLVGR.js → RO4A6LSK.js} +1 -1
- package/lib/chunks/{4ZSE2QKC.js → ROLEKKAB.js} +1 -1
- package/lib/chunks/{2AC4OXSZ.js → SDGM5YBT.js} +1 -1
- package/lib/chunks/{XGUY3CME.js → STYLK3WI.js} +1 -1
- package/lib/chunks/{XLDZKMWY.js → T23ZPTN4.js} +1 -1
- package/lib/chunks/{DLTGH5OY.js → TLDUEX6A.js} +1 -1
- package/lib/chunks/{VMZQPXC5.js → TOBKCE6P.js} +1 -1
- package/lib/chunks/{M3F2P6PS.js → TPBJSMIK.js} +1 -1
- package/lib/chunks/{7XEJIRRE.js → U7SJFXVW.js} +1 -1
- package/lib/chunks/{2IWPVA32.js → UJN4HIWM.js} +4 -4
- package/lib/chunks/{Q4UXM33T.js → ULKOLYWY.js} +1 -1
- package/lib/chunks/{AVRP5K2W.js → USAJ5FBD.js} +1 -1
- package/lib/chunks/{2Y42T65U.js → UYF7BOSD.js} +1 -1
- package/lib/chunks/{HTZ66OYY.js → VAPT4FUS.js} +1 -1
- package/lib/chunks/VOLUJUI5.js +7 -0
- package/lib/chunks/{YW65CIDB.js → WFZEGGBA.js} +1 -1
- package/lib/chunks/{KTG4J5LM.js → YCJL4ZHF.js} +1 -1
- package/lib/chunks/{5LKBZN75.js → YY44N7JX.js} +1 -1
- package/lib/chunks/{UFQAPCO4.js → ZSK75GT2.js} +1 -1
- package/lib/eject-assets/generators/cli/docs.ts +1 -1
- package/lib/eject-assets/generators/cli/engine-source.ts +1 -1
- package/lib/eject-assets/generators/cli/index.ts +2 -2
- package/lib/eject-assets/generators/cli/render.ts +1 -1
- package/lib/eject-assets/generators/go/client.ts +1 -1
- package/lib/eject-assets/generators/go/descriptor.ts +1 -1
- package/lib/eject-assets/generators/go/index.ts +2 -2
- package/lib/eject-assets/generators/go/models.ts +1 -1
- package/lib/eject-assets/generators/go/naming.ts +1 -1
- package/lib/eject-assets/generators/go/operations.ts +1 -1
- package/lib/eject-assets/generators/go/pagination.ts +1 -1
- package/lib/eject-assets/generators/go/types.ts +1 -1
- package/lib/eject-assets/generators/mock/faker.ts +1 -1
- package/lib/eject-assets/generators/mock/index.ts +2 -2
- package/lib/eject-assets/generators/mock/render.ts +1 -1
- package/lib/eject-assets/generators/mock/sample.ts +1 -1
- package/lib/eject-assets/generators/mock/values.ts +1 -1
- package/lib/eject-assets/generators/php/client.ts +1 -1
- package/lib/eject-assets/generators/php/descriptor.ts +1 -1
- package/lib/eject-assets/generators/php/index.ts +2 -2
- package/lib/eject-assets/generators/php/models.ts +4 -4
- package/lib/eject-assets/generators/php/naming.ts +1 -1
- package/lib/eject-assets/generators/php/operations.ts +1 -1
- package/lib/eject-assets/generators/php/pagination.ts +1 -1
- package/lib/eject-assets/generators/php/types.ts +1 -1
- package/lib/eject-assets/generators/python/client.ts +1 -1
- package/lib/eject-assets/generators/python/descriptor.ts +1 -1
- package/lib/eject-assets/generators/python/index.ts +2 -2
- package/lib/eject-assets/generators/python/models.ts +44 -19
- package/lib/eject-assets/generators/python/naming.ts +1 -1
- package/lib/eject-assets/generators/python/operations.ts +1 -1
- package/lib/eject-assets/generators/python/pagination.ts +1 -1
- package/lib/eject-assets/generators/python/types.ts +1 -1
- package/lib/eject-assets/generators/swr/index.ts +2 -2
- package/lib/eject-assets/generators/swr/render.ts +1 -1
- package/lib/eject-assets/generators/tanstack-query/index.ts +2 -2
- package/lib/eject-assets/generators/tanstack-query/render.ts +1 -1
- package/lib/eject-assets/generators/transformers/index.ts +2 -2
- package/lib/eject-assets/generators/transformers/render.ts +1 -1
- package/lib/eject-assets/generators/typescript/banner.ts +1 -1
- package/lib/eject-assets/generators/typescript/client.ts +1 -1
- package/lib/eject-assets/generators/typescript/descriptor.ts +1 -1
- package/lib/eject-assets/generators/typescript/index.ts +2 -2
- package/lib/eject-assets/generators/typescript/inline-runtime.ts +1 -1
- package/lib/eject-assets/generators/typescript/operation-signature.ts +1 -1
- package/lib/eject-assets/generators/typescript/operation-types.ts +1 -1
- package/lib/eject-assets/generators/typescript/operations.ts +1 -1
- package/lib/eject-assets/generators/typescript/response-headers.ts +1 -1
- package/lib/eject-assets/generators/typescript/type-guards.ts +1 -1
- package/lib/eject-assets/generators/typescript/types.ts +1 -1
- package/lib/eject-assets/generators/zod/index.ts +2 -2
- package/lib/eject-assets/generators/zod/schemas.ts +1 -1
- package/lib/eject-assets/skills/php-generator/SKILL.md +3 -1
- package/lib/eject-assets/skills/python-generator/SKILL.md +2 -1
- package/lib/index.js +80 -70
- package/lib/skills/recheck-config/SKILL.md +116 -0
- package/lib/skills/recheck-lint/SKILL.md +73 -0
- package/lib/skills/redocly-cli/SKILL.md +214 -0
- package/lib/skills/redocly-lint-rules/SKILL.md +554 -0
- package/package.json +1 -1
- package/lib/chunks/GHSNC2OX.js +0 -9
- package/lib/chunks/SCSGALAM.js +0 -20
|
@@ -4,5 +4,5 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
-
import{c}from"./
|
|
7
|
+
import{c}from"./K4IZRPJV.js";import{open as U,readdir as H,stat as J}from"node:fs/promises";import x from"node:path";var L=new Set([".yaml",".yml",".json"]);async function K(e){let n=[];async function t(r){let o=await H(r,{withFileTypes:!0});for(let s of o){if(s.name.startsWith("."))continue;let i=x.join(r,s.name);if(s.isDirectory()){await t(i);continue}s.isFile()&&L.has(x.extname(s.name).toLowerCase())&&n.push(i)}}return await t(e),n.sort(),n}async function G(e,n=4096){let t=await U(e,"r");try{let r=Buffer.allocUnsafe(n),{bytesRead:o}=await t.read(r,0,n,0);return r.toString("utf8",0,o)}finally{await t.close()}}function X(e){return x.resolve(process.cwd(),e)}async function Y(e){let n=await J(e);if(n.isFile())return[e];if(!n.isDirectory())return[];let t=[];async function r(o){let s=await H(o,{withFileTypes:!0});for(let i of s){if(i.name.startsWith("."))continue;let a=x.join(o,i.name);if(i.isDirectory()){await r(a);continue}i.isFile()&&t.push(a)}}return await r(e),t.sort(),t}var z="drift.local",B=`http://${z}`;function l(e){return e===z}var I=new Set(["accept","accept-charset","accept-encoding","accept-language","authorization","baggage","cache-control","cdn-loop","cookie","connection","content-length","content-type","dpr","dnt","downlink","ect","forwarded","host","if-match","if-modified-since","if-none-match","if-range","if-unmodified-since","origin","pragma","priority","range","referer","sec-fetch-dest","sec-fetch-mode","sec-fetch-site","sec-fetch-user","sec-gpc","sentry-trace","te","traceparent","tracestate","upgrade","upgrade-insecure-requests","user-agent","via","x-client-trace-id","x-cloud-trace-context","x-correlation-id","x-http-method-override","x-hub-signature","x-hub-signature-256","x-method-override","x-real-ip","x-request-id","x-forwarded-for","x-forwarded-host","x-forwarded-port","x-forwarded-proto"]),q=["cf-","sec-ch-","sec-fetch-","x-amz-","x-amzn-","x-b3-","x-envoy-","x-forwarded-","x-github-"],T=`
|
|
8
8
|
`;function Z(e){return e.split(T)}function S(e,n,t){let r=n.toLowerCase(),o=e[r];if(o===void 0){e[r]=t;return}e[r]=r==="set-cookie"?`${o}${T}${t}`:`${o},${t}`}function w(e){if(!c(e)&&!Array.isArray(e))return{};let n={};if(Array.isArray(e)){for(let t of e){if(!c(t))continue;let{name:r,value:o}=t;typeof r=="string"&&o!==void 0&&S(n,r,String(o))}return n}for(let[t,r]of Object.entries(e))if(r!=null){if(Array.isArray(r)){for(let o of r)S(n,t,String(o));continue}S(n,t,String(r))}return n}function m(e){try{return new URL(e)}catch{return new URL(e,B)}}function N(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function b(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(e){let n=[],t=0,r=e.startsWith("/")?e:`/${e}`,s=N(r).split("/").map(i=>{if(!i)return"";let a=[...i.matchAll(/\{([^}]+)\}/g)],h=n.length,u="",p=0,f=0;for(let[y,d]of a.entries()){let R=i.slice(f,d.index);u+=b(R),p+=R.length,n.push(d[1]),f=d.index+d[0].length;let E=a[y+1];if(!E){u+="([^/]+)";continue}let A=i.slice(f,E.index);u+=A?`((?:(?!${b(A)})[^/])+)`:"([^/])"}let g=i.slice(f);return u+=b(g),p+=g.length,n.length===h?t+=2:p>0&&(t+=1),u}).join("/");return{regex:new RegExp(`^${s||"/"}$`),params:n,score:t}}function k(e,n){if(n&&P(e))try{return JSON.parse(n)}catch{return}}function C(e){return e?e.split(";")[0]?.trim().toLowerCase()??"":""}function P(e){let n=C(e);return n==="application/json"||n.endsWith("+json")}function ee(e,n){let t=C(n);if(!t)return e["application/json"]??e["*/*"];if(e[t]!==void 0)return e[t];let[r,o]=t.split("/");if(r&&o){let s=`${r}/*`;if(e[s]!==void 0)return e[s]}return e["*/*"]}function ne(e){let n=new Set,t=[];for(let r of e){let o=r.trim().toLowerCase();o.length!==0&&(o.endsWith("*")?t.push(o.slice(0,-1)):n.add(o))}return{names:n,prefixes:t}}function te(e,n){let t=e.toLowerCase();return t.startsWith(":")||I.has(t)||q.some(r=>t.startsWith(r))?!0:n?n.names.has(t)||n.prefixes.some(r=>t.startsWith(r)):!1}import{createReadStream as F}from"node:fs";import{readFile as j}from"node:fs/promises";import{createInterface as W}from"node:readline";function D(e){if(e!=null){if(typeof e=="string")return e;if(Buffer.isBuffer(e))return e.toString("utf8");if(c(e)||Array.isArray(e))try{return JSON.stringify(e)}catch{return String(e)}return String(e)}}function ue(e){if(typeof e=="number"&&Number.isFinite(e))return e;if(typeof e=="string"&&e.trim()!==""){let n=Number(e);if(Number.isFinite(n))return n}}function $(e,n){if(e!=null){if(n==="base64"&&typeof e=="string")try{return Buffer.from(e,"base64").toString("utf8")}catch{return e}return D(e)}}function fe(e,n,t){let r=e.method?.toUpperCase(),o=e.url;if(!r||!o)return null;let s=w(e.requestHeaders),i=m(o);if(l(i.host)&&s.host)try{i=new URL(`${i.protocol}//${s.host}${i.pathname}${i.search}`)}catch{i=m(o)}let a=e.requestContentType??s["content-type"],h=$(e.requestBody),u={method:r,url:i.toString(),path:i.pathname,query:i.searchParams,protocol:i.protocol,protocolKnown:e.schemeKnown??/^https?:\/\//i.test(o),host:l(i.host)?void 0:i.host||void 0,headers:s,contentType:a,bodyText:h,bodyJson:k(a,h)},p,f=e.responseStatus;if(f!==void 0){let g=w(e.responseHeaders),y=e.responseContentType??g["content-type"],d=$(e.responseBody);p={status:f,statusText:e.responseStatusText,headers:g,contentType:y,bodyText:d,bodyJson:k(y,d)}}return{index:n,source:t,startedAt:e.startedAt,request:u,response:p,raw:e.raw}}async function*de(e){let n=F(e,{encoding:"utf8"}),t=W({input:n,crlfDelay:1/0});for await(let r of t){let o=r.trim();if(o)try{let s=JSON.parse(o);c(s)&&(yield s)}catch{}}}async function*pe(e,n){let t=await j(e,"utf8"),r=JSON.parse(t);if(n)for(let o of n.split("."))r=c(r)?r[o]:void 0;if(Array.isArray(r))for(let o of r)c(o)&&(yield o)}function ge(e){return w(e)["content-type"]}function he(e){return e?.replace(/\/+$/,"")||void 0}function O(e,n){if(!n||n==="/")return e||"/";if(e===n)return"/";if(e.startsWith(`${n}/`))return e.slice(n.length)||"/"}function ye(e,n){if(n.startsWith("/"))return O(e.path,n);let t=m(n.includes("://")?n:`http://${n}`);if(!(l(t.host)||e.host!==void 0&&e.host.toLowerCase()!==t.host))return O(e.path,N(t.pathname))}export{K as a,G as b,X as c,Y as d,l as e,Z as f,m as g,N as h,v as i,C as j,P as k,ee as l,ne as m,te as n,D as o,ue as p,$ as q,fe as r,de as s,pe as t,ge as u,he as v,ye as w};
|