just-binary 3.0.0 → 3.0.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/dist/bin/chunks/{chunk-FZXGAGSU.js → chunk-4Y3GINAY.js} +10 -10
- package/dist/bin/{shell/chunks/chunk-PYIWPSII.js → chunks/chunk-ASU2EQWZ.js} +18 -18
- package/dist/bin/{shell/chunks/flag-coverage-7AQE3UPG.js → chunks/flag-coverage-JBJRZ3PO.js} +1 -1
- package/dist/bin/{shell/chunks/gzip-PT23FGTW.js → chunks/gzip-AKQBQW7Y.js} +1 -1
- package/dist/bin/chunks/{rg-D5WXPSFJ.js → rg-LTQYHOCO.js} +1 -1
- package/dist/bin/chunks/worker.js +5 -1
- package/dist/bin/just-bash.js +2 -2
- package/dist/bin/shell/chunks/{chunk-FZXGAGSU.js → chunk-4Y3GINAY.js} +10 -10
- package/dist/bin/{chunks/chunk-PYIWPSII.js → shell/chunks/chunk-ASU2EQWZ.js} +18 -18
- package/dist/bin/{chunks/flag-coverage-7AQE3UPG.js → shell/chunks/flag-coverage-JBJRZ3PO.js} +1 -1
- package/dist/bin/{chunks/gzip-PT23FGTW.js → shell/chunks/gzip-AKQBQW7Y.js} +1 -1
- package/dist/bin/shell/chunks/{rg-D5WXPSFJ.js → rg-LTQYHOCO.js} +1 -1
- package/dist/bin/shell/shell.js +216 -216
- package/dist/browser.d.ts +4 -0
- package/dist/bundle/browser.js +486 -486
- package/dist/bundle/chunks/{chunk-YANZPHZ3.js → chunk-M5Z2PSET.js} +18 -18
- package/dist/bundle/chunks/{chunk-E7BAZEZG.js → chunk-NDPSDM3Q.js} +10 -10
- package/dist/bundle/chunks/{flag-coverage-VMMEL7EH.js → flag-coverage-FK7Z2EY4.js} +1 -1
- package/dist/bundle/chunks/{gzip-OUHELY5D.js → gzip-BYGAV4XY.js} +1 -1
- package/dist/bundle/chunks/{rg-PML6WNNK.js → rg-RA3U4BVJ.js} +1 -1
- package/dist/bundle/chunks/worker.js +5 -1
- package/dist/bundle/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as q,b as H,c as V}from"./chunk-BXOX2H2G.js";import{a as M}from"./chunk-SE4C7FJY.js";import{a as G,b as U,c as
|
|
2
|
+
import{a as q,b as H,c as V}from"./chunk-BXOX2H2G.js";import{a as M}from"./chunk-SE4C7FJY.js";import{a as G,b as U,c as O}from"./chunk-DFAHK2EQ.js";import{b as g,e as v,f as E,g as L}from"./chunk-RAUBS6MJ.js";import{k as B}from"./chunk-463VWH7H.js";var Z={js:{extensions:[".js",".mjs",".cjs",".jsx"],globs:[]},ts:{extensions:[".ts",".tsx",".mts",".cts"],globs:[]},html:{extensions:[".html",".htm",".xhtml"],globs:[]},css:{extensions:[".css",".scss",".sass",".less"],globs:[]},json:{extensions:[".json",".jsonc",".json5"],globs:[]},xml:{extensions:[".xml",".xsl",".xslt"],globs:[]},c:{extensions:[".c",".h"],globs:[]},cpp:{extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx",".h"],globs:[]},rust:{extensions:[".rs"],globs:[]},go:{extensions:[".go"],globs:[]},zig:{extensions:[".zig"],globs:[]},java:{extensions:[".java"],globs:[]},kotlin:{extensions:[".kt",".kts"],globs:[]},scala:{extensions:[".scala",".sc"],globs:[]},clojure:{extensions:[".clj",".cljc",".cljs",".edn"],globs:[]},py:{extensions:[".py",".pyi",".pyw"],globs:[]},rb:{extensions:[".rb",".rake",".gemspec"],globs:["Rakefile","Gemfile"]},php:{extensions:[".php",".phtml",".php3",".php4",".php5"],globs:[]},perl:{extensions:[".pl",".pm",".pod",".t"],globs:[]},lua:{extensions:[".lua"],globs:[]},sh:{extensions:[".sh",".bash",".zsh",".fish"],globs:[".bashrc",".zshrc",".profile"]},bat:{extensions:[".bat",".cmd"],globs:[]},ps:{extensions:[".ps1",".psm1",".psd1"],globs:[]},yaml:{extensions:[".yaml",".yml"],globs:[]},toml:{extensions:[".toml"],globs:["Cargo.toml","pyproject.toml"]},ini:{extensions:[".ini",".cfg",".conf"],globs:[]},csv:{extensions:[".csv",".tsv"],globs:[]},md:{extensions:[".md",".mdx",".markdown",".mdown",".mkd"],globs:[]},markdown:{extensions:[".md",".mdx",".markdown",".mdown",".mkd"],globs:[]},rst:{extensions:[".rst"],globs:[]},txt:{extensions:[".txt",".text"],globs:[]},tex:{extensions:[".tex",".ltx",".sty",".cls"],globs:[]},sql:{extensions:[".sql"],globs:[]},graphql:{extensions:[".graphql",".gql"],globs:[]},proto:{extensions:[".proto"],globs:[]},make:{extensions:[".mk",".mak"],globs:["Makefile","GNUmakefile","makefile"]},docker:{extensions:[],globs:["Dockerfile","Dockerfile.*","*.dockerfile"]},tf:{extensions:[".tf",".tfvars"],globs:[]}},k=class{types;constructor(){this.types=new Map(Object.entries(Z).map(([t,n])=>[t,{extensions:[...n.extensions],globs:[...n.globs]}]))}addType(t){let n=t.indexOf(":");if(n===-1)return;let s=t.slice(0,n),r=t.slice(n+1);if(r.startsWith("include:")){let l=r.slice(8),i=this.types.get(l);if(i){let a=this.types.get(s)||{extensions:[],globs:[]};a.extensions.push(...i.extensions),a.globs.push(...i.globs),this.types.set(s,a)}}else{let l=this.types.get(s)||{extensions:[],globs:[]};if(r.startsWith("*.")&&!r.slice(2).includes("*")){let i=r.slice(1);l.extensions.includes(i)||l.extensions.push(i)}else l.globs.includes(r)||l.globs.push(r);this.types.set(s,l)}}clearType(t){let n=this.types.get(t);n&&(n.extensions=[],n.globs=[])}getType(t){return this.types.get(t)}getAllTypes(){return this.types}matchesType(t,n){let s=t.toLowerCase();for(let r of n){if(r==="all"){if(this.matchesAnyType(t))return!0;continue}let l=this.types.get(r);if(l){for(let i of l.extensions)if(s.endsWith(i))return!0;for(let i of l.globs)if(i.includes("*")){let a=i.replace(/\./g,"\\.").replace(/\*/g,".*");if(M(`^${a}$`,"i").test(t))return!0}else if(s===i.toLowerCase())return!0}}return!1}matchesAnyType(t){let n=t.toLowerCase();for(let s of this.types.values()){for(let r of s.extensions)if(n.endsWith(r))return!0;for(let r of s.globs)if(r.includes("*")){let l=r.replace(/\./g,"\\.").replace(/\*/g,".*");if(M(`^${l}$`,"i").test(t))return!0}else if(n===r.toLowerCase())return!0}return!1}};function J(){let e=[];for(let[t,n]of Object.entries(Z).sort()){let s=[];for(let r of n.extensions)s.push(`*${r}`);for(let r of n.globs)s.push(r);e.push(`${t}: ${s.join(", ")}`)}return`${e.join(`
|
|
3
3
|
`)}
|
|
4
4
|
`}function Y(){return{ignoreCase:!1,caseSensitive:!1,smartCase:!0,fixedStrings:!1,wordRegexp:!1,lineRegexp:!1,invertMatch:!1,multiline:!1,multilineDotall:!1,patterns:[],patternFiles:[],count:!1,countMatches:!1,files:!1,filesWithMatches:!1,filesWithoutMatch:!1,stats:!1,onlyMatching:!1,maxCount:0,lineNumber:!0,noFilename:!1,withFilename:!1,nullSeparator:!1,byteOffset:!1,column:!1,vimgrep:!1,replace:null,afterContext:0,beforeContext:0,contextSeparator:"--",quiet:!1,heading:!1,passthru:!1,includeZero:!1,sort:"path",json:!1,globs:[],iglobs:[],globCaseInsensitive:!1,types:[],typesNot:[],typeAdd:[],typeClear:[],hidden:!1,noIgnore:!1,noIgnoreDot:!1,noIgnoreVcs:!1,ignoreFiles:[],maxDepth:1/0,maxFilesize:0,followSymlinks:!1,searchZip:!1,searchBinary:!1,preprocessor:null,preprocessorGlobs:[]}}function re(e){let t=e.match(/^(\d+)([KMG])?$/i);if(!t)return 0;let n=parseInt(t[1],10);switch((t[2]||"").toUpperCase()){case"K":return n*1024;case"M":return n*1024*1024;case"G":return n*1024*1024*1024;default:return n}}function ie(e){return/^\d+[KMG]?$/i.test(e)?null:{stdout:g(),stderr:v(`rg: invalid --max-filesize value: ${e}
|
|
5
|
-
`),exitCode:1}}function K(e){return null}var X=[{short:"g",long:"glob",target:"globs",multi:!0},{long:"iglob",target:"iglobs",multi:!0},{short:"t",long:"type",target:"types",multi:!0,validate:K},{short:"T",long:"type-not",target:"typesNot",multi:!0,validate:K},{long:"type-add",target:"typeAdd",multi:!0},{long:"type-clear",target:"typeClear",multi:!0},{short:"m",long:"max-count",target:"maxCount",parse:parseInt},{short:"e",long:"regexp",target:"patterns",multi:!0},{short:"f",long:"file",target:"patternFiles",multi:!0},{short:"r",long:"replace",target:"replace"},{short:"d",long:"max-depth",target:"maxDepth",parse:parseInt},{long:"max-filesize",target:"maxFilesize",parse:re,validate:ie},{long:"context-separator",target:"contextSeparator"},{short:"j",long:"threads",target:"maxDepth",parse:()=>1/0},{long:"ignore-file",target:"ignoreFiles",multi:!0},{long:"pre",target:"preprocessor"},{long:"pre-glob",target:"preprocessorGlobs",multi:!0}],le=new Map([["i",e=>{e.ignoreCase=!0,e.caseSensitive=!1,e.smartCase=!1}],["--ignore-case",e=>{e.ignoreCase=!0,e.caseSensitive=!1,e.smartCase=!1}],["s",e=>{e.caseSensitive=!0,e.ignoreCase=!1,e.smartCase=!1}],["--case-sensitive",e=>{e.caseSensitive=!0,e.ignoreCase=!1,e.smartCase=!1}],["S",e=>{e.smartCase=!0,e.ignoreCase=!1,e.caseSensitive=!1}],["--smart-case",e=>{e.smartCase=!0,e.ignoreCase=!1,e.caseSensitive=!1}],["F",e=>{e.fixedStrings=!0}],["--fixed-strings",e=>{e.fixedStrings=!0}],["w",e=>{e.wordRegexp=!0}],["--word-regexp",e=>{e.wordRegexp=!0}],["x",e=>{e.lineRegexp=!0}],["--line-regexp",e=>{e.lineRegexp=!0}],["v",e=>{e.invertMatch=!0}],["--invert-match",e=>{e.invertMatch=!0}],["U",e=>{e.multiline=!0}],["--multiline",e=>{e.multiline=!0}],["--multiline-dotall",e=>{e.multilineDotall=!0,e.multiline=!0}],["c",e=>{e.count=!0}],["--count",e=>{e.count=!0}],["--count-matches",e=>{e.countMatches=!0}],["l",e=>{e.filesWithMatches=!0}],["--files",e=>{e.files=!0}],["--files-with-matches",e=>{e.filesWithMatches=!0}],["--files-without-match",e=>{e.filesWithoutMatch=!0}],["--stats",e=>{e.stats=!0}],["o",e=>{e.onlyMatching=!0}],["--only-matching",e=>{e.onlyMatching=!0}],["q",e=>{e.quiet=!0}],["--quiet",e=>{e.quiet=!0}],["N",e=>{e.lineNumber=!1}],["--no-line-number",e=>{e.lineNumber=!1}],["H",e=>{e.withFilename=!0}],["--with-filename",e=>{e.withFilename=!0}],["I",e=>{e.noFilename=!0}],["--no-filename",e=>{e.noFilename=!0}],["0",e=>{e.nullSeparator=!0}],["--null",e=>{e.nullSeparator=!0}],["b",e=>{e.byteOffset=!0}],["--byte-offset",e=>{e.byteOffset=!0}],["--column",e=>{e.column=!0,e.lineNumber=!0}],["--no-column",e=>{e.column=!1}],["--vimgrep",e=>{e.vimgrep=!0,e.column=!0,e.lineNumber=!0}],["--json",e=>{e.json=!0}],["--hidden",e=>{e.hidden=!0}],["--no-ignore",e=>{e.noIgnore=!0}],["--no-ignore-dot",e=>{e.noIgnoreDot=!0}],["--no-ignore-vcs",e=>{e.noIgnoreVcs=!0}],["L",e=>{e.followSymlinks=!0}],["--follow",e=>{e.followSymlinks=!0}],["z",e=>{e.searchZip=!0}],["--search-zip",e=>{e.searchZip=!0}],["a",e=>{e.searchBinary=!0}],["--text",e=>{e.searchBinary=!0}],["--heading",e=>{e.heading=!0}],["--passthru",e=>{e.passthru=!0}],["--include-zero",e=>{e.includeZero=!0}],["--glob-case-insensitive",e=>{e.globCaseInsensitive=!0}]]),oe=new Set(["n","--line-number"]);function ae(e){e.hidden?e.searchBinary=!0:e.noIgnore?e.hidden=!0:e.noIgnore=!0}function ce(e,t,n){let s=e[t];for(let r of X){if(s.startsWith(`--${r.long}=`)){let l=s.slice(`--${r.long}=`.length),i=
|
|
6
|
-
`),exitCode:1}};if(f.length===1){let w=fe(f);if(w){if(c+1>=e.length)return{success:!1,error:
|
|
7
|
-
`);for(let s of n){let r=s.replace(/\s+$/,"");if(!r||r.startsWith("#"))continue;let l=!1;r.startsWith("!")&&(l=!0,r=r.slice(1));let i=!1;r.endsWith("/")&&(i=!0,r=r.slice(0,-1));let a=!1;r.startsWith("/")?(a=!0,r=r.slice(1)):r.includes("/")&&!r.startsWith("**/")&&(a=!0);let c=this.patternToRegex(r,a);this.patterns.push({pattern:s,regex:c,negated:l,directoryOnly:i,rooted:a})}}patternToRegex(t,n){let s="";n?s="^":s="(?:^|/)";let r=0;for(;r<t.length;){let l=t[r];if(l==="*")t[r+1]==="*"?t[r+2]==="/"?(s+="(?:.*/)?",r+=3):(r+2>=t.length,s+=".*",r+=2):(s+="[^/]*",r++);else if(l==="?")s+="[^/]",r++;else if(l==="["){let i=r+1;for(i<t.length&&t[i]==="!"&&i++,i<t.length&&t[i]==="]"&&i++;i<t.length&&t[i]!=="]";)i++;if(i<t.length){let a=t.slice(r,i+1);a.startsWith("[!")&&(a=`[^${a.slice(2)}`),s+=a,r=i+1}else s+="\\[",r++}else l==="/"?(s+="/",r++):(s+=l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r++)}return s+="(?:/.*)?$",M(s)}matches(t,n){let s=t.replace(/^\.\//,"");s=s.replace(/^\//,"");let r=!1;for(let l of this.patterns)l.directoryOnly&&!n||l.regex.test(s)&&(r=!l.negated);return r}isWhitelisted(t,n){let s=t.replace(/^\.\//,"");s=s.replace(/^\//,"");for(let r of this.patterns)if(!(r.directoryOnly&&!n)&&r.negated&&r.regex.test(s))return!0;return!1}getBasePath(){return this.basePath}},W=class{parsers=[];fs;skipDotIgnore;skipVcsIgnore;loadedDirs=new Set;constructor(t,n,s=!1,r=!1){this.fs=t,this.skipDotIgnore=s,this.skipVcsIgnore=r}async load(t){let n=[],s=t;for(;;){n.unshift(s);let l=this.fs.resolvePath(s,"..");if(l===s)break;s=l}let r=[];this.skipVcsIgnore||r.push(".gitignore"),this.skipDotIgnore||r.push(".rgignore",".ignore");for(let l of n){this.loadedDirs.add(l);for(let i of r){let a=this.fs.resolvePath(l,i);try{let c=await this.fs.readFileText(a),o=new N(l);o.parse(c),this.parsers.push(o)}catch{}}}}async loadForDirectory(t){if(this.loadedDirs.has(t))return;this.loadedDirs.add(t);let n=[];this.skipVcsIgnore||n.push(".gitignore"),this.skipDotIgnore||n.push(".rgignore",".ignore");for(let s of n){let r=this.fs.resolvePath(t,s);try{let l=await this.fs.readFileText(r),i=new N(t);i.parse(l),this.parsers.push(i)}catch{}}}addPatternsFromContent(t,n){let s=new N(n);s.parse(t),this.parsers.push(s)}matches(t,n){for(let s of this.parsers){let r=s.getBasePath();if(!t.startsWith(r))continue;let l=t.slice(r.length).replace(/^\//,"");if(s.matches(l,n))return!0}return!1}isWhitelisted(t,n){for(let s of this.parsers){let r=s.getBasePath();if(!t.startsWith(r))continue;let l=t.slice(r.length).replace(/^\//,"");if(s.isWhitelisted(l,n))return!0}return!1}static isCommonIgnored(t){return new Set(["node_modules",".git",".svn",".hg","__pycache__",".pytest_cache",".mypy_cache","venv",".venv",".next",".nuxt",".cargo"]).has(t)}};async function
|
|
8
|
-
`),exitCode:1}}if(n.files){let f=[...n.patterns,...s];return be(t,f,n)}let l=[...n.patterns];for(let f of n.patternFiles)try{let y;if(f==="-")y=await
|
|
5
|
+
`),exitCode:1}}function K(e){return null}var X=[{short:"g",long:"glob",target:"globs",multi:!0},{long:"iglob",target:"iglobs",multi:!0},{short:"t",long:"type",target:"types",multi:!0,validate:K},{short:"T",long:"type-not",target:"typesNot",multi:!0,validate:K},{long:"type-add",target:"typeAdd",multi:!0},{long:"type-clear",target:"typeClear",multi:!0},{short:"m",long:"max-count",target:"maxCount",parse:parseInt},{short:"e",long:"regexp",target:"patterns",multi:!0},{short:"f",long:"file",target:"patternFiles",multi:!0},{short:"r",long:"replace",target:"replace"},{short:"d",long:"max-depth",target:"maxDepth",parse:parseInt},{long:"max-filesize",target:"maxFilesize",parse:re,validate:ie},{long:"context-separator",target:"contextSeparator"},{short:"j",long:"threads",target:"maxDepth",parse:()=>1/0},{long:"ignore-file",target:"ignoreFiles",multi:!0},{long:"pre",target:"preprocessor"},{long:"pre-glob",target:"preprocessorGlobs",multi:!0}],le=new Map([["i",e=>{e.ignoreCase=!0,e.caseSensitive=!1,e.smartCase=!1}],["--ignore-case",e=>{e.ignoreCase=!0,e.caseSensitive=!1,e.smartCase=!1}],["s",e=>{e.caseSensitive=!0,e.ignoreCase=!1,e.smartCase=!1}],["--case-sensitive",e=>{e.caseSensitive=!0,e.ignoreCase=!1,e.smartCase=!1}],["S",e=>{e.smartCase=!0,e.ignoreCase=!1,e.caseSensitive=!1}],["--smart-case",e=>{e.smartCase=!0,e.ignoreCase=!1,e.caseSensitive=!1}],["F",e=>{e.fixedStrings=!0}],["--fixed-strings",e=>{e.fixedStrings=!0}],["w",e=>{e.wordRegexp=!0}],["--word-regexp",e=>{e.wordRegexp=!0}],["x",e=>{e.lineRegexp=!0}],["--line-regexp",e=>{e.lineRegexp=!0}],["v",e=>{e.invertMatch=!0}],["--invert-match",e=>{e.invertMatch=!0}],["U",e=>{e.multiline=!0}],["--multiline",e=>{e.multiline=!0}],["--multiline-dotall",e=>{e.multilineDotall=!0,e.multiline=!0}],["c",e=>{e.count=!0}],["--count",e=>{e.count=!0}],["--count-matches",e=>{e.countMatches=!0}],["l",e=>{e.filesWithMatches=!0}],["--files",e=>{e.files=!0}],["--files-with-matches",e=>{e.filesWithMatches=!0}],["--files-without-match",e=>{e.filesWithoutMatch=!0}],["--stats",e=>{e.stats=!0}],["o",e=>{e.onlyMatching=!0}],["--only-matching",e=>{e.onlyMatching=!0}],["q",e=>{e.quiet=!0}],["--quiet",e=>{e.quiet=!0}],["N",e=>{e.lineNumber=!1}],["--no-line-number",e=>{e.lineNumber=!1}],["H",e=>{e.withFilename=!0}],["--with-filename",e=>{e.withFilename=!0}],["I",e=>{e.noFilename=!0}],["--no-filename",e=>{e.noFilename=!0}],["0",e=>{e.nullSeparator=!0}],["--null",e=>{e.nullSeparator=!0}],["b",e=>{e.byteOffset=!0}],["--byte-offset",e=>{e.byteOffset=!0}],["--column",e=>{e.column=!0,e.lineNumber=!0}],["--no-column",e=>{e.column=!1}],["--vimgrep",e=>{e.vimgrep=!0,e.column=!0,e.lineNumber=!0}],["--json",e=>{e.json=!0}],["--hidden",e=>{e.hidden=!0}],["--no-ignore",e=>{e.noIgnore=!0}],["--no-ignore-dot",e=>{e.noIgnoreDot=!0}],["--no-ignore-vcs",e=>{e.noIgnoreVcs=!0}],["L",e=>{e.followSymlinks=!0}],["--follow",e=>{e.followSymlinks=!0}],["z",e=>{e.searchZip=!0}],["--search-zip",e=>{e.searchZip=!0}],["a",e=>{e.searchBinary=!0}],["--text",e=>{e.searchBinary=!0}],["--heading",e=>{e.heading=!0}],["--passthru",e=>{e.passthru=!0}],["--include-zero",e=>{e.includeZero=!0}],["--glob-case-insensitive",e=>{e.globCaseInsensitive=!0}]]),oe=new Set(["n","--line-number"]);function ae(e){e.hidden?e.searchBinary=!0:e.noIgnore?e.hidden=!0:e.noIgnore=!0}function ce(e,t,n){let s=e[t];for(let r of X){if(s.startsWith(`--${r.long}=`)){let l=s.slice(`--${r.long}=`.length),i=P(n,r,l);return i?{newIndex:t,error:i}:{newIndex:t}}if(r.short&&s.startsWith(`-${r.short}`)&&s.length>2){let l=s.slice(2),i=P(n,r,l);return i?{newIndex:t,error:i}:{newIndex:t}}if(r.short&&s===`-${r.short}`||s===`--${r.long}`){if(t+1>=e.length)return null;let l=e[t+1],i=P(n,r,l);return i?{newIndex:t+1,error:i}:{newIndex:t+1}}}return null}function fe(e){return X.find(t=>t.short===e)}function P(e,t,n){if(t.validate){let r=t.validate(n);if(r)return r}let s=t.parse?t.parse(n):n;t.multi?e[t.target].push(s):e[t.target]=s}function ue(e,t){let n=e[t];if(n==="--sort"&&t+1<e.length){let s=e[t+1];if(s==="path"||s==="none")return{value:s,newIndex:t+1}}if(n.startsWith("--sort=")){let s=n.slice(7);if(s==="path"||s==="none")return{value:s,newIndex:t}}return null}function he(e,t){let n=e[t],s=n.match(/^-([ABC])(\d+)$/);return s?{flag:s[1],value:parseInt(s[2],10),newIndex:t}:(n==="-A"||n==="-B"||n==="-C")&&t+1<e.length?{flag:n[1],value:parseInt(e[t+1],10),newIndex:t+1}:null}function ge(e){let t=e.match(/^-m(\d+)$/);return t?parseInt(t[1],10):null}function Q(e){let t=Y(),n=null,s=[],r=-1,l=-1,i=-1,a=!1;for(let c=0;c<e.length;c++){let o=e[c];if(o.startsWith("-")&&o!=="-"){let u=he(e,c);if(u){let{flag:f,value:y,newIndex:w}=u;f==="A"?r=Math.max(r,y):f==="B"?l=Math.max(l,y):i=y,c=w;continue}let x=ge(o);if(x!==null){t.maxCount=x;continue}let m=ce(e,c,t);if(m){if(m.error)return{success:!1,error:m.error};c=m.newIndex;continue}let p=ue(e,c);if(p){t.sort=p.value,c=p.newIndex;continue}let C=o.startsWith("--")?[o]:o.slice(1).split(""),d=!1;for(let f of C){if(oe.has(f)){t.lineNumber=!0,a=!0;continue}if(f==="u"||f==="--unrestricted"){ae(t);continue}if(f==="P"||f==="--pcre2")return{success:!1,error:{stdout:g(),stderr:v(`rg: PCRE2 is not supported. Use standard regex syntax instead.
|
|
6
|
+
`),exitCode:1}};if(f.length===1){let w=fe(f);if(w){if(c+1>=e.length)return{success:!1,error:O("rg",`-${f}`)};let h=P(t,w,e[c+1]);if(h)return{success:!1,error:h};c++,d=!0;continue}}let y=le.get(f);if(y){y(t);continue}if(f.startsWith("--"))return{success:!1,error:O("rg",f)};if(f.length===1)return{success:!1,error:O("rg",`-${f}`)}}}else n===null&&t.patterns.length===0&&t.patternFiles.length===0?n=o:s.push(o)}return(r>=0||i>=0)&&(t.afterContext=Math.max(r>=0?r:0,i>=0?i:0)),(l>=0||i>=0)&&(t.beforeContext=Math.max(l>=0?l:0,i>=0?i:0)),n!==null&&t.patterns.push(n),(t.column||t.vimgrep)&&(a=!0),{success:!0,options:t,paths:s,explicitLineNumbers:a}}var N=class{patterns=[];basePath;constructor(t="/"){this.basePath=t}parse(t){let n=t.split(`
|
|
7
|
+
`);for(let s of n){let r=s.replace(/\s+$/,"");if(!r||r.startsWith("#"))continue;let l=!1;r.startsWith("!")&&(l=!0,r=r.slice(1));let i=!1;r.endsWith("/")&&(i=!0,r=r.slice(0,-1));let a=!1;r.startsWith("/")?(a=!0,r=r.slice(1)):r.includes("/")&&!r.startsWith("**/")&&(a=!0);let c=this.patternToRegex(r,a);this.patterns.push({pattern:s,regex:c,negated:l,directoryOnly:i,rooted:a})}}patternToRegex(t,n){let s="";n?s="^":s="(?:^|/)";let r=0;for(;r<t.length;){let l=t[r];if(l==="*")t[r+1]==="*"?t[r+2]==="/"?(s+="(?:.*/)?",r+=3):(r+2>=t.length,s+=".*",r+=2):(s+="[^/]*",r++);else if(l==="?")s+="[^/]",r++;else if(l==="["){let i=r+1;for(i<t.length&&t[i]==="!"&&i++,i<t.length&&t[i]==="]"&&i++;i<t.length&&t[i]!=="]";)i++;if(i<t.length){let a=t.slice(r,i+1);a.startsWith("[!")&&(a=`[^${a.slice(2)}`),s+=a,r=i+1}else s+="\\[",r++}else l==="/"?(s+="/",r++):(s+=l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r++)}return s+="(?:/.*)?$",M(s)}matches(t,n){let s=t.replace(/^\.\//,"");s=s.replace(/^\//,"");let r=!1;for(let l of this.patterns)l.directoryOnly&&!n||l.regex.test(s)&&(r=!l.negated);return r}isWhitelisted(t,n){let s=t.replace(/^\.\//,"");s=s.replace(/^\//,"");for(let r of this.patterns)if(!(r.directoryOnly&&!n)&&r.negated&&r.regex.test(s))return!0;return!1}getBasePath(){return this.basePath}},W=class{parsers=[];fs;skipDotIgnore;skipVcsIgnore;loadedDirs=new Set;constructor(t,n,s=!1,r=!1){this.fs=t,this.skipDotIgnore=s,this.skipVcsIgnore=r}async load(t){let n=[],s=t;for(;;){n.unshift(s);let l=this.fs.resolvePath(s,"..");if(l===s)break;s=l}let r=[];this.skipVcsIgnore||r.push(".gitignore"),this.skipDotIgnore||r.push(".rgignore",".ignore");for(let l of n){this.loadedDirs.add(l);for(let i of r){let a=this.fs.resolvePath(l,i);try{let c=await this.fs.readFileText(a),o=new N(l);o.parse(c),this.parsers.push(o)}catch{}}}}async loadForDirectory(t){if(this.loadedDirs.has(t))return;this.loadedDirs.add(t);let n=[];this.skipVcsIgnore||n.push(".gitignore"),this.skipDotIgnore||n.push(".rgignore",".ignore");for(let s of n){let r=this.fs.resolvePath(t,s);try{let l=await this.fs.readFileText(r),i=new N(t);i.parse(l),this.parsers.push(i)}catch{}}}addPatternsFromContent(t,n){let s=new N(n);s.parse(t),this.parsers.push(s)}matches(t,n){for(let s of this.parsers){let r=s.getBasePath();if(!t.startsWith(r))continue;let l=t.slice(r.length).replace(/^\//,"");if(s.matches(l,n))return!0}return!1}isWhitelisted(t,n){for(let s of this.parsers){let r=s.getBasePath();if(!t.startsWith(r))continue;let l=t.slice(r.length).replace(/^\//,"");if(s.isWhitelisted(l,n))return!0}return!1}static isCommonIgnored(t){return new Set(["node_modules",".git",".svn",".hg","__pycache__",".pytest_cache",".mypy_cache","venv",".venv",".next",".nuxt",".cargo"]).has(t)}};async function R(e,t,n=!1,s=!1,r=[]){let l=new W(e,t,n,s);await l.load(t);for(let i of r)try{let a=e.resolvePath(t,i),c=await e.readFileText(a);l.addPatternsFromContent(c,t)}catch{}return l}async function pe(e){return(await import("node:zlib")).gunzipSync(e)}function me(e){return e.length>=2&&e[0]===31&&e[1]===139}function de(e){let t=!1;for(let n=0;n<e.length;n++){let s=e[n];s==="["&&!t?t=!0:s==="]"&&t&&(t=!1)}return t?`rg: glob '${e}' has an unclosed character class`:null}async function ee(e){let{ctx:t,options:n,paths:s,explicitLineNumbers:r}=e;for(let f of n.globs){let y=f.startsWith("!")?f.slice(1):f,w=de(y);if(w)return{stdout:g(),stderr:v(`${w}
|
|
8
|
+
`),exitCode:1}}if(n.files){let f=[...n.patterns,...s];return be(t,f,n)}let l=[...n.patterns];for(let f of n.patternFiles)try{let y;if(f==="-")y=await L(t.stdin);else{let h=t.fs.resolvePath(t.cwd,f);y=await t.fs.readFileText(h)}let w=y.split(`
|
|
9
9
|
`).filter(h=>h.length>0);l.push(...w)}catch{return{stdout:g(),stderr:v(`rg: ${f}: No such file or directory
|
|
10
10
|
`),exitCode:2}}if(l.length===0)return n.patternFiles.length>0?{stdout:g(),stderr:g(),exitCode:1}:{stdout:g(),stderr:v(`rg: no pattern given
|
|
11
11
|
`),exitCode:2};let i=s.length===0?["."]:s,a=xe(n,l),c,o;try{let f=ye(l,n,a);c=f.regex,o=f.kResetGroup}catch{return{stdout:g(),stderr:v(`rg: invalid regex: ${l.join(", ")}
|
|
12
|
-
`),exitCode:2}}let u=null;n.noIgnore||(u=await
|
|
13
|
-
`,c=i.map(o=>o+a).join("");return{stdout:v(c),stderr:g(),exitCode:0}}function we(e,t){if(t.length===0)return!0;for(let n of t)if(S(e,n,!1))return!0;return!1}async function ve(e,t,n,s){try{if(s.preprocessor&&e.exec){let i=n.split("/").pop()||n;if(we(i,s.preprocessorGlobs)){let a=await e.exec(`${s.preprocessor} "${t}"`,{cwd:e.cwd});if(a.exitCode===0){let c=await
|
|
14
|
-
`);n.lastIndex=0;let D=0;for(let T=0;T<j.length;T++){let
|
|
15
|
-
`},line_number:T+1,absolute_offset:D,submatches:
|
|
12
|
+
`),exitCode:2}}let u=null;n.noIgnore||(u=await R(t.fs,t.cwd,n.noIgnoreDot,n.noIgnoreVcs,n.ignoreFiles));let x=new k;for(let f of n.typeClear)x.clearType(f);for(let f of n.typeAdd)x.addType(f);let{files:m,singleExplicitFile:p}=await te(t,i,n,u,x);if(m.length===0)return{stdout:g(),stderr:g(),exitCode:1};let C=!n.noFilename&&(n.withFilename||!p||m.length>1),d=n.lineNumber;return r||(p&&m.length===1&&(d=!1),n.onlyMatching&&(d=!1)),Ce(t,m,c,n,C,d,o)}function xe(e,t){return e.caseSensitive?!1:e.ignoreCase?!0:e.smartCase?!t.some(n=>/[A-Z]/.test(n)):!1}function ye(e,t,n){let s;return e.length===1?s=e[0]:s=e.map(r=>t.fixedStrings?r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"):`(?:${r})`).join("|"),H(s,{mode:t.fixedStrings&&e.length===1?"fixed":"perl",ignoreCase:n,wholeWord:t.wordRegexp,lineRegexp:t.lineRegexp,multiline:t.multiline,multilineDotall:t.multilineDotall})}async function te(e,t,n,s,r){let l=[],i=0,a=0;for(let o of t){let u=e.fs.resolvePath(e.cwd,o);try{let x=await e.fs.stat(u);if(x.isFile){if(i++,n.maxFilesize>0&&x.size>n.maxFilesize)continue;ne(o,n,s,u,r)&&l.push(o)}else x.isDirectory&&(a++,await se(e,o,u,0,n,s,r,l))}catch{}}return{files:n.sort==="path"?l.sort():l,singleExplicitFile:i===1&&a===0}}async function se(e,t,n,s,r,l,i,a){if(!(s>=r.maxDepth)){l&&await l.loadForDirectory(n);try{let c=e.fs.readdirWithFileTypes?await e.fs.readdirWithFileTypes(n):(await e.fs.readdir(n)).map(o=>({name:o,isFile:void 0}));for(let o of c){let u=o.name;if(!r.noIgnore&&W.isCommonIgnored(u))continue;let x=u.startsWith("."),m=t==="."?u:t==="./"?`./${u}`:t.endsWith("/")?`${t}${u}`:`${t}/${u}`,p=e.fs.resolvePath(n,u),C,d,f=!1;if(o.isFile!==void 0&&"isDirectory"in o){let h=o;if(f=h.isSymbolicLink===!0,f&&!r.followSymlinks)continue;if(f&&r.followSymlinks)try{let b=await e.fs.stat(p);C=b.isFile,d=b.isDirectory}catch{continue}else C=h.isFile,d=h.isDirectory}else try{let h=e.fs.lstat?await e.fs.lstat(p):await e.fs.stat(p);if(f=h.isSymbolicLink===!0,f&&!r.followSymlinks)continue;let b=f&&r.followSymlinks?await e.fs.stat(p):h;C=b.isFile,d=b.isDirectory}catch{continue}if(!l?.matches(p,d)&&!(x&&!r.hidden&&!l?.isWhitelisted(p,d))){if(d)await se(e,m,p,s+1,r,l,i,a);else if(C){if(r.maxFilesize>0)try{if((await e.fs.stat(p)).size>r.maxFilesize)continue}catch{continue}ne(m,r,l,p,i)&&a.push(m)}}}}catch{}}}function ne(e,t,n,s,r){let l=e.split("/").pop()||e;if(n?.matches(s,!1)||t.types.length>0&&!r.matchesType(l,t.types)||t.typesNot.length>0&&r.matchesType(l,t.typesNot))return!1;if(t.globs.length>0){let i=t.globCaseInsensitive,a=t.globs.filter(o=>!o.startsWith("!")),c=t.globs.filter(o=>o.startsWith("!")).map(o=>o.slice(1));if(a.length>0){let o=!1;for(let u of a)if(S(l,u,i)||S(e,u,i)){o=!0;break}if(!o)return!1}for(let o of c)if(o.startsWith("/")){let u=o.slice(1);if(S(e,u,i))return!1}else if(S(l,o,i)||S(e,o,i))return!1}if(t.iglobs.length>0){let i=t.iglobs.filter(c=>!c.startsWith("!")),a=t.iglobs.filter(c=>c.startsWith("!")).map(c=>c.slice(1));if(i.length>0){let c=!1;for(let o of i)if(S(l,o,!0)||S(e,o,!0)){c=!0;break}if(!c)return!1}for(let c of a)if(c.startsWith("/")){let o=c.slice(1);if(S(e,o,!0))return!1}else if(S(l,c,!0)||S(e,c,!0))return!1}return!0}function S(e,t,n=!1){let s="^";for(let r=0;r<t.length;r++){let l=t[r];if(l==="*")t[r+1]==="*"?(s+=".*",r++):s+="[^/]*";else if(l==="?")s+="[^/]";else if(l==="["){let i=r+1;for(i<t.length&&t[i]==="!"&&i++,i<t.length&&t[i]==="]"&&i++;i<t.length&&t[i]!=="]";)i++;if(i<t.length){let a=t.slice(r,i+1);a.startsWith("[!")&&(a=`[^${a.slice(2)}`),s+=a,r=i}else s+="\\["}else s+=l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}return s+="$",M(s,n?"i":"").test(e)}async function be(e,t,n){let s=null;n.noIgnore||(s=await R(e.fs,e.cwd,n.noIgnoreDot,n.noIgnoreVcs,n.ignoreFiles));let r=new k;for(let o of n.typeClear)r.clearType(o);for(let o of n.typeAdd)r.addType(o);let l=t.length===0?["."]:t,{files:i}=await te(e,l,n,s,r);if(i.length===0)return{stdout:g(),stderr:g(),exitCode:1};if(n.quiet)return{stdout:g(),stderr:g(),exitCode:0};let a=n.nullSeparator?"\0":`
|
|
13
|
+
`,c=i.map(o=>o+a).join("");return{stdout:v(c),stderr:g(),exitCode:0}}function we(e,t){if(t.length===0)return!0;for(let n of t)if(S(e,n,!1))return!0;return!1}async function ve(e,t,n,s){try{if(s.preprocessor&&e.exec){let i=n.split("/").pop()||n;if(we(i,s.preprocessorGlobs)){let a=await e.exec(`${s.preprocessor} "${t}"`,{cwd:e.cwd});if(a.exitCode===0){let c=await L(a.stdout);if(c.length>0){let o=c.slice(0,8192);return{content:c,isBinary:o.includes("\0")}}}}}if(s.searchZip&&n.endsWith(".gz")){let i=await E(await e.fs.readFile(t));if(me(i))try{let a=await pe(i),c=new TextDecoder().decode(a),o=c.slice(0,8192);return{content:c,isBinary:o.includes("\0")}}catch{return null}}let r=await e.fs.readFileText(t),l=r.slice(0,8192);return{content:r,isBinary:l.includes("\0")}}catch{return null}}async function Ce(e,t,n,s,r,l,i){let a="",c=!1,o=[],u=0,x=0,m=0,p=50;e:for(let f=0;f<t.length;f+=p){let y=t.slice(f,f+p),w=await Promise.all(y.map(async h=>{let b=e.fs.resolvePath(e.cwd,h),I=await ve(e,b,h,s);if(!I)return null;let{content:F,isBinary:j}=I;if(m+=F.length,j&&!s.searchBinary)return null;let D=r&&!s.heading?h:"",T=q(F,n,{invertMatch:s.invertMatch,showLineNumbers:l,countOnly:s.count,countMatches:s.countMatches,filename:D,onlyMatching:s.onlyMatching,beforeContext:s.beforeContext,afterContext:s.afterContext,maxCount:s.maxCount,contextSeparator:s.contextSeparator,showColumn:s.column,vimgrep:s.vimgrep,showByteOffset:s.byteOffset,replace:s.replace!==null?V(s.replace):null,passthru:s.passthru,multiline:s.multiline,kResetGroup:i});return s.json&&T.matched?{file:h,result:T,content:F,isBinary:!1}:{file:h,result:T}}));for(let h of w){if(!h)continue;let{file:b,result:I}=h;if(I.matched){if(c=!0,x++,u+=I.matchCount,s.quiet&&!s.json)break e;if(s.json&&!s.quiet){let F=h.content||"";o.push(JSON.stringify({type:"begin",data:{path:{text:b}}}));let j=F.split(`
|
|
14
|
+
`);n.lastIndex=0;let D=0;for(let T=0;T<j.length;T++){let z=j[T];n.lastIndex=0;let A=[];for(let $=n.exec(z);$!==null;$=n.exec(z)){let _={match:{text:$[0]},start:$.index,end:$.index+$[0].length};s.replace!==null&&(_.replacement={text:s.replace}),A.push(_),$[0].length===0&&n.lastIndex++}if(A.length>0){let $={type:"match",data:{path:{text:b},lines:{text:`${z}
|
|
15
|
+
`},line_number:T+1,absolute_offset:D,submatches:A}};o.push(JSON.stringify($))}D+=z.length+1}o.push(JSON.stringify({type:"end",data:{path:{text:b},binary_offset:null,stats:{elapsed:{secs:0,nanos:0,human:"0s"},searches:1,searches_with_match:1,bytes_searched:F.length,bytes_printed:0,matched_lines:I.matchCount,matches:I.matchCount}}}))}else if(s.filesWithMatches){let F=s.nullSeparator?"\0":`
|
|
16
16
|
`;a+=`${b}${F}`}else s.filesWithoutMatch||(s.heading&&!s.noFilename&&(a+=`${b}
|
|
17
17
|
`),a+=I.output)}else if(s.filesWithoutMatch){let F=s.nullSeparator?"\0":`
|
|
18
18
|
`;a+=`${b}${F}`}else s.includeZero&&(s.count||s.countMatches)&&(a+=I.output)}}s.json&&(o.push(JSON.stringify({type:"summary",data:{elapsed_total:{secs:0,nanos:0,human:"0s"},stats:{elapsed:{secs:0,nanos:0,human:"0s"},searches:t.length,searches_with_match:x,bytes_searched:m,bytes_printed:0,matched_lines:u,matches:u}}})),a=`${o.join(`
|
|
@@ -30,4 +30,4 @@ EXAMPLES:
|
|
|
30
30
|
rg -t js foo Search only JavaScript files
|
|
31
31
|
rg -g '*.ts' foo Search files matching glob
|
|
32
32
|
rg --hidden foo Include hidden files
|
|
33
|
-
rg -l foo List files with matches only`,options:["-e, --regexp PATTERN search for PATTERN (can be used multiple times)","-f, --file FILE read patterns from FILE, one per line","-i, --ignore-case case-insensitive search","-s, --case-sensitive case-sensitive search (overrides smart-case)","-S, --smart-case smart case (default: case-insensitive unless pattern has uppercase)","-F, --fixed-strings treat pattern as literal string","-w, --word-regexp match whole words only","-x, --line-regexp match whole lines only","-v, --invert-match select non-matching lines","-r, --replace TEXT replace matches with TEXT","-c, --count print count of matching lines per file"," --count-matches print count of individual matches per file","-l, --files-with-matches print only file names with matches"," --files-without-match print file names without matches"," --files list files that would be searched","-o, --only-matching print only matching parts","-m, --max-count NUM stop after NUM matches per file","-q, --quiet suppress output, exit 0 on match"," --stats print search statistics","-n, --line-number print line numbers (default: on)","-N, --no-line-number do not print line numbers","-I, --no-filename suppress the prefixing of file names","-0, --null use NUL as filename separator","-b, --byte-offset show byte offset of each match"," --column show column number of first match"," --vimgrep show results in vimgrep format"," --json show results in JSON Lines format","-A NUM print NUM lines after each match","-B NUM print NUM lines before each match","-C NUM print NUM lines before and after each match"," --context-separator SEP separator for context groups (default: --)","-U, --multiline match patterns across lines","-z, --search-zip search in compressed files (gzip only)","-g, --glob GLOB include files matching GLOB","-t, --type TYPE only search files of TYPE (e.g., js, py, ts)","-T, --type-not TYPE exclude files of TYPE","-L, --follow follow symbolic links","-u, --unrestricted reduce filtering (-u: no ignore, -uu: +hidden, -uuu: +binary)","-a, --text search binary files as text"," --hidden search hidden files and directories"," --no-ignore don't respect .gitignore/.ignore files","-d, --max-depth NUM maximum search depth"," --sort TYPE sort files (path, none)"," --heading show file path above matches"," --passthru print all lines (non-matches use - separator)"," --include-zero include files with 0 matches in count output"," --type-list list all available file types"," --help display this help and exit"]},
|
|
33
|
+
rg -l foo List files with matches only`,options:["-e, --regexp PATTERN search for PATTERN (can be used multiple times)","-f, --file FILE read patterns from FILE, one per line","-i, --ignore-case case-insensitive search","-s, --case-sensitive case-sensitive search (overrides smart-case)","-S, --smart-case smart case (default: case-insensitive unless pattern has uppercase)","-F, --fixed-strings treat pattern as literal string","-w, --word-regexp match whole words only","-x, --line-regexp match whole lines only","-v, --invert-match select non-matching lines","-r, --replace TEXT replace matches with TEXT","-c, --count print count of matching lines per file"," --count-matches print count of individual matches per file","-l, --files-with-matches print only file names with matches"," --files-without-match print file names without matches"," --files list files that would be searched","-o, --only-matching print only matching parts","-m, --max-count NUM stop after NUM matches per file","-q, --quiet suppress output, exit 0 on match"," --stats print search statistics","-n, --line-number print line numbers (default: on)","-N, --no-line-number do not print line numbers","-I, --no-filename suppress the prefixing of file names","-0, --null use NUL as filename separator","-b, --byte-offset show byte offset of each match"," --column show column number of first match"," --vimgrep show results in vimgrep format"," --json show results in JSON Lines format","-A NUM print NUM lines after each match","-B NUM print NUM lines before each match","-C NUM print NUM lines before and after each match"," --context-separator SEP separator for context groups (default: --)","-U, --multiline match patterns across lines","-z, --search-zip search in compressed files (gzip only)","-g, --glob GLOB include files matching GLOB","-t, --type TYPE only search files of TYPE (e.g., js, py, ts)","-T, --type-not TYPE exclude files of TYPE","-L, --follow follow symbolic links","-u, --unrestricted reduce filtering (-u: no ignore, -uu: +hidden, -uuu: +binary)","-a, --text search binary files as text"," --hidden search hidden files and directories"," --no-ignore don't respect .gitignore/.ignore files","-d, --max-depth NUM maximum search depth"," --sort TYPE sort files (path, none)"," --heading show file path above matches"," --passthru print all lines (non-matches use - separator)"," --include-zero include files with 0 matches in count output"," --type-list list all available file types"," --help display this help and exit"]},Ue={name:"rg",async execute(e,t){let n=B(e);if(U(n))return G(Se);if(n.includes("--type-list"))return{stdout:v(J()),stderr:g(),exitCode:0};let s=Q(n);return s.success?ee({ctx:t,options:s.options,paths:s.paths,explicitLineNumbers:s.explicitLineNumbers}):s.error}},He={name:"rg",flags:[{flag:"-i",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-S",type:"boolean"},{flag:"-F",type:"boolean"},{flag:"-w",type:"boolean"},{flag:"-x",type:"boolean"},{flag:"-v",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-l",type:"boolean"},{flag:"-o",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-N",type:"boolean"},{flag:"--hidden",type:"boolean"},{flag:"--no-ignore",type:"boolean"},{flag:"-m",type:"value",valueHint:"number"},{flag:"-A",type:"value",valueHint:"number"},{flag:"-B",type:"value",valueHint:"number"},{flag:"-C",type:"value",valueHint:"number"},{flag:"-g",type:"value",valueHint:"pattern"},{flag:"-t",type:"value",valueHint:"string"},{flag:"-T",type:"value",valueHint:"string"}],needsArgs:!0};export{Ue as a,He as b};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as P}from"./chunk-7VWUKGDV.js";import{a as q,b as I}from"./chunk-DFAHK2EQ.js";import{c as v,e as
|
|
2
|
+
import{a as P}from"./chunk-7VWUKGDV.js";import{a as q,b as I}from"./chunk-DFAHK2EQ.js";import{c as v,e as z,f as b}from"./chunk-RAUBS6MJ.js";import{g as s,h as S,j as x,k}from"./chunk-463VWH7H.js";var C=null;async function w(){return C||(C=await import("node:zlib"),C)}var W=9,U=1,_=-1,H={name:"gzip",summary:"compress or expand files",usage:"gzip [OPTION]... [FILE]...",description:`Compress FILEs (by default, in-place).
|
|
3
3
|
|
|
4
4
|
When no FILE is given, or when FILE is -, read from standard input.
|
|
5
5
|
|
|
6
|
-
With -d, decompress instead.`,options:["-c, --stdout write to standard output, keep original files","-d, --decompress decompress","-f, --force force overwrite of output file","-k, --keep keep (don't delete) input files","-l, --list list compressed file contents","-n, --no-name do not save or restore the original name and timestamp","-N, --name save or restore the original file name and timestamp","-q, --quiet suppress all warnings","-r, --recursive operate recursively on directories","-S, --suffix=SUF use suffix SUF on compressed files (default: .gz)","-t, --test test compressed file integrity","-v, --verbose verbose mode","-1, --fast compress faster","-9, --best compress better"," --help display this help and exit"]},
|
|
6
|
+
With -d, decompress instead.`,options:["-c, --stdout write to standard output, keep original files","-d, --decompress decompress","-f, --force force overwrite of output file","-k, --keep keep (don't delete) input files","-l, --list list compressed file contents","-n, --no-name do not save or restore the original name and timestamp","-N, --name save or restore the original file name and timestamp","-q, --quiet suppress all warnings","-r, --recursive operate recursively on directories","-S, --suffix=SUF use suffix SUF on compressed files (default: .gz)","-t, --test test compressed file integrity","-v, --verbose verbose mode","-1, --fast compress faster","-9, --best compress better"," --help display this help and exit"]},B={name:"gunzip",summary:"decompress files",usage:"gunzip [OPTION]... [FILE]...",description:`Decompress FILEs (by default, in-place).
|
|
7
7
|
|
|
8
|
-
When no FILE is given, or when FILE is -, read from standard input.`,options:["-c, --stdout write to standard output, keep original files","-f, --force force overwrite of output file","-k, --keep keep (don't delete) input files","-l, --list list compressed file contents","-n, --no-name do not restore the original name and timestamp","-N, --name restore the original file name and timestamp","-q, --quiet suppress all warnings","-r, --recursive operate recursively on directories","-S, --suffix=SUF use suffix SUF on compressed files (default: .gz)","-t, --test test compressed file integrity","-v, --verbose verbose mode"," --help display this help and exit"]},
|
|
8
|
+
When no FILE is given, or when FILE is -, read from standard input.`,options:["-c, --stdout write to standard output, keep original files","-f, --force force overwrite of output file","-k, --keep keep (don't delete) input files","-l, --list list compressed file contents","-n, --no-name do not restore the original name and timestamp","-N, --name restore the original file name and timestamp","-q, --quiet suppress all warnings","-r, --recursive operate recursively on directories","-S, --suffix=SUF use suffix SUF on compressed files (default: .gz)","-t, --test test compressed file integrity","-v, --verbose verbose mode"," --help display this help and exit"]},Z={name:"zcat",summary:"decompress files to stdout",usage:"zcat [OPTION]... [FILE]...",description:`Decompress FILEs to standard output.
|
|
9
9
|
|
|
10
|
-
When no FILE is given, or when FILE is -, read from standard input.`,options:["-f, --force force; read compressed data even from a terminal","-l, --list list compressed file contents","-q, --quiet suppress all warnings","-S, --suffix=SUF use suffix SUF on compressed files (default: .gz)","-t, --test test compressed file integrity","-v, --verbose verbose mode"," --help display this help and exit"]},
|
|
11
|
-
`,exitCode:1};try{return{stdout:
|
|
12
|
-
`,exitCode:1}}}else{let d=
|
|
10
|
+
When no FILE is given, or when FILE is -, read from standard input.`,options:["-f, --force force; read compressed data even from a terminal","-l, --list list compressed file contents","-q, --quiet suppress all warnings","-S, --suffix=SUF use suffix SUF on compressed files (default: .gz)","-t, --test test compressed file integrity","-v, --verbose verbose mode"," --help display this help and exit"]},A={stdout:{short:"c",long:"stdout",type:"boolean"},toStdout:{long:"to-stdout",type:"boolean"},decompress:{short:"d",long:"decompress",type:"boolean"},uncompress:{long:"uncompress",type:"boolean"},force:{short:"f",long:"force",type:"boolean"},keep:{short:"k",long:"keep",type:"boolean"},list:{short:"l",long:"list",type:"boolean"},noName:{short:"n",long:"no-name",type:"boolean"},name:{short:"N",long:"name",type:"boolean"},quiet:{short:"q",long:"quiet",type:"boolean"},recursive:{short:"r",long:"recursive",type:"boolean"},suffix:{short:"S",long:"suffix",type:"string",default:".gz"},test:{short:"t",long:"test",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"},fast:{short:"1",long:"fast",type:"boolean"},level2:{short:"2",type:"boolean"},level3:{short:"3",type:"boolean"},level4:{short:"4",type:"boolean"},level5:{short:"5",type:"boolean"},level6:{short:"6",type:"boolean"},level7:{short:"7",type:"boolean"},level8:{short:"8",type:"boolean"},best:{short:"9",long:"best",type:"boolean"}};function L(e){return e.best?W:e.level8?8:e.level7?7:e.level6?6:e.level5?5:e.level4?4:e.level3?3:e.level2?2:e.fast?U:_}function D(e){if(e.length<10)return{originalName:null,mtime:null,headerSize:0};if(e[0]!==31||e[1]!==139)return{originalName:null,mtime:null,headerSize:0};let t=e[3],o=e[4]|e[5]<<8|e[6]<<16|e[7]<<24,r=10;if(t&4){if(r+2>e.length)return{originalName:null,mtime:null,headerSize:0};let a=e[r]|e[r+1]<<8;r+=2+a}let l=null;if(t&8){let a=r;for(;r<e.length&&e[r]!==0;)r++;r<e.length&&(l=new TextDecoder().decode(e.slice(a,r)),r++)}if(t&16){for(;r<e.length&&e[r]!==0;)r++;r++}return t&2&&(r+=2),{originalName:l,mtime:o>0?new Date(o*1e3):null,headerSize:r}}function G(e){if(e.length<4)return 0;let t=e.length;return e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24}function $(e){return e.length>=2&&e[0]===31&&e[1]===139}async function O(e,t,o,r,l,a){let u=o.suffix,n,f,p;if(t==="-"||t==="")if(p=await b(e.stdin),l){if(!$(p))return o.quiet?{stdout:s,stderr:"",exitCode:1}:{stdout:s,stderr:`${r}: stdin: not in gzip format
|
|
11
|
+
`,exitCode:1};try{return{stdout:(await w()).gunzipSync(p),stderr:"",exitCode:0}}catch(d){let i=d instanceof Error?d.message:"unknown error";return{stdout:s,stderr:`${r}: stdin: ${i}
|
|
12
|
+
`,exitCode:1}}}else{let d=L(o);return{stdout:(await w()).gzipSync(p,{level:d}),stderr:"",exitCode:0}}n=e.fs.resolvePath(e.cwd,t);try{if((await e.fs.stat(n)).isDirectory)return o.recursive?await T(e,n,o,r,l,a):o.quiet?{stdout:s,stderr:"",exitCode:1}:{stdout:s,stderr:`${r}: ${t}: is a directory -- ignored
|
|
13
13
|
`,exitCode:1}}catch{return{stdout:s,stderr:`${r}: ${t}: No such file or directory
|
|
14
14
|
`,exitCode:1}}try{p=await b(await e.fs.readFile(n))}catch{return{stdout:s,stderr:`${r}: ${t}: No such file or directory
|
|
15
15
|
`,exitCode:1}}if(l){if(!t.endsWith(u))return o.quiet?{stdout:s,stderr:"",exitCode:1}:{stdout:s,stderr:`${r}: ${t}: unknown suffix -- ignored
|
|
16
|
-
`,exitCode:1};if(
|
|
17
|
-
`,exitCode:1};let d;try{d=
|
|
18
|
-
`,exitCode:1}}if(a)return{stdout:d,stderr:"",exitCode:0};if(o.name){let i=
|
|
16
|
+
`,exitCode:1};if(!$(p))return o.quiet?{stdout:s,stderr:"",exitCode:1}:{stdout:s,stderr:`${r}: ${t}: not in gzip format
|
|
17
|
+
`,exitCode:1};let d;try{d=(await w()).gunzipSync(p)}catch(i){let g=i instanceof Error?i.message:"unknown error";return{stdout:s,stderr:`${r}: ${t}: ${g}
|
|
18
|
+
`,exitCode:1}}if(a)return{stdout:d,stderr:"",exitCode:0};if(o.name){let i=D(p);i.originalName?f=e.fs.resolvePath(e.cwd,i.originalName):f=n.slice(0,-u.length)}else f=n.slice(0,-u.length);if(!o.force)try{return await e.fs.stat(f),{stdout:s,stderr:`${r}: ${f} already exists; not overwritten
|
|
19
19
|
`,exitCode:1}}catch{}if(await e.fs.writeFile(f,d),!o.keep&&!a&&await e.fs.rm(n),o.verbose){let i=p.length>0?((1-p.length/d.length)*100).toFixed(1):"0.0";return{stdout:s,stderr:`${t}: ${i}% -- replaced with ${f.split("/").pop()}
|
|
20
20
|
`,exitCode:0}}return{stdout:s,stderr:"",exitCode:0}}else{if(t.endsWith(u))return o.quiet?{stdout:s,stderr:"",exitCode:1}:{stdout:s,stderr:`${r}: ${t} already has ${u} suffix -- unchanged
|
|
21
|
-
`,exitCode:1};let d=
|
|
21
|
+
`,exitCode:1};let d=L(o),i;try{i=(await w()).gzipSync(p,{level:d})}catch(g){let c=g instanceof Error?g.message:"unknown error";return{stdout:s,stderr:`${r}: ${t}: ${c}
|
|
22
22
|
`,exitCode:1}}if(a)return{stdout:i,stderr:"",exitCode:0};if(f=n+u,!o.force)try{return await e.fs.stat(f),{stdout:s,stderr:`${r}: ${f} already exists; not overwritten
|
|
23
23
|
`,exitCode:1}}catch{}if(await e.fs.writeFile(f,i),!o.keep&&!a&&await e.fs.rm(n),o.verbose){let g=p.length>0?((1-i.length/p.length)*100).toFixed(1):"0.0";return{stdout:s,stderr:`${t}: ${g}% -- replaced with ${f.split("/").pop()}
|
|
24
|
-
`,exitCode:0}}return{stdout:s,stderr:"",exitCode:0}}}async function
|
|
25
|
-
`,exitCode:1}}}if(
|
|
26
|
-
`,exitCode:1};let a=l.length,u=
|
|
27
|
-
`;return{stdout
|
|
28
|
-
`,exitCode:1}}}if(
|
|
29
|
-
`,exitCode:1};try{return
|
|
24
|
+
`,exitCode:0}}return{stdout:s,stderr:"",exitCode:0}}}async function T(e,t,o,r,l,a){let u=await e.fs.readdir(t),n=s,f="",p=0;for(let d of u){let i=e.fs.resolvePath(t,d),g=await e.fs.stat(i);if(g.isDirectory){let c=await T(e,i,o,r,l,a);n=x(n,c.stdout),f+=c.stderr,c.exitCode!==0&&(p=c.exitCode)}else if(g.isFile){let c=o.suffix;if(l&&!d.endsWith(c)||!l&&d.endsWith(c))continue;let h=i.startsWith(`${e.cwd}/`)?i.slice(e.cwd.length+1):i,y=await O(e,h,o,r,l,a);n=x(n,y.stdout),f+=y.stderr,y.exitCode!==0&&(p=y.exitCode)}}return{stdout:n,stderr:f,exitCode:p}}async function M(e,t,o,r){let l;if(t==="-"||t==="")l=await b(e.stdin);else{let i=e.fs.resolvePath(e.cwd,t);try{l=await b(await e.fs.readFile(i))}catch{return{stdout:s,stderr:`${r}: ${t}: No such file or directory
|
|
25
|
+
`,exitCode:1}}}if(!$(l))return o.quiet?{stdout:s,stderr:"",exitCode:1}:{stdout:s,stderr:`${r}: ${t}: not in gzip format
|
|
26
|
+
`,exitCode:1};let a=l.length,u=G(l),n=u>0?((1-a/u)*100).toFixed(1):"0.0",p=D(l).originalName||(t==="-"?"":t.replace(/\.gz$/,"")),d=`${a.toString().padStart(10)} ${u.toString().padStart(10)} ${n.padStart(5)}% ${p}
|
|
27
|
+
`;return{stdout:S(d),stderr:"",exitCode:0}}async function R(e,t,o,r){let l;if(t==="-"||t==="")l=await b(e.stdin);else{let a=e.fs.resolvePath(e.cwd,t);try{l=await b(await e.fs.readFile(a))}catch{return{stdout:s,stderr:`${r}: ${t}: No such file or directory
|
|
28
|
+
`,exitCode:1}}}if(!$(l))return o.quiet?{stdout:s,stderr:"",exitCode:1}:{stdout:s,stderr:`${r}: ${t}: not in gzip format
|
|
29
|
+
`,exitCode:1};try{return(await w()).gunzipSync(l),o.verbose?{stdout:s,stderr:`${t}: OK
|
|
30
30
|
`,exitCode:0}:{stdout:s,stderr:"",exitCode:0}}catch(a){let u=a instanceof Error?a.message:"invalid";return{stdout:s,stderr:`${r}: ${t}: ${u}
|
|
31
|
-
`,exitCode:1}}}async function E(e,t,o){let r=k(e),l=o==="zcat"?
|
|
32
|
-
`),h="",y=0;for(let
|
|
31
|
+
`,exitCode:1}}}async function E(e,t,o){let r=k(e),l=o==="zcat"?Z:o==="gunzip"?B:H;if(I(r))return q(l);let a=P(o,r,A);if(!a.ok)return a.error;let u=a.result.flags,n=a.result.positional,f=o==="gunzip"||o==="zcat"||u.decompress||u.uncompress,p=o==="zcat"||u.stdout||u.toStdout;if(u.list){n.length===0&&(n=["-"]);let c=S(` compressed uncompressed ratio uncompressed_name
|
|
32
|
+
`),h="",y=0;for(let F of n){let m=await M(t,F,u,o);c=x(c,m.stdout),h+=m.stderr,m.exitCode!==0&&(y=m.exitCode)}return{stdout:v(c),stderr:z(h),exitCode:y}}if(u.test){n.length===0&&(n=["-"]);let c=s,h="",y=0;for(let F of n){let m=await R(t,F,u,o);c=x(c,m.stdout),h+=m.stderr,m.exitCode!==0&&(y=m.exitCode)}return{stdout:v(c),stderr:z(h),exitCode:y}}n.length===0&&(n=["-"]);let d=s,i="",g=0;for(let c of n){let h=await O(t,c,u,o,f,p);d=x(d,h.stdout),i+=h.stderr,h.exitCode!==0&&(g=h.exitCode)}return{stdout:v(d),stderr:z(i),exitCode:g}}var J={name:"gzip",async execute(e,t){return E(e,t,"gzip")}},Q={name:"gunzip",async execute(e,t){return E(e,t,"gunzip")}},V={name:"zcat",async execute(e,t){return E(e,t,"zcat")}},N={name:"gzip",flags:[{flag:"-c",type:"boolean"},{flag:"-d",type:"boolean"},{flag:"-f",type:"boolean"},{flag:"-k",type:"boolean"},{flag:"-l",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-r",type:"boolean"},{flag:"-t",type:"boolean"},{flag:"-v",type:"boolean"},{flag:"-1",type:"boolean"},{flag:"-9",type:"boolean"}],stdinType:"binary",needsFiles:!0},ee={name:"gunzip",flags:[{flag:"-c",type:"boolean"},{flag:"-f",type:"boolean"},{flag:"-k",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-v",type:"boolean"}],stdinType:"binary",needsFiles:!0},te={name:"zcat",flags:[{flag:"-f",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-v",type:"boolean"}],stdinType:"binary",needsFiles:!0};export{J as a,Q as b,V as c,N as d,ee as e,te as f};
|
package/dist/bin/{chunks/flag-coverage-7AQE3UPG.js → shell/chunks/flag-coverage-JBJRZ3PO.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{d as Ir,e as Mr,f as jr}from"./chunk-
|
|
2
|
+
import{d as Ir,e as Mr,f as jr}from"./chunk-ASU2EQWZ.js";import{b as yr}from"./chunk-4W52T6KS.js";import{b as Ar}from"./chunk-23CC4423.js";import{b as $r}from"./chunk-7YOACDUK.js";import"./chunk-23EV7RYO.js";import"./chunk-TACNCKUC.js";import{b as Sr}from"./chunk-EHJW6FCX.js";import{b as hr}from"./chunk-SDTTNNEH.js";import{b as wr}from"./chunk-5KQNIOZS.js";import{b as xr}from"./chunk-Z73LISDU.js";import{b as vr}from"./chunk-5IL5CXJC.js";import{b as kr}from"./chunk-V3N6H3L5.js";import{b as qr}from"./chunk-KAWPUEQM.js";import{b as Cr}from"./chunk-PRQYRYWV.js";import{b as br}from"./chunk-YG67AAKF.js";import{b as nr}from"./chunk-HY6WUGWS.js";import{b as tr}from"./chunk-7J7OY2YE.js";import{b as lr}from"./chunk-HEO6EBJ2.js";import{b as ur}from"./chunk-HT4IVOYZ.js";import{b as pr}from"./chunk-WXI44VNZ.js";import{b as er}from"./chunk-NNVWOCET.js";import{b as dr}from"./chunk-YER5PEKD.js";import{b as cr}from"./chunk-GUZJZK5O.js";import"./chunk-I2N72LXH.js";import{b as rr}from"./chunk-3VDZW42W.js";import{c as or,d as ar}from"./chunk-SZM4GZ4H.js";import{b as sr}from"./chunk-VWJBSJYM.js";import{c as ir,d as gr}from"./chunk-RFIBBYTO.js";import{b as mr}from"./chunk-YGAHXCGB.js";import"./chunk-N7P3SUNH.js";import"./chunk-UYBH3FNE.js";import{b as Fr}from"./chunk-D44C6YVE.js";import{b as zr}from"./chunk-RIV3HSPK.js";import{b as fr}from"./chunk-ECBMSCPX.js";import{b as Q}from"./chunk-QXOUI5BS.js";import{b as R}from"./chunk-44ROJVH3.js";import{b as U}from"./chunk-UAZICDKU.js";import{b as V}from"./chunk-AN2KBMAK.js";import{b as W}from"./chunk-444WPTN5.js";import{c as X,d as Y}from"./chunk-67SBKZZD.js";import{c as Z,d as _}from"./chunk-D34QBGQ3.js";import{b as N}from"./chunk-XB426ZI7.js";import{b as E}from"./chunk-2IOUIOWE.js";import{b as G}from"./chunk-U4LP6WPJ.js";import{b as H}from"./chunk-Q2BKN6MV.js";import{b as J}from"./chunk-AZQ66C5R.js";import{b as K}from"./chunk-6U6CK6V4.js";import{b as L}from"./chunk-IAUA3FL7.js";import{b as O}from"./chunk-ZZPPBMHW.js";import{b as P}from"./chunk-SL4D2YES.js";import{b as j}from"./chunk-GIVPKQT5.js";import{b as y}from"./chunk-LVSKOXVG.js";import{b as A}from"./chunk-X7PEK6W7.js";import{b as $}from"./chunk-MPX22C7Y.js";import{b as S}from"./chunk-4VVLCPRH.js";import{b as T}from"./chunk-B4GXMUCA.js";import{b as B}from"./chunk-RUNWFUUE.js";import{b as D}from"./chunk-JU5KTPFP.js";import{b as h}from"./chunk-IQY3I4OH.js";import{b as w}from"./chunk-66PXNTAV.js";import"./chunk-RZ6FAJ25.js";import{b as x}from"./chunk-DMTOGHTU.js";import{b as v}from"./chunk-RX4PT2U7.js";import{d as k,e as q,f as C}from"./chunk-CE2ILL65.js";import"./chunk-GIFF636B.js";import{b}from"./chunk-4Y3GINAY.js";import"./chunk-BXOX2H2G.js";import{b as I}from"./chunk-EXCMJ23H.js";import{b as M}from"./chunk-FVFLR7NF.js";import{b as n}from"./chunk-XRZNW2KP.js";import{b as t}from"./chunk-NSSLXYEG.js";import{b as l}from"./chunk-HZM5PBQF.js";import{b as u}from"./chunk-CD3NCHIB.js";import{b as p}from"./chunk-QKQUVK53.js";import{b as e}from"./chunk-446TXLPR.js";import{b as d}from"./chunk-OH3VVXF7.js";import{b as c}from"./chunk-QFPJQSDK.js";import"./chunk-RUESYAVK.js";import"./chunk-CAXM2HMK.js";import"./chunk-SE4C7FJY.js";import{b as i}from"./chunk-PZ46XEZ4.js";import{b as g}from"./chunk-PKKBPSVJ.js";import"./chunk-Z72PSRMX.js";import{b as m}from"./chunk-L2KFCEBW.js";import"./chunk-K2K4KPOQ.js";import"./chunk-XILOLP4K.js";import{b as F}from"./chunk-RMG637UR.js";import"./chunk-OBH7XN5N.js";import{b as z}from"./chunk-RAL2LVDX.js";import{b as f}from"./chunk-IPWJZ22H.js";import"./chunk-4VDEBYW7.js";import"./chunk-7VWUKGDV.js";import"./chunk-DFAHK2EQ.js";import"./chunk-RAUBS6MJ.js";import"./chunk-463VWH7H.js";var Er=[i,g,m,F,z,f,n,t,l,u,p,e,d,c,h,w,x,v,k,q,C,b,I,M,j,y,A,$,S,T,B,D,E,G,H,J,K,L,O,P,Q,R,U,V,W,X,Y,Z,_,N,rr,or,ar,sr,ir,gr,mr,Fr,zr,fr,nr,tr,lr,ur,pr,er,dr,cr,hr,wr,xr,vr,kr,qr,Cr,br,Ir,Mr,jr,yr,Ar,$r,Sr];function Tr(){return Er}var Br=new Map;for(let r of Tr())Br.set(r.name,new Set(r.flags.map(o=>o.flag)));function Fa(r,o,Dr){let a=Br.get(o);if(!(!a||a.size===0))for(let s of Dr)a.has(s)&&r.hit(`cmd:flag:${o}:${s}`)}export{Fa as emitFlagCoverage};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a,b,c,d,e,f}from"./chunk-
|
|
2
|
+
import{a,b,c,d,e,f}from"./chunk-ASU2EQWZ.js";import"./chunk-7VWUKGDV.js";import"./chunk-DFAHK2EQ.js";import"./chunk-RAUBS6MJ.js";import"./chunk-463VWH7H.js";export{d as flagsForFuzzing,b as gunzipCommand,e as gunzipFlagsForFuzzing,a as gzipCommand,c as zcatCommand,f as zcatFlagsForFuzzing};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a,b}from"./chunk-
|
|
2
|
+
import{a,b}from"./chunk-4Y3GINAY.js";import"./chunk-BXOX2H2G.js";import"./chunk-SE4C7FJY.js";import"./chunk-DFAHK2EQ.js";import"./chunk-RAUBS6MJ.js";import"./chunk-463VWH7H.js";export{b as flagsForFuzzing,a as rgCommand};
|