Atom eve seo
This commit is contained in:
2
.output/server/node_modules/just-bash/dist/bundle/chunks/alias-RTYYYW3D.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/alias-RTYYYW3D.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a,b,c,d}from"./chunk-FHC24QSK.js";import"./chunk-QAYAQNCG.js";import"./chunk-BZUGFHVS.js";export{a as aliasCommand,c as flagsForFuzzing,b as unaliasCommand,d as unaliasFlagsForFuzzing};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/awk2-SREAOJRG.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/awk2-SREAOJRG.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a,b}from"./chunk-GRQJA2J7.js";import"./chunk-DLL7UR66.js";import"./chunk-KAPG5ONA.js";import"./chunk-VACKIICN.js";import"./chunk-7CSMHFIJ.js";import"./chunk-XEKXHOPO.js";import"./chunk-SAI2SPQQ.js";import"./chunk-QAYAQNCG.js";import"./chunk-BZUGFHVS.js";export{a as awkCommand2,b as flagsForFuzzing};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/base64-WIGL46P3.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/base64-WIGL46P3.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a,b}from"./chunk-CN5XGDNN.js";import"./chunk-XEKXHOPO.js";import"./chunk-QIQMJJZ4.js";import"./chunk-QAYAQNCG.js";import"./chunk-BZUGFHVS.js";export{a as base64Command,b as flagsForFuzzing};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/basename-UB3CIYNI.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/basename-UB3CIYNI.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a,b}from"./chunk-ZDPFA4L3.js";import"./chunk-QAYAQNCG.js";import"./chunk-BZUGFHVS.js";export{a as basenameCommand,b as flagsForFuzzing};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/bash-F4KHPMTX.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/bash-F4KHPMTX.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a,b,c,d}from"./chunk-VBLMIJON.js";import"./chunk-DLL7UR66.js";import"./chunk-XEKXHOPO.js";import"./chunk-QAYAQNCG.js";import"./chunk-BZUGFHVS.js";export{a as bashCommand,c as flagsForFuzzing,b as shCommand,d as shFlagsForFuzzing};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/cat-LPZ6XNHG.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/cat-LPZ6XNHG.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a,b}from"./chunk-MFRETFZB.js";import"./chunk-KTPCYKBB.js";import"./chunk-XEKXHOPO.js";import"./chunk-STHBFACM.js";import"./chunk-QIQMJJZ4.js";import"./chunk-QAYAQNCG.js";import"./chunk-BZUGFHVS.js";export{a as catCommand,b as flagsForFuzzing};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chmod-TFEPA42X.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chmod-TFEPA42X.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a,b}from"./chunk-WM5IJFMP.js";import"./chunk-QAYAQNCG.js";import"./chunk-BZUGFHVS.js";export{a as chmodCommand,b as flagsForFuzzing};
|
||||
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-27JIFWUR.js
generated
vendored
Normal file
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-27JIFWUR.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
function i(t,l,e){let c=t;e>=0&&c.length>e&&(c=c.slice(0,e));let n=Math.abs(l);return n>c.length&&(l<0?c=c.padEnd(n," "):c=c.padStart(n," ")),c}function h(t,l){let e=l,c=0,n=-1,a=!1;for(e<t.length&&t[e]==="-"&&(a=!0,e++);e<t.length&&/\d/.test(t[e]);)c=c*10+parseInt(t[e],10),e++;if(e<t.length&&t[e]===".")for(e++,n=0;e<t.length&&/\d/.test(t[e]);)n=n*10+parseInt(t[e],10),e++;return a&&c>0&&(c=-c),[c,n,e-l]}function r(t){let l="",e=0;for(;e<t.length;)if(t[e]==="\\"&&e+1<t.length)switch(t[e+1]){case"n":l+=`
|
||||
`,e+=2;break;case"t":l+=" ",e+=2;break;case"r":l+="\r",e+=2;break;case"\\":l+="\\",e+=2;break;case"a":l+="\x07",e+=2;break;case"b":l+="\b",e+=2;break;case"f":l+="\f",e+=2;break;case"v":l+="\v",e+=2;break;case"e":case"E":l+="\x1B",e+=2;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{let n="",a=e+1;for(;a<t.length&&a<e+4&&/[0-7]/.test(t[a]);)n+=t[a],a++;l+=String.fromCharCode(parseInt(n,8)),e=a;break}case"x":{let n=[],a=e;for(;a+3<t.length&&t[a]==="\\"&&t[a+1]==="x"&&/[0-9a-fA-F]{2}/.test(t.slice(a+2,a+4));)n.push(parseInt(t.slice(a+2,a+4),16)),a+=4;if(n.length>0){try{let s=new TextDecoder("utf-8",{fatal:!0});l+=s.decode(new Uint8Array(n))}catch{for(let s of n)l+=String.fromCharCode(s)}e=a}else l+=t[e],e++;break}case"u":{let n="",a=e+2;for(;a<t.length&&a<e+6&&/[0-9a-fA-F]/.test(t[a]);)n+=t[a],a++;n?(l+=String.fromCodePoint(parseInt(n,16)),e=a):(l+="\\u",e+=2);break}case"U":{let n="",a=e+2;for(;a<t.length&&a<e+10&&/[0-9a-fA-F]/.test(t[a]);)n+=t[a],a++;n?(l+=String.fromCodePoint(parseInt(n,16)),e=a):(l+="\\U",e+=2);break}default:l+=t[e],e++}else l+=t[e],e++;return l}export{i as a,h as b,r as c};
|
||||
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-2SMD2AUA.js
generated
vendored
Normal file
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-2SMD2AUA.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as u}from"./chunk-QIQMJJZ4.js";import{a as f,b as h}from"./chunk-QAYAQNCG.js";var g={name:"which",summary:"locate a command",usage:"which [-as] program ...",options:["-a List all instances of executables found","-s No output, just return 0 if found, 1 if not","--help display this help and exit"]},w={showAll:{short:"a",type:"boolean"},silent:{short:"s",type:"boolean"}},A={name:"which",async execute(s,e){if(h(s))return f(g);let t=u("which",s,w);if(!t.ok)return t.error;let c=t.result.flags.showAll,p=t.result.flags.silent,o=t.result.positional;if(o.length===0)return{stdout:"",stderr:"",exitCode:1};let d=(e.env.get("PATH")||"/usr/bin:/bin").split(":"),n="",a=!0;for(let m of o){let l=!1;for(let r of d){if(!r)continue;let i=e.fs.resolvePath(r,m);if(await e.fs.exists(i)&&(l=!0,p||(n+=`${i}
|
||||
`),!c))break}l||(a=!1)}return{stdout:n,stderr:"",exitCode:a?0:1}}},v={name:"which",flags:[{flag:"-a",type:"boolean"},{flag:"-s",type:"boolean"}],needsArgs:!0};export{A as a,v as b};
|
||||
14
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-2VDTE5BV.js
generated
vendored
Normal file
14
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-2VDTE5BV.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{c as p}from"./chunk-HBVMHTO5.js";import{a as g}from"./chunk-L2UW7DWF.js";import{a as h}from"./chunk-DLL7UR66.js";import{a as f}from"./chunk-FOCWZZDE.js";var T={name:"time",async execute(r,s){let a="%e %M",o=null,u=!1,c=!1,t=0;for(;t<r.length;){let e=r[t];if(e==="-f"||e==="--format"){if(t++,t>=r.length)return{stdout:"",stderr:`time: missing argument to '-f'
|
||||
`,exitCode:1};a=r[t],t++}else if(e==="-o"||e==="--output"){if(t++,t>=r.length)return{stdout:"",stderr:`time: missing argument to '-o'
|
||||
`,exitCode:1};o=r[t],t++}else if(e==="-a"||e==="--append")u=!0,t++;else if(e==="-v"||e==="--verbose")a=`Command being timed: %C
|
||||
Elapsed (wall clock) time: %e seconds
|
||||
Maximum resident set size (kbytes): %M`,t++;else if(e==="-p"||e==="--portability")c=!0,t++;else if(e==="--"){t++;break}else if(e.startsWith("-"))t++;else break}let l=r.slice(t);if(l.length===0)return{stdout:"",stderr:"",exitCode:0};let w=p(),C=l.join(" "),i;try{if(!s.exec)return{stdout:"",stderr:`time: exec not available
|
||||
`,exitCode:1};i=await s.exec(g([l[0]]),{env:h(s.env),cwd:s.cwd,stdin:s.stdin,stdinKind:"bytes",signal:s.signal,args:l.slice(1)})}catch(e){i={stdout:"",stderr:`time: ${f(e.message)}
|
||||
`,exitCode:127}}let m=(p()-w)/1e3,n;if(c?n=`real ${m.toFixed(2)}
|
||||
user 0.00
|
||||
sys 0.00
|
||||
`:(n=a.replace(/%e/g,m.toFixed(2)).replace(/%E/g,F(m)).replace(/%M/g,"0").replace(/%S/g,"0.00").replace(/%U/g,"0.00").replace(/%P/g,"0%").replace(/%C/g,C),n.endsWith(`
|
||||
`)||(n+=`
|
||||
`)),o)try{let e=s.fs.resolvePath(s.cwd,o);if(u&&await s.fs.exists(e)){let d=await s.fs.readFile(e);await s.fs.writeFile(e,d+n)}else await s.fs.writeFile(e,n)}catch(e){let d=f(e.message);return{stdout:i.stdout,stderr:i.stderr+`time: cannot write to '${o}': ${d}
|
||||
`,exitCode:i.exitCode}}else i={...i,stderr:i.stderr+n};return i}};function F(r){let s=Math.floor(r/3600),a=Math.floor(r%3600/60),o=r%60;return s>0?`${s}:${a.toString().padStart(2,"0")}:${o.toFixed(2).padStart(5,"0")}`:`${a}:${o.toFixed(2).padStart(5,"0")}`}var k={name:"time",flags:[{flag:"-p",type:"boolean"}],needsArgs:!0};export{T as a,k as b};
|
||||
8
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-2VJJEDV2.js
generated
vendored
Normal file
8
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-2VJJEDV2.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as b}from"./chunk-QIQMJJZ4.js";import{a as $,b as F}from"./chunk-QAYAQNCG.js";var x={name:"du",summary:"estimate file space usage",usage:"du [OPTION]... [FILE]...",options:["-a write counts for all files, not just directories","-h print sizes in human readable format","-s display only a total for each argument","-c produce a grand total","--max-depth=N print total for directory only if N or fewer levels deep"," --help display this help and exit"]},R={allFiles:{short:"a",type:"boolean"},humanReadable:{short:"h",type:"boolean"},summarize:{short:"s",type:"boolean"},grandTotal:{short:"c",type:"boolean"},maxDepth:{long:"max-depth",type:"number"}},_={name:"du",async execute(a,s){if(F(a))return $(x);let n=b("du",a,R);if(!n.ok)return n.error;let r={allFiles:n.result.flags.allFiles,humanReadable:n.result.flags.humanReadable,summarize:n.result.flags.summarize,grandTotal:n.result.flags.grandTotal,maxDepth:n.result.flags.maxDepth??null},l=n.result.positional;l.length===0&&l.push(".");let o="",m="",p=0;for(let u of l){let z=s.fs.resolvePath(s.cwd,u);try{await s.fs.stat(z);let h=await w(s,z,u,r,0);o+=h.output,p+=h.totalSize,m+=h.stderr}catch{m+=`du: cannot access '${u}': No such file or directory
|
||||
`}}return r.grandTotal&&l.length>0&&(o+=`${D(p,r.humanReadable)} total
|
||||
`),{stdout:o,stderr:m,exitCode:m?1:0}}},E=1e3;async function w(a,s,n,r,l){let o={output:"",totalSize:0,stderr:""};if(l>E)return o;try{let m=await a.fs.stat(s);if(!m.isDirectory)return o.totalSize=m.size,(r.allFiles||l===0)&&(o.output=D(m.size,r.humanReadable)+" "+n+`
|
||||
`),o;let p=0,u=[];if(a.fs.readdirWithFileTypes){let t=await a.fs.readdirWithFileTypes(s),i=t.filter(e=>e.isFile),f=t.filter(e=>e.isDirectory);for(let e=0;e<i.length;e+=100){let c=i.slice(e,e+100),y=await Promise.all(c.map(async d=>{let T=s==="/"?`/${d.name}`:`${s}/${d.name}`;try{let S=await a.fs.stat(T);return{name:d.name,isDirectory:!1,size:S.size}}catch{return{name:d.name,isDirectory:!1,size:0}}}));u.push(...y)}u.push(...f.map(e=>({name:e.name,isDirectory:!0})))}else{let t=await a.fs.readdir(s);for(let i=0;i<t.length;i+=100){let f=t.slice(i,i+100),e=await Promise.all(f.map(async c=>{let y=s==="/"?`/${c}`:`${s}/${c}`;try{let d=await a.fs.stat(y);return{name:c,isDirectory:d.isDirectory,size:d.isDirectory?void 0:d.size}}catch{return{name:c,isDirectory:!1,size:0}}}));u.push(...e)}}u.sort((t,i)=>t.name.localeCompare(i.name));let z=u.filter(t=>!t.isDirectory);for(let t of z){let i=t.size??0;if(p+=i,r.allFiles&&!r.summarize){let f=n==="."?t.name:`${n}/${t.name}`;o.output+=D(i,r.humanReadable)+" "+f+`
|
||||
`}}let h=u.filter(t=>t.isDirectory);for(let t=0;t<h.length;t+=100){let i=h.slice(t,t+100),f=await Promise.all(i.map(async e=>{let c=s==="/"?`/${e.name}`:`${s}/${e.name}`,y=n==="."?e.name:`${n}/${e.name}`;return{name:e.name,result:await w(a,c,y,r,l+1)}}));f.sort((e,c)=>e.name.localeCompare(c.name));for(let{result:e}of f)p+=e.totalSize,r.summarize||(r.maxDepth===null||l+1<=r.maxDepth)&&(o.output+=e.output)}o.totalSize=p,(r.summarize||r.maxDepth===null||l<=r.maxDepth)&&(o.output+=`${D(p,r.humanReadable)} ${n}
|
||||
`)}catch{o.stderr=`du: cannot read directory '${n}': Permission denied
|
||||
`}return o}function D(a,s){return s?a<1024?`${a}`:a<1024*1024?`${(a/1024).toFixed(1)}K`:a<1024*1024*1024?`${(a/(1024*1024)).toFixed(1)}M`:`${(a/(1024*1024*1024)).toFixed(1)}G`:String(Math.ceil(a/1024)||1)}var v={name:"du",flags:[{flag:"-a",type:"boolean"},{flag:"-h",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"--max-depth",type:"value",valueHint:"number"}],needsFiles:!0};export{_ as a,v as b};
|
||||
21
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-4I3HOE5Z.js
generated
vendored
Normal file
21
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-4I3HOE5Z.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
8
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-4JLVZKHC.js
generated
vendored
Normal file
8
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-4JLVZKHC.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as m}from"./chunk-QIQMJJZ4.js";import{a as $}from"./chunk-W5DWRFSU.js";import{a as y,b as h}from"./chunk-QAYAQNCG.js";var D={name:"cp",summary:"copy files and directories",usage:"cp [OPTION]... SOURCE... DEST",options:["-r, -R, --recursive copy directories recursively","-n, --no-clobber do not overwrite an existing file","-p, --preserve preserve file attributes","-v, --verbose explain what is being done"," --help display this help and exit"]},E={recursive:{short:"r",long:"recursive",type:"boolean"},recursiveUpper:{short:"R",type:"boolean"},noClobber:{short:"n",long:"no-clobber",type:"boolean"},preserve:{short:"p",long:"preserve",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"}},A={name:"cp",async execute(f,e){if(h(f))return y(D);let t=m("cp",f,E);if(!t.ok)return t.error;let u=t.result.flags.recursive||t.result.flags.recursiveUpper,w=t.result.flags.noClobber,C=t.result.flags.preserve,P=t.result.flags.verbose,c=t.result.positional;if(c.length<2)return{stdout:"",stderr:`cp: missing destination file operand
|
||||
`,exitCode:1};let g=c.pop()??"",d=c,o=e.fs.resolvePath(e.cwd,g),b="",n="",l=0,p=!1;try{p=(await e.fs.stat(o)).isDirectory}catch{}if(d.length>1&&!p)return{stdout:"",stderr:`cp: target '${g}' is not a directory
|
||||
`,exitCode:1};for(let r of d)try{let a=e.fs.resolvePath(e.cwd,r),s=await e.fs.stat(a),i=o;if(p){let v=r.split("/").pop()||r;i=o==="/"?`/${v}`:`${o}/${v}`}if(s.isDirectory&&!u){n+=`cp: -r not specified; omitting directory '${r}'
|
||||
`,l=1;continue}if(w)try{await e.fs.stat(i);continue}catch{}await e.fs.cp(a,i,{recursive:u}),P&&(b+=`'${r}' -> '${i}'
|
||||
`)}catch(a){let s=$(a);s.includes("ENOENT")||s.includes("no such file")?n+=`cp: cannot stat '${r}': No such file or directory
|
||||
`:n+=`cp: cannot copy '${r}': ${s}
|
||||
`,l=1}return{stdout:b,stderr:n,exitCode:l}}},F={name:"cp",flags:[{flag:"-r",type:"boolean"},{flag:"-R",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-p",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0,minArgs:2};export{A as a,F as b};
|
||||
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-4MZPEZTU.js
generated
vendored
Normal file
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-4MZPEZTU.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
async function e(t,o){return{stdout:`user
|
||||
`,stderr:"",exitCode:0}}var a={name:"whoami",execute:e},n={name:"whoami",flags:[]};export{a,n as b};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-4WKZNNJK.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-4WKZNNJK.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
var i=new Set(["__proto__","constructor","prototype"]),p=new Set([...i,"__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]);function a(e,n){if(Array.isArray(e))throw new TypeError(`${n}: expected object, got array`);if(Object.getPrototypeOf(e)!==null)throw new TypeError(`${n}: expected null-prototype object, got prototypal object`)}function u(e){return!i.has(e)}function l(e,n,o){a(e,"safeSet"),u(n)&&(e[n]=o)}function y(e,n){return a(e,"safeHasOwn"),Object.hasOwn(e,n)}function O(e){let n=new WeakMap,o=t=>{if(t===null||typeof t!="object"||t instanceof Date)return t;let f=n.get(t);if(f!==void 0)return f;if(Array.isArray(t)){let r=[];n.set(t,r);for(let c of t)r.push(o(c));return r}let s=Object.create(null);n.set(t,s);for(let r of Object.keys(t))s[r]=o(t[r]);return s};return o(e)}function _(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null}function x(e){return Object.assign(Object.create(null),e)}function S(e){return Object.assign(Object.create(null),e)}function b(...e){return Object.assign(Object.create(null),...e)}export{u as a,l as b,y as c,O as d,_ as e,x as f,S as g,b as h};
|
||||
36
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-55LZFN6S.js
generated
vendored
Normal file
36
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-55LZFN6S.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as q,b as w}from"./chunk-SY4HAUHP.js";import{c as b}from"./chunk-KAPG5ONA.js";import{b as E}from"./chunk-VACKIICN.js";import{c as x}from"./chunk-XEKXHOPO.js";import{a as T,b as g}from"./chunk-FOCWZZDE.js";import{a as C,b as M}from"./chunk-QAYAQNCG.js";import{randomBytes as Y}from"node:crypto";import{existsSync as G}from"node:fs";import{dirname as K,join as $,sep as O}from"node:path";import{fileURLToPath as Z}from"node:url";import{Worker as v}from"node:worker_threads";import ee from"sql.js";function B(e,t,r){switch(r.mode){case"list":return N(e,t,r);case"csv":return R(e,t,r);case"json":return W(e,t);case"line":return F(e,t,r);case"column":return Q(e,t,r);case"table":return U(e,t,r);case"markdown":return H(e,t,r);case"tabs":return J(e,t,r);case"box":return _(e,t,r);case"quote":return z(e,t,r);case"html":return D(e,t,r);case"ascii":return X(e,t,r)}}function f(e,t){return e==null?t:e instanceof Uint8Array||Buffer.isBuffer(e)?Buffer.from(e).toString("utf8"):typeof e=="number"&&!Number.isInteger(e)?e.toPrecision(17).replace(/\.?0+$/,""):String(e)}function N(e,t,r){let n=[];r.header&&e.length>0&&n.push(e.join(r.separator));for(let a of t)n.push(a.map(o=>f(o,r.nullValue)).join(r.separator));return n.length>0?`${n.join(r.newline)}${r.newline}`:""}function R(e,t,r){let n=[];r.header&&e.length>0&&n.push(e.map(L).join(","));for(let a of t)n.push(a.map(o=>L(f(o,r.nullValue))).join(","));return n.length>0?`${n.join(`
|
||||
`)}
|
||||
`:""}function L(e){return e.includes(",")||e.includes('"')||e.includes("'")||e.includes(`
|
||||
`)?`"${e.replace(/"/g,'""')}"`:e}function A(e){return e.toPrecision(17).replace(/\.?0+$/,"")}function P(e){return e===null?"null":typeof e=="number"?Number.isInteger(e)?String(e):A(e):JSON.stringify(e)}function W(e,t){return t.length===0?"":`[${t.map(n=>`{${e.map((o,i)=>`${JSON.stringify(o)}:${P(n[i])}`).join(",")}}`).join(`,
|
||||
`)}]
|
||||
`}function F(e,t,r){if(e.length===0||t.length===0)return"";let n=Math.max(5,...e.map(o=>o.length)),a=[];for(let o of t)for(let i=0;i<e.length;i++){let s=e[i].padStart(n);a.push(`${s} = ${f(o[i],r.nullValue)}`)}return`${a.join(`
|
||||
`)}
|
||||
`}function Q(e,t,r){if(e.length===0)return"";let n=e.map(o=>o.length);for(let o of t)for(let i=0;i<o.length;i++){let s=f(o[i],r.nullValue).length;s>n[i]&&(n[i]=s)}let a=[];r.header&&(a.push(e.map((o,i)=>o.padEnd(n[i])).join(" ")),a.push(n.map(o=>"-".repeat(o)).join(" ")));for(let o of t)a.push(o.map((i,s)=>f(i,r.nullValue).padEnd(n[s])).join(" "));return a.length>0?`${a.join(`
|
||||
`)}
|
||||
`:""}function U(e,t,r){if(e.length===0)return"";let n=e.map(i=>i.length);for(let i of t)for(let s=0;s<i.length;s++){let m=f(i[s],r.nullValue).length;m>n[s]&&(n[s]=m)}let a=[],o=`+${n.map(i=>"-".repeat(i+2)).join("+")}+`;a.push(o),r.header&&(a.push(`| ${e.map((i,s)=>i.padEnd(n[s])).join(" | ")} |`),a.push(o));for(let i of t)a.push(`| ${i.map((s,m)=>f(s,r.nullValue).padEnd(n[m])).join(" | ")} |`);return a.push(o),`${a.join(`
|
||||
`)}
|
||||
`}function H(e,t,r){if(e.length===0)return"";let n=[];r.header&&(n.push(`| ${e.join(" | ")} |`),n.push(`|${e.map(()=>"---").join("|")}|`));for(let a of t)n.push(`| ${a.map(o=>f(o,r.nullValue)).join(" | ")} |`);return n.length>0?`${n.join(`
|
||||
`)}
|
||||
`:""}function J(e,t,r){let n=[];r.header&&e.length>0&&n.push(e.join(" "));for(let a of t)n.push(a.map(o=>f(o,r.nullValue)).join(" "));return n.length>0?`${n.join(r.newline)}${r.newline}`:""}function _(e,t,r){if(e.length===0)return"";let n=e.map(o=>o.length);for(let o of t)for(let i=0;i<o.length;i++){let s=f(o[i],r.nullValue).length;s>n[i]&&(n[i]=s)}let a=[];a.push(`\u250C${n.map(o=>"\u2500".repeat(o+2)).join("\u252C")}\u2510`),a.push(`\u2502 ${e.map((o,i)=>o.padEnd(n[i])).join(" \u2502 ")} \u2502`),a.push(`\u251C${n.map(o=>"\u2500".repeat(o+2)).join("\u253C")}\u2524`);for(let o of t)a.push(`\u2502 ${o.map((i,s)=>f(i,r.nullValue).padEnd(n[s])).join(" \u2502 ")} \u2502`);return a.push(`\u2514${n.map(o=>"\u2500".repeat(o+2)).join("\u2534")}\u2518`),`${a.join(`
|
||||
`)}
|
||||
`}function z(e,t,r){let n=[];r.header&&e.length>0&&n.push(e.map(a=>`'${a}'`).join(","));for(let a of t)n.push(a.map(o=>o==null?"NULL":typeof o=="number"?Number.isInteger(o)?String(o):A(o):`'${String(o)}'`).join(","));return n.length>0?`${n.join(r.newline)}${r.newline}`:""}function D(e,t,r){let n=[];r.header&&e.length>0&&(n.push(`<TR>${e.map(a=>`<TH>${V(a)}</TH>`).join("")}`),n.push("</TR>"));for(let a of t)n.push(`<TR>${a.map(o=>`<TD>${V(f(o,r.nullValue))}</TD>`).join("")}`),n.push("</TR>");return n.length>0?`${n.join(`
|
||||
`)}
|
||||
`:""}function V(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function X(e,t,r){let o=[];r.header&&e.length>0&&o.push(e.join(""));for(let i of t)o.push(i.map(s=>f(s,r.nullValue)).join(""));return o.length>0?o.join("")+"":""}var re=5e3,te={name:"sqlite3",summary:"SQLite database CLI",usage:"sqlite3 [OPTIONS] DATABASE [SQL]",options:["-list output in list mode (default)","-csv output in CSV mode","-json output in JSON mode","-line output in line mode","-column output in column mode","-table output as ASCII table","-markdown output as markdown table","-tabs output in tab-separated mode","-box output in Unicode box mode","-quote output in SQL quote mode","-html output as HTML table","-ascii output in ASCII mode (control chars)","-header show column headers","-noheader hide column headers","-separator SEP field separator for list mode (default: |)","-newline SEP row separator (default: \\n)","-nullvalue TEXT text for NULL values (default: empty)","-readonly open database read-only (no writeback)","-bail stop on first error","-echo print SQL before execution","-cmd COMMAND run SQL command before main SQL","-version show SQLite version","-- end of options","--help show this help"],examples:['sqlite3 :memory: "CREATE TABLE t(x); INSERT INTO t VALUES(1); SELECT * FROM t"','sqlite3 -json data.db "SELECT * FROM users"','sqlite3 -csv -header data.db "SELECT id, name FROM products"','sqlite3 -box data.db "SELECT * FROM users"']};function ne(e){let t={mode:"list",header:!1,separator:"|",newline:`
|
||||
`,nullValue:"",readonly:!1,bail:!1,echo:!1,cmd:null},r=null,n=null,a=!1,o=!1;for(let i=0;i<e.length;i++){let s=e[i];if(o){r===null?r=s:n===null&&(n=s);continue}if(s==="--")o=!0;else if(s==="-version")a=!0;else if(s==="-list")t.mode="list";else if(s==="-csv")t.mode="csv";else if(s==="-json")t.mode="json";else if(s==="-line")t.mode="line";else if(s==="-column")t.mode="column";else if(s==="-table")t.mode="table";else if(s==="-markdown")t.mode="markdown";else if(s==="-tabs")t.mode="tabs";else if(s==="-box")t.mode="box";else if(s==="-quote")t.mode="quote";else if(s==="-html")t.mode="html";else if(s==="-ascii")t.mode="ascii";else if(s==="-header")t.header=!0;else if(s==="-noheader")t.header=!1;else if(s==="-readonly")t.readonly=!0;else if(s==="-bail")t.bail=!0;else if(s==="-echo")t.echo=!0;else if(s==="-separator"){if(i+1>=e.length)return{stdout:"",stderr:`sqlite3: Error: missing argument to -separator
|
||||
`,exitCode:1};t.separator=e[++i]}else if(s==="-newline"){if(i+1>=e.length)return{stdout:"",stderr:`sqlite3: Error: missing argument to -newline
|
||||
`,exitCode:1};t.newline=e[++i]}else if(s==="-nullvalue"){if(i+1>=e.length)return{stdout:"",stderr:`sqlite3: Error: missing argument to -nullvalue
|
||||
`,exitCode:1};t.nullValue=e[++i]}else if(s==="-cmd"){if(i+1>=e.length)return{stdout:"",stderr:`sqlite3: Error: missing argument to -cmd
|
||||
`,exitCode:1};t.cmd=e[++i]}else{if(s.startsWith("-"))return{stdout:"",stderr:`sqlite3: Error: unknown option: ${s.startsWith("--")?s.slice(1):s}
|
||||
Use -help for a list of options.
|
||||
`,exitCode:1};r===null?r=s:n===null&&(n=s)}}return{options:t,database:r,sql:n,showVersion:a}}async function oe(){let e=await E.runTrustedAsync(()=>ee()),t=new e.Database;try{let r=t.exec("SELECT sqlite_version()");return r.length>0&&r[0].values.length>0?String(r[0].values[0][0]):"unknown"}finally{t.close()}}function I(e=K(Z(import.meta.url))){let t=[$(e,"sqlite3-worker.js"),$(e,"../../commands/sqlite3/worker.js")];(e.endsWith(`${O}commands${O}sqlite3`)||e.endsWith("/commands/sqlite3"))&&t.push($(e,"worker.js")),t.push($(e,"../../../dist/commands/sqlite3/worker.js"));for(let r of t)if(G(r))return r;throw new Error("sqlite3 worker not found. Run 'pnpm build' to compile the worker.")}var se={createWorker(e,t){return new v(e,{workerData:t})},findWorkerPath:I};function ie(){return Y(16).toString("hex")}function ae(e,t){if(!e||typeof e!="object")return{success:!1,error:"Malformed worker response"};let r=e;return typeof r.protocolToken!="string"||r.protocolToken!==t?{success:!1,error:"Malformed worker response: invalid protocol token"}:r.type==="security-violation"?{success:!1,error:`Security violation: ${typeof r.violation?.type=="string"?r.violation.type:"unknown"}`}:typeof r.success!="boolean"?{success:!1,error:"Malformed worker response: missing success flag"}:r.success?Array.isArray(r.results)?typeof r.hasModifications!="boolean"?{success:!1,error:"Malformed worker response: missing hasModifications flag"}:r.dbBuffer!==null&&r.dbBuffer!==void 0&&!(r.dbBuffer instanceof Uint8Array)?{success:!1,error:"Malformed worker response: invalid dbBuffer"}:{success:!0,results:r.results,hasModifications:r.hasModifications,dbBuffer:r.dbBuffer===void 0?null:r.dbBuffer,defenseStats:r.defenseStats}:{success:!1,error:"Malformed worker response: missing results array"}:{success:!1,error:typeof r.error=="string"&&r.error.length>0?r.error:"Worker execution failed"}}async function le(e,t,r){try{let n=I();return await new Promise((a,o)=>{let i=E.runTrusted(()=>se.createWorker(n,e)),s=b(r,"sqlite3","worker timeout callback",()=>{i.terminate(),a({success:!1,error:`Query timeout: execution exceeded ${t}ms limit`})}),c=q(()=>{try{s()}catch(u){let l=u instanceof Error?u.message:String(u);a({success:!1,error:g(l)})}},t),S=b(r,"sqlite3","worker message callback",u=>{w(c),a(ae(u,e.protocolToken))}),y=b(r,"sqlite3","worker error callback",u=>{w(c),o(u)}),k=b(r,"sqlite3","worker exit callback",u=>{w(c),u!==0&&a({success:!1,error:`Worker exited with code ${u}`})}),p=u=>{try{S(u)}catch(l){w(c);let d=l instanceof Error?l.message:String(l);a({success:!1,error:g(d)})}},j=u=>{try{y(u)}catch(l){w(c);let d=l instanceof Error?l.message:String(l);o(new Error(g(d)))}},h=u=>{try{k(u)}catch(l){w(c);let d=l instanceof Error?l.message:String(l);a({success:!1,error:g(d)})}};i.on("message",p),i.on("error",j),i.on("exit",h)})}catch(n){let a=g(n.message);throw new Error(`sqlite3 worker failed to load: ${a}`)}}var je={name:"sqlite3",async execute(e,t){if(M(e)||e.includes("-help"))return C(te);let r=ne(e);if("exitCode"in r)return r;let{options:n,database:a,sql:o,showVersion:i}=r;if(i)return{stdout:`${await oe()}
|
||||
`,stderr:"",exitCode:0};if(!a)return{stdout:"",stderr:`sqlite3: missing database argument
|
||||
`,exitCode:1};let s=o||x(t.stdin).trim();if(n.cmd&&(s=n.cmd+(s?`; ${s}`:"")),!s)return{stdout:"",stderr:`sqlite3: no SQL provided
|
||||
`,exitCode:1};let m=a===":memory:",c="",S=null;try{m||(c=t.fs.resolvePath(t.cwd,a),await t.fs.exists(c)&&(S=await t.fs.readFileBuffer(c)))}catch(l){let d=T(l.message);return{stdout:"",stderr:`sqlite3: unable to open database "${a}": ${d}
|
||||
`,exitCode:1}}let y=t.limits?.maxSqliteTimeoutMs??re,k={protocolToken:ie(),dbBuffer:S,sql:s,options:{bail:n.bail,echo:n.echo}},p;try{p=await le(k,y,t.requireDefenseContext)}catch(l){return{stdout:"",stderr:`sqlite3: worker error: ${g(l.message)}
|
||||
`,exitCode:1}}if(!p.success)return{stdout:"",stderr:`sqlite3: ${g(p.error)}
|
||||
`,exitCode:1};let j={mode:n.mode,header:n.header,separator:n.separator,newline:n.newline,nullValue:n.nullValue},h="";n.echo&&(h+=`${s}
|
||||
`);let u=!1;for(let l of p.results)if(l.type==="error"){if(n.bail)return{stdout:h,stderr:`Error: ${l.error}
|
||||
`,exitCode:1};h+=`Error: ${l.error}
|
||||
`,u=!0}else l.columns&&l.rows&&(l.rows.length>0||n.header)&&(h+=B(l.columns,l.rows,j));if(p.hasModifications&&!n.readonly&&!m&&c&&p.dbBuffer)try{await t.fs.writeFile(c,p.dbBuffer)}catch(l){let d=T(l.message);return{stdout:h,stderr:`sqlite3: failed to write database: ${d}
|
||||
`,exitCode:1}}return{stdout:h,stderr:"",exitCode:u&&n.bail?1:0}}},Ee={name:"sqlite3",flags:[],needsArgs:!0};export{se as a,je as b,Ee as c};
|
||||
5
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-5MV7Q5QB.js
generated
vendored
Normal file
5
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-5MV7Q5QB.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{b as m}from"./chunk-KTPCYKBB.js";import{c as d}from"./chunk-XEKXHOPO.js";import{a as y}from"./chunk-QIQMJJZ4.js";import{a as f,b as g}from"./chunk-QAYAQNCG.js";var T={name:"uniq",summary:"report or omit repeated lines",usage:"uniq [OPTION]... [INPUT [OUTPUT]]",options:["-c, --count prefix lines by the number of occurrences","-d, --repeated only print duplicate lines","-i, --ignore-case ignore case when comparing","-u, --unique only print unique lines"," --help display this help and exit"]},w={count:{short:"c",long:"count",type:"boolean"},duplicatesOnly:{short:"d",long:"repeated",type:"boolean"},uniqueOnly:{short:"u",long:"unique",type:"boolean"},ignoreCase:{short:"i",long:"ignore-case",type:"boolean"}},$={name:"uniq",async execute(p,h){if(g(p))return f(T);let o=y("uniq",p,w);if(!o.ok)return o.error;let{count:q,duplicatesOnly:b,uniqueOnly:C,ignoreCase:a}=o.result.flags,x=o.result.positional,r=await m(h,x,{cmdName:"uniq"});if(!r.ok)return r.error;let t=(a?d(r.content):r.content).split(`
|
||||
`);if(t.length>0&&t[t.length-1]===""&&t.pop(),t.length===0)return{stdout:"",stderr:"",exitCode:0};let n=[],i=t[0],s=1,O=(e,u)=>a?e.toLowerCase()===u.toLowerCase():e===u;for(let e=1;e<t.length;e++)O(t[e],i)?s++:(n.push({line:i,count:s}),i=t[e],s=1);n.push({line:i,count:s});let c=n;b?c=n.filter(e=>e.count>1):C&&(c=n.filter(e=>e.count===1));let l="";for(let{line:e,count:u}of c)q?l+=`${String(u).padStart(4)} ${e}
|
||||
`:l+=`${e}
|
||||
`;return a?{stdout:l,stderr:"",exitCode:0}:{stdout:l,stderr:"",exitCode:0,stdoutKind:"bytes",stdoutEncoding:"binary"}}},k={name:"uniq",flags:[{flag:"-c",type:"boolean"},{flag:"-d",type:"boolean"},{flag:"-u",type:"boolean"},{flag:"-i",type:"boolean"}],stdinType:"text",needsFiles:!0};export{$ as a,k as b};
|
||||
17
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-6L65G6A7.js
generated
vendored
Normal file
17
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-6L65G6A7.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{f as a}from"./chunk-XEKXHOPO.js";import{a as d,b as h,c as p}from"./chunk-QAYAQNCG.js";var k={name:"split",summary:"split a file into pieces",usage:"split [OPTION]... [FILE [PREFIX]]",description:"Output pieces of FILE to PREFIXaa, PREFIXab, ...; default size is 1000 lines, and default PREFIX is 'x'.",options:["-l N Put N lines per output file","-b SIZE Put SIZE bytes per output file (K, M, G suffixes)","-n CHUNKS Split into CHUNKS equal-sized files","-d Use numeric suffixes (00, 01, ...) instead of alphabetic","-a LENGTH Use suffixes of length LENGTH (default: 2)","--additional-suffix=SUFFIX Append SUFFIX to file names"],examples:["split -l 100 file.txt # Split into 100-line chunks","split -b 1M file.bin # Split into 1MB chunks","split -n 5 file.txt # Split into 5 equal parts","split -d file.txt part_ # part_00, part_01, ...","split -a 3 -d file.txt x # x000, x001, ..."]},m=1e5;function b(s){let l=s.match(/^(\d+)([KMGTPEZY]?)([B]?)$/i);if(!l)return null;let e=Number.parseInt(l[1],10);if(Number.isNaN(e)||e<1)return null;let u=(l[2]||"").toUpperCase(),o=new Map([["",1],["K",1024],["M",1024*1024],["G",1024*1024*1024],["T",1024*1024*1024*1024],["P",1024*1024*1024*1024*1024]]).get(u);return o===void 0?null:e*o}function g(s,l,e){if(l)return s.toString().padStart(e,"0");let u="abcdefghijklmnopqrstuvwxyz",t="",o=s;for(let r=0;r<e;r++)t=u[o%26]+t,o=Math.floor(o/26);return t}function C(s,l){let e=s.split(`
|
||||
`),u=s.endsWith(`
|
||||
`)&&e[e.length-1]==="";u&&e.pop();let t=[];for(let o=0;o<e.length;o+=l){let r=e.slice(o,o+l),c=o+l>=e.length&&!u?r.join(`
|
||||
`):`${r.join(`
|
||||
`)}
|
||||
`;t.push({content:c,hasContent:!0})}return t}function S(s,l){let u=new TextEncoder().encode(s),t=new TextDecoder,o=[];for(let r=0;r<u.length;r+=l){let f=u.slice(r,r+l);o.push({content:t.decode(f),hasContent:f.length>0})}return o}function v(s,l){let u=new TextEncoder().encode(s),t=new TextDecoder,o=[],r=Math.ceil(u.length/l);for(let f=0;f<l;f++){let c=f*r,i=Math.min(c+r,u.length),n=u.slice(c,i);o.push({content:t.decode(n),hasContent:n.length>0})}return o}var F={name:"split",execute:async(s,l)=>{if(h(s))return d(k);let e={mode:"lines",lines:1e3,bytes:0,chunks:0,useNumericSuffix:!1,suffixLength:2,additionalSuffix:""},u=[],t=0;for(;t<s.length;){let i=s[t];if(i==="-l"&&t+1<s.length){let n=Number.parseInt(s[t+1],10);if(Number.isNaN(n)||n<1)return{exitCode:1,stdout:"",stderr:`split: invalid number of lines: '${s[t+1]}'
|
||||
`};e.mode="lines",e.lines=n,t+=2}else if(i.match(/^-l\d+$/)){let n=Number.parseInt(i.slice(2),10);if(Number.isNaN(n)||n<1)return{exitCode:1,stdout:"",stderr:`split: invalid number of lines: '${i.slice(2)}'
|
||||
`};e.mode="lines",e.lines=n,t++}else if(i==="-b"&&t+1<s.length){let n=b(s[t+1]);if(n===null)return{exitCode:1,stdout:"",stderr:`split: invalid number of bytes: '${s[t+1]}'
|
||||
`};e.mode="bytes",e.bytes=n,t+=2}else if(i.match(/^-b.+$/)){let n=b(i.slice(2));if(n===null)return{exitCode:1,stdout:"",stderr:`split: invalid number of bytes: '${i.slice(2)}'
|
||||
`};e.mode="bytes",e.bytes=n,t++}else if(i==="-n"&&t+1<s.length){let n=Number.parseInt(s[t+1],10);if(Number.isNaN(n)||n<1)return{exitCode:1,stdout:"",stderr:`split: invalid number of chunks: '${s[t+1]}'
|
||||
`};e.mode="chunks",e.chunks=n,t+=2}else if(i.match(/^-n\d+$/)){let n=Number.parseInt(i.slice(2),10);if(Number.isNaN(n)||n<1)return{exitCode:1,stdout:"",stderr:`split: invalid number of chunks: '${i.slice(2)}'
|
||||
`};e.mode="chunks",e.chunks=n,t++}else if(i==="-a"&&t+1<s.length){let n=Number.parseInt(s[t+1],10);if(Number.isNaN(n)||n<1)return{exitCode:1,stdout:"",stderr:`split: invalid suffix length: '${s[t+1]}'
|
||||
`};e.suffixLength=n,t+=2}else if(i.match(/^-a\d+$/)){let n=Number.parseInt(i.slice(2),10);if(Number.isNaN(n)||n<1)return{exitCode:1,stdout:"",stderr:`split: invalid suffix length: '${i.slice(2)}'
|
||||
`};e.suffixLength=n,t++}else if(i==="-d"||i==="--numeric-suffixes")e.useNumericSuffix=!0,t++;else if(i.startsWith("--additional-suffix="))e.additionalSuffix=i.slice(20),t++;else if(i==="--additional-suffix"&&t+1<s.length)e.additionalSuffix=s[t+1],t+=2;else if(i==="--"){u.push(...s.slice(t+1));break}else{if(i.startsWith("-")&&i!=="-")return p("split",i);u.push(i),t++}}let o="-",r="x";u.length>=1&&(o=u[0]),u.length>=2&&(r=u[1]);let f;if(o==="-")f=l.stdin??"";else{let i=l.fs.resolvePath(l.cwd,o);try{let n=await a(l.fs,i);f=n}catch{return{exitCode:1,stdout:"",stderr:`split: ${o}: No such file or directory
|
||||
`}}}if(f==="")return{exitCode:0,stdout:"",stderr:""};let c;switch(e.mode){case"lines":c=C(f,e.lines);break;case"bytes":c=S(f,e.bytes);break;case"chunks":c=v(f,e.chunks);break;default:return e.mode}if(c.length>m)return{exitCode:1,stdout:"",stderr:`split: too many output files (${c.length}), limit is ${m}
|
||||
`};for(let i=0;i<c.length;i++){let n=c[i];if(!n.hasContent)continue;let x=g(i,e.useNumericSuffix,e.suffixLength),N=`${r}${x}${e.additionalSuffix}`,y=l.fs.resolvePath(l.cwd,N);await l.fs.writeFile(y,n.content,"binary")}return{exitCode:0,stdout:"",stderr:""}}},E={name:"split",flags:[{flag:"-l",type:"value",valueHint:"number"},{flag:"-b",type:"value",valueHint:"string"},{flag:"-n",type:"value",valueHint:"number"},{flag:"-d",type:"boolean"},{flag:"-a",type:"value",valueHint:"number"}],needsFiles:!0};export{F as a,E as b};
|
||||
8
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-6NYPZ4NX.js
generated
vendored
Normal file
8
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-6NYPZ4NX.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{c as m}from"./chunk-XEKXHOPO.js";import{a as x}from"./chunk-QIQMJJZ4.js";import{a as g,b as y}from"./chunk-QAYAQNCG.js";var L={name:"paste",summary:"merge lines of files",usage:"paste [OPTION]... [FILE]...",description:["Write lines consisting of the sequentially corresponding lines from","each FILE, separated by TABs, to standard output.","","With no FILE, or when FILE is -, read standard input."],options:["-d, --delimiters=LIST reuse characters from LIST instead of TABs","-s, --serial paste one file at a time instead of in parallel"," --help display this help and exit"],examples:["paste file1 file2 Merge file1 and file2 side by side","paste -d, file1 file2 Use comma as delimiter","paste -s file1 Paste all lines of file1 on one line","paste - - < file Paste pairs of lines from file"]},T={delimiter:{short:"d",long:"delimiters",type:"string",default:" "},serial:{short:"s",long:"serial",type:"boolean"}},w={name:"paste",async execute(s,n){if(y(s))return g(L);let i=x("paste",s,T);if(!i.ok)return i.error;let l=i.result.flags.delimiter,d=i.result.flags.serial,p=i.result.positional;if(p.length===0)return{stdout:"",stderr:`usage: paste [-s] [-d delimiters] file ...
|
||||
`,exitCode:1};let c=m(n.stdin),a=c?c.split(`
|
||||
`):[""];a.length>0&&a[a.length-1]===""&&a.pop();let F=p.filter(e=>e==="-").length,f=[],h=0;for(let e of p)if(e==="-"){let t=[];for(let o=h;o<a.length;o+=F)t.push(a[o]);f.push(t),h++}else{let t=n.fs.resolvePath(n.cwd,e);try{let r=(await n.fs.readFile(t)).split(`
|
||||
`);r.length>0&&r[r.length-1]===""&&r.pop(),f.push(r)}catch{return{stdout:"",stderr:`paste: ${e}: No such file or directory
|
||||
`,exitCode:1}}}let u="";if(d)for(let e of f)e&&(u+=`${I(e,l)}
|
||||
`);else{let e=Math.max(...f.map(t=>t?.length??0));for(let t=0;t<e;t++){let o=[];for(let r of f)o.push(r?.[t]??"");u+=`${I(o,l)}
|
||||
`}}return{stdout:u,stderr:"",exitCode:0}}};function I(s,n){if(s.length===0)return"";if(s.length===1)return s[0];let i=s[0];for(let l=1;l<s.length;l++){let d=(l-1)%n.length;i+=n[d]+s[l]}return i}var E={name:"paste",flags:[{flag:"-d",type:"value",valueHint:"delimiter"},{flag:"-s",type:"boolean"}],stdinType:"text",needsFiles:!0};export{w as a,E as b};
|
||||
4
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-6SHYIICL.js
generated
vendored
Normal file
4
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-6SHYIICL.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
function n(r){let s="",e=0;for(;e<r.length;)if(r[e]==="\\"){if(e+1>=r.length){s+="\\";break}let o=r[e+1];switch(o){case"\\":s+="\\",e+=2;break;case"n":s+=`
|
||||
`,e+=2;break;case"t":s+=" ",e+=2;break;case"r":s+="\r",e+=2;break;case"a":s+="\x07",e+=2;break;case"b":s+="\b",e+=2;break;case"f":s+="\f",e+=2;break;case"v":s+="\v",e+=2;break;case"e":case"E":s+="\x1B",e+=2;break;case"c":return{output:s,stop:!0};case"0":{let a="",t=e+2;for(;t<r.length&&t<e+5&&/[0-7]/.test(r[t]);)a+=r[t],t++;if(a.length===0)s+="\0";else{let l=parseInt(a,8)%256;s+=String.fromCharCode(l)}e=t;break}case"x":{let a="",t=e+2;for(;t<r.length&&t<e+4&&/[0-9a-fA-F]/.test(r[t]);)a+=r[t],t++;if(a.length===0)s+="\\x",e+=2;else{let l=parseInt(a,16);s+=String.fromCharCode(l),e=t}break}case"u":{let a="",t=e+2;for(;t<r.length&&t<e+6&&/[0-9a-fA-F]/.test(r[t]);)a+=r[t],t++;if(a.length===0)s+="\\u",e+=2;else{let l=parseInt(a,16);s+=String.fromCodePoint(l),e=t}break}case"U":{let a="",t=e+2;for(;t<r.length&&t<e+10&&/[0-9a-fA-F]/.test(r[t]);)a+=r[t],t++;if(a.length===0)s+="\\U",e+=2;else{let l=parseInt(a,16);try{s+=String.fromCodePoint(l)}catch{s+=`\\U${a}`}e=t}break}default:s+=`\\${o}`,e+=2}}else s+=r[e],e++;return{output:s,stop:!1}}var c={name:"echo",async execute(r,s){let e=!1,o=s.xpgEcho??!1,a=0;for(;a<r.length;){let l=r[a];if(l==="-n")e=!0,a++;else if(l==="-e")o=!0,a++;else if(l==="-E")o=!1,a++;else if(l==="-ne"||l==="-en")e=!0,o=!0,a++;else break}let t=r.slice(a).join(" ");if(o){let l=n(t);if(t=l.output,l.stop)return{stdout:t,stderr:"",exitCode:0}}return e||(t+=`
|
||||
`),{stdout:t,stderr:"",exitCode:0}}},f={name:"echo",flags:[{flag:"-n",type:"boolean"},{flag:"-e",type:"boolean"},{flag:"-E",type:"boolean"}],stdinType:"none",needsArgs:!0};export{c as a,f as b};
|
||||
140
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-6Y4TGEZL.js
generated
vendored
Normal file
140
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-6Y4TGEZL.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
12
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-7AISL3XV.js
generated
vendored
Normal file
12
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-7AISL3XV.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as g}from"./chunk-QIQMJJZ4.js";import{a as D,b as $}from"./chunk-QAYAQNCG.js";var P={name:"tree",summary:"list contents of directories in a tree-like format",usage:"tree [OPTION]... [DIRECTORY]...",options:["-a include hidden files","-d list directories only","-L LEVEL limit depth of directory tree","-f print full path prefix for each file"," --help display this help and exit"]},b={showHidden:{short:"a",type:"boolean"},directoriesOnly:{short:"d",type:"boolean"},fullPath:{short:"f",type:"boolean"},maxDepth:{short:"L",type:"number"}},O={name:"tree",async execute(i,o){if($(i))return D(P);let s=g("tree",i,b);if(!s.ok)return s.error;let f={showHidden:s.result.flags.showHidden,directoriesOnly:s.result.flags.directoriesOnly,maxDepth:s.result.flags.maxDepth??null,fullPath:s.result.flags.fullPath},d=s.result.positional;d.length===0&&d.push(".");let e="",l="",a=0,n=0;for(let t of d){let r=await T(o,t,f,"",0);e+=r.output,l+=r.stderr,a+=r.dirCount,n+=r.fileCount}return e+=`
|
||||
${a} director${a===1?"y":"ies"}`,f.directoriesOnly||(e+=`, ${n} file${n===1?"":"s"}`),e+=`
|
||||
`,{stdout:e,stderr:l,exitCode:l?1:0}}};async function T(i,o,s,f,d){let e={output:"",stderr:"",dirCount:0,fileCount:0},l=i.fs.resolvePath(i.cwd,o);try{if(!(await i.fs.stat(l)).isDirectory)return e.output=`${o}
|
||||
`,e.fileCount=1,e}catch{return e.stderr=`tree: ${o}: No such file or directory
|
||||
`,e}if(e.output=`${o}
|
||||
`,s.maxDepth!==null&&d>=s.maxDepth)return e;try{let a=[];if(i.fs.readdirWithFileTypes)a=(await i.fs.readdirWithFileTypes(l)).map(r=>({name:r.name,isDirectory:r.isDirectory}));else{let t=await i.fs.readdir(l);for(let r=0;r<t.length;r+=100){let m=t.slice(r,r+100),u=await Promise.all(m.map(async c=>{let y=l==="/"?`/${c}`:`${l}/${c}`;try{let h=await i.fs.stat(y);return{name:c,isDirectory:h.isDirectory}}catch{return null}}));a.push(...u.filter(c=>c!==null))}}let n=a.filter(t=>!(!s.showHidden&&t.name.startsWith(".")||s.directoriesOnly&&!t.isDirectory));n.sort((t,r)=>t.name.localeCompare(r.name));for(let t=0;t<n.length;t++){let r=n[t],m=l==="/"?`/${r.name}`:`${l}/${r.name}`,u=t===n.length-1,c=u?"`-- ":"|-- ",y=f+(u?" ":"| ");if(r.isDirectory){e.dirCount++;let h=s.fullPath?m:r.name;if(e.output+=`${f+c+h}
|
||||
`,s.maxDepth===null||d+1<s.maxDepth){let C=await w(i,m,s,y,d+1);e.output+=C.output,e.dirCount+=C.dirCount,e.fileCount+=C.fileCount}}else{e.fileCount++;let h=s.fullPath?m:r.name;e.output+=`${f+c+h}
|
||||
`}}}catch{e.stderr=`tree: ${o}: Permission denied
|
||||
`}return e}async function w(i,o,s,f,d){let e={output:"",stderr:"",dirCount:0,fileCount:0};if(s.maxDepth!==null&&d>=s.maxDepth)return e;try{let l=[];if(i.fs.readdirWithFileTypes)l=(await i.fs.readdirWithFileTypes(o)).map(t=>({name:t.name,isDirectory:t.isDirectory}));else{let n=await i.fs.readdir(o);for(let t=0;t<n.length;t+=100){let r=n.slice(t,t+100),m=await Promise.all(r.map(async u=>{let c=o==="/"?`/${u}`:`${o}/${u}`;try{let y=await i.fs.stat(c);return{name:u,isDirectory:y.isDirectory}}catch{return null}}));l.push(...m.filter(u=>u!==null))}}let a=l.filter(n=>!(!s.showHidden&&n.name.startsWith(".")||s.directoriesOnly&&!n.isDirectory));a.sort((n,t)=>n.name.localeCompare(t.name));for(let n=0;n<a.length;n++){let t=a[n],r=o==="/"?`/${t.name}`:`${o}/${t.name}`,m=n===a.length-1,u=m?"`-- ":"|-- ",c=f+(m?" ":"| ");if(t.isDirectory){e.dirCount++;let y=s.fullPath?r:t.name;e.output+=`${f+u+y}
|
||||
`;let h=await w(i,r,s,c,d+1);e.output+=h.output,e.dirCount+=h.dirCount,e.fileCount+=h.fileCount}else{e.fileCount++;let y=s.fullPath?r:t.name;e.output+=`${f+u+y}
|
||||
`}}}catch{}return e}var L={name:"tree",flags:[{flag:"-a",type:"boolean"},{flag:"-d",type:"boolean"},{flag:"-f",type:"boolean"},{flag:"-L",type:"value",valueHint:"number"}],needsFiles:!0};export{O as a,L as b};
|
||||
33
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-7CSMHFIJ.js
generated
vendored
Normal file
33
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-7CSMHFIJ.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-7EUWTCWK.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-7EUWTCWK.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as e,b as a}from"./chunk-QAYAQNCG.js";var t={name:"clear",summary:"clear the terminal screen",usage:"clear [OPTIONS]",options:[" --help display this help and exit"]},s={name:"clear",async execute(r,c){return a(r)?e(t):{stdout:"\x1B[2J\x1B[H",stderr:"",exitCode:0}}},o={name:"clear",flags:[]};export{s as a,o as b};
|
||||
9
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-A4R2GWRF.js
generated
vendored
Normal file
9
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-A4R2GWRF.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as d}from"./chunk-DLL7UR66.js";import{a as f,b as m,c}from"./chunk-QAYAQNCG.js";var g={name:"env",summary:"run a program in a modified environment",usage:"env [OPTION]... [NAME=VALUE]... [COMMAND [ARG]...]",options:["-i, --ignore-environment start with an empty environment","-u NAME, --unset=NAME remove NAME from the environment"," --help display this help and exit"]},M={name:"env",async execute(o,i){if(m(o))return f(g);let a=!1,r=[],u=new Map,t=-1;for(let n=0;n<o.length;n++){let e=o[n];if(e==="-i"||e==="--ignore-environment")a=!0;else if(e==="-u"&&n+1<o.length)r.push(o[++n]);else if(e.startsWith("-u"))r.push(e.slice(2));else if(e.startsWith("--unset="))r.push(e.slice(8));else{if(e.startsWith("--")&&e!=="--")return c("env",e);if(e.startsWith("-")&&e!=="-"){for(let l of e.slice(1))if(l!=="i"&&l!=="u")return c("env",`-${l}`);e.includes("i")&&(a=!0)}else if(e.includes("=")&&t===-1){let l=e.indexOf("="),v=e.slice(0,l),h=e.slice(l+1);u.set(v,h)}else{t=n;break}}}let s;if(a)s=new Map(u);else{s=new Map(i.env);for(let n of r)s.delete(n);for(let[n,e]of u)s.set(n,e)}if(t===-1){let n=[];for(let[e,l]of s)n.push(`${e}=${l}`);return{stdout:n.join(`
|
||||
`)+(n.length>0?`
|
||||
`:""),stderr:"",exitCode:0}}if(!i.exec)return{stdout:"",stderr:`env: command execution not supported in this context
|
||||
`,exitCode:1};let p=o.slice(t);return i.exec("command",{cwd:i.cwd,env:d(s),replaceEnv:!0,stdin:i.stdin,stdinKind:"bytes",signal:i.signal,args:p})}},y={name:"printenv",summary:"print all or part of environment",usage:"printenv [OPTION]... [VARIABLE]...",options:[" --help display this help and exit"]},N={name:"printenv",async execute(o,i){if(m(o))return f(y);let a=o.filter(t=>!t.startsWith("-"));if(a.length===0){let t=[];for(let[s,p]of i.env)t.push(`${s}=${p}`);return{stdout:t.join(`
|
||||
`)+(t.length>0?`
|
||||
`:""),stderr:"",exitCode:0}}let r=[],u=0;for(let t of a){let s=i.env.get(t);s!==void 0?r.push(s):u=1}return{stdout:r.join(`
|
||||
`)+(r.length>0?`
|
||||
`:""),stderr:"",exitCode:u}}},C={name:"env",flags:[{flag:"-i",type:"boolean"},{flag:"-u",type:"value",valueHint:"string"}]},F={name:"printenv",flags:[]};export{M as a,N as b,C as c,F as d};
|
||||
11
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-AAGO7IQ5.js
generated
vendored
Normal file
11
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-AAGO7IQ5.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{c as g}from"./chunk-XEKXHOPO.js";import{a as b,b as m,c as v}from"./chunk-QAYAQNCG.js";var L={name:"unexpand",summary:"convert spaces to tabs",usage:"unexpand [OPTION]... [FILE]...",description:"Convert blanks in each FILE to TABs, writing to standard output. If no FILE is specified, standard input is read.",options:["-t N Use N spaces per tab (default: 8)","-t LIST Use comma-separated list of tab stops","-a Convert all sequences of blanks (not just leading)"],examples:["unexpand file.txt # Convert leading spaces to tabs","unexpand -a file.txt # Convert all space sequences","unexpand -t 4 file.txt # Use 4-space tabs"]};function f(s){let i=s.split(",").map(o=>o.trim()),e=[];for(let o of i){let n=parseInt(o,10);if(Number.isNaN(n)||n<1)return null;e.push(n)}for(let o=1;o<e.length;o++)if(e[o]<=e[o-1])return null;return e}function C(s,i){if(i.length===1){let e=i[0];return s+(e-s%e)}for(let e of i)if(e>s)return e;if(i.length>=2){let e=i[i.length-1]-i[i.length-2],o=i[i.length-1],n=Math.floor((s-o)/e)+1;return o+n*e}return-1}function N(s,i){let{tabStops:e,allBlanks:o}=i,n="",a=0,t="",l=0,u=!0,d=()=>{if(t.length===0)return;let r=l+t.length;if(!o&&!u){n+=t,t="";return}let p=l,c="";for(;p<r;){let h=C(p,e);if(h<=r&&h>p)c+=" ",p=h;else break}let x=r-p;x>0&&(c+=" ".repeat(x)),n+=c,t=""};for(let r of s)r===" "?(t.length===0&&(l=a),t+=r,a++):r===" "?(d(),n+=r,a=C(a,e)):(d(),n+=r,a++,u=!1);return d(),n}function k(s,i){if(s==="")return"";let e=s.split(`
|
||||
`),o=s.endsWith(`
|
||||
`)&&e[e.length-1]==="";return o&&e.pop(),e.map(a=>N(a,i)).join(`
|
||||
`)+(o?`
|
||||
`:"")}var I={name:"unexpand",execute:async(s,i)=>{if(m(s))return b(L);let e={tabStops:[8],allBlanks:!1},o=[],n=0;for(;n<s.length;){let t=s[n];if(t==="-t"&&n+1<s.length){let l=f(s[n+1]);if(!l)return{exitCode:1,stdout:"",stderr:`unexpand: invalid tab size: '${s[n+1]}'
|
||||
`};e.tabStops=l,n+=2}else if(t.startsWith("-t")&&t.length>2){let l=f(t.slice(2));if(!l)return{exitCode:1,stdout:"",stderr:`unexpand: invalid tab size: '${t.slice(2)}'
|
||||
`};e.tabStops=l,n++}else if(t==="--tabs"&&n+1<s.length){let l=f(s[n+1]);if(!l)return{exitCode:1,stdout:"",stderr:`unexpand: invalid tab size: '${s[n+1]}'
|
||||
`};e.tabStops=l,n+=2}else if(t.startsWith("--tabs=")){let l=f(t.slice(7));if(!l)return{exitCode:1,stdout:"",stderr:`unexpand: invalid tab size: '${t.slice(7)}'
|
||||
`};e.tabStops=l,n++}else if(t==="-a"||t==="--all")e.allBlanks=!0,n++;else if(t==="--"){o.push(...s.slice(n+1));break}else{if(t.startsWith("-")&&t!=="-")return v("unexpand",t);o.push(t),n++}}let a="";if(o.length===0){let t=g(i.stdin)??"";a=k(t,e)}else for(let t of o){let l=i.fs.resolvePath(i.cwd,t),u=await i.fs.readFile(l);if(u===null)return{exitCode:1,stdout:a,stderr:`unexpand: ${t}: No such file or directory
|
||||
`};a+=k(u,e)}return{exitCode:0,stdout:a,stderr:""}}},T={name:"unexpand",flags:[{flag:"-t",type:"value",valueHint:"number"},{flag:"-a",type:"boolean"}],stdinType:"text",needsFiles:!0};export{I as a,T as b};
|
||||
11
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-AX2X3SZS.js
generated
vendored
Normal file
11
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-AX2X3SZS.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-AXMYAPFA.js
generated
vendored
Normal file
9
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-AXMYAPFA.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{c as U}from"./chunk-XEKXHOPO.js";import{a as $,b as F,c as k}from"./chunk-QAYAQNCG.js";var L=new Map([["sha1","SHA-1"],["sha256","SHA-256"]]);function D(n){function h(r,u){return r<<u|r>>>32-u}let g=new Uint32Array([3614090360,3905402710,606105819,3250441966,4118548399,1200080426,2821735955,4249261313,1770035416,2336552879,4294925233,2304563134,1804603682,4254626195,2792965006,1236535329,4129170786,3225465664,643717713,3921069994,3593408605,38016083,3634488961,3889429448,568446438,3275163606,4107603335,1163531501,2850285829,4243563512,1735328473,2368359562,4294588738,2272392833,1839030562,4259657740,2763975236,1272893353,4139469664,3200236656,681279174,3936430074,3572445317,76029189,3654602809,3873151461,530742520,3299628645,4096336452,1126891415,2878612391,4237533241,1700485571,2399980690,4293915773,2240044497,1873313359,4264355552,2734768916,1309151649,4149444226,3174756917,718787259,3951481745]),A=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],b=n.length*8,c=(n.length%64<56?56:120)-n.length%64,s=new Uint8Array(n.length+c+8);s.set(n),s[n.length]=128;let d=new DataView(s.buffer);d.setUint32(s.length-8,b>>>0,!0),d.setUint32(s.length-4,Math.floor(b/4294967296),!0);let w=1732584193,l=4023233417,p=2562383102,e=271733878;for(let r=0;r<s.length;r+=64){let u=new Uint32Array(16);for(let t=0;t<16;t++)u[t]=d.getUint32(r+t*4,!0);let m=w,a=l,x=p,o=e;for(let t=0;t<64;t++){let i,y;t<16?(i=a&x|~a&o,y=t):t<32?(i=o&a|~o&x,y=(5*t+1)%16):t<48?(i=a^x^o,y=(3*t+5)%16):(i=x^(a|~o),y=7*t%16),i=i+m+g[t]+u[y]>>>0,m=o,o=x,x=a,a=a+h(i,A[t])>>>0}w=w+m>>>0,l=l+a>>>0,p=p+x>>>0,e=e+o>>>0}let f=new Uint8Array(16);return new DataView(f.buffer).setUint32(0,w,!0),new DataView(f.buffer).setUint32(4,l,!0),new DataView(f.buffer).setUint32(8,p,!0),new DataView(f.buffer).setUint32(12,e,!0),Array.from(f).map(r=>r.toString(16).padStart(2,"0")).join("")}async function C(n,h){if(n==="md5")return D(h);let g=L.get(n);if(!g)throw new Error(`Unknown algorithm: ${n}`);let A=await globalThis.crypto.subtle.digest(g,new Uint8Array(h).buffer);return Array.from(new Uint8Array(A)).map(b=>b.toString(16).padStart(2,"0")).join("")}function I(n,h,g){let A={name:n,summary:g,usage:`${n} [OPTION]... [FILE]...`,options:["-c, --check read checksums from FILEs and check them"," --help display this help and exit"]};return{name:n,async execute(b,c){if(F(b))return $(A);let s=!1,d=[];for(let e of b)if(e==="-c"||e==="--check")s=!0;else if(!(e==="-b"||e==="-t"||e==="--binary"||e==="--text")){if(e.startsWith("-")&&e!=="-")return k(n,e);d.push(e)}d.length===0&&d.push("-");let w=async e=>{if(e==="-")return Uint8Array.from(c.stdin,f=>f.charCodeAt(0));try{return await c.fs.readFileBuffer(c.fs.resolvePath(c.cwd,e))}catch{return null}};if(s){let e=0,f="";for(let r of d){let u=r==="-"?U(c.stdin):await c.fs.readFile(c.fs.resolvePath(c.cwd,r)).catch(()=>null);if(u===null)return{stdout:"",stderr:`${n}: ${r}: No such file or directory
|
||||
`,exitCode:1};for(let m of u.split(`
|
||||
`)){let a=m.match(/^([a-fA-F0-9]+)\s+[* ]?(.+)$/);if(!a)continue;let[,x,o]=a,t=await w(o);if(t===null){f+=`${o}: FAILED open or read
|
||||
`,e++;continue}let i=await C(h,t)===x.toLowerCase();f+=`${o}: ${i?"OK":"FAILED"}
|
||||
`,i||e++}}return e>0&&(f+=`${n}: WARNING: ${e} computed checksum${e>1?"s":""} did NOT match
|
||||
`),{stdout:f,stderr:"",exitCode:e>0?1:0}}let l="",p=0;for(let e of d){let f=await w(e);if(f===null){l+=`${n}: ${e}: No such file or directory
|
||||
`,p=1;continue}l+=`${await C(h,f)} ${e}
|
||||
`}return{stdout:l,stderr:"",exitCode:p}}}}export{I as a};
|
||||
4
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-BU36VZYL.js
generated
vendored
Normal file
4
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-BU36VZYL.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as p}from"./chunk-RBQG6ZUG.js";import{a as g,b as y,c as h}from"./chunk-QAYAQNCG.js";var w={name:"date",summary:"display the current time in the given FORMAT",usage:"date [OPTION]... [+FORMAT]",options:["-d, --date=STRING display time described by STRING, not 'now'","-u, --utc print Coordinated Universal Time (UTC)","-I, --iso-8601 output date/time in ISO 8601 format","-R, --rfc-email output RFC 5322 date format"," --help display this help and exit"]};function $(t){try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),!0}catch{return!1}}function D(t,s){let r=new Intl.DateTimeFormat("en-US",{timeZone:s,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(t),n=d=>r.find(o=>o.type===d)?.value??"00",i=Number.parseInt(n("hour"),10)%24,l=new Date(`${n("year")}-${n("month")}-${n("day")}T${String(i).padStart(2,"0")}:${n("minute")}:${n("second")}Z`);return Number.isNaN(l.getTime())?null:l}function I(t,s){let r=t.match(/^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2}))?)?$/);if(!r)return null;let[,n,i,l,d="00",o="00",m="00"]=r,c=new Date(`${n}-${i}-${l}T${d}:${o}:${m}Z`);if(Number.isNaN(c.getTime()))return null;try{let a=c;for(let u=0;u<3;u++){let f=D(a,s);if(f===null)return null;let e=f.getTime()-c.getTime();if(e===0)return a;a=new Date(a.getTime()-e)}return a}catch{return null}}function N(t,s){if(t.startsWith("@")){let i=t.slice(1);return/^-?\d+$/.test(i)?new Date(Number.parseInt(i,10)*1e3):null}let r=t.toLowerCase().trim();if(r==="now"||r==="today")return new Date;if(r==="yesterday")return new Date(Date.now()-864e5);if(r==="tomorrow")return new Date(Date.now()+864e5);if(s&&!/Z$/i.test(t)&&!/[+-]\d{2}:?\d{2}$/.test(t)){let i=I(t,s);if(i)return i}let n=new Date(t);return Number.isNaN(n.getTime())?null:n}var C={name:"date",async execute(t,s){if(y(t))return g(w);let r=!1,n=null,i=null,l=!1,d=!1;for(let f=0;f<t.length;f++){let e=t[f];if(e==="-u"||e==="--utc")r=!0;else if(e==="-d"||e==="--date")n=t[++f]??"";else if(e.startsWith("--date="))n=e.slice(7);else if(e==="-I"||e==="--iso-8601")l=!0;else if(e==="-R"||e==="--rfc-email")d=!0;else if(e.startsWith("+"))i=e.slice(1);else{if(e.startsWith("--"))return h("date",e);if(e.startsWith("-"))for(let T of e.slice(1))if(T==="u")r=!0;else if(T==="I")l=!0;else if(T==="R")d=!0;else return h("date",`-${T}`)}}let o=s.env.get("TZ");o&&!$(o)&&(o=void 0);let m=r?"UTC":o??"UTC",c=n!==null?N(n,o):new Date;if(!c)return{stdout:"",stderr:`date: invalid date '${n}'
|
||||
`,exitCode:1};let a=Math.floor(c.getTime()/1e3),u;return i?u=p(i,a,m):l?u=p("%Y-%m-%dT%H:%M:%S%z",a,m):d?u=p("%a, %d %b %Y %H:%M:%S %z",a,m):u=p("%a %b %e %H:%M:%S %Z %Y",a,m),{stdout:`${u}
|
||||
`,stderr:"",exitCode:0}}},R={name:"date",flags:[{flag:"-d",type:"value",valueHint:"string"},{flag:"-u",type:"boolean"},{flag:"-I",type:"boolean"},{flag:"-R",type:"boolean"}]};export{C as a,R as b};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-BZUGFHVS.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-BZUGFHVS.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
var h=Object.create;var e=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var m=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>(a&&(b=a(a=0)),b);var o=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),p=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0})},g=(a,b,c,f)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of j(b))!l.call(a,d)&&d!==c&&e(a,d,{get:()=>b[d],enumerable:!(f=i(b,d))||f.enumerable});return a};var q=(a,b,c)=>(c=a!=null?h(k(a)):{},g(b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c,a)),r=a=>g(e({},"__esModule",{value:!0}),a);export{m as a,n as b,o as c,p as d,q as e,r as f};
|
||||
7
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-CJFAMHFC.js
generated
vendored
Normal file
7
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-CJFAMHFC.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{c as a}from"./chunk-XEKXHOPO.js";import{a as c}from"./chunk-QIQMJJZ4.js";import{a as u,b as p}from"./chunk-QAYAQNCG.js";import*as g from"diff";var b={name:"diff",summary:"compare files line by line",usage:"diff [OPTION]... FILE1 FILE2",options:["-u, --unified output unified diff format (default)","-q, --brief report only whether files differ","-s, --report-identical-files report when files are the same","-i, --ignore-case ignore case differences"," --help display this help and exit"]},C={unified:{short:"u",long:"unified",type:"boolean"},brief:{short:"q",long:"brief",type:"boolean"},reportSame:{short:"s",long:"report-identical-files",type:"boolean"},ignoreCase:{short:"i",long:"ignore-case",type:"boolean"}},L={name:"diff",async execute(d,e){if(p(d))return u(b);let t=c("diff",d,C);if(!t.ok)return t.error;let m=t.result.flags.brief,h=t.result.flags.reportSame,y=t.result.flags.ignoreCase,l=t.result.positional;if(t.result.flags.unified,l.length<2)return{stdout:"",stderr:`diff: missing operand
|
||||
`,exitCode:2};let i,s,[r,o]=l;try{i=r==="-"?a(e.stdin):await e.fs.readFile(e.fs.resolvePath(e.cwd,r))}catch{return{stdout:"",stderr:`diff: ${r}: No such file or directory
|
||||
`,exitCode:2}}try{s=o==="-"?a(e.stdin):await e.fs.readFile(e.fs.resolvePath(e.cwd,o))}catch{return{stdout:"",stderr:`diff: ${o}: No such file or directory
|
||||
`,exitCode:2}}let f=i,n=s;return y&&(f=f.toLowerCase(),n=n.toLowerCase()),f===n?h?{stdout:`Files ${r} and ${o} are identical
|
||||
`,stderr:"",exitCode:0}:{stdout:"",stderr:"",exitCode:0}:m?{stdout:`Files ${r} and ${o} differ
|
||||
`,stderr:"",exitCode:1}:{stdout:g.createTwoFilesPatch(r,o,i,s,"","",{context:3}),stderr:"",exitCode:1}}},P={name:"diff",flags:[{flag:"-u",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-i",type:"boolean"}],needsArgs:!0,minArgs:2};export{L as a,P as b};
|
||||
6
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-CN5XGDNN.js
generated
vendored
Normal file
6
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-CN5XGDNN.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as l}from"./chunk-QIQMJJZ4.js";import{a as u,b as c}from"./chunk-QAYAQNCG.js";var b={name:"base64",summary:"base64 encode/decode data and print to standard output",usage:"base64 [OPTION]... [FILE]",options:["-d, --decode decode data","-w, --wrap=COLS wrap encoded lines after COLS character (default 76, 0 to disable)"," --help display this help and exit"]},m={decode:{short:"d",long:"decode",type:"boolean"},wrap:{short:"w",long:"wrap",type:"number",default:76}};async function p(r,o,n){if(o.length===0||o.length===1&&o[0]==="-")return{ok:!0,data:Uint8Array.from(r.stdin,e=>e.charCodeAt(0))};let d=[];for(let e of o){if(e==="-"){d.push(Uint8Array.from(r.stdin,t=>t.charCodeAt(0)));continue}try{let t=r.fs.resolvePath(r.cwd,e),s=await r.fs.readFileBuffer(t);d.push(s)}catch{return{ok:!1,error:{stdout:"",stderr:`${n}: ${e}: No such file or directory
|
||||
`,exitCode:1}}}}let f=d.reduce((e,t)=>e+t.length,0),i=new Uint8Array(f),a=0;for(let e of d)i.set(e,a),a+=e.length;return{ok:!0,data:i}}var x={name:"base64",async execute(r,o){if(c(r))return u(b);let n=l("base64",r,m);if(!n.ok)return n.error;let d=n.result.flags.decode,f=n.result.flags.wrap,i=n.result.positional;try{if(d){let t=await p(o,i,"base64");if(!t.ok)return t.error;if(typeof Buffer<"u"){let g=Buffer.from(t.data).toString("utf8").replace(/\s/g,"");return{stdout:Buffer.from(g,"base64").toString("latin1"),stderr:"",exitCode:0,stdoutEncoding:"binary"}}let h=String.fromCharCode(...t.data).replace(/\s/g,"");return{stdout:atob(h),stderr:"",exitCode:0,stdoutEncoding:"binary"}}let a=await p(o,i,"base64");if(!a.ok)return a.error;let e;if(typeof Buffer<"u"?e=Buffer.from(a.data).toString("base64"):e=btoa(String.fromCharCode(...a.data)),f>0){let t=[];for(let s=0;s<e.length;s+=f)t.push(e.slice(s,s+f));e=t.join(`
|
||||
`)+(e.length>0?`
|
||||
`:"")}return{stdout:e,stderr:"",exitCode:0}}catch{return{stdout:"",stderr:`base64: invalid input
|
||||
`,exitCode:1}}}},v={name:"base64",flags:[{flag:"-d",type:"boolean"},{flag:"-w",type:"value",valueHint:"number"}],stdinType:"text",needsFiles:!0};export{x as a,v as b};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-CQV3EITV.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-CQV3EITV.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as m}from"./chunk-AXMYAPFA.js";var s=m("md5sum","md5","compute MD5 message digest"),o={name:"md5sum",flags:[{flag:"-c",type:"boolean"}],needsFiles:!0};export{s as a,o as b};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-DLL7UR66.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-DLL7UR66.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
function r(e){return Object.assign(Object.create(null),Object.fromEntries(e))}function n(e,t){return Object.assign(Object.create(null),Object.fromEntries(e),t)}function c(...e){return Object.assign(Object.create(null),...e)}export{r as a,n as b,c};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-DVJY2RAX.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-DVJY2RAX.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as s}from"./chunk-AXMYAPFA.js";var a=s("sha1sum","sha1","compute SHA1 message digest"),m={name:"sha1sum",flags:[{flag:"-c",type:"boolean"}],needsFiles:!0};export{a,m as b};
|
||||
7
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-FHC24QSK.js
generated
vendored
Normal file
7
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-FHC24QSK.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as r,b as u}from"./chunk-QAYAQNCG.js";var d={name:"alias",summary:"define or display aliases",usage:"alias [name[=value] ...]",options:[" --help display this help and exit"]},o="BASH_ALIAS_",m={name:"alias",async execute(e,a){if(u(e))return r(d);if(e.length===0){let s="";for(let[i,t]of a.env)if(i.startsWith(o)){let n=i.slice(o.length);s+=`alias ${n}='${t}'
|
||||
`}return{stdout:s,stderr:"",exitCode:0}}let l=e[0]==="--"?e.slice(1):e;for(let s of l){let i=s.indexOf("=");if(i===-1){let t=o+s;return a.env.get(t)?{stdout:`alias ${s}='${a.env.get(t)}'
|
||||
`,stderr:"",exitCode:0}:{stdout:"",stderr:`alias: ${s}: not found
|
||||
`,exitCode:1}}else{let t=s.slice(0,i),n=s.slice(i+1);(n.startsWith("'")&&n.endsWith("'")||n.startsWith('"')&&n.endsWith('"'))&&(n=n.slice(1,-1)),a.env.set(o+t,n)}}return{stdout:"",stderr:"",exitCode:0}}},c={name:"unalias",async execute(e,a){if(u(e))return r({name:"unalias",summary:"remove alias definitions",usage:"unalias name [name ...]",options:["-a remove all aliases"," --help display this help and exit"]});if(e.length===0)return{stdout:"",stderr:`unalias: usage: unalias [-a] name [name ...]
|
||||
`,exitCode:1};if(e[0]==="-a"){for(let t of a.env.keys())t.startsWith(o)&&a.env.delete(t);return{stdout:"",stderr:"",exitCode:0}}let l=e[0]==="--"?e.slice(1):e,s=!1,i="";for(let t of l){let n=o+t;a.env.get(n)?a.env.delete(n):(i+=`unalias: ${t}: not found
|
||||
`,s=!0)}return{stdout:"",stderr:i,exitCode:s?1:0}}},p={name:"alias",flags:[]},h={name:"unalias",flags:[{flag:"-a",type:"boolean"}]};export{m as a,c as b,p as c,h as d};
|
||||
5
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-FLMHFDSN.js
generated
vendored
Normal file
5
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-FLMHFDSN.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a}from"./chunk-7CSMHFIJ.js";import{a as d}from"./chunk-FOCWZZDE.js";var S={name:"expr",async execute(s,r){if(s.length===0)return{stdout:"",stderr:`expr: missing operand
|
||||
`,exitCode:2};try{let c=x(s),h=c==="0"||c===""?1:0;return{stdout:`${c}
|
||||
`,stderr:"",exitCode:h}}catch(c){return{stdout:"",stderr:`expr: ${d(c.message)}
|
||||
`,exitCode:2}}}};function x(s){if(s.length===1)return s[0];let r=0;function c(){let e=h();for(;r<s.length&&s[r]==="|";){r++;let t=h();if(e!=="0"&&e!=="")return e;e=t}return e}function h(){let e=m();for(;r<s.length&&s[r]==="&";){r++;let t=m();(e==="0"||e===""||t==="0"||t==="")&&(e="0")}return e}function m(){let e=g();for(;r<s.length;){let t=s[r];if(["=","!=","<",">","<=",">="].includes(t)){r++;let o=g(),n=parseInt(e,10),i=parseInt(o,10),f=!Number.isNaN(n)&&!Number.isNaN(i),l;t==="="?l=f?n===i:e===o:t==="!="?l=f?n!==i:e!==o:t==="<"?l=f?n<i:e<o:t===">"?l=f?n>i:e>o:t==="<="?l=f?n<=i:e<=o:l=f?n>=i:e>=o,e=l?"1":"0"}else break}return e}function g(){let e=p();for(;r<s.length;){let t=s[r];if(t==="+"||t==="-"){r++;let o=p(),n=parseInt(e,10),i=parseInt(o,10);if(Number.isNaN(n)||Number.isNaN(i))throw new Error("non-integer argument");e=String(t==="+"?n+i:n-i)}else break}return e}function p(){let e=N();for(;r<s.length;){let t=s[r];if(t==="*"||t==="/"||t==="%"){r++;let o=N(),n=parseInt(e,10),i=parseInt(o,10);if(Number.isNaN(n)||Number.isNaN(i))throw new Error("non-integer argument");if((t==="/"||t==="%")&&i===0)throw new Error("division by zero");t==="*"?e=String(n*i):t==="/"?e=String(Math.trunc(n/i)):e=String(n%i)}else break}return e}function N(){let e=u();for(;r<s.length&&s[r]===":";){r++;let t=u(),n=a(`^${t}`).match(e);n?e=n[1]!==void 0?n[1]:String(n[0].length):e="0"}return e}function u(){if(r>=s.length)throw new Error("syntax error");let e=s[r];if(e==="match"){r++;let t=u(),o=u(),i=a(o).match(t);return i?i[1]!==void 0?i[1]:String(i[0].length):"0"}if(e==="substr"){r++;let t=u(),o=parseInt(u(),10),n=parseInt(u(),10);if(Number.isNaN(o)||Number.isNaN(n))throw new Error("non-integer argument");return t.substring(o-1,o-1+n)}if(e==="index"){r++;let t=u(),o=u();for(let n=0;n<t.length;n++)if(o.includes(t[n]))return String(n+1);return"0"}if(e==="length"){r++;let t=u();return String(t.length)}if(e==="("){r++;let t=c();if(r>=s.length||s[r]!==")")throw new Error("syntax error");return r++,t}return r++,e}return c()}var E={name:"expr",flags:[],needsArgs:!0};export{S as a,E as b};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-FOCWZZDE.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-FOCWZZDE.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
function a(r,s,t){if(!r)return r;let e=r.replace(/\n\s+at\s.*/g,"");return t&&(e=e.replace(/\bfile:\/\/\/?[^\s'",)}\]:]+/g,"<path>")),e=e.replace(s?/(?:\/(?:Users|home|private|var|opt|Library|System|usr|etc|tmp|nix|snap|workspace|root|srv|mnt|app))\b[^\s'",)}\]:]*/g:/(?:\/(?:Users|home|private|var|opt|Library|System|usr|etc|tmp|nix|snap))\b[^\s'",)}\]:]*/g,"<path>"),e=e.replace(/node:internal\/[^\s'",)}\]:]+/g,"<internal>"),e=e.replace(/[A-Z]:\\[^\s'",)}\]:]+/g,"<path>"),t&&(e=e.replace(/\\\\[^\s\\]+\\[^\s'",)}\]:]+/g,"<path>")),e}function n(r){return a(r,!1,!1)}function i(r){return a(r,!0,!0)}export{n as a,i as b};
|
||||
5
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-FX4RBUYU.js
generated
vendored
Normal file
5
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-FX4RBUYU.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as o,b as i}from"./chunk-QAYAQNCG.js";var m={name:"dirname",summary:"strip last component from file name",usage:"dirname [OPTION] NAME...",options:[" --help display this help and exit"]},p={name:"dirname",async execute(t,l){if(i(t))return o(m);let r=t.filter(n=>!n.startsWith("-"));if(r.length===0)return{stdout:"",stderr:`dirname: missing operand
|
||||
`,exitCode:1};let e=[];for(let n of r){let a=n.replace(/\/+$/,""),s=a.lastIndexOf("/");s===-1?e.push("."):s===0?e.push("/"):e.push(a.slice(0,s))}return{stdout:`${e.join(`
|
||||
`)}
|
||||
`,stderr:"",exitCode:0}}},c={name:"dirname",flags:[],needsArgs:!0};export{p as a,c as b};
|
||||
7
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-FZRQOL3C.js
generated
vendored
Normal file
7
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-FZRQOL3C.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as m}from"./chunk-W5DWRFSU.js";import{c}from"./chunk-QAYAQNCG.js";function h(s){let a=s.replace(/\//g,"-"),r=new Date(a);if(!Number.isNaN(r.getTime()))return r;let i=a.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(i){let[,o,l,f]=i;if(r=new Date(Number.parseInt(o,10),Number.parseInt(l,10)-1,Number.parseInt(f,10)),!Number.isNaN(r.getTime()))return r}let u=a.match(/^(\d{4})-(\d{2})-(\d{2})\s+(\d{2}):(\d{2}):(\d{2})$/);if(u){let[,o,l,f,t,e,d]=u;if(r=new Date(Number.parseInt(o,10),Number.parseInt(l,10)-1,Number.parseInt(f,10),Number.parseInt(t,10),Number.parseInt(e,10),Number.parseInt(d,10)),!Number.isNaN(r.getTime()))return r}return null}var N={name:"touch",async execute(s,a){let r=[],i=null,u=!1;for(let t=0;t<s.length;t++){let e=s[t];if(e==="--"){r.push(...s.slice(t+1));break}else if(e==="-d"||e==="--date"){if(t+1>=s.length)return{stdout:"",stderr:`touch: option requires an argument -- 'd'
|
||||
`,exitCode:1};i=s[++t]}else if(e.startsWith("--date="))i=e.slice(7);else if(e==="-c"||e==="--no-create")u=!0;else if(e==="-a"||e==="-m"||e==="-r"||e==="-t")(e==="-r"||e==="-t")&&t++;else{if(e.startsWith("--"))return c("touch",e);if(e.startsWith("-")&&e.length>1){let d=!1;for(let n of e.slice(1))if(n==="c")u=!0;else if(!(n==="a"||n==="m"))if(n==="d"){if(t+1>=s.length)return{stdout:"",stderr:`touch: option requires an argument -- 'd'
|
||||
`,exitCode:1};i=s[++t],d=!0;break}else if(n==="r"||n==="t"){t++,d=!0;break}else return c("touch",`-${n}`);if(d)continue}else r.push(e)}}if(r.length===0)return{stdout:"",stderr:`touch: missing file operand
|
||||
`,exitCode:1};let o=null;if(i!==null&&(o=h(i),o===null))return{stdout:"",stderr:`touch: invalid date format '${i}'
|
||||
`,exitCode:1};let l="",f=0;for(let t of r)try{let e=a.fs.resolvePath(a.cwd,t);if(!await a.fs.exists(e)){if(u)continue;await a.fs.writeFile(e,"")}let n=o??new Date;await a.fs.utimes(e,n,n)}catch(e){l+=`touch: cannot touch '${t}': ${m(e)}
|
||||
`,f=1}return{stdout:"",stderr:l,exitCode:f}}},b={name:"touch",flags:[{flag:"-c",type:"boolean"},{flag:"-a",type:"boolean"},{flag:"-m",type:"boolean"},{flag:"-d",type:"value",valueHint:"string"}],needsArgs:!0};export{N as a,b};
|
||||
10
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-GE6OQDB2.js
generated
vendored
Normal file
10
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-GE6OQDB2.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as x}from"./chunk-QAJKDPNS.js";import{a as D,b as ee}from"./chunk-KSBHIW2H.js";import{c as K}from"./chunk-XEKXHOPO.js";import{a as V,b as Y,c as z}from"./chunk-QAYAQNCG.js";var le={name:"grep",summary:"print lines that match patterns",usage:"grep [OPTION]... PATTERN [FILE]...",options:["-E, --extended-regexp PATTERN is an extended regular expression","-P, --perl-regexp PATTERN is a Perl regular expression","-F, --fixed-strings PATTERN is a set of newline-separated strings","-i, --ignore-case ignore case distinctions","-v, --invert-match select non-matching lines","-w, --word-regexp match only whole words","-x, --line-regexp match only whole lines","-c, --count print only a count of matching lines","-l, --files-with-matches print only names of files with matches","-L, --files-without-match print names of files with no matches","-m NUM, --max-count=NUM stop after NUM matches","-n, --line-number print line number with output lines","-h, --no-filename suppress the file name prefix on output","-o, --only-matching show only nonempty parts of lines that match","-q, --quiet, --silent suppress all normal output","-r, -R, --recursive search directories recursively","-A NUM print NUM lines of trailing context","-B NUM print NUM lines of leading context","-C NUM print NUM lines of context","-e PATTERN use PATTERN for matching"," --include=GLOB search only files matching GLOB"," --exclude=GLOB skip files matching GLOB"," --exclude-dir=DIR skip directories matching DIR"," --help display this help and exit"]},te={name:"grep",async execute(t,s){if(Y(t))return V(le);let l=!1,f=!1,u=!1,p=!1,m=!1,a=!1,n=!1,c=!1,y=!1,w=!1,h=!1,d=!1,F=!1,C=!1,I=!1,W=0,P=0,T=0,A=[],E=[],U=[],R=null,H=[];for(let r=0;r<t.length;r++){let i=t[r];if(i.startsWith("-")&&i!=="-"){if(i==="-e"&&r+1<t.length){R=t[++r];continue}if(i.startsWith("--include=")){A.push(i.slice(10));continue}if(i.startsWith("--exclude=")){E.push(i.slice(10));continue}if(i.startsWith("--exclude-dir=")){U.push(i.slice(14));continue}if(i.startsWith("--max-count=")){W=parseInt(i.slice(12),10);continue}let b=i.match(/^-m(\d+)$/);if(b){W=parseInt(b[1],10);continue}if(i==="-m"&&r+1<t.length){W=parseInt(t[++r],10);continue}let o=i.match(/^-([ABC])(\d+)$/);if(o){let e=parseInt(o[2],10);o[1]==="A"?T=e:o[1]==="B"?P=e:o[1]==="C"&&(P=e,T=e);continue}if((i==="-A"||i==="-B"||i==="-C")&&r+1<t.length){let e=parseInt(t[++r],10);i==="-A"?T=e:i==="-B"?P=e:(P=e,T=e);continue}let g=i.startsWith("--")?[i]:i.slice(1).split("");for(let e of g)if(e==="i"||e==="--ignore-case")l=!0;else if(e==="n"||e==="--line-number")f=!0;else if(e==="v"||e==="--invert-match")u=!0;else if(e==="c"||e==="--count")p=!0;else if(e==="l"||e==="--files-with-matches")m=!0;else if(e==="L"||e==="--files-without-match")a=!0;else if(e==="r"||e==="R"||e==="--recursive")n=!0;else if(e==="w"||e==="--word-regexp")c=!0;else if(e==="x"||e==="--line-regexp")y=!0;else if(e==="E"||e==="--extended-regexp")w=!0;else if(e==="P"||e==="--perl-regexp")h=!0;else if(e==="F"||e==="--fixed-strings")d=!0;else if(e==="o"||e==="--only-matching")F=!0;else if(e==="h"||e==="--no-filename")C=!0;else if(e==="q"||e==="--quiet"||e==="--silent")I=!0;else{if(e.startsWith("--"))return z("grep",e);if(e.length===1)return z("grep",`-${e}`)}}else R===null?R=i:H.push(i)}if(R===null)return{stdout:"",stderr:`grep: missing pattern
|
||||
`,exitCode:2};let ie=d?"fixed":w?"extended":h?"perl":"basic",O,Q,$;try{let r=ee(R,{mode:ie,ignoreCase:l,wholeWord:c,lineRegexp:y});O=r.regex,Q=r.kResetGroup,$=r.preFilter}catch{return{stdout:"",stderr:`grep: invalid regular expression: ${R}
|
||||
`,exitCode:2}}if(H.length===0&&s.stdin!==void 0){let r=D(K(s.stdin),O,{invertMatch:u,showLineNumbers:f,countOnly:p,filename:"",onlyMatching:F,beforeContext:P,afterContext:T,maxCount:W,kResetGroup:Q,preFilter:$});return I?{stdout:"",stderr:"",exitCode:r.matched?0:1}:{stdout:r.output,stderr:"",exitCode:r.matched?0:1}}if(H.length===0)return{stdout:"",stderr:`grep: no input files
|
||||
`,exitCode:2};let M="",k="",_=!1,X=!1,v=[];for(let r of H)if(r.includes("*")||r.includes("?")||r.includes("[")){let i=await oe(r,s);if(n)for(let b of i){let o=await L(b.path,s,A,E,U,b.isFile);v.push(...o)}else v.push(...i)}else if(n){let i=await L(r,s,A,E,U);v.push(...i)}else v.push({path:r});let Z=(v.length>1||n)&&!C,j=50;for(let r=0;r<v.length;r+=j){let i=v.slice(r,r+j),b=await Promise.all(i.map(async o=>{let g=o.path,e=g.split("/").pop()||g;if(E.length>0&&!n&&E.some(N=>x(e,N,{stripQuotes:!0}))||A.length>0&&!n&&!A.some(N=>x(e,N,{stripQuotes:!0})))return null;try{let N=s.fs.resolvePath(s.cwd,g),G=!1;if(o.isFile===void 0?G=(await s.fs.stat(N)).isDirectory:G=!o.isFile,G)return n?null:{error:`grep: ${g}: Is a directory
|
||||
`};let S=await s.fs.readFile(N);if($&&!u){let J=$.ignoreCase?S.toLowerCase():S;if(!$.needles.some(q=>J.includes(q))){if(p){let q=Z?`${g}:0`:"0";return{file:g,result:{output:`${q}
|
||||
`,matched:!1,matchCount:0}}}return{file:g,result:{output:"",matched:!1,matchCount:0}}}}let re=D(S,O,{invertMatch:u,showLineNumbers:f,countOnly:p,filename:Z?g:"",onlyMatching:F,beforeContext:P,afterContext:T,maxCount:W,kResetGroup:Q,preFilter:$});return{file:g,result:re}}catch{return{error:`grep: ${g}: No such file or directory
|
||||
`}}}));for(let o of b){if(o===null)continue;if("error"in o&&o.error){k+=o.error,o.error.includes("Is a directory")||(X=!0);continue}if(!("file"in o)||!o.result)continue;let{file:g,result:e}=o;if(e.matched){if(_=!0,I)return{stdout:"",stderr:"",exitCode:0};m?M+=`${g}
|
||||
`:a||(M+=e.output)}else a?M+=`${g}
|
||||
`:p&&!m&&(M+=e.output)}}let B;return X?B=2:a?B=M.length>0?0:1:B=_?0:1,I?{stdout:"",stderr:"",exitCode:B}:{stdout:M,stderr:k,exitCode:B}}},se=256;async function ne(t,s,l,f,u=0){if(u>=se)return;let p=l.fs.resolvePath(l.cwd,t);try{if(!(await l.fs.stat(p)).isDirectory){let n=t.split("/").pop()||"";if(s){let c=s.replace(/^\//,"");x(n,c,{stripQuotes:!0})&&f.push(t)}return}let a=await l.fs.readdir(p);for(let n of a){let c=t==="."?n:`${t}/${n}`,y=l.fs.resolvePath(l.cwd,c);if((await l.fs.stat(y)).isDirectory)await ne(c,s,l,f,u+1);else if(s){let h=s.replace(/^\//,"");x(n,h,{stripQuotes:!0})&&f.push(c)}}}catch{}}async function oe(t,s){let l=[],f=t.lastIndexOf("/"),u,p;if(f===-1?(u=s.cwd,p=t):(u=t.slice(0,f)||"/",p=t.slice(f+1)),t.includes("**")){let a=[],n=t.split("**"),c=n[0].replace(/\/$/,"")||".",y=n[1]||"";return await ne(c,y,s,a),a.map(w=>({path:w}))}let m=s.fs.resolvePath(s.cwd,u);try{if(s.fs.readdirWithFileTypes){let a=await s.fs.readdirWithFileTypes(m);for(let n of a)if(x(n.name,p,{stripQuotes:!0})){let c=f===-1?n.name:`${u}/${n.name}`;l.push({path:c,isFile:n.isFile})}}else{let a=await s.fs.readdir(m);for(let n of a)if(x(n,p,{stripQuotes:!0})){let c=f===-1?n:`${u}/${n}`;l.push({path:c})}}}catch{}return l.sort((a,n)=>a.path.localeCompare(n.path))}async function L(t,s,l=[],f=[],u=[],p,m=0){if(m>=se)return[];let a=s.fs.resolvePath(s.cwd,t),n=[];try{let c,y;if(p!==void 0)c=p,y=!p;else{let h=await s.fs.stat(a);c=h.isFile,y=h.isDirectory}if(c){let h=t.split("/").pop()||t;return f.length>0&&f.some(d=>x(h,d,{stripQuotes:!0}))?[]:l.length>0&&!l.some(d=>x(h,d,{stripQuotes:!0}))?[]:[{path:t,isFile:!0}]}if(!y)return[];let w=t.split("/").pop()||t;if(u.length>0&&u.some(h=>x(w,h,{stripQuotes:!0})))return[];if(s.fs.readdirWithFileTypes){let h=await s.fs.readdirWithFileTypes(a);for(let d of h){if(d.name.startsWith("."))continue;let F=t==="."?d.name:`${t}/${d.name}`,C=await L(F,s,l,f,u,d.isFile,m+1);n.push(...C)}}else{let h=await s.fs.readdir(a);for(let d of h){if(d.startsWith("."))continue;let F=t==="."?d:`${t}/${d}`,C=await L(F,s,l,f,u,void 0,m+1);n.push(...C)}}}catch{}return n}var pe={name:"fgrep",async execute(t,s){return te.execute(["-F",...t],s)}},he={name:"egrep",async execute(t,s){return te.execute(["-E",...t],s)}},de={name:"grep",flags:[{flag:"-E",type:"boolean"},{flag:"-F",type:"boolean"},{flag:"-P",type:"boolean"},{flag:"-i",type:"boolean"},{flag:"-v",type:"boolean"},{flag:"-w",type:"boolean"},{flag:"-x",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-l",type:"boolean"},{flag:"-L",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-h",type:"boolean"},{flag:"-o",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-r",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:"-e",type:"value",valueHint:"pattern"}],stdinType:"text",needsArgs:!0},ge={name:"fgrep",flags:[],stdinType:"text",needsArgs:!0},me={name:"egrep",flags:[],stdinType:"text",needsArgs:!0};export{te as a,pe as b,he as c,de as d,ge as e,me as f};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-GHB6M7KA.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-GHB6M7KA.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as s}from"./chunk-AXMYAPFA.js";var a=s("sha256sum","sha256","compute SHA256 message digest"),m={name:"sha256sum",flags:[{flag:"-c",type:"boolean"}],needsFiles:!0};export{a,m as b};
|
||||
21
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-GRQJA2J7.js
generated
vendored
Normal file
21
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-GRQJA2J7.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
5
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-H2TS57O5.js
generated
vendored
Normal file
5
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-H2TS57O5.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{c}from"./chunk-XEKXHOPO.js";import{a as u,b as f,c as h}from"./chunk-QAYAQNCG.js";import p from"turndown";var w={name:"html-to-markdown",summary:"convert HTML to Markdown (BashEnv extension)",usage:"html-to-markdown [OPTION]... [FILE]",description:["Convert HTML content to Markdown format using the turndown library.","This is a non-standard BashEnv extension command, not available in regular bash.","","Read HTML from FILE or standard input and output Markdown to standard output.","Commonly used with curl to convert web pages:"," curl -s https://example.com | html-to-markdown","","Supported HTML elements:"," - Headings (h1-h6) \u2192 # Markdown headings"," - Paragraphs (p) \u2192 Plain text with blank lines"," - Links (a) \u2192 [text](url)"," - Images (img) \u2192 "," - Bold/Strong \u2192 **text**"," - Italic/Em \u2192 _text_"," - Code (code, pre) \u2192 `inline` or fenced blocks"," - Lists (ul, ol, li) \u2192 - or 1. items"," - Blockquotes \u2192 > quoted text"," - Horizontal rules (hr) \u2192 ---"],options:["-b, --bullet=CHAR bullet character for unordered lists (-, +, or *)","-c, --code=FENCE fence style for code blocks (``` or ~~~)","-r, --hr=STRING string for horizontal rules (default: ---)"," --heading-style=STYLE"," heading style: 'atx' for # headings (default),"," 'setext' for underlined headings (h1/h2 only)"," --help display this help and exit"],examples:["echo '<h1>Hello</h1><p>World</p>' | html-to-markdown","html-to-markdown page.html","curl -s https://example.com | html-to-markdown > page.md"]},y={name:"html-to-markdown",async execute(r,n){if(f(r))return u(w);let s="-",a="```",i="---",m="atx",o=[];for(let e=0;e<r.length;e++){let t=r[e];if(t==="-b"||t==="--bullet")s=r[++e]??"-";else if(t.startsWith("--bullet="))s=t.slice(9);else if(t==="-c"||t==="--code")a=r[++e]??"```";else if(t.startsWith("--code="))a=t.slice(7);else if(t==="-r"||t==="--hr")i=r[++e]??"---";else if(t.startsWith("--hr="))i=t.slice(5);else if(t.startsWith("--heading-style=")){let d=t.slice(16);(d==="setext"||d==="atx")&&(m=d)}else if(t==="-")o.push("-");else{if(t.startsWith("--"))return h("html-to-markdown",t);if(t.startsWith("-"))return h("html-to-markdown",t);o.push(t)}}let l;if(o.length===0||o.length===1&&o[0]==="-")l=c(n.stdin);else try{let e=n.fs.resolvePath(n.cwd,o[0]);l=await n.fs.readFile(e)}catch{return{stdout:"",stderr:`html-to-markdown: ${o[0]}: No such file or directory
|
||||
`,exitCode:1}}if(!l.trim())return{stdout:"",stderr:"",exitCode:0};try{let e=new p({bulletListMarker:s,codeBlockStyle:"fenced",fence:a,hr:i,headingStyle:m});return e.remove(["script","style","footer"]),{stdout:`${e.turndown(l).trim()}
|
||||
`,stderr:"",exitCode:0}}catch(e){return{stdout:"",stderr:`html-to-markdown: conversion error: ${e.message}
|
||||
`,exitCode:1}}}},b={name:"html-to-markdown",flags:[],stdinType:"text"};export{y as a,b};
|
||||
6
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-H7WISVP3.js
generated
vendored
Normal file
6
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-H7WISVP3.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{b as v}from"./chunk-KTPCYKBB.js";import{c as y}from"./chunk-XEKXHOPO.js";import{a as x,b as I,c as m}from"./chunk-QAYAQNCG.js";var T={name:"cut",summary:"remove sections from each line of files",usage:"cut [OPTION]... [FILE]...",options:["-c LIST select only these characters","-d DELIM use DELIM instead of TAB for field delimiter","-f LIST select only these fields","-s, --only-delimited do not print lines without delimiters"," --help display this help and exit"]};function b(s){let c=[],l=s.split(",");for(let n of l)if(n.includes("-")){let[t,r]=n.split("-");c.push({start:t?parseInt(t,10):1,end:r?parseInt(r,10):null})}else{let t=parseInt(n,10);c.push({start:t,end:t})}return c}function w(s,c){let l=[];for(let n of c){let t=n.start-1,r=n.end===null?s.length:n.end;for(let i=t;i<r&&i<s.length;i++)i>=0&&!l.includes(s[i])&&l.push(s[i])}return l}var E={name:"cut",async execute(s,c){if(I(s))return x(T);let l=" ",n=null,t=null,r=!1,i=[];for(let o=0;o<s.length;o++){let e=s[o];if(e==="-d")l=s[++o]||" ";else if(e.startsWith("-d"))l=e.slice(2);else if(e==="-f")n=s[++o];else if(e.startsWith("-f"))n=e.slice(2);else if(e==="-c")t=s[++o];else if(e.startsWith("-c"))t=e.slice(2);else if(e==="-s"||e==="--only-delimited")r=!0;else{if(e.startsWith("--"))return m("cut",e);if(e.startsWith("-")){let f=!1;for(let u of e.slice(1))if(u==="s")r=!0;else if(!"dfc".includes(u)){f=!0;break}if(f)return m("cut",e)}else i.push(e)}}if(!n&&!t)return{stdout:"",stderr:`cut: you must specify a list of bytes, characters, or fields
|
||||
`,exitCode:1};let p=await v(c,i,{cmdName:"cut"});if(!p.ok)return p.error;let a=(t?y(p.content):p.content).split(`
|
||||
`);a.length>0&&a[a.length-1]===""&&a.pop();let g=b(n||t||"1"),h="";for(let o of a)if(t){let e=Array.from(o),f=[];for(let u of g){let F=u.start-1,H=u.end===null?e.length:u.end;for(let d=F;d<H&&d<e.length;d++)d>=0&&f.push(e[d])}h+=`${f.join("")}
|
||||
`}else{if(r&&!o.includes(l))continue;let e=o.split(l),f=w(e,g);h+=`${f.join(l)}
|
||||
`}return t?{stdout:h,stderr:"",exitCode:0}:{stdout:h,stderr:"",exitCode:0,stdoutKind:"bytes",stdoutEncoding:"binary"}}},S={name:"cut",flags:[{flag:"-d",type:"value",valueHint:"delimiter"},{flag:"-f",type:"value",valueHint:"string"},{flag:"-c",type:"value",valueHint:"string"},{flag:"-s",type:"boolean"}],stdinType:"text",needsFiles:!0};export{E as a,S as b};
|
||||
63
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-HAIOEUEV.js
generated
vendored
Normal file
63
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-HAIOEUEV.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-HBVMHTO5.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-HBVMHTO5.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
var r=globalThis.SharedArrayBuffer,e=globalThis.Atomics,o=performance.now.bind(performance),a=globalThis.Headers;export{r as a,e as b,o as c,a as d};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-HDRAUQK2.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-HDRAUQK2.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
var e={name:"true",async execute(){return{stdout:"",stderr:"",exitCode:0}}},t={name:"false",async execute(){return{stdout:"",stderr:"",exitCode:1}}},s={name:"true",flags:[]},r={name:"false",flags:[]};export{e as a,t as b,s as c,r as d};
|
||||
100
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-IZ6KBTV7.js
generated
vendored
Normal file
100
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-IZ6KBTV7.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
6
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-J3LJZWL2.js
generated
vendored
Normal file
6
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-J3LJZWL2.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
16
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-JA7M2FXG.js
generated
vendored
Normal file
16
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-JA7M2FXG.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as w,b as V}from"./chunk-J3LJZWL2.js";import{d as E}from"./chunk-4WKZNNJK.js";import{a as T,b as M}from"./chunk-KAPG5ONA.js";import{a as F}from"./chunk-VACKIICN.js";import{a as R}from"./chunk-KTPCYKBB.js";import{c as J}from"./chunk-XEKXHOPO.js";import{k as O}from"./chunk-SAI2SPQQ.js";import{a as N}from"./chunk-FOCWZZDE.js";import{a as A,b as L,c as I}from"./chunk-QAYAQNCG.js";function W(t){switch(t){case"\b":return"\\b";case"\f":return"\\f";case`
|
||||
`:return"\\n";case"\r":return"\\r";case" ":return"\\t";default:return`\\u${t.charCodeAt(0).toString(16).padStart(4,"0")}`}}function _(t){let n="",s=!1,i=!1;for(let a=0;a<t.length;a++){let r=t[a];if(i){n+=r,i=!1;continue}if(r==="\\"){n+=r,i=!0;continue}if(r==='"'){n+=r,s=!s;continue}if(s&&r.charCodeAt(0)<=31){n+=W(r);continue}n+=r}return n}function k(t,n,s){return JSON.parse(_(t.slice(n,s)))}function B(t){let n=[],s=0,i=t.length;for(;s<i;){for(;s<i&&/\s/.test(t[s]);)s++;if(s>=i)break;let a=s,r=t[s];if(r==="{"||r==="["){let f=r,c=r==="{"?"}":"]",p=1,m=!1,d=!1;for(s++;s<i&&p>0;){let j=t[s];d?d=!1:j==="\\"?d=!0:j==='"'?m=!m:m||(j===f?p++:j===c&&p--),s++}if(p!==0)throw new Error(`Unexpected end of JSON input at position ${s} (unclosed ${f})`);n.push(E(k(t,a,s)))}else if(r==='"'){let f=!1;for(s++;s<i;){let c=t[s];if(f)f=!1;else if(c==="\\")f=!0;else if(c==='"'){s++;break}s++}n.push(E(k(t,a,s)))}else if(r==="-"||r>="0"&&r<="9"){for(;s<i&&/[\d.eE+-]/.test(t[s]);)s++;n.push(E(k(t,a,s)))}else if(t.slice(s,s+4)==="true")n.push(!0),s+=4;else if(t.slice(s,s+5)==="false")n.push(!1),s+=5;else if(t.slice(s,s+4)==="null")n.push(null),s+=4;else{let f=t.slice(s,s+10);throw new Error(`Invalid JSON at position ${a}: unexpected '${f.split(/\s/)[0]}'`)}}return n}var X={name:"jq",summary:"command-line JSON processor",usage:"jq [OPTIONS] FILTER [FILE...]",options:["-R, --raw-input read each line as string instead of JSON","-r, --raw-output output strings without quotes","-c, --compact-output compact instead of pretty-printed output","-e, --exit-status set exit status based on output","-s, --slurp read entire input into array","-n, --null-input don't read any input","-j, --join-output don't print newlines after each output","-a, --ascii force ASCII output","-S, --sort-keys sort object keys","-C, --color colorize output (ignored)","-M, --monochrome monochrome output (ignored)"," --tab use tabs for indentation"," --help display this help and exit"]};function C(t,n,s,i,a,r=0){if(t===null||t===void 0)return"null";if(typeof t=="boolean")return String(t);if(typeof t=="number")return Number.isFinite(t)?String(t):"null";if(typeof t=="string")return s?t:JSON.stringify(t);let f=a?" ":" ";if(Array.isArray(t))return t.length===0?"[]":n?`[${t.map(p=>C(p,!0,!1,i,a)).join(",")}]`:`[
|
||||
${t.map(p=>f.repeat(r+1)+C(p,!1,!1,i,a,r+1)).join(`,
|
||||
`)}
|
||||
${f.repeat(r)}]`;if(typeof t=="object"){let c=Object.keys(t);return i&&(c=c.sort()),c.length===0?"{}":n?`{${c.map(m=>`${JSON.stringify(m)}:${C(t[m],!0,!1,i,a)}`).join(",")}}`:`{
|
||||
${c.map(m=>{let d=C(t[m],!1,!1,i,a,r+1);return`${f.repeat(r+1)}${JSON.stringify(m)}: ${d}`}).join(`,
|
||||
`)}
|
||||
${f.repeat(r)}}`}return String(t)}var re={name:"jq",async execute(t,n){T(n.requireDefenseContext,"jq","execution entry");let s=(o,e)=>M(n.requireDefenseContext,"jq",o,e);if(L(t))return A(X);let i=!1,a=!1,r=!1,f=!1,c=!1,p=!1,m=!1,d=!1,j=!1,D=".",z=!1,x=[];for(let o=0;o<t.length;o++){let e=t[o];if(e==="-R"||e==="--raw-input")a=!0;else if(e==="-r"||e==="--raw-output")i=!0;else if(e==="-c"||e==="--compact-output")r=!0;else if(e==="-e"||e==="--exit-status")f=!0;else if(e==="-s"||e==="--slurp")c=!0;else if(e==="-n"||e==="--null-input")p=!0;else if(e==="-j"||e==="--join-output")m=!0;else if(!(e==="-a"||e==="--ascii")){if(e==="-S"||e==="--sort-keys")d=!0;else if(!(e==="-C"||e==="--color")){if(!(e==="-M"||e==="--monochrome"))if(e==="--tab")j=!0;else if(e==="-")x.push("-");else{if(e.startsWith("--"))return I("jq",e);if(e.startsWith("-")){for(let l of e.slice(1))if(l==="R")a=!0;else if(l==="r")i=!0;else if(l==="c")r=!0;else if(l==="e")f=!0;else if(l==="s")c=!0;else if(l==="n")p=!0;else if(l==="j")m=!0;else if(l!=="a"){if(l==="S")d=!0;else if(l!=="C"){if(l!=="M")return I("jq",`-${l}`)}}}else z?x.push(e):(D=e,z=!0)}}}}let S=[];if(!p)if(x.length===0||x.length===1&&x[0]==="-")S.push({source:"stdin",content:J(n.stdin)});else{let o=await s("file read",()=>R(n,x,{cmdName:"jq",stopOnError:!0}));if(o.exitCode!==0)return{stdout:"",stderr:o.stderr,exitCode:2};S=o.files.map(e=>({source:e.filename||"stdin",content:J(e.content)}))}try{let o=V(D),e=[],l={limits:n.limits?{maxIterations:n.limits.maxJqIterations}:void 0,env:n.env,coverage:n.coverage,requireDefenseContext:n.requireDefenseContext};if(p)e=w(null,o,l);else if(a&&c){let u=S.map(({content:g})=>g).join("");e=w(u,o,l)}else if(a){let u="";for(let{content:g}of S){let h=u+g,y=0,q=h.indexOf(`
|
||||
`,y);for(;q!==-1;)e.push(...w(h.slice(y,q),o,l)),y=q+1,q=h.indexOf(`
|
||||
`,y);u=h.slice(y)}u!==""&&e.push(...w(u,o,l))}else if(c){let u=[];for(let{content:g}of S){let h=g.trim();h&&u.push(...B(h))}e=w(u,o,l)}else for(let{content:u}of S){let g=u.trim();if(!g)continue;let h=B(g);for(let y of h)e.push(...w(y,o,l))}let H=e.map(u=>C(u,r,i,d,j)),P=m?"":`
|
||||
`,b=H.join(P),$=n.limits?.maxStringLength;if($!==void 0&&$>0&&b.length>$)throw new O(`jq: output size limit exceeded (${$} bytes)`,"string_length");let U=f&&(e.length===0||e.every(u=>u==null||u===!1))?1:0;return{stdout:b?m?b:`${b}
|
||||
`:"",stderr:"",exitCode:U}}catch(o){if(o instanceof F)throw o;if(o instanceof O)return{stdout:"",stderr:`jq: ${N(o.message)}
|
||||
`,exitCode:O.EXIT_CODE};let e=N(o.message);return e.includes("Unknown function")?{stdout:"",stderr:`jq: error: ${e}
|
||||
`,exitCode:3}:{stdout:"",stderr:`jq: parse error: ${e}
|
||||
`,exitCode:5}}}},oe={name:"jq",flags:[{flag:"-R",type:"boolean"},{flag:"-r",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-e",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-j",type:"boolean"},{flag:"-S",type:"boolean"},{flag:"--tab",type:"boolean"}],stdinType:"json",needsArgs:!0};export{re as a,oe as b};
|
||||
35
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-JNYYVLEL.js
generated
vendored
Normal file
35
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-JNYYVLEL.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
16
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-JTMQLUCH.js
generated
vendored
Normal file
16
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-JTMQLUCH.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
13
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-K5JMLDHX.js
generated
vendored
Normal file
13
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-K5JMLDHX.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{c as g}from"./chunk-XEKXHOPO.js";import{a as y,b as $,c as F}from"./chunk-QAYAQNCG.js";var b={name:"comm",summary:"compare two sorted files line by line",usage:"comm [OPTION]... FILE1 FILE2",options:["-1 suppress column 1 (lines unique to FILE1)","-2 suppress column 2 (lines unique to FILE2)","-3 suppress column 3 (lines that appear in both files)"," --help display this help and exit"]},E={name:"comm",async execute(m,a){if($(m))return y(b);let r=!1,l=!1,f=!1,i=[];for(let e of m)if(e==="-1")r=!0;else if(e==="-2")l=!0;else if(e==="-3")f=!0;else if(e==="-12"||e==="-21")r=!0,l=!0;else if(e==="-13"||e==="-31")r=!0,f=!0;else if(e==="-23"||e==="-32")l=!0,f=!0;else if(e==="-123"||e==="-132"||e==="-213"||e==="-231"||e==="-312"||e==="-321")r=!0,l=!0,f=!0;else{if(e.startsWith("-")&&e!=="-")return F("comm",e);i.push(e)}if(i.length!==2)return{stdout:"",stderr:`comm: missing operand
|
||||
Try 'comm --help' for more information.
|
||||
`,exitCode:1};let p=async e=>{if(e==="-")return g(a.stdin);try{let x=a.fs.resolvePath(a.cwd,e);return await a.fs.readFile(x)}catch{return null}},c=await p(i[0]);if(c===null)return{stdout:"",stderr:`comm: ${i[0]}: No such file or directory
|
||||
`,exitCode:1};let d=await p(i[1]);if(d===null)return{stdout:"",stderr:`comm: ${i[1]}: No such file or directory
|
||||
`,exitCode:1};let t=c.split(`
|
||||
`),s=d.split(`
|
||||
`);t.length>0&&t[t.length-1]===""&&t.pop(),s.length>0&&s[s.length-1]===""&&s.pop();let n=0,o=0,u="",h=r?"":" ",w=(r?"":" ")+(l?"":" ");for(;n<t.length||o<s.length;)n>=t.length?(l||(u+=`${h}${s[o]}
|
||||
`),o++):o>=s.length?(r||(u+=`${t[n]}
|
||||
`),n++):t[n]<s[o]?(r||(u+=`${t[n]}
|
||||
`),n++):t[n]>s[o]?(l||(u+=`${h}${s[o]}
|
||||
`),o++):(f||(u+=`${w}${t[n]}
|
||||
`),n++,o++);return{stdout:u,stderr:"",exitCode:0}}},L={name:"comm",flags:[{flag:"-1",type:"boolean"},{flag:"-2",type:"boolean"},{flag:"-3",type:"boolean"}],needsArgs:!0,minArgs:2};export{E as a,L as b};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-KAPG5ONA.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-KAPG5ONA.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as s,b as i}from"./chunk-VACKIICN.js";function a(t,e,n){if(!t||i.isInSandboxedContext())return;let r=`${e} ${n} attempted outside defense context`;throw new s(r,{timestamp:Date.now(),type:"missing_defense_context",message:r,path:"DefenseInDepthBox.context",stack:new Error().stack,executionId:i.getCurrentExecutionId()})}async function x(t,e,n,r){a(t,e,`${n} (pre-await)`);let o=await r();return a(t,e,`${n} (post-await)`),o}function d(t,e,n,r){let o=((...c)=>(a(t,e,n),r(...c)));return t?i.bindCurrentContext(o):o}export{a,x as b,d as c};
|
||||
19
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-KSBHIW2H.js
generated
vendored
Normal file
19
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-KSBHIW2H.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as B}from"./chunk-7CSMHFIJ.js";function T(t,n){let e=t.ignoreCase?n.toLowerCase():n,i=t.needles;for(let l=0;l<i.length;l++)if(e.indexOf(i[l])!==-1)return!0;return!1}function D(t,n){return t.replace(/\$(&|\d+|<([^>]+)>)/g,(e,i,l)=>{if(i==="&")return n[0];if(l!==void 0)return n.groups?.[l]??"";let s=parseInt(i,10);return n[s]??""})}function Q(t,n,e={}){let{invertMatch:i=!1,showLineNumbers:l=!1,countOnly:s=!1,countMatches:a=!1,filename:r="",onlyMatching:x=!1,beforeContext:S=0,afterContext:P=0,maxCount:k=0,contextSeparator:W="--",showColumn:z=!1,vimgrep:N=!1,showByteOffset:v=!1,replace:A=null,passthru:G=!1,multiline:F=!1,kResetGroup:R,preFilter:C}=e;if(F)return X(t,n,{invertMatch:i,showLineNumbers:l,countOnly:s,countMatches:a,filename:r,onlyMatching:x,beforeContext:S,afterContext:P,maxCount:k,contextSeparator:W,showColumn:z,showByteOffset:v,replace:A,kResetGroup:R,preFilter:C});let L=t.split(`
|
||||
`),O=L.length,Z=O>0&&L[O-1]===""?O-1:O;if(s||a){let h=0,d=(a||x)&&!i;for(let f=0;f<Z;f++){let u=L[f];if(!(C&&!i&&!T(C,u)))if(n.lastIndex=0,d)for(let m=n.exec(u);m!==null;m=n.exec(u))h++,m[0].length===0&&n.lastIndex++;else n.test(u)!==i&&h++}return{output:`${r?`${r}:${h}`:String(h)}
|
||||
`,matched:h>0,matchCount:h}}if(S===0&&P===0&&!G){let h=[],d=!1,o=0,f=0;for(let u=0;u<Z&&!(k>0&&o>=k);u++){let m=L[u],M=null;if(C&&!T(C,m)||(n.lastIndex=0,M=n.exec(m)),M!==null!==i)if(d=!0,o++,x)for(let $=M;$!==null;$=n.exec(m)){let y=R!==void 0?$[R]??"":$[0],j=A!==null?D(A,$):y,g=r?`${r}:`:"";v&&(g+=`${f+$.index}:`),l&&(g+=`${u+1}:`),z&&(g+=`${$.index+1}:`),h.push(g+j),$[0].length===0&&n.lastIndex++}else if(N)for(let $=M;$!==null;$=n.exec(m)){let y=r?`${r}:`:"";v&&(y+=`${f+$.index}:`),l&&(y+=`${u+1}:`),z&&(y+=`${$.index+1}:`),h.push(y+m),$[0].length===0&&n.lastIndex++}else{let $=M?M.index+1:1,y=m;A!==null&&(n.lastIndex=0,y=n.replace(m,(...g)=>{if(g[0].length===0)return"";let E=g,_=g[g.length-1];return typeof _=="object"&&_!==null?(E.groups=_,E.input=g[g.length-2],E.index=g[g.length-3]):(E.input=g[g.length-1],E.index=g[g.length-2]),D(A,E)}));let j=r?`${r}:`:"";v&&(j+=`${f+(M?M.index:0)}:`),l&&(j+=`${u+1}:`),z&&(j+=`${$}:`),h.push(j+y)}f+=m.length+1}return{output:h.length>0?`${h.join(`
|
||||
`)}
|
||||
`:"",matched:d,matchCount:o}}if(G){let h=[],d=!1,o=0;for(let f=0;f<Z;f++){let u=L[f],m;C&&!T(C,u)?m=!1:(n.lastIndex=0,m=n.test(u));let M=m!==i;M&&(d=!0,o++);let U=M?":":"-",$=r?`${r}${U}`:"";l&&($+=`${f+1}${U}`),h.push($+u)}return{output:h.length>0?`${h.join(`
|
||||
`)}
|
||||
`:"",matched:d,matchCount:o}}let p=[],I=0,w=new Set,b=-1,c=[];for(let h=0;h<Z&&!(k>0&&I>=k);h++){let d=L[h],o;C&&!T(C,d)?o=!1:(n.lastIndex=0,o=n.test(d)),o!==i&&(c.push(h),I++)}for(let h of c){let d=Math.max(0,h-S);b>=0&&d>b+1&&p.push(W);for(let f=d;f<h;f++)if(!w.has(f)){w.add(f),b=f;let u=L[f];l&&(u=`${f+1}-${u}`),r&&(u=`${r}-${u}`),p.push(u)}if(!w.has(h)){w.add(h),b=h;let f=L[h];if(x){n.lastIndex=0;for(let u=n.exec(f);u!==null;u=n.exec(f)){let m=R!==void 0?u[R]??"":u[0],M=A!==null?A:m,U=r?`${r}:`:"";l&&(U+=`${h+1}:`),z&&(U+=`${u.index+1}:`),p.push(U+M),u[0].length===0&&n.lastIndex++}}else{let u=f;l&&(u=`${h+1}:${u}`),r&&(u=`${r}:${u}`),p.push(u)}}let o=Math.min(Z-1,h+P);for(let f=h+1;f<=o;f++)if(!w.has(f)){w.add(f),b=f;let u=L[f];l&&(u=`${f+1}-${u}`),r&&(u=`${r}-${u}`),p.push(u)}}return{output:p.length>0?`${p.join(`
|
||||
`)}
|
||||
`:"",matched:I>0,matchCount:I}}function X(t,n,e){let{invertMatch:i,showLineNumbers:l,countOnly:s,countMatches:a,filename:r,onlyMatching:x,beforeContext:S,afterContext:P,maxCount:k,contextSeparator:W,showColumn:z,showByteOffset:N,replace:v,kResetGroup:A,preFilter:G}=e;if(G&&!i&&!T(G,t))return s||a?{output:`${r?`${r}:0`:"0"}
|
||||
`,matched:!1,matchCount:0}:{output:"",matched:!1,matchCount:0};let F=t.split(`
|
||||
`),R=F.length,C=R>0&&F[R-1]===""?R-1:R,L=[0];for(let c=0;c<t.length;c++)t[c]===`
|
||||
`&&L.push(c+1);let O=c=>{let h=0;for(let d=0;d<L.length&&!(L[d]>c);d++)h=d;return h},Z=c=>{let h=O(c);return c-L[h]+1},p=[];n.lastIndex=0;for(let c=n.exec(t);c!==null&&!(k>0&&p.length>=k);c=n.exec(t)){let h=O(c.index),d=O(c.index+Math.max(0,c[0].length-1)),o=A!==void 0?c[A]??"":c[0];p.push({startLine:h,endLine:d,byteOffset:c.index,column:Z(c.index),matchText:o}),c[0].length===0&&n.lastIndex++}if(s||a){let c;if(a)c=i?0:p.length;else{let d=new Set;for(let o of p)for(let f=o.startLine;f<=o.endLine;f++)d.add(f);c=i?C-d.size:d.size}return{output:`${r?`${r}:${c}`:String(c)}
|
||||
`,matched:c>0,matchCount:c}}if(i){let c=new Set;for(let d of p)for(let o=d.startLine;o<=d.endLine;o++)c.add(o);let h=[];for(let d=0;d<C;d++)if(!c.has(d)){let o=F[d];l&&(o=`${d+1}:${o}`),r&&(o=`${r}:${o}`),h.push(o)}return{output:h.length>0?`${h.join(`
|
||||
`)}
|
||||
`:"",matched:h.length>0,matchCount:h.length}}if(p.length===0)return{output:"",matched:!1,matchCount:0};let I=new Set,w=-1,b=[];for(let c of p){let h=Math.max(0,c.startLine-S),d=Math.min(C-1,c.endLine+P);w>=0&&h>w+1&&b.push(W);for(let o=h;o<c.startLine;o++)if(!I.has(o)){I.add(o),w=o;let f=F[o];l&&(f=`${o+1}-${f}`),r&&(f=`${r}-${f}`),b.push(f)}if(x){let o=v!==null?v:c.matchText,f=r?`${r}:`:"";N&&(f+=`${c.byteOffset}:`),l&&(f+=`${c.startLine+1}:`),z&&(f+=`${c.column}:`),b.push(f+o);for(let u=c.startLine;u<=c.endLine;u++)I.add(u),w=u}else for(let o=c.startLine;o<=c.endLine&&o<C;o++)if(!I.has(o)){I.add(o),w=o;let f=F[o];v!==null&&o===c.startLine&&(n.lastIndex=0,f=n.replace(f,v));let u=r?`${r}:`:"";N&&o===c.startLine&&(u+=`${c.byteOffset}:`),l&&(u+=`${o+1}:`),z&&o===c.startLine&&(u+=`${c.column}:`),b.push(u+f)}for(let o=c.endLine+1;o<=d;o++)if(!I.has(o)){I.add(o),w=o;let f=F[o];l&&(f=`${o+1}-${f}`),r&&(f=`${r}-${f}`),b.push(f)}}return{output:b.length>0?`${b.join(`
|
||||
`)}
|
||||
`:"",matched:!0,matchCount:p.length}}var q=new Map([["alpha","a-zA-Z"],["digit","0-9"],["alnum","a-zA-Z0-9"],["lower","a-z"],["upper","A-Z"],["xdigit","0-9A-Fa-f"],["space"," \\t\\n\\r\\f\\v"],["blank"," \\t"],["punct","!-/:-@\\[-`{-~"],["graph","!-~"],["print"," -~"],["cntrl","\\x00-\\x1F\\x7F"],["ascii","\\x00-\\x7F"],["word","a-zA-Z0-9_"]]);function K(t){let n="",e=0;for(;e<t.length;){if(t.slice(e,e+7)==="[[:<:]]"){n+="\\b",e+=7;continue}if(t.slice(e,e+7)==="[[:>:]]"){n+="\\b",e+=7;continue}if(t[e]==="["){let i="[";for(e++,e<t.length&&(t[e]==="^"||t[e]==="!")&&(i+="^",e++),e<t.length&&t[e]==="]"&&(i+="\\]",e++);e<t.length&&t[e]!=="]";){if(t[e]==="["&&e+1<t.length&&t[e+1]===":"){let l=t.indexOf(":]",e+2);if(l!==-1){let s=t.slice(e+2,l),a=q.get(s);if(a){i+=a,e=l+2;continue}}}if(t[e]==="\\"&&e+1<t.length){i+=t[e]+t[e+1],e+=2;continue}i+=t[e],e++}e<t.length&&t[e]==="]"&&(i+="]",e++),n+=i;continue}if(t[e]==="\\"&&e+1<t.length){n+=t[e]+t[e+1],e+=2;continue}n+=t[e],e++}return n}function H(t,n){let e,i;switch(n.mode){case"fixed":e=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");break;case"extended":case"perl":{if(e=K(t),e=e.replace(/\(\?P<([^>]+)>/g,"(?<$1>"),n.mode==="perl"){e=ee(e),e=te(e),e=ne(e);let r=oe(e);e=r.pattern,i=r.kResetGroup}break}default:e=K(t),e=he(e);break}n.wholeWord&&(e=`\\b(?:${e})\\b`),n.lineRegexp&&(e=`^${e}$`);let l=/\\u\{[0-9A-Fa-f]+\}/.test(e),s="g"+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.multilineDotall?"s":"")+(l?"u":""),a=J(e,n.ignoreCase??!1);return{regex:B(e,s),kResetGroup:i,preFilter:a??void 0}}function J(t,n){let e=t;if(e.startsWith("\\b(?:")&&e.endsWith(")\\b")?e=e.slice(5,e.length-3):e.startsWith("\\b")&&e.endsWith("\\b")&&e.length>=4&&(e=e.slice(2,e.length-2)),e.length===0)return null;let i=V(e);if(i===null)return null;let l=[];for(let s of i){let a=Y(s);if(a===null||a.length===0)return null;l.push(a)}return l.length===0?null:{needles:n?l.map(s=>s.toLowerCase()):l,ignoreCase:n}}function V(t){let n=[],e=0,i=!1,l=0;for(let s=0;s<t.length;s++){let a=t[s];if(a==="\\"){s++;continue}if(i){a==="]"&&(i=!1);continue}if(a==="[")i=!0;else if(a==="(")e++;else if(a===")"){if(e--,e<0)return null}else a==="|"&&e===0&&(n.push(t.slice(l,s)),l=s+1)}return e!==0||i?null:(n.push(t.slice(l)),n)}function Y(t){let n=t;if(n.startsWith("^")&&(n=n.slice(1)),n.endsWith("$")){let i=0;for(let l=n.length-2;l>=0&&n[l]==="\\";l--)i++;i%2===0&&(n=n.slice(0,-1))}if(n.length===0)return null;let e="";for(let i=0;i<n.length;i++){let l=n[i];if(l==="\\"){let s=n[i+1];if(s===void 0||/[dDwWsSbBAZzGQE0-9ckpPNXRxuU]/.test(s))return null;s==="n"?e+=`
|
||||
`:s==="t"?e+=" ":s==="r"?e+="\r":s==="f"?e+="\f":s==="v"?e+="\v":e+=s,i++;continue}if(/[.*+?^${}()|[\]]/.test(l))return null;e+=l}return e}function ee(t){let n="",e=0;for(;e<t.length;)if(t[e]==="\\"&&e+1<t.length&&t[e+1]==="Q"){e+=2;let i="";for(;e<t.length;){if(t[e]==="\\"&&e+1<t.length&&t[e+1]==="E"){e+=2;break}i+=t[e],e++}n+=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}else n+=t[e],e++;return n}function te(t){return t.replace(/\\x\{([0-9A-Fa-f]+)\}/g,"\\u{$1}")}function ne(t){let n="",e=0;for(;e<t.length;){if(t[e]==="("&&e+1<t.length&&t[e+1]==="?"){let i=t.slice(e).match(/^\(\?([imsx]*)(-[imsx]*)?(:|$|\))/);if(i){let l=i[1]||"",s=i[2]||"",a=i[3];if(a===":"){let r=e+i[0].length-1,x=ie(t,e);if(x!==-1){let S=t.slice(r+1,x),P=le(S,l,s);n+=`(?:${P})`,e=x+1;continue}}else if(a===")"||a===""){e+=i[0].length;continue}}}n+=t[e],e++}return n}function ie(t,n){let e=0,i=n;for(;i<t.length;){if(t[i]==="\\"){i+=2;continue}if(t[i]==="["){for(i++;i<t.length&&t[i]!=="]";)t[i]==="\\"&&i++,i++;i++;continue}if(t[i]==="(")e++;else if(t[i]===")"&&(e--,e===0))return i;i++}return-1}function le(t,n,e){let i=t;return n.includes("i")&&(i=se(i)),i}function se(t){let n="",e=0;for(;e<t.length;){let i=t[e];if(i==="\\"){e+1<t.length?(n+=i+t[e+1],e+=2):(n+=i,e++);continue}if(i==="["){n+=i,e++,e<t.length&&t[e]==="^"&&(n+=t[e],e++);let l=[];for(;e<t.length&&t[e]!=="]";)if(t[e]==="\\")l.push(t[e]),e++,e<t.length&&(l.push(t[e]),e++);else if(t[e]==="-"&&l.length>0&&e+1<t.length&&t[e+1]!=="]"){let s=l[l.length-1],a=t[e+1];l.push("-"),l.push(a),/[a-z]/.test(s)&&/[a-z]/.test(a)?(l.push(s.toUpperCase()),l.push("-"),l.push(a.toUpperCase())):/[A-Z]/.test(s)&&/[A-Z]/.test(a)&&(l.push(s.toLowerCase()),l.push("-"),l.push(a.toLowerCase())),e+=2}else{let s=t[e];if(l.push(s),/[a-zA-Z]/.test(s)){let a=s===s.toLowerCase()?s.toUpperCase():s.toLowerCase();l.includes(a)||l.push(a)}e++}n+=l.join(""),e<t.length&&(n+=t[e],e++);continue}if(/[a-zA-Z]/.test(i)){let l=i.toLowerCase(),s=i.toUpperCase();n+=`[${s}${l}]`}else n+=i;e++}return n}function oe(t){let n=fe(t);if(n===-1)return{pattern:t};let e=t.slice(0,n),i=t.slice(n+2),l=ce(e);return{pattern:`(?:${e})(${i})`,kResetGroup:l+1}}function fe(t){let n=0;for(;n<t.length-1;)if(t[n]==="\\"){if(t[n+1]==="K"){let e=0,i=n-1;for(;i>=0&&t[i]==="\\";)e++,i--;if(e%2===0)return n}n+=2}else n++;return-1}function ce(t){let n=0,e=0;for(;e<t.length;){if(t[e]==="\\"){e+=2;continue}if(t[e]==="["){for(e++;e<t.length&&t[e]!=="]";)t[e]==="\\"&&e++,e++;e++;continue}if(t[e]==="(")if(e+1<t.length&&t[e+1]==="?"){if(e+2<t.length){let i=t[e+2];if(i===":"||i==="="||i==="!"){e++;continue}if(i==="<"&&e+3<t.length){let l=t[e+3];if(l==="="||l==="!"){e++;continue}n++,e++;continue}}}else n++;e++}return n}function ue(t){let n=t.replace(/\$\{0\}|\$0(?![0-9])/g,"$$&");return n=n.replace(/\$\{([^0-9}][^}]*)\}/g,"$$<$1>"),n=n.replace(/\$([a-zA-Z_][a-zA-Z0-9_]*)(?![>0-9])/g,"$$<$1>"),n}function he(t){let n="",e=0,i=!0,l=0;for(;e<t.length;){let s=t[e];if(s==="["){for(n+=s,e++,e<t.length&&(t[e]==="^"||t[e]==="!")&&(n+=t[e],e++),e<t.length&&t[e]==="]"&&(n+=t[e],e++);e<t.length&&t[e]!=="]";)t[e]==="\\"&&e+1<t.length?(n+=t[e]+t[e+1],e+=2):(n+=t[e],e++);e<t.length&&t[e]==="]"&&(n+=t[e],e++),i=!1;continue}if(s==="\\"&&e+1<t.length){let a=t[e+1];if(a==="|"){n+="|",e+=2,i=!0;continue}if(a==="("){n+="(",e+=2,l++,i=!0;continue}if(a===")"){n+=")",e+=2,l=Math.max(0,l-1),i=!1;continue}if(a==="{"){let x=t.slice(e).match(/^\\{(\d+)(,(\d*)?)?\\}/);if(x){let S=x[1],P=x[2]!==void 0,k=x[3]||"";P?n+=`{${S},${k}}`:n+=`{${S}}`,e+=x[0].length,i=!1;continue}n+="\\{",e+=2,i=!1;continue}if(a==="}"){n+="\\}",e+=2,i=!1;continue}n+=s+a,e+=2,i=!1;continue}if(s==="*"&&i){n+="\\*",e++;continue}if(s==="^"){if(i){n+="^",e++;continue}n+="\\^",e++;continue}if(s==="$"){let a=e===t.length-1,r=e+2<t.length&&t[e+1]==="\\"&&t[e+2]===")";a||r?n+="$":n+="\\$",e++,i=!1;continue}s==="+"||s==="?"||s==="|"||s==="("||s===")"||s==="{"||s==="}"?n+=`\\${s}`:n+=s,e++,i=!1}return n}export{Q as a,H as b,ue as c};
|
||||
5
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-KTL5PAHY.js
generated
vendored
Normal file
5
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-KTL5PAHY.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{f as m}from"./chunk-XEKXHOPO.js";async function $(o,u){let a="octal",r=[],i=[];for(let t=0;t<o.length;t++){let e=o[t];if(e==="-c")r.push("char");else if(e==="-An"||e==="-A"&&o[t+1]==="n")a="none",e==="-A"&&t++;else if(e==="-t"&&o[t+1]){let n=o[++t];n==="x1"?r.push("hex"):n==="c"?r.push("char"):n.startsWith("o")&&r.push("octal")}else(!e.startsWith("-")||e==="-")&&i.push(e)}r.length===0&&r.push("octal");let p=u.stdin;if(i.length>0&&i[0]!=="-"){let t=i[0].startsWith("/")?i[0]:`${u.cwd}/${i[0]}`;try{p=await m(u.fs,t)}catch{return{stdout:"",stderr:`od: ${i[0]}: No such file or directory
|
||||
`,exitCode:1}}}let d=r.includes("char");function y(t){return t===0?" \\0":t===7?" \\a":t===8?" \\b":t===9?" \\t":t===10?" \\n":t===11?" \\v":t===12?" \\f":t===13?" \\r":t>=32&&t<127?` ${String.fromCharCode(t)}`:` ${t.toString(8).padStart(3,"0")}`}function S(t){return d?` ${t.toString(16).padStart(2,"0")}`:` ${t.toString(16).padStart(2,"0")}`}function x(t){return` ${t.toString(8).padStart(3,"0")}`}let s=[];for(let t of p)s.push(t.charCodeAt(0));let c=16,f=[];for(let t=0;t<s.length;t+=c){let e=s.slice(t,t+c);for(let n=0;n<r.length;n++){let g=r[n],l;g==="char"?l=e.map(y):g==="hex"?l=e.map(S):l=e.map(x);let h="";n===0&&a!=="none"?h=`${t.toString(8).padStart(7,"0")} `:(n>0||a==="none")&&(h=a==="none"?"":" "),f.push(h+l.join(""))}}return a!=="none"&&s.length>0&&f.push(s.length.toString(8).padStart(7,"0")),{stdout:f.length>0?`${f.join(`
|
||||
`)}
|
||||
`:"",stderr:"",exitCode:0}}var F={name:"od",execute:$},A={name:"od",flags:[{flag:"-c",type:"boolean"},{flag:"-A",type:"value",valueHint:"string"},{flag:"-t",type:"value",valueHint:"string"},{flag:"-N",type:"value",valueHint:"number"}],stdinType:"text",needsFiles:!0};export{F as a,A as b};
|
||||
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-KTPCYKBB.js
generated
vendored
Normal file
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-KTPCYKBB.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{e as u,f as m}from"./chunk-XEKXHOPO.js";async function w(t,n,s){let{cmdName:r,allowStdinMarker:d=!0,stopOnError:i=!1,batchSize:f=100}=s;if(n.length===0)return{files:[{filename:"",content:t.stdin}],stderr:"",exitCode:0};let a=[],c="",l=0;for(let o=0;o<n.length;o+=f){let h=n.slice(o,o+f),p=await Promise.all(h.map(async e=>{if(d&&e==="-")return{filename:"-",content:t.stdin,error:null};try{let C=t.fs.resolvePath(t.cwd,e),y=await m(t.fs,C);return{filename:e,content:y,error:null}}catch{return{filename:e,content:u,error:`${r}: ${e}: No such file or directory
|
||||
`}}}));for(let e of p)if(e.error){if(c+=e.error,l=1,i)return{files:a,stderr:c,exitCode:l}}else a.push({filename:e.filename,content:e.content})}return{files:a,stderr:c,exitCode:l}}async function T(t,n,s){let r=await w(t,n,{...s,stopOnError:!0});return r.exitCode!==0?{ok:!1,error:{stdout:"",stderr:r.stderr,exitCode:r.exitCode}}:{ok:!0,content:r.files.map(i=>i.content).join("")}}export{w as a,T as b};
|
||||
32
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-KWGBQNTV.js
generated
vendored
Normal file
32
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-KWGBQNTV.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as $}from"./chunk-QIQMJJZ4.js";import{a as z,b as w}from"./chunk-QAYAQNCG.js";import{constants as x,gunzipSync as F,gzipSync as S}from"node:zlib";var O={name:"gzip",summary:"compress or expand files",usage:"gzip [OPTION]... [FILE]...",description:`Compress FILEs (by default, in-place).
|
||||
|
||||
When no FILE is given, or when FILE is -, read from standard input.
|
||||
|
||||
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"]},U={name:"gunzip",summary:"decompress files",usage:"gunzip [OPTION]... [FILE]...",description:`Decompress FILEs (by default, in-place).
|
||||
|
||||
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"]},D={name:"zcat",summary:"decompress files to stdout",usage:"zcat [OPTION]... [FILE]...",description:`Decompress FILEs to standard output.
|
||||
|
||||
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"]},T={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 E(e){return e.best?x.Z_BEST_COMPRESSION:e.level8?8:e.level7?7:e.level6?6:e.level5?5:e.level4?4:e.level3?3:e.level2?2:e.fast?x.Z_BEST_SPEED:x.Z_DEFAULT_COMPRESSION}function k(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],r=e[4]|e[5]<<8|e[6]<<16|e[7]<<24,o=10;if(t&4){if(o+2>e.length)return{originalName:null,mtime:null,headerSize:0};let n=e[o]|e[o+1]<<8;o+=2+n}let s=null;if(t&8){let n=o;for(;o<e.length&&e[o]!==0;)o++;o<e.length&&(s=new TextDecoder().decode(e.slice(n,o)),o++)}if(t&16){for(;o<e.length&&e[o]!==0;)o++;o++}return t&2&&(o+=2),{originalName:s,mtime:r>0?new Date(r*1e3):null,headerSize:o}}function q(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 b(e){return e.length>=2&&e[0]===31&&e[1]===139}function m(e){return Buffer.from(e).toString("latin1")}function I(e){return e.limits?.maxOutputSize??0}function v(e,t){if(t>0){if(q(e)>t)throw new Error(`decompressed data exceeds limit (${t} bytes)`);return F(e,{maxOutputLength:t})}return F(e)}async function L(e,t,r,o,s,n){let a=r.suffix,f,p,d,c=I(e);if(t==="-"||t==="")if(d=Uint8Array.from(e.stdin,i=>i.charCodeAt(0)),s){if(!b(d))return r.quiet?{stdout:"",stderr:"",exitCode:1}:{stdout:"",stderr:`${o}: stdin: not in gzip format
|
||||
`,exitCode:1};try{let i=v(d,c);return{stdout:m(i),stderr:"",exitCode:0}}catch(i){let l=i instanceof Error?i.message:"unknown error";return{stdout:"",stderr:`${o}: stdin: ${l}
|
||||
`,exitCode:1}}}else{let i=E(r),l=S(d,{level:i});return{stdout:m(l),stderr:"",exitCode:0}}f=e.fs.resolvePath(e.cwd,t);try{if((await e.fs.stat(f)).isDirectory)return r.recursive?await P(e,f,r,o,s,n):r.quiet?{stdout:"",stderr:"",exitCode:1}:{stdout:"",stderr:`${o}: ${t}: is a directory -- ignored
|
||||
`,exitCode:1}}catch{return{stdout:"",stderr:`${o}: ${t}: No such file or directory
|
||||
`,exitCode:1}}try{d=await e.fs.readFileBuffer(f)}catch{return{stdout:"",stderr:`${o}: ${t}: No such file or directory
|
||||
`,exitCode:1}}if(s){if(!t.endsWith(a))return r.quiet?{stdout:"",stderr:"",exitCode:1}:{stdout:"",stderr:`${o}: ${t}: unknown suffix -- ignored
|
||||
`,exitCode:1};if(!b(d))return r.quiet?{stdout:"",stderr:"",exitCode:1}:{stdout:"",stderr:`${o}: ${t}: not in gzip format
|
||||
`,exitCode:1};let i;try{i=v(d,c)}catch(l){let u=l instanceof Error?l.message:"unknown error";return{stdout:"",stderr:`${o}: ${t}: ${u}
|
||||
`,exitCode:1}}if(n)return{stdout:m(i),stderr:"",exitCode:0};if(r.name){let l=k(d);l.originalName?p=e.fs.resolvePath(e.cwd,l.originalName):p=f.slice(0,-a.length)}else p=f.slice(0,-a.length);if(!r.force)try{return await e.fs.stat(p),{stdout:"",stderr:`${o}: ${p} already exists; not overwritten
|
||||
`,exitCode:1}}catch{}if(await e.fs.writeFile(p,i),!r.keep&&!n&&await e.fs.rm(f),r.verbose){let l=d.length>0?((1-d.length/i.length)*100).toFixed(1):"0.0";return{stdout:"",stderr:`${t}: ${l}% -- replaced with ${p.split("/").pop()}
|
||||
`,exitCode:0}}return{stdout:"",stderr:"",exitCode:0}}else{if(t.endsWith(a))return r.quiet?{stdout:"",stderr:"",exitCode:1}:{stdout:"",stderr:`${o}: ${t} already has ${a} suffix -- unchanged
|
||||
`,exitCode:1};let i=E(r),l;try{l=S(d,{level:i})}catch(u){let g=u instanceof Error?u.message:"unknown error";return{stdout:"",stderr:`${o}: ${t}: ${g}
|
||||
`,exitCode:1}}if(n)return{stdout:m(l),stderr:"",exitCode:0};if(p=f+a,!r.force)try{return await e.fs.stat(p),{stdout:"",stderr:`${o}: ${p} already exists; not overwritten
|
||||
`,exitCode:1}}catch{}if(await e.fs.writeFile(p,l),!r.keep&&!n&&await e.fs.rm(f),r.verbose){let u=d.length>0?((1-l.length/d.length)*100).toFixed(1):"0.0";return{stdout:"",stderr:`${t}: ${u}% -- replaced with ${p.split("/").pop()}
|
||||
`,exitCode:0}}return{stdout:"",stderr:"",exitCode:0}}}async function P(e,t,r,o,s,n){let a=await e.fs.readdir(t),f="",p="",d=0;for(let c of a){let i=e.fs.resolvePath(t,c),l=await e.fs.stat(i);if(l.isDirectory){let u=await P(e,i,r,o,s,n);f+=u.stdout,p+=u.stderr,u.exitCode!==0&&(d=u.exitCode)}else if(l.isFile){let u=r.suffix;if(s&&!c.endsWith(u)||!s&&c.endsWith(u))continue;let g=i.startsWith(`${e.cwd}/`)?i.slice(e.cwd.length+1):i,y=await L(e,g,r,o,s,n);f+=y.stdout,p+=y.stderr,y.exitCode!==0&&(d=y.exitCode)}}return{stdout:f,stderr:p,exitCode:d}}async function W(e,t,r,o){let s;if(t==="-"||t==="")s=Uint8Array.from(e.stdin,i=>i.charCodeAt(0));else{let i=e.fs.resolvePath(e.cwd,t);try{s=await e.fs.readFileBuffer(i)}catch{return{stdout:"",stderr:`${o}: ${t}: No such file or directory
|
||||
`,exitCode:1}}}if(!b(s))return r.quiet?{stdout:"",stderr:"",exitCode:1}:{stdout:"",stderr:`${o}: ${t}: not in gzip format
|
||||
`,exitCode:1};let n=s.length,a=q(s),f=a>0?((1-n/a)*100).toFixed(1):"0.0",d=k(s).originalName||(t==="-"?"":t.replace(/\.gz$/,""));return{stdout:`${n.toString().padStart(10)} ${a.toString().padStart(10)} ${f.padStart(5)}% ${d}
|
||||
`,stderr:"",exitCode:0}}async function A(e,t,r,o){let s;if(t==="-"||t==="")s=Uint8Array.from(e.stdin,n=>n.charCodeAt(0));else{let n=e.fs.resolvePath(e.cwd,t);try{s=await e.fs.readFileBuffer(n)}catch{return{stdout:"",stderr:`${o}: ${t}: No such file or directory
|
||||
`,exitCode:1}}}if(!b(s))return r.quiet?{stdout:"",stderr:"",exitCode:1}:{stdout:"",stderr:`${o}: ${t}: not in gzip format
|
||||
`,exitCode:1};try{return v(s,I(e)),r.verbose?{stdout:"",stderr:`${t}: OK
|
||||
`,exitCode:0}:{stdout:"",stderr:"",exitCode:0}}catch(n){let a=n instanceof Error?n.message:"invalid";return{stdout:"",stderr:`${o}: ${t}: ${a}
|
||||
`,exitCode:1}}}async function C(e,t,r){let o=r==="zcat"?D:r==="gunzip"?U:O;if(w(e))return z(o);let s=$(r,e,T);if(!s.ok)return s.error.stderr.includes("unrecognized option"),s.error;let n=s.result.flags,a=s.result.positional,f=r==="gunzip"||r==="zcat"||n.decompress||n.uncompress,p=r==="zcat"||n.stdout||n.toStdout;if(n.list){a.length===0&&(a=["-"]);let l=` compressed uncompressed ratio uncompressed_name
|
||||
`,u="",g=0;for(let y of a){let h=await W(t,y,n,r);l+=h.stdout,u+=h.stderr,h.exitCode!==0&&(g=h.exitCode)}return{stdout:l,stderr:u,exitCode:g}}if(n.test){a.length===0&&(a=["-"]);let l="",u="",g=0;for(let y of a){let h=await A(t,y,n,r);l+=h.stdout,u+=h.stderr,h.exitCode!==0&&(g=h.exitCode)}return{stdout:l,stderr:u,exitCode:g}}a.length===0&&(a=["-"]);let d="",c="",i=0;for(let l of a){let u=await L(t,l,n,r,f,p);d+=u.stdout,c+=u.stderr,u.exitCode!==0&&(i=u.exitCode)}return{stdout:d,stderr:c,exitCode:i}}var Z={name:"gzip",async execute(e,t){return{...await C(e,t,"gzip"),stdoutEncoding:"binary"}}},R={name:"gunzip",async execute(e,t){return{...await C(e,t,"gunzip"),stdoutEncoding:"binary"}}},K={name:"zcat",async execute(e,t){return{...await C(e,t,"zcat"),stdoutEncoding:"binary"}}},j={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},J={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},Q={name:"zcat",flags:[{flag:"-f",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-v",type:"boolean"}],stdinType:"binary",needsFiles:!0};export{Z as a,R as b,K as c,j as d,J as e,Q as f};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-L2UW7DWF.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-L2UW7DWF.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
function n(e){return`'${e.replace(/'/g,"'\\''")}'`}function r(e){return e.map(n).join(" ")}export{r as a};
|
||||
9
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-LI6PTSPD.js
generated
vendored
Normal file
9
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-LI6PTSPD.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
async function c(t,e){if(t.length>0&&t[0]!=="-"){let i=e.fs.resolvePath(e.cwd,t[0]);try{let s=(await e.fs.readFile(i)).split(`
|
||||
`);s[s.length-1]===""&&s.pop();let r=s.reverse();return{stdout:r.length>0?`${r.join(`
|
||||
`)}
|
||||
`:"",stderr:"",exitCode:0}}catch{return{stdout:"",stderr:`tac: ${t[0]}: No such file or directory
|
||||
`,exitCode:1}}}let n=e.stdin.split(`
|
||||
`);n[n.length-1]===""&&n.pop();let o=n.reverse();return{stdout:o.length>0?`${o.join(`
|
||||
`)}
|
||||
`:"",stderr:"",exitCode:0,stdoutKind:"bytes"}}var u={name:"tac",execute:c},f={name:"tac",flags:[],stdinType:"text",needsFiles:!0};export{u as a,f as b};
|
||||
8
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-LPJEKUCB.js
generated
vendored
Normal file
8
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-LPJEKUCB.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as p}from"./chunk-FOCWZZDE.js";import{a as m}from"./chunk-QIQMJJZ4.js";import{a as u}from"./chunk-W5DWRFSU.js";var v={recursive:{short:"r",long:"recursive",type:"boolean"},recursiveUpper:{short:"R",type:"boolean"},force:{short:"f",long:"force",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"}},E={name:"rm",async execute(g,s){let e=m("rm",g,v);if(!e.ok)return e.error;let i=e.result.flags.recursive||e.result.flags.recursiveUpper,a=e.result.flags.force,d=e.result.flags.verbose,c=e.result.positional;if(c.length===0)return a?{stdout:"",stderr:"",exitCode:0}:{stdout:"",stderr:`rm: missing operand
|
||||
`,exitCode:1};let f="",t="",l=0;for(let r of c)try{let n=s.fs.resolvePath(s.cwd,r);if((await s.fs.stat(n)).isDirectory&&!i){t+=`rm: cannot remove '${r}': Is a directory
|
||||
`,l=1;continue}await s.fs.rm(n,{recursive:i,force:a}),d&&(f+=`removed '${r}'
|
||||
`)}catch(n){if(!a){let o=u(n);o.includes("ENOENT")||o.includes("no such file")?t+=`rm: cannot remove '${r}': No such file or directory
|
||||
`:o.includes("ENOTEMPTY")||o.includes("not empty")?t+=`rm: cannot remove '${r}': Directory not empty
|
||||
`:t+=`rm: cannot remove '${r}': ${p(o)}
|
||||
`,l=1}}return{stdout:f,stderr:t,exitCode:l}}},$={name:"rm",flags:[{flag:"-r",type:"boolean"},{flag:"-R",type:"boolean"},{flag:"-f",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0};export{E as a,$ as b};
|
||||
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-LSLPJOYM.js
generated
vendored
Normal file
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-LSLPJOYM.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as d}from"./chunk-QIQMJJZ4.js";import{a as p,b as l}from"./chunk-QAYAQNCG.js";var m={name:"tee",summary:"read from stdin and write to stdout and files",usage:"tee [OPTION]... [FILE]...",options:["-a, --append append to the given FILEs, do not overwrite"," --help display this help and exit"]},u={append:{short:"a",long:"append",type:"boolean"}},w={name:"tee",async execute(r,e){if(l(r))return p(m);let t=d("tee",r,u);if(!t.ok)return t.error;let{append:f}=t.result.flags,c=t.result.positional,o=e.stdin,s="",a=0;for(let i of c)try{let n=e.fs.resolvePath(e.cwd,i);f?await e.fs.appendFile(n,o,"binary"):await e.fs.writeFile(n,o,"binary")}catch{s+=`tee: ${i}: No such file or directory
|
||||
`,a=1}return{stdout:o,stderr:s,exitCode:a,stdoutEncoding:"binary"}}},b={name:"tee",flags:[{flag:"-a",type:"boolean"}],stdinType:"text",needsArgs:!0};export{w as a,b};
|
||||
14
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-MFDPAVC6.js
generated
vendored
Normal file
14
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-MFDPAVC6.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as c,b as u,c as d}from"./chunk-QAYAQNCG.js";var p={name:"strings",summary:"print the sequences of printable characters in files",usage:"strings [OPTION]... [FILE]...",description:"For each FILE, print the printable character sequences that are at least MIN characters long. If no FILE is specified, standard input is read.",options:["-n MIN Print sequences of at least MIN characters (default: 4)","-t FORMAT Print offset before each string (o=octal, x=hex, d=decimal)","-a Scan the entire file (default behavior)","-e ENCODING Select character encoding (s=7-bit, S=8-bit)"],examples:["strings file.bin # Extract strings (min 4 chars)","strings -n 8 file.bin # Extract strings (min 8 chars)","strings -t x file.bin # Show hex offset","echo 'hello' | strings # Read from stdin"]};function x(n){return n>=32&&n<=126||n===9}function g(n,s){if(s===null)return"";switch(s){case"o":return`${n.toString(8).padStart(7," ")} `;case"x":return`${n.toString(16).padStart(7," ")} `;case"d":return`${n.toString(10).padStart(7," ")} `;default:return s}}function h(n,s){let o=[],r="",i=0,a=typeof n=="string"?new TextEncoder().encode(n):n;for(let l=0;l<a.length;l++){let t=a[l];if(x(t))r.length===0&&(i=l),r+=String.fromCharCode(t);else{if(r.length>=s.minLength){let e=g(i,s.offsetFormat);o.push(`${e}${r}`)}r=""}}if(r.length>=s.minLength){let l=g(i,s.offsetFormat);o.push(`${l}${r}`)}return o}var v={name:"strings",execute:async(n,s)=>{if(u(n))return c(p);let o={minLength:4,offsetFormat:null},r=[],i=0;for(;i<n.length;){let t=n[i];if(t==="-n"&&i+1<n.length){let e=Number.parseInt(n[i+1],10);if(Number.isNaN(e)||e<1)return{exitCode:1,stdout:"",stderr:`strings: invalid minimum string length: '${n[i+1]}'
|
||||
`};o.minLength=e,i+=2}else if(t.match(/^-n\d+$/)){let e=Number.parseInt(t.slice(2),10);if(Number.isNaN(e)||e<1)return{exitCode:1,stdout:"",stderr:`strings: invalid minimum string length: '${t.slice(2)}'
|
||||
`};o.minLength=e,i++}else if(t.match(/^-\d+$/)){let e=Number.parseInt(t.slice(1),10);if(Number.isNaN(e)||e<1)return{exitCode:1,stdout:"",stderr:`strings: invalid minimum string length: '${t.slice(1)}'
|
||||
`};o.minLength=e,i++}else if(t==="-t"&&i+1<n.length){let e=n[i+1];if(e!=="o"&&e!=="x"&&e!=="d")return{exitCode:1,stdout:"",stderr:`strings: invalid radix: '${e}'
|
||||
`};o.offsetFormat=e,i+=2}else if(t.startsWith("-t")&&t.length===3){let e=t[2];if(e!=="o"&&e!=="x"&&e!=="d")return{exitCode:1,stdout:"",stderr:`strings: invalid radix: '${e}'
|
||||
`};o.offsetFormat=e,i++}else if(t==="-a"||t==="--all"||t==="-")t==="-"&&r.push(t),i++;else if(t==="-e"&&i+1<n.length){let e=n[i+1];if(e!=="s"&&e!=="S")return{exitCode:1,stdout:"",stderr:`strings: invalid encoding: '${e}'
|
||||
`};i+=2}else if(t.startsWith("-e")&&t.length===3){let e=t[2];if(e!=="s"&&e!=="S")return{exitCode:1,stdout:"",stderr:`strings: invalid encoding: '${e}'
|
||||
`};i++}else if(t==="--"){r.push(...n.slice(i+1));break}else{if(t.startsWith("-")&&t!=="-")return d("strings",t);r.push(t),i++}}let a="",l=()=>Uint8Array.from(s.stdin??"",t=>t.charCodeAt(0));if(r.length===0){let t=h(l(),o);a=t.length>0?`${t.join(`
|
||||
`)}
|
||||
`:""}else for(let t of r){let e;if(t==="-")e=l();else{let m=s.fs.resolvePath(s.cwd,t);try{e=await s.fs.readFileBuffer(m)}catch{return{exitCode:1,stdout:a,stderr:`strings: ${t}: No such file or directory
|
||||
`}}}let f=h(e,o);f.length>0&&(a+=`${f.join(`
|
||||
`)}
|
||||
`)}return{exitCode:0,stdout:a,stderr:""}}},F={name:"strings",flags:[{flag:"-n",type:"value",valueHint:"number"},{flag:"-t",type:"value",valueHint:"string"},{flag:"-a",type:"boolean"},{flag:"-e",type:"value",valueHint:"string"}],stdinType:"text",needsFiles:!0};export{v as a,F as b};
|
||||
6
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-MFRETFZB.js
generated
vendored
Normal file
6
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-MFRETFZB.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as f}from"./chunk-KTPCYKBB.js";import{a as d}from"./chunk-QIQMJJZ4.js";import{a as m,b as p}from"./chunk-QAYAQNCG.js";var b={name:"cat",summary:"concatenate files and print on the standard output",usage:"cat [OPTION]... [FILE]...",options:["-n, --number number all output lines"," --help display this help and exit"]},g={number:{short:"n",long:"number",type:"boolean"}},L={name:"cat",async execute(t,o){if(p(t))return m(b);let e=d("cat",t,g);if(!e.ok)return e.error;let r=e.result.flags.number,s=e.result.positional,a=await f(o,s,{cmdName:"cat",allowStdinMarker:!0,stopOnError:!1}),n="",l=1;for(let{content:i}of a.files){let u=i;if(r){let c=y(u,l);n+=c.content,l=c.nextLineNumber}else n+=u}return{stdout:n,stderr:a.stderr,exitCode:a.exitCode,stdoutEncoding:"binary"}}};function y(t,o){let e=t.split(`
|
||||
`),r=t.endsWith(`
|
||||
`),s=r?e.slice(0,-1):e;return{content:s.map((n,l)=>`${String(o+l).padStart(6," ")} ${n}`).join(`
|
||||
`)+(r?`
|
||||
`:""),nextLineNumber:o+s.length}}var T={name:"cat",flags:[{flag:"-n",type:"boolean"},{flag:"-A",type:"boolean"},{flag:"-b",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-v",type:"boolean"},{flag:"-e",type:"boolean"},{flag:"-t",type:"boolean"}],stdinType:"text",needsFiles:!0};export{L as a,T as b};
|
||||
8
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-MIZIUC5M.js
generated
vendored
Normal file
8
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-MIZIUC5M.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{c as y}from"./chunk-XEKXHOPO.js";import{a as C}from"./chunk-QIQMJJZ4.js";import{a as F,b as x}from"./chunk-QAYAQNCG.js";var H={name:"column",summary:"columnate lists",usage:"column [OPTION]... [FILE]...",description:"Format input into multiple columns. By default, fills rows first. Use -t to create a table based on whitespace-delimited input.",options:["-t Create a table (determine columns from input)","-s SEP Input field delimiter (default: whitespace)","-o SEP Output field delimiter (default: two spaces)","-c WIDTH Output width for fill mode (default: 80)","-n Don't merge multiple adjacent delimiters"],examples:["ls | column # Fill columns with ls output","cat data | column -t # Format as table","column -t -s ',' file # Format CSV as table","column -c 40 file # Fill 40-char wide columns"]},I={table:{short:"t",long:"table",type:"boolean"},separator:{short:"s",type:"string"},outputSep:{short:"o",type:"string"},width:{short:"c",type:"number",default:80},noMerge:{short:"n",type:"boolean"}};function v(t,e,o){return e?o?t.split(e):t.split(e).filter(n=>n.length>0):o?t.split(/[ \t]/):t.split(/[ \t]+/).filter(n=>n.length>0)}function T(t){let e=[];for(let o of t)for(let n=0;n<o.length;n++){let l=o[n].length;(e[n]===void 0||l>e[n])&&(e[n]=l)}return e}function W(t,e){if(t.length===0)return"";let o=T(t),n=[];for(let l of t){let c=[];for(let s=0;s<l.length;s++)s===l.length-1?c.push(l[s]):c.push(l[s].padEnd(o[s]));n.push(c.join(e))}return n.join(`
|
||||
`)}function j(t,e,o){if(t.length===0)return"";let n=Math.max(...t.map(a=>a.length)),l=o.length,c=n+l,s=Math.max(1,Math.floor((e+l)/c)),p=Math.ceil(t.length/s),d=[];for(let a=0;a<p;a++){let i=[];for(let r=0;r<s;r++){let m=r*p+a;m<t.length&&(r===s-1||(r+1)*p+a>=t.length?i.push(t[m]):i.push(t[m].padEnd(n)))}d.push(i.join(o))}return d.join(`
|
||||
`)}var S={name:"column",execute:async(t,e)=>{if(x(t))return F(H);let o=C("column",t,I);if(!o.ok)return o.error;let{table:n,separator:l,outputSep:c,width:s,noMerge:p}=o.result.flags,d=o.result.positional,a=c??" ",i;if(d.length===0)i=y(e.stdin)??"";else{let u=[];for(let f of d)if(f==="-")u.push(y(e.stdin)??"");else{let w=e.fs.resolvePath(e.cwd,f),b=await e.fs.readFile(w);if(b===null)return{exitCode:1,stdout:"",stderr:`column: ${f}: No such file or directory
|
||||
`};u.push(b)}i=u.join("")}if(i===""||i.trim()==="")return{exitCode:0,stdout:"",stderr:""};let r=i.split(`
|
||||
`);i.endsWith(`
|
||||
`)&&r[r.length-1]===""&&r.pop();let g=r.filter(u=>u.trim().length>0),h;if(n){let u=g.map(f=>v(f,l,p));h=W(u,a)}else{let u=[];for(let f of g){let w=v(f,l,p);u.push(...w)}h=j(u,s,a)}return h.length>0&&(h+=`
|
||||
`),{exitCode:0,stdout:h,stderr:""}}},L={name:"column",flags:[{flag:"-t",type:"boolean"},{flag:"-s",type:"value",valueHint:"delimiter"},{flag:"-o",type:"value",valueHint:"string"},{flag:"-c",type:"value",valueHint:"number"},{flag:"-n",type:"boolean"}],stdinType:"text",needsFiles:!0};export{S as a,L as b};
|
||||
14
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-MJLETYZI.js
generated
vendored
Normal file
14
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-MJLETYZI.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as Z}from"./chunk-RBQG6ZUG.js";import{a as _,c as N}from"./chunk-27JIFWUR.js";import{k as A}from"./chunk-SAI2SPQQ.js";import{a as z}from"./chunk-W5DWRFSU.js";import{a as F,b as W}from"./chunk-QAYAQNCG.js";import{sprintf as g}from"sprintf-js";function q(e){let s="",t=0;for(;t<e.length;){let r=e[t];if(r<128){s+=String.fromCharCode(r),t++;continue}if((r&224)===192){if(t+1<e.length&&(e[t+1]&192)===128&&r>=194){let i=(r&31)<<6|e[t+1]&63;s+=String.fromCharCode(i),t+=2;continue}s+=String.fromCharCode(r),t++;continue}if((r&240)===224){if(t+2<e.length&&(e[t+1]&192)===128&&(e[t+2]&192)===128){if(r===224&&e[t+1]<160){s+=String.fromCharCode(r),t++;continue}let i=(r&15)<<12|(e[t+1]&63)<<6|e[t+2]&63;if(i>=55296&&i<=57343){s+=String.fromCharCode(r),t++;continue}s+=String.fromCharCode(i),t+=3;continue}s+=String.fromCharCode(r),t++;continue}if((r&248)===240&&r<=244){if(t+3<e.length&&(e[t+1]&192)===128&&(e[t+2]&192)===128&&(e[t+3]&192)===128){if(r===240&&e[t+1]<144){s+=String.fromCharCode(r),t++;continue}let i=(r&7)<<18|(e[t+1]&63)<<12|(e[t+2]&63)<<6|e[t+3]&63;if(i>1114111){s+=String.fromCharCode(r),t++;continue}s+=String.fromCodePoint(i),t+=4;continue}s+=String.fromCharCode(r),t++;continue}s+=String.fromCharCode(r),t++}return s}var H={name:"printf",summary:"format and print data",usage:"printf [-v var] FORMAT [ARGUMENT...]",options:[" -v var assign the output to shell variable VAR rather than display it"," --help display this help and exit"],notes:["FORMAT controls the output like in C printf.","Escape sequences: \\n (newline), \\t (tab), \\\\ (backslash)","Format specifiers: %s (string), %d (integer), %f (float), %x (hex), %o (octal), %% (literal %)","Width and precision: %10s (width 10), %.2f (2 decimal places), %010d (zero-padded)","Flags: %- (left-justify), %+ (show sign), %0 (zero-pad)"]},re={name:"printf",async execute(e,s){if(W(e))return F(H);if(e.length===0)return{stdout:"",stderr:`printf: usage: printf format [arguments]
|
||||
`,exitCode:2};let t=null,r=0;for(;r<e.length;){let l=e[r];if(l==="--"){r++;break}if(l==="-v"){if(r+1>=e.length)return{stdout:"",stderr:`printf: -v: option requires an argument
|
||||
`,exitCode:1};if(t=e[r+1],!/^[a-zA-Z_][a-zA-Z0-9_]*(\[[a-zA-Z0-9_@*"'$]+\])?$/.test(t))return{stdout:"",stderr:`printf: \`${t}': not a valid identifier
|
||||
`,exitCode:2};r+=2}else{if(l.startsWith("-")&&l!=="-")break;break}}if(r>=e.length)return{stdout:"",stderr:`printf: usage: printf format [arguments]
|
||||
`,exitCode:1};let i=e[r],n=e.slice(r+1);try{let l=N(i),a="",f=0,o=!1,c="",E=s.env.get("TZ"),h=s.limits?.maxStringLength;do{let{result:m,argsConsumed:v,error:u,errMsg:C,stopped:S}=L(l,n,f,E);if(a+=m,h!==void 0&&h>0&&a.length>h)throw new A(`printf: output size limit exceeded (${h} bytes)`,"string_length");if(f+=v,u&&(o=!0,C&&(c=C)),S)break}while(f<n.length&&f>0);if(f===0&&n.length>0,t){let m=t.match(/^([a-zA-Z_][a-zA-Z0-9_]*)\[(['"]?)(.+?)\2\]$/);if(m){let v=m[1],u=m[3];u=u.replace(/\$([a-zA-Z_][a-zA-Z0-9_]*)/g,(C,S)=>s.env.get(S)??""),s.env.set(`${v}_${u}`,a)}else s.env.set(t,a);return{stdout:"",stderr:c,exitCode:o?1:0}}return{stdout:a,stderr:c,exitCode:o?1:0}}catch(l){if(l instanceof A)throw l;return{stdout:"",stderr:`printf: ${z(l)}
|
||||
`,exitCode:1}}}};function L(e,s,t,r){let i="",n=0,l=0,a=!1,f="";for(;n<e.length;)if(e[n]==="%"&&n+1<e.length){let o=n;if(n++,e[n]==="%"){i+="%",n++;continue}let c=e.slice(o).match(/^%(-?\d*)(?:\.(\d+))?\(([^)]*)\)T/);if(c){let x=c[1]?parseInt(c[1],10):0,b=c[2]?parseInt(c[2],10):-1,R=c[3],U=c[0],w=s[t+l]||"";l++;let $;w===""||w==="-1"||w==="-2"?$=Math.floor(Date.now()/1e3):$=parseInt(w,10)||0;let p=Z(R,$,r);if(b>=0&&p.length>b&&(p=p.slice(0,b)),x!==0){let M=Math.abs(x);p.length<M&&(x<0?p=p.padEnd(M," "):p=p.padStart(M," "))}i+=p,n=o+U.length;continue}for(;n<e.length&&"+-0 #'".includes(e[n]);)n++;let E=!1;if(e[n]==="*")E=!0,n++;else for(;n<e.length&&/\d/.test(e[n]);)n++;let h=!1;if(e[n]===".")if(n++,e[n]==="*")h=!0,n++;else for(;n<e.length&&/\d/.test(e[n]);)n++;n<e.length&&"hlL".includes(e[n])&&n++;let m=e[n]||"";n++;let u=e.slice(o,n);if(E){let x=parseInt(s[t+l]||"0",10);l++,u=u.replace("*",String(x))}if(h){let x=parseInt(s[t+l]||"0",10);l++,u=u.replace(".*",`.${x}`)}let C=s[t+l]||"";l++;let{value:S,parseError:P,parseErrMsg:k,stopped:j}=X(u,m,C);if(i+=S,P&&(a=!0,k&&(f=k)),j)return{result:i,argsConsumed:l,error:a,errMsg:f,stopped:!0}}else i+=e[n],n++;return{result:i,argsConsumed:l,error:a,errMsg:f,stopped:!1}}function X(e,s,t){let r=!1,i="";switch(s){case"d":case"i":{let n=I(t);return r=d,r&&(i=`printf: ${t}: invalid number
|
||||
`),{value:T(e,n),parseError:r,parseErrMsg:i}}case"o":{let n=I(t);return r=d,r&&(i=`printf: ${t}: invalid number
|
||||
`),{value:D(e,n),parseError:r,parseErrMsg:i}}case"u":{let n=I(t);r=d,r&&(i=`printf: ${t}: invalid number
|
||||
`);let l=n<0?n>>>0:n;return{value:T(e.replace("u","d"),l),parseError:r,parseErrMsg:i}}case"x":case"X":{let n=I(t);return r=d,r&&(i=`printf: ${t}: invalid number
|
||||
`),{value:G(e,n),parseError:r,parseErrMsg:i}}case"e":case"E":case"f":case"F":case"g":case"G":{let n=parseFloat(t)||0;return{value:y(e,s,n),parseError:!1,parseErrMsg:""}}case"c":{if(t==="")return{value:"",parseError:!1,parseErrMsg:""};let a=new TextEncoder().encode(t)[0];return{value:String.fromCharCode(a),parseError:!1,parseErrMsg:""}}case"s":return{value:Q(e,t),parseError:!1,parseErrMsg:""};case"q":return{value:V(e,t),parseError:!1,parseErrMsg:""};case"b":{let n=B(t);return{value:n.value,parseError:!1,parseErrMsg:"",stopped:n.stopped}}default:try{return{value:g(e,t),parseError:!1,parseErrMsg:""}}catch{return{value:"",parseError:!0,parseErrMsg:`printf: [sprintf] unexpected placeholder
|
||||
`}}}}var d=!1;function I(e){d=!1;let s=e.trimStart(),t=s!==s.trimEnd();if(e=s.trimEnd(),e.startsWith("'")&&e.length>=2||e.startsWith('"')&&e.length>=2)return e.charCodeAt(1);if(e.startsWith("\\'")&&e.length>=3||e.startsWith('\\"')&&e.length>=3)return e.charCodeAt(2);if(e.startsWith("+")&&(e=e.slice(1)),e.startsWith("0x")||e.startsWith("0X")){let r=parseInt(e,16);return Number.isNaN(r)?(d=!0,0):(t&&(d=!0),r)}if(e.startsWith("0")&&e.length>1&&/^-?0[0-7]+$/.test(e))return t&&(d=!0),parseInt(e,8)||0;if(/^\d+#/.test(e)){d=!0;let r=e.match(/^(\d+)#/);return r?parseInt(r[1],10):0}if(e!==""&&!/^-?\d+$/.test(e)){d=!0;let r=parseInt(e,10);return Number.isNaN(r)?0:r}return t&&(d=!0),parseInt(e,10)||0}function T(e,s){let t=e.match(/^%([- +#0']*)(\d*)(\.(\d*))?[diu]$/);if(!t)return g(e.replace(/\.\d*/,""),s);let r=t[1]||"",i=t[2]?parseInt(t[2],10):0,n=t[3]!==void 0?t[4]?parseInt(t[4],10):0:-1,l=s<0,a=Math.abs(s),f=String(a);n>=0&&(f=f.padStart(n,"0"));let o="";l?o="-":r.includes("+")?o="+":r.includes(" ")&&(o=" ");let c=o+f;return i>c.length&&(r.includes("-")?c=c.padEnd(i," "):r.includes("0")&&n<0?c=o+f.padStart(i-o.length,"0"):c=c.padStart(i," ")),c}function D(e,s){let t=e.match(/^%([- +#0']*)(\d*)(\.(\d*))?o$/);if(!t)return g(e,s);let r=t[1]||"",i=t[2]?parseInt(t[2],10):0,n=t[3]!==void 0?t[4]?parseInt(t[4],10):0:-1,l=Math.abs(s).toString(8);n>=0&&(l=l.padStart(n,"0")),r.includes("#")&&!l.startsWith("0")&&(l=`0${l}`);let a=l;return i>a.length&&(r.includes("-")?a=a.padEnd(i," "):r.includes("0")&&n<0?a=a.padStart(i,"0"):a=a.padStart(i," ")),a}function G(e,s){let t=e.includes("X"),r=e.match(/^%([- +#0']*)(\d*)(\.(\d*))?[xX]$/);if(!r)return g(e,s);let i=r[1]||"",n=r[2]?parseInt(r[2],10):0,l=r[3]!==void 0?r[4]?parseInt(r[4],10):0:-1,a=Math.abs(s).toString(16);t&&(a=a.toUpperCase()),l>=0&&(a=a.padStart(l,"0"));let f="";i.includes("#")&&s!==0&&(f=t?"0X":"0x");let o=f+a;return n>o.length&&(i.includes("-")?o=o.padEnd(n," "):i.includes("0")&&l<0?o=f+a.padStart(n-f.length,"0"):o=o.padStart(n," ")),o}function O(e){if(e==="")return"''";if(/^[a-zA-Z0-9_./-]+$/.test(e))return e;if(/[\x00-\x1f\x7f-\xff]/.test(e)){let r="$'";for(let i of e){let n=i.charCodeAt(0);i==="'"?r+="\\'":i==="\\"?r+="\\\\":i===`
|
||||
`?r+="\\n":i===" "?r+="\\t":i==="\r"?r+="\\r":i==="\x07"?r+="\\a":i==="\b"?r+="\\b":i==="\f"?r+="\\f":i==="\v"?r+="\\v":i==="\x1B"?r+="\\E":n<32||n>=127&&n<=255?r+=`\\${n.toString(8).padStart(3,"0")}`:i==='"'?r+='\\"':r+=i}return r+="'",r}let t="";for(let r of e)" |&;<>()$`\\\"'*?[#~=%!{}".includes(r)?t+=`\\${r}`:t+=r;return t}function Q(e,s){let t=e.match(/^%(-?)(\d*)(\.(\d*))?s$/);if(!t)return g(e.replace(/0+(?=\d)/,""),s);let r=t[1]==="-",i=t[2]?parseInt(t[2],10):0,n=t[3]!==void 0?t[4]?parseInt(t[4],10):0:-1,l=r?-i:i;return _(s,l,n)}function V(e,s){let t=O(s),r=e.match(/^%(-?)(\d*)q$/);if(!r)return t;let i=r[1]==="-",n=r[2]?parseInt(r[2],10):0,l=t;return n>l.length&&(i?l=l.padEnd(n," "):l=l.padStart(n," ")),l}function y(e,s,t){let r=e.match(/^%([- +#0']*)(\d*)(\.(\d*))?[eEfFgG]$/);if(!r)return g(e,t);let i=r[1]||"",n=r[2]?parseInt(r[2],10):0,l=r[3]!==void 0?r[4]?parseInt(r[4],10):0:6,a,f=s.toLowerCase();if(f==="e"?(a=t.toExponential(l),a=a.replace(/e([+-])(\d)$/,"e$10$2"),s==="E"&&(a=a.toUpperCase())):f==="f"?(a=t.toFixed(l),i.includes("#")&&l===0&&!a.includes(".")&&(a+=".")):f==="g"?(a=t.toPrecision(l||1),i.includes("#")||(a=a.replace(/\.?0+$/,""),a=a.replace(/\.?0+e/,"e")),a=a.replace(/e([+-])(\d)$/,"e$10$2"),s==="G"&&(a=a.toUpperCase())):a=t.toString(),t>=0&&(i.includes("+")?a=`+${a}`:i.includes(" ")&&(a=` ${a}`)),n>a.length)if(i.includes("-"))a=a.padEnd(n," ");else if(i.includes("0")){let o=a.match(/^[+ -]/)?.[0]||"",c=o?a.slice(1):a;a=o+c.padStart(n-o.length,"0")}else a=a.padStart(n," ");return a}function B(e){let s="",t=0;for(;t<e.length;)if(e[t]==="\\"&&t+1<e.length)switch(e[t+1]){case"n":s+=`
|
||||
`,t+=2;break;case"t":s+=" ",t+=2;break;case"r":s+="\r",t+=2;break;case"\\":s+="\\",t+=2;break;case"a":s+="\x07",t+=2;break;case"b":s+="\b",t+=2;break;case"f":s+="\f",t+=2;break;case"v":s+="\v",t+=2;break;case"c":return{value:s,stopped:!0};case"x":{let i=[],n=t;for(;n+1<e.length&&e[n]==="\\"&&e[n+1]==="x";){let l="",a=n+2;for(;a<e.length&&a<n+4&&/[0-9a-fA-F]/.test(e[a]);)l+=e[a],a++;if(l)i.push(parseInt(l,16)),n=a;else break}i.length>0?(s+=q(i),t=n):(s+="\\x",t+=2);break}case"u":{let i="",n=t+2;for(;n<e.length&&n<t+6&&/[0-9a-fA-F]/.test(e[n]);)i+=e[n],n++;i?(s+=String.fromCodePoint(parseInt(i,16)),t=n):(s+="\\u",t+=2);break}case"0":{let i="",n=t+2;for(;n<e.length&&n<t+5&&/[0-7]/.test(e[n]);)i+=e[n],n++;i?s+=String.fromCharCode(parseInt(i,8)):s+="\0",t=n;break}case"1":case"2":case"3":case"4":case"5":case"6":case"7":{let i="",n=t+1;for(;n<e.length&&n<t+4&&/[0-7]/.test(e[n]);)i+=e[n],n++;s+=String.fromCharCode(parseInt(i,8)),t=n;break}default:s+=e[t],t++}else s+=e[t],t++;return{value:s,stopped:!1}}var ie={name:"printf",flags:[{flag:"-v",type:"value",valueHint:"string"}],stdinType:"none",needsArgs:!0};export{re as a,ie as b};
|
||||
7
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-MLIO3BK2.js
generated
vendored
Normal file
7
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-MLIO3BK2.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as f}from"./chunk-FOCWZZDE.js";import{a as d}from"./chunk-QIQMJJZ4.js";import{a as l}from"./chunk-W5DWRFSU.js";var p={recursive:{short:"p",long:"parents",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"}},b={name:"mkdir",async execute(m,t){let e=d("mkdir",m,p);if(!e.ok)return e.error;let u=e.result.flags.recursive,g=e.result.flags.verbose,n=e.result.positional;if(n.length===0)return{stdout:"",stderr:`mkdir: missing operand
|
||||
`,exitCode:1};let a="",o="",c=0;for(let r of n)try{let i=t.fs.resolvePath(t.cwd,r);await t.fs.mkdir(i,{recursive:u}),g&&(a+=`mkdir: created directory '${r}'
|
||||
`)}catch(i){let s=l(i);s.includes("ENOENT")||s.includes("no such file")?o+=`mkdir: cannot create directory '${r}': No such file or directory
|
||||
`:s.includes("EEXIST")||s.includes("already exists")?o+=`mkdir: cannot create directory '${r}': File exists
|
||||
`:o+=`mkdir: cannot create directory '${r}': ${f(s)}
|
||||
`,c=1}return{stdout:a,stderr:o,exitCode:c}}},h={name:"mkdir",flags:[{flag:"-p",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0};export{b as a,h as b};
|
||||
16
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-MQKGGNPS.js
generated
vendored
Normal file
16
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-MQKGGNPS.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as r}from"./chunk-L2UW7DWF.js";var c=new Map([["File operations",["ls","cat","head","tail","wc","touch","mkdir","rm","cp","mv","ln","chmod","stat","readlink"]],["Text processing",["grep","sed","awk","sort","uniq","cut","tr","tee","diff"]],["Search",["find"]],["Navigation & paths",["pwd","basename","dirname","tree","du"]],["Environment & shell",["echo","printf","env","printenv","export","alias","unalias","history","clear","true","false","bash","sh"]],["Data processing",["xargs","jq","base64","date"]],["Network",["curl","html-to-markdown"]]]);function d(n){let e=[],s=new Set(n);e.push(`Available commands:
|
||||
`);let t=[];for(let[a,l]of c){let o=l.filter(i=>s.has(i));if(o.length>0){e.push(` ${a}:`),e.push(` ${o.join(", ")}
|
||||
`);for(let i of o)s.delete(i)}}for(let a of s)t.push(a);return t.length>0&&(e.push(" Other:"),e.push(` ${t.sort().join(", ")}
|
||||
`)),e.push("Use '<command> --help' for details on a specific command."),`${e.join(`
|
||||
`)}
|
||||
`}var h={name:"help",async execute(n,e){if(n.includes("--help")||n.includes("-h"))return{stdout:`help - display available commands
|
||||
|
||||
Usage: help [command]
|
||||
|
||||
Options:
|
||||
-h, --help Show this help message
|
||||
|
||||
If a command name is provided, shows help for that command.
|
||||
Otherwise, lists all available commands.
|
||||
`,stderr:"",exitCode:0};if(n.length>0&&e.exec){let t=n[0];return e.exec(r([t]),{cwd:e.cwd,signal:e.signal,args:["--help"]})}let s=e.getRegisteredCommands?.()??[];return{stdout:d(s),stderr:"",exitCode:0}}},p={name:"help",flags:[]};export{h as a,p as b};
|
||||
6
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-MTHXXA6H.js
generated
vendored
Normal file
6
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-MTHXXA6H.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as T}from"./chunk-KTPCYKBB.js";import{c as b}from"./chunk-XEKXHOPO.js";import{a as M}from"./chunk-QIQMJJZ4.js";import{a as S,b as F}from"./chunk-QAYAQNCG.js";var H={name:"wc",summary:"print newline, word, and byte counts for each file",usage:"wc [OPTION]... [FILE]...",options:["-c, --bytes print the byte counts","-m, --chars print the character counts","-l, --lines print the newline counts","-w, --words print the word counts"," --help display this help and exit"]},O={lines:{short:"l",long:"lines",type:"boolean"},words:{short:"w",long:"words",type:"boolean"},bytes:{short:"c",long:"bytes",type:"boolean"},chars:{short:"m",long:"chars",type:"boolean"}},N={name:"wc",async execute(a,f){if(F(a))return S(H);let s=M("wc",a,O);if(!s.ok)return s.error;let{lines:o,words:n}=s.result.flags,l=s.result.flags.bytes,e=s.result.flags.chars,t=s.result.positional;!o&&!n&&!l&&!e&&(o=n=l=!0);let c=l||e,i=await T(f,t,{cmdName:"wc",stopOnError:!1});if(t.length===0){let r=C(i.files[0].content,e);return{stdout:`${x(r,o,n,c,"",0)}
|
||||
`,stderr:"",exitCode:0}}let d=[],m=0,g=0,u=0;for(let{filename:r,content:y}of i.files){let p=C(y,e);m+=p.lines,g+=p.words,u+=p.third,d.push({filename:r,stats:p})}let L=t.length>1?m:Math.max(...d.map(r=>r.stats.lines)),$=t.length>1?g:Math.max(...d.map(r=>r.stats.words)),B=t.length>1?u:Math.max(...d.map(r=>r.stats.third)),h=t.length>1?3:0;o&&(h=Math.max(h,String(L).length)),n&&(h=Math.max(h,String($).length)),c&&(h=Math.max(h,String(B).length));let w="";for(let{filename:r,stats:y}of d)w+=`${x(y,o,n,c,r,h)}
|
||||
`;return t.length>1&&(w+=`${x({lines:m,words:g,third:u},o,n,c,"total",h)}
|
||||
`),{stdout:w,stderr:i.stderr,exitCode:i.exitCode}}};function C(a,f){let s=a,o=s.length,n=f?Array.from(b(a)).length:o,l=0,e=0,t=!1;for(let c=0;c<o;c++){let i=s[c];i===`
|
||||
`?(l++,t&&(e++,t=!1)):i===" "||i===" "||i==="\r"?t&&(e++,t=!1):t=!0}return t&&e++,{lines:l,words:e,third:n}}function x(a,f,s,o,n,l){let e=[];f&&e.push(String(a.lines).padStart(l)),s&&e.push(String(a.words).padStart(l)),o&&e.push(String(a.third).padStart(l));let t=e.join(" ");return n&&(t+=` ${n}`),t}var j={name:"wc",flags:[{flag:"-l",type:"boolean"},{flag:"-w",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-m",type:"boolean"}],stdinType:"text",needsFiles:!0};export{N as a,j as b};
|
||||
5
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-NGPDJCUE.js
generated
vendored
Normal file
5
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-NGPDJCUE.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as $}from"./chunk-L2UW7DWF.js";import{c as v}from"./chunk-XEKXHOPO.js";import{a as L,b as M,c as w}from"./chunk-QAYAQNCG.js";var N={name:"xargs",summary:"build and execute command lines from standard input",usage:"xargs [OPTION]... [COMMAND [INITIAL-ARGS]]",options:["-I REPLACE replace occurrences of REPLACE with input","-d DELIM use DELIM as input delimiter (e.g., -d '\\n' for newline)","-n NUM use at most NUM arguments per command line","-P NUM run at most NUM processes at a time","-0, --null items are separated by null, not whitespace","-t, --verbose print commands before executing","-r, --no-run-if-empty do not run command if input is empty"," --help display this help and exit"]},U={name:"xargs",async execute(l,i){if(M(l))return L(N);let m=null,g=null,c=null,o=null,h=!1,x=!1,y=!1,s=0;for(let e=0;e<l.length;e++){let t=l[e];if(t==="-I"&&e+1<l.length)m=l[++e],s=e+1;else if(t==="-d"&&e+1<l.length)g=l[++e].replace(/\\n/g,`
|
||||
`).replace(/\\t/g," ").replace(/\\r/g,"\r").replace(/\\0/g,"\0").replace(/\\\\/g,"\\"),s=e+1;else if(t==="-n"&&e+1<l.length)c=parseInt(l[++e],10),s=e+1;else if(t==="-P"&&e+1<l.length)o=parseInt(l[++e],10),s=e+1;else if(t==="-0"||t==="--null")h=!0,s=e+1;else if(t==="-t"||t==="--verbose")x=!0,s=e+1;else if(t==="-r"||t==="--no-run-if-empty")y=!0,s=e+1;else{if(t.startsWith("--"))return w("xargs",t);if(t.startsWith("-")&&t.length>1){for(let n of t.slice(1))if(!"0tr".includes(n))return w("xargs",`-${n}`);t.includes("0")&&(h=!0),t.includes("t")&&(x=!0),t.includes("r")&&(y=!0),s=e+1}else if(!t.startsWith("-")){s=e;break}}}let a=l.slice(s);a.length===0&&a.push("echo");let C=v(i.stdin),r;if(h?r=C.split("\0").filter(e=>e.length>0):g!==null?r=C.replace(/\n$/,"").split(g).filter(t=>t.length>0):r=C.split(/\s+/).map(e=>e.trim()).filter(e=>e.length>0),r.length===0)return y?{stdout:"",stderr:"",exitCode:0}:{stdout:"",stderr:"",exitCode:0};let f="",u="",d=0,I=e=>/[\s"'\\$`!*?[\]{}();&|<>#]/.test(e)?`"${e.replace(/([\\"`$])/g,"\\$1")}"`:e,b=async e=>{if(x){let n=e.map(I).join(" ");u+=`${n}
|
||||
`}return i.exec?i.exec($([e[0]]),{cwd:i.cwd,signal:i.signal,args:e.slice(1)}):{stdout:`${e.map(I).join(" ")}
|
||||
`,stderr:"",exitCode:0}},A=async e=>{if(o!==null&&o>1)for(let t=0;t<e.length;t+=o){let n=e.slice(t,t+o),E=await Promise.all(n.map(b));for(let p of E)f+=p.stdout,u+=p.stderr,p.exitCode!==0&&(d=p.exitCode)}else for(let t of e){let n=await b(t);f+=n.stdout,u+=n.stderr,n.exitCode!==0&&(d=n.exitCode)}};if(m!==null){let e=r.map(t=>a.map(n=>n.replaceAll(m,t)));await A(e)}else if(c!==null){let e=[];for(let t=0;t<r.length;t+=c){let n=r.slice(t,t+c);e.push([...a,...n])}await A(e)}else{let e=[...a,...r],t=await b(e);f+=t.stdout,u+=t.stderr,d=t.exitCode}return{stdout:f,stderr:u,exitCode:d}}},O={name:"xargs",flags:[{flag:"-I",type:"value",valueHint:"string"},{flag:"-d",type:"value",valueHint:"delimiter"},{flag:"-n",type:"value",valueHint:"number"},{flag:"-0",type:"boolean"},{flag:"-t",type:"boolean"},{flag:"-r",type:"boolean"}],stdinType:"text"};export{U as a,O as b};
|
||||
11
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-OVH44QKR.js
generated
vendored
Normal file
11
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-OVH44QKR.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
16
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-PDUL32DM.js
generated
vendored
Normal file
16
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-PDUL32DM.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{d as b,f as g}from"./chunk-XEKXHOPO.js";import{c as p}from"./chunk-QAYAQNCG.js";function $(t,i){let r=10,s=null,f=!1,l=!1,n=!1,u=[];for(let o=0;o<t.length;o++){let e=t[o];if(e==="-n"&&o+1<t.length){let a=t[++o];i==="tail"&&a.startsWith("+")?(n=!0,r=parseInt(a.slice(1),10)):r=parseInt(a,10)}else if(i==="tail"&&e.startsWith("-n+"))n=!0,r=parseInt(e.slice(3),10);else if(e.startsWith("-n"))r=parseInt(e.slice(2),10);else if(e==="-c"&&o+1<t.length)s=parseInt(t[++o],10);else if(e.startsWith("-c"))s=parseInt(e.slice(2),10);else if(e.startsWith("--bytes="))s=parseInt(e.slice(8),10);else if(e.startsWith("--lines="))r=parseInt(e.slice(8),10);else if(e==="-q"||e==="--quiet"||e==="--silent")f=!0;else if(e==="-v"||e==="--verbose")l=!0;else if(e.match(/^-\d+$/))r=parseInt(e.slice(1),10);else{if(e.startsWith("--"))return{ok:!1,error:p(i,e)};if(e.startsWith("-")&&e!=="-")return{ok:!1,error:p(i,e)};u.push(e)}}return s!==null&&(Number.isNaN(s)||s<0)?{ok:!1,error:{stdout:"",stderr:`${i}: invalid number of bytes
|
||||
`,exitCode:1}}:Number.isNaN(r)||r<0?{ok:!1,error:{stdout:"",stderr:`${i}: invalid number of lines
|
||||
`,exitCode:1}}:{ok:!0,options:{lines:r,bytes:s,quiet:f,verbose:l,files:u,fromLine:n}}}async function k(t,i,r,s){let{quiet:f,verbose:l,files:n}=i;if(n.length===0)return{stdout:s(t.stdin),stderr:"",exitCode:0,stdoutEncoding:"binary"};let u="",o="",e=0,a=l||!f&&n.length>1,d=0;for(let h=0;h<n.length;h++){let c=n[h];try{let x=t.fs.resolvePath(t.cwd,c),w=await g(t.fs,x);a&&(d>0&&(u+=`
|
||||
`),u+=b(`==> ${c} <==
|
||||
`)),u+=s(w),d++}catch{o+=`${r}: ${c}: No such file or directory
|
||||
`,e=1}}return{stdout:u,stderr:o,exitCode:e,stdoutEncoding:"binary"}}function v(t,i,r){if(r!==null)return t.slice(0,r);if(i===0)return"";let s=0,f=0,l=t.length;for(;s<l&&f<i;){let n=t.indexOf(`
|
||||
`,s);if(n===-1)return`${t}
|
||||
`;f++,s=n+1}return s>0?t.slice(0,s):""}function C(t,i,r,s){if(r!==null)return t.slice(-r);let f=t.length;if(f===0)return"";if(s){let o=0,e=1;for(;o<f&&e<i;){let d=t.indexOf(`
|
||||
`,o);if(d===-1)break;e++,o=d+1}let a=t.slice(o);return a.endsWith(`
|
||||
`)?a:`${a}
|
||||
`}if(i===0)return"";let l=f-1;t[l]===`
|
||||
`&&l--;let n=0;for(;l>=0&&n<i;){if(t[l]===`
|
||||
`&&(n++,n===i)){l++;break}l--}l<0&&(l=0);let u=t.slice(l);return t[f-1]===`
|
||||
`?u:`${u}
|
||||
`}export{$ as a,k as b,v as c,C as d};
|
||||
11
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-PYDWFCTN.js
generated
vendored
Normal file
11
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-PYDWFCTN.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{c as d}from"./chunk-XEKXHOPO.js";import{a as f,b as c,c as u}from"./chunk-QAYAQNCG.js";var x={name:"expand",summary:"convert tabs to spaces",usage:"expand [OPTION]... [FILE]...",description:"Convert TABs in each FILE to spaces, writing to standard output. If no FILE is specified, standard input is read.",options:["-t N Use N spaces per tab (default: 8)","-t LIST Use comma-separated list of tab stops","-i Only convert leading tabs on each line"],examples:["expand file.txt # Convert all tabs to 8 spaces","expand -t 4 file.txt # Use 4-space tabs","expand -t 4,8,12 file.txt # Custom tab stops"]};function p(n){let i=n.split(",").map(o=>o.trim()),t=[];for(let o of i){let e=parseInt(o,10);if(Number.isNaN(e)||e<1)return null;t.push(e)}for(let o=1;o<t.length;o++)if(t[o]<=t[o-1])return null;return t}function g(n,i){if(i.length===1){let t=i[0];return t-n%t}for(let t of i)if(t>n)return t-n;if(i.length>=2){let t=i[i.length-1]-i[i.length-2],o=i[i.length-1],e=Math.floor((n-o)/t)+1;return o+e*t-n}return 1}function b(n,i){let{tabStops:t,leadingOnly:o}=i,e="",r=0,s=!0;for(let a of n)if(a===" ")if(o&&!s)e+=a,r++;else{let l=g(r,t);e+=" ".repeat(l),r+=l}else a!==" "&&a!==" "&&(s=!1),e+=a,r++;return e}function h(n,i){if(n==="")return"";let t=n.split(`
|
||||
`),o=n.endsWith(`
|
||||
`)&&t[t.length-1]==="";return o&&t.pop(),t.map(r=>b(r,i)).join(`
|
||||
`)+(o?`
|
||||
`:"")}var y={name:"expand",execute:async(n,i)=>{if(c(n))return f(x);let t={tabStops:[8],leadingOnly:!1},o=[],e=0;for(;e<n.length;){let s=n[e];if(s==="-t"&&e+1<n.length){let a=p(n[e+1]);if(!a)return{exitCode:1,stdout:"",stderr:`expand: invalid tab size: '${n[e+1]}'
|
||||
`};t.tabStops=a,e+=2}else if(s.startsWith("-t")&&s.length>2){let a=p(s.slice(2));if(!a)return{exitCode:1,stdout:"",stderr:`expand: invalid tab size: '${s.slice(2)}'
|
||||
`};t.tabStops=a,e++}else if(s==="--tabs"&&e+1<n.length){let a=p(n[e+1]);if(!a)return{exitCode:1,stdout:"",stderr:`expand: invalid tab size: '${n[e+1]}'
|
||||
`};t.tabStops=a,e+=2}else if(s.startsWith("--tabs=")){let a=p(s.slice(7));if(!a)return{exitCode:1,stdout:"",stderr:`expand: invalid tab size: '${s.slice(7)}'
|
||||
`};t.tabStops=a,e++}else if(s==="-i"||s==="--initial")t.leadingOnly=!0,e++;else if(s==="--"){o.push(...n.slice(e+1));break}else{if(s.startsWith("-")&&s!=="-")return u("expand",s);o.push(s),e++}}let r="";if(o.length===0){let s=d(i.stdin)??"";r=h(s,t)}else for(let s of o){let a=i.fs.resolvePath(i.cwd,s),l=await i.fs.readFile(a);if(l===null)return{exitCode:1,stdout:r,stderr:`expand: ${s}: No such file or directory
|
||||
`};r+=h(l,t)}return{exitCode:0,stdout:r,stderr:""}}},C={name:"expand",flags:[{flag:"-t",type:"value",valueHint:"number"},{flag:"-i",type:"boolean"}],stdinType:"text",needsFiles:!0};export{y as a,C as b};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-QAJKDPNS.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-QAJKDPNS.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as r}from"./chunk-7CSMHFIJ.js";var g=2048,o=new Map;function u(l,c,t){let s=typeof t=="boolean"?{ignoreCase:t}:t??{},e=c;s.stripQuotes&&(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1));let i=s.ignoreCase?`i:${e}`:e,n=o.get(i);if(!n){if(n=a(e,s.ignoreCase),o.size>=g){let f=o.keys().next().value;f!==void 0&&o.delete(f)}o.set(i,n)}return n.test(l)}function a(l,c){let t="^";for(let s=0;s<l.length;s++){let e=l[s];if(e==="*")t+=".*";else if(e==="?")t+=".";else if(e==="["){let i=s+1;for(;i<l.length&&l[i]!=="]";)i++;t+=l.slice(s,i+1),s=i}else e==="."||e==="+"||e==="^"||e==="$"||e==="{"||e==="}"||e==="("||e===")"||e==="|"||e==="\\"?t+=`\\${e}`:t+=e}return t+="$",r(t,c?"i":"")}export{u as a};
|
||||
23
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-QAYAQNCG.js
generated
vendored
Normal file
23
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-QAYAQNCG.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
function s(t){let e=`${t.name} - ${t.summary}
|
||||
|
||||
`;if(e+=`Usage: ${t.usage}
|
||||
`,t.description){if(e+=`
|
||||
Description:
|
||||
`,typeof t.description=="string")for(let n of t.description.split(`
|
||||
`))e+=n?` ${n}
|
||||
`:`
|
||||
`;else if(t.description.length>0)for(let n of t.description)e+=n?` ${n}
|
||||
`:`
|
||||
`}if(t.options&&t.options.length>0){e+=`
|
||||
Options:
|
||||
`;for(let n of t.options)e+=` ${n}
|
||||
`}if(t.examples&&t.examples.length>0){e+=`
|
||||
Examples:
|
||||
`;for(let n of t.examples)e+=` ${n}
|
||||
`}if(t.notes&&t.notes.length>0){e+=`
|
||||
Notes:
|
||||
`;for(let n of t.notes)e+=` ${n}
|
||||
`}return{stdout:e,stderr:"",exitCode:0}}function o(t){return t.includes("--help")}function r(t,e){return{stdout:"",stderr:e.startsWith("--")?`${t}: unrecognized option '${e}'
|
||||
`:`${t}: invalid option -- '${e.replace(/^-/,"")}'
|
||||
`,exitCode:1}}export{s as a,o as b,r as c};
|
||||
4
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-QIQMJJZ4.js
generated
vendored
Normal file
4
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-QIQMJJZ4.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{c as p}from"./chunk-QAYAQNCG.js";function x(a,i,d){let g=new Map,h=new Map;for(let[t,e]of Object.entries(d)){let n={name:t,type:e.type};e.short&&g.set(e.short,n),e.long&&h.set(e.long,n)}let s=Object.create(null);for(let[t,e]of Object.entries(d))e.default!==void 0?s[t]=e.default:e.type==="boolean"&&(s[t]=!1);let b=[],k=!1;for(let t=0;t<i.length;t++){let e=i[t];if(k||!e.startsWith("-")||e==="-"){b.push(e);continue}if(e==="--"){k=!0;continue}if(e.startsWith("--")){let n=e.indexOf("="),o,r;n!==-1?(o=e.slice(2,n),r=e.slice(n+1)):o=e.slice(2);let l=h.get(o);if(!l)return{ok:!1,error:p(a,e)};let{name:f,type:u}=l;if(u==="boolean")s[f]=!0;else{if(r===void 0){if(t+1>=i.length)return{ok:!1,error:{stdout:"",stderr:`${a}: option '--${o}' requires an argument
|
||||
`,exitCode:1}};r=i[++t]}s[f]=u==="number"?parseInt(r,10):r}}else{let n=e.slice(1);for(let o=0;o<n.length;o++){let r=n[o],l=g.get(r);if(!l)return{ok:!1,error:p(a,`-${r}`)};let{name:f,type:u}=l;if(u==="boolean")s[f]=!0;else{let c;if(o+1<n.length)c=n.slice(o+1);else if(t+1<i.length)c=i[++t];else return{ok:!1,error:{stdout:"",stderr:`${a}: option requires an argument -- '${r}'
|
||||
`,exitCode:1}};s[f]=u==="number"?parseInt(c,10):c;break}}}}return{ok:!0,result:{flags:s,positional:b}}}export{x as a};
|
||||
287
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-QM4DZQWX.js
generated
vendored
Normal file
287
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-QM4DZQWX.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
28
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-R4IFXNY5.js
generated
vendored
Normal file
28
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-R4IFXNY5.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as H}from"./chunk-QIQMJJZ4.js";import{a as x,b as E}from"./chunk-QAYAQNCG.js";import{minimatch as R}from"minimatch";function M(n){if(n<1024)return String(n);if(n<1024*1024){let c=n/1024;return c<10?`${c.toFixed(1)}K`:`${Math.round(c)}K`}if(n<1024*1024*1024){let c=n/1048576;return c<10?`${c.toFixed(1)}M`:`${Math.round(c)}M`}let s=n/(1024*1024*1024);return s<10?`${s.toFixed(1)}G`:`${Math.round(s)}G`}function T(n){let c=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][n.getMonth()],w=String(n.getDate()).padStart(2," "),S=new Date,y=new Date(S.getTime()-4320*60*60*1e3);if(n>y){let b=String(n.getHours()).padStart(2,"0"),g=String(n.getMinutes()).padStart(2,"0");return`${c} ${w} ${b}:${g}`}let P=n.getFullYear();return`${c} ${w} ${P}`}function C(n){return n.isDirectory?"/":n.isSymbolicLink?"@":(n.mode&73)!==0?"*":""}var k={name:"ls",summary:"list directory contents",usage:"ls [OPTION]... [FILE]...",options:["-a, --all do not ignore entries starting with .","-A, --almost-all do not list . and ..","-d, --directory list directories themselves, not their contents","-F, --classify append indicator (one of */=>@) to entries","-h, --human-readable with -l, print sizes like 1K 234M 2G etc.","-l use a long listing format","-r, --reverse reverse order while sorting","-R, --recursive list subdirectories recursively","-S sort by file size, largest first","-t sort by time, newest first","-1 list one file per line"," --help display this help and exit"]},G={showAll:{short:"a",long:"all",type:"boolean"},showAlmostAll:{short:"A",long:"almost-all",type:"boolean"},longFormat:{short:"l",type:"boolean"},humanReadable:{short:"h",long:"human-readable",type:"boolean"},recursive:{short:"R",long:"recursive",type:"boolean"},reverse:{short:"r",long:"reverse",type:"boolean"},sortBySize:{short:"S",type:"boolean"},classifyFiles:{short:"F",long:"classify",type:"boolean"},directoryOnly:{short:"d",long:"directory",type:"boolean"},sortByTime:{short:"t",type:"boolean"},onePerLine:{short:"1",type:"boolean"}},Z={name:"ls",async execute(n,s){if(E(n))return x(k);let c=H("ls",n,G);if(!c.ok)return c.error;let w=c.result.flags.showAll,S=c.result.flags.showAlmostAll,y=c.result.flags.longFormat,P=c.result.flags.humanReadable,b=c.result.flags.recursive,g=c.result.flags.reverse,v=c.result.flags.sortBySize,$=c.result.flags.classifyFiles,A=c.result.flags.directoryOnly,p=c.result.flags.sortByTime;c.result.flags.onePerLine;let r=c.result.positional;r.length===0&&r.push(".");let a="",l="",u=0;for(let f=0;f<r.length;f++){let o=r[f];if(f>0&&a&&!a.endsWith(`
|
||||
|
||||
`)&&(a+=`
|
||||
`),A){let i=s.fs.resolvePath(s.cwd,o);try{let t=await s.fs.stat(i);if(y){let e=t.isDirectory?"drwxr-xr-x":"-rw-r--r--",d=$?C(await s.fs.lstat(i)):t.isDirectory?"/":"",h=t.size??0,m=P?M(h).padStart(5):String(h).padStart(5),z=t.mtime??new Date(0),F=T(z);a+=`${e} 1 user user ${m} ${F} ${o}${d}
|
||||
`}else{let e=$?C(await s.fs.lstat(i)):"";a+=`${o}${e}
|
||||
`}}catch{l+=`ls: cannot access '${o}': No such file or directory
|
||||
`,u=2}continue}if(o.includes("*")||o.includes("?")||o.includes("[")){let i=await _(o,s,w,S,y,g,P,v,$);a+=i.stdout,l+=i.stderr,i.exitCode!==0&&(u=i.exitCode)}else{let i=await O(o,s,w,S,y,b,r.length>1,g,P,v,$);a+=i.stdout,l+=i.stderr,i.exitCode!==0&&(u=i.exitCode)}}return{stdout:a,stderr:l,exitCode:u}}};async function _(n,s,c,w,S,y=!1,P=!1,b=!1,g=!1){let v=c||w,$=s.fs.getAllPaths(),A=s.fs.resolvePath(s.cwd,"."),p=[];for(let r of $){let a=r.startsWith(A)&&r.slice(A.length+1)||r;if(R(a,n)||R(r,n)){let l=a.split("/").pop()||a;if(!v&&l.startsWith("."))continue;p.push(a||r)}}if(p.length===0)return{stdout:"",stderr:`ls: ${n}: No such file or directory
|
||||
`,exitCode:2};if(b){let r=[];for(let a of p){let l=s.fs.resolvePath(s.cwd,a);try{let u=await s.fs.stat(l);r.push({path:a,size:u.size??0})}catch{r.push({path:a,size:0})}}r.sort((a,l)=>l.size-a.size),p.length=0,p.push(...r.map(a=>a.path))}else p.sort();if(y&&p.reverse(),S){let r=[];for(let a of p){let l=s.fs.resolvePath(s.cwd,a);try{let u=await s.fs.stat(l),f=u.isDirectory?"drwxr-xr-x":"-rw-r--r--",o=g?C(await s.fs.lstat(l)):u.isDirectory?"/":"",i=u.size??0,t=P?M(i).padStart(5):String(i).padStart(5),e=u.mtime??new Date(0),d=T(e);r.push(`${f} 1 user user ${t} ${d} ${a}${o}`)}catch{r.push(`-rw-r--r-- 1 user user 0 Jan 1 00:00 ${a}`)}}return{stdout:`${r.join(`
|
||||
`)}
|
||||
`,stderr:"",exitCode:0}}if(g){let r=[];for(let a of p){let l=s.fs.resolvePath(s.cwd,a);try{let u=await s.fs.lstat(l);r.push(`${a}${C(u)}`)}catch{r.push(a)}}return{stdout:`${r.join(`
|
||||
`)}
|
||||
`,stderr:"",exitCode:0}}return{stdout:`${p.join(`
|
||||
`)}
|
||||
`,stderr:"",exitCode:0}}async function O(n,s,c,w,S,y,P,b=!1,g=!1,v=!1,$=!1,A=!1){let p=c||w,r=s.fs.resolvePath(s.cwd,n);try{let a=await s.fs.stat(r);if(!a.isDirectory){let f=$?C(await s.fs.lstat(r)):"";if(S){let o=a.size??0,i=g?M(o).padStart(5):String(o).padStart(5),t=a.mtime??new Date(0),e=T(t);return{stdout:`-rw-r--r-- 1 user user ${i} ${e} ${n}${f}
|
||||
`,stderr:"",exitCode:0}}return{stdout:`${n}${f}
|
||||
`,stderr:"",exitCode:0}}let l=await s.fs.readdir(r);if(p||(l=l.filter(f=>!f.startsWith("."))),v){let f=[];for(let o of l){let i=r==="/"?`/${o}`:`${r}/${o}`;try{let t=await s.fs.stat(i);f.push({name:o,size:t.size??0})}catch{f.push({name:o,size:0})}}f.sort((o,i)=>i.size-o.size),l=f.map(o=>o.name)}else l.sort();c&&(l=[".","..",...l]),b&&l.reverse();let u="";if((y||P)&&(u+=`${n}:
|
||||
`),S){u+=`total ${l.length}
|
||||
`;let f=l.filter(e=>e==="."||e===".."),o=l.filter(e=>e!=="."&&e!=="..");for(let e of f)u+=`drwxr-xr-x 1 user user 0 Jan 1 00:00 ${e}
|
||||
`;let i=[];for(let e=0;e<o.length;e+=100){let d=o.slice(e,e+100),h=await Promise.all(d.map(async m=>{let z=r==="/"?`/${m}`:`${r}/${m}`;try{let F=await s.fs.stat(z),B=F.isDirectory?"drwxr-xr-x":"-rw-r--r--",J=$?C(await s.fs.lstat(z)):F.isDirectory?"/":"",W=F.size??0,j=g?M(W).padStart(5):String(W).padStart(5),L=F.mtime??new Date(0),N=T(L);return{name:m,line:`${B} 1 user user ${j} ${N} ${m}${J}
|
||||
`}}catch{return{name:m,line:`-rw-r--r-- 1 user user 0 Jan 1 00:00 ${m}
|
||||
`}}}));i.push(...h)}let t=new Map(o.map((e,d)=>[e,d]));i.sort((e,d)=>(t.get(e.name)??0)-(t.get(d.name)??0));for(let{line:e}of i)u+=e}else if($){let f=[],o=l.filter(t=>t!=="."&&t!==".."),i=l.filter(t=>t==="."||t==="..");for(let t of i)f.push(`${t}/`);for(let t=0;t<o.length;t+=100){let e=o.slice(t,t+100),d=await Promise.all(e.map(async h=>{let m=r==="/"?`/${h}`:`${r}/${h}`;try{let z=await s.fs.lstat(m);return`${h}${C(z)}`}catch{return h}}));f.push(...d)}u+=f.join(`
|
||||
`)+(f.length?`
|
||||
`:"")}else u+=l.join(`
|
||||
`)+(l.length?`
|
||||
`:"");if(y){let f=l.filter(t=>t!=="."&&t!==".."),o=[];if(s.fs.readdirWithFileTypes)o=(await s.fs.readdirWithFileTypes(r)).filter(e=>e.isDirectory&&f.includes(e.name)).map(e=>({name:e.name,isDirectory:!0}));else for(let t=0;t<f.length;t+=100){let e=f.slice(t,t+100),d=await Promise.all(e.map(async h=>{let m=r==="/"?`/${h}`:`${r}/${h}`;try{let z=await s.fs.stat(m);return{name:h,isDirectory:z.isDirectory}}catch{return{name:h,isDirectory:!1}}}));o.push(...d.filter(h=>h.isDirectory))}o.sort((t,e)=>t.name.localeCompare(e.name)),b&&o.reverse();let i=[];for(let t=0;t<o.length;t+=100){let e=o.slice(t,t+100),d=await Promise.all(e.map(async h=>{let m=n==="."?`./${h.name}`:`${n}/${h.name}`,z=await O(m,s,c,w,S,y,!1,b,g,v,$,!0);return{name:h.name,result:z}}));i.push(...d)}i.sort((t,e)=>t.name.localeCompare(e.name)),b&&i.reverse();for(let{result:t}of i)u+=`
|
||||
`,u+=t.stdout}return{stdout:u,stderr:"",exitCode:0}}catch{return{stdout:"",stderr:`ls: ${n}: No such file or directory
|
||||
`,exitCode:2}}}var q={name:"ls",flags:[{flag:"-a",type:"boolean"},{flag:"-A",type:"boolean"},{flag:"-l",type:"boolean"},{flag:"-h",type:"boolean"},{flag:"-R",type:"boolean"},{flag:"-r",type:"boolean"},{flag:"-S",type:"boolean"},{flag:"-F",type:"boolean"},{flag:"-d",type:"boolean"},{flag:"-t",type:"boolean"},{flag:"-1",type:"boolean"}],needsFiles:!0};export{Z as a,q as b};
|
||||
12
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-R4QNMLOB.js
generated
vendored
Normal file
12
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-R4QNMLOB.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{c as p}from"./chunk-XEKXHOPO.js";import{a as h,b as w,c as b}from"./chunk-QAYAQNCG.js";var g={name:"fold",summary:"wrap each input line to fit in specified width",usage:"fold [OPTION]... [FILE]...",description:"Wrap input lines in each FILE, writing to standard output. If no FILE is specified, standard input is read.",options:["-w WIDTH Use WIDTH columns instead of 80","-s Break at spaces","-b Count bytes rather than columns"],examples:["fold -w 40 file.txt # Wrap at 40 columns","fold -sw 40 file.txt # Word wrap at 40 columns","echo 'long line' | fold -w 5 # Force wrap at 5"]};function y(s,r,n){return n?new TextEncoder().encode(s).length:s===" "?8-r%8:s==="\b"?-1:1}function N(s,r){if(s.length===0)return s;let{width:n,breakAtSpaces:u,countBytes:i}=r,l=[],e="",t=0,o=-1,f=0;for(let c=0;c<s.length;c++){let a=s[c],d=y(a,t,i);t+d>n&&e.length>0?u&&o>=0?(l.push(e.slice(0,o+1)),e=e.slice(o+1)+a,t=t-f-1+d,o=-1,f=0):(l.push(e),e=a,t=d,o=-1,f=0):(e+=a,t+=d,(a===" "||a===" ")&&(o=e.length-1,f=t-d))}return e.length>0&&l.push(e),l.join(`
|
||||
`)}function m(s,r){if(s==="")return"";let n=s.split(`
|
||||
`),u=s.endsWith(`
|
||||
`)&&n[n.length-1]==="";return u&&n.pop(),n.map(l=>N(l,r)).join(`
|
||||
`)+(u?`
|
||||
`:"")}var I={name:"fold",execute:async(s,r)=>{if(w(s))return h(g);let n={width:80,breakAtSpaces:!1,countBytes:!1},u=[],i=0;for(;i<s.length;){let e=s[i];if(e==="-w"&&i+1<s.length){let t=parseInt(s[i+1],10);if(Number.isNaN(t)||t<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${s[i+1]}'
|
||||
`};n.width=t,i+=2}else if(e.startsWith("-w")&&e.length>2){let t=parseInt(e.slice(2),10);if(Number.isNaN(t)||t<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${e.slice(2)}'
|
||||
`};n.width=t,i++}else if(e==="-s")n.breakAtSpaces=!0,i++;else if(e==="-b")n.countBytes=!0,i++;else if(e==="-bs"||e==="-sb")n.breakAtSpaces=!0,n.countBytes=!0,i++;else if(e.match(/^-[sb]+w\d+$/)){e.includes("s")&&(n.breakAtSpaces=!0),e.includes("b")&&(n.countBytes=!0);let t=e.replace(/^-[sb]+w/,""),o=parseInt(t,10);if(Number.isNaN(o)||o<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${t}'
|
||||
`};n.width=o,i++}else if(e.match(/^-[sb]+w$/)&&i+1<s.length){e.includes("s")&&(n.breakAtSpaces=!0),e.includes("b")&&(n.countBytes=!0);let t=parseInt(s[i+1],10);if(Number.isNaN(t)||t<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${s[i+1]}'
|
||||
`};n.width=t,i+=2}else if(e==="--"){u.push(...s.slice(i+1));break}else if(e.startsWith("-")&&e!=="-"){let t=e.slice(1),o=!1;for(let f of t)if(f==="s")n.breakAtSpaces=!0;else if(f==="b")n.countBytes=!0;else{o=!0;break}if(o)return b("fold",e);i++}else u.push(e),i++}let l="";if(u.length===0){let e=p(r.stdin)??"";l=m(e,n)}else for(let e of u){let t=r.fs.resolvePath(r.cwd,e),o=await r.fs.readFile(t);if(o===null)return{exitCode:1,stdout:l,stderr:`fold: ${e}: No such file or directory
|
||||
`};l+=m(o,n)}return{exitCode:0,stdout:l,stderr:""}}},C={name:"fold",flags:[{flag:"-w",type:"value",valueHint:"number"},{flag:"-s",type:"boolean"},{flag:"-b",type:"boolean"}],stdinType:"text",needsFiles:!0};export{I as a,C as b};
|
||||
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-RBQG6ZUG.js
generated
vendored
Normal file
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-RBQG6ZUG.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
function M(r,o,a){let e=new Date(o*1e3),t="",n=0;for(;n<r.length;)if(r[n]==="%"&&n+1<r.length){let u=r[n+1],i=S(e,u,a);i!==null?(t+=i,n+=2):(t+=r[n],n++)}else t+=r[n],n++;return t}function f(r,o){let a={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",hour12:!1,timeZone:o};try{let t=new Intl.DateTimeFormat("en-US",a).formatToParts(r),n=c=>t.find(m=>m.type===c)?.value??"",u=new Map([["Sun",0],["Mon",1],["Tue",2],["Wed",3],["Thu",4],["Fri",5],["Sat",6]]),i=n("weekday"),s=(c,m)=>{let y=Number.parseInt(c,10);return Number.isNaN(y)?m:y};return{year:s(n("year"),r.getFullYear()),month:s(n("month"),r.getMonth()+1),day:s(n("day"),r.getDate()),hour:s(n("hour"),r.getHours())%24,minute:s(n("minute"),r.getMinutes()),second:s(n("second"),r.getSeconds()),weekday:u.get(i)??r.getDay()}}catch{return{year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate(),hour:r.getHours(),minute:r.getMinutes(),second:r.getSeconds(),weekday:r.getDay()}}}function S(r,o,a){let e=f(r,a),t=(s,c=2)=>String(s).padStart(c,"0"),n=g(e.year,e.month,e.day),u=d(e.year,e.month,e.day,e.weekday,0),i=d(e.year,e.month,e.day,e.weekday,1);switch(o){case"a":return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][e.weekday];case"A":return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][e.weekday];case"b":case"h":return["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e.month-1];case"B":return["January","February","March","April","May","June","July","August","September","October","November","December"][e.month-1];case"c":return`${["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][e.weekday]} ${["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e.month-1]} ${String(e.day).padStart(2," ")} ${t(e.hour)}:${t(e.minute)}:${t(e.second)} ${e.year}`;case"C":return t(Math.floor(e.year/100));case"d":return t(e.day);case"D":return`${t(e.month)}/${t(e.day)}/${t(e.year%100)}`;case"e":return String(e.day).padStart(2," ");case"F":return`${e.year}-${t(e.month)}-${t(e.day)}`;case"g":return t(h(e.year,e.month,e.day)%100);case"G":return String(h(e.year,e.month,e.day));case"H":return t(e.hour);case"I":return t(e.hour%12||12);case"j":return String(n).padStart(3,"0");case"k":return String(e.hour).padStart(2," ");case"l":return String(e.hour%12||12).padStart(2," ");case"m":return t(e.month);case"M":return t(e.minute);case"n":return`
|
||||
`;case"N":return"000000000";case"p":return e.hour<12?"AM":"PM";case"P":return e.hour<12?"am":"pm";case"r":return`${t(e.hour%12||12)}:${t(e.minute)}:${t(e.second)} ${e.hour<12?"AM":"PM"}`;case"R":return`${t(e.hour)}:${t(e.minute)}`;case"s":return String(Math.floor(r.getTime()/1e3));case"S":return t(e.second);case"t":return" ";case"T":return`${t(e.hour)}:${t(e.minute)}:${t(e.second)}`;case"u":return String(e.weekday===0?7:e.weekday);case"U":return t(u);case"V":return t($(e.year,e.month,e.day));case"w":return String(e.weekday);case"W":return t(i);case"x":return`${t(e.month)}/${t(e.day)}/${t(e.year%100)}`;case"X":return`${t(e.hour)}:${t(e.minute)}:${t(e.second)}`;case"y":return t(e.year%100);case"Y":return String(e.year);case"z":return l(r,a);case"Z":return p(r,a);case"%":return"%";default:return null}}function l(r,o){if(!o){let u=-r.getTimezoneOffset(),i=u>=0?"+":"-",s=Math.floor(Math.abs(u)/60),c=Math.abs(u)%60;return`${i}${String(s).padStart(2,"0")}${String(c).padStart(2,"0")}`}try{let s=new Intl.DateTimeFormat("en-US",{timeZone:o,timeZoneName:"longOffset"}).formatToParts(r).find(c=>c.type==="timeZoneName");if(s){let c=s.value.match(/GMT([+-])(\d{2}):(\d{2})/);if(c)return`${c[1]}${c[2]}${c[3]}`;if(s.value==="GMT"||s.value==="UTC")return"+0000"}}catch{}let a=-r.getTimezoneOffset(),e=a>=0?"+":"-",t=Math.floor(Math.abs(a)/60),n=Math.abs(a)%60;return`${e}${String(t).padStart(2,"0")}${String(n).padStart(2,"0")}`}function p(r,o){try{return new Intl.DateTimeFormat("en-US",{timeZone:o,timeZoneName:"short"}).formatToParts(r).find(n=>n.type==="timeZoneName")?.value??"UTC"}catch{return"UTC"}}function g(r,o,a){let e=[31,28,31,30,31,30,31,31,30,31,30,31];(r%4===0&&r%100!==0||r%400===0)&&(e[1]=29);let n=a;for(let u=0;u<o-1;u++)n+=e[u];return n}function d(r,o,a,e,t){let n=g(r,o,a),u=new Date(r,0,1).getDay(),i=1+(7+t-u)%7,s=n-i;return s<0?0:Math.floor(s/7)+1}function $(r,o,a){let e=new Date(r,o-1,a,12,0,0);e.setDate(e.getDate()+3-(e.getDay()+6)%7);let t=new Date(e.getFullYear(),0,4);t.setDate(t.getDate()+3-(t.getDay()+6)%7);let n=e.getTime()-t.getTime();return 1+Math.round(n/(10080*60*1e3))}function h(r,o,a){let e=new Date(r,o-1,a,12,0,0);return e.setDate(e.getDate()+3-(e.getDay()+6)%7),e.getFullYear()}export{M as a};
|
||||
17
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-RCXNPPJY.js
generated
vendored
Normal file
17
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-RCXNPPJY.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{c as f}from"./chunk-XEKXHOPO.js";import{a as m,b as c,c as b}from"./chunk-QAYAQNCG.js";var p={name:"nl",summary:"number lines of files",usage:"nl [OPTION]... [FILE]...",description:"Write each FILE to standard output, with line numbers added. If no FILE is specified, standard input is read.",options:["-b STYLE Body numbering style: a (all), t (non-empty), n (none)","-n FORMAT Number format: ln (left), rn (right), rz (right zeros)","-w WIDTH Number width (default: 6)","-s SEP Separator after number (default: TAB)","-v START Starting line number (default: 1)","-i INCR Line number increment (default: 1)"],examples:["nl file.txt # Number non-empty lines","nl -ba file.txt # Number all lines","nl -n rz -w 3 file.txt # Right-justified with zeros","nl -s ': ' file.txt # Use ': ' as separator"]};function N(r,s,i){let l=String(r);switch(s){case"ln":return l.padEnd(i);case"rn":return l.padStart(i);case"rz":return l.padStart(i,"0");default:return s}}function v(r,s){switch(s){case"a":return!0;case"t":return r.trim().length>0;case"n":return!1;default:return s}}function h(r,s,i){if(r==="")return{output:"",nextNumber:i};let l=r.split(`
|
||||
`),t=[],u=i,a=r.endsWith(`
|
||||
`)&&l[l.length-1]==="";a&&l.pop();for(let n of l)if(v(n,s.bodyStyle)){let e=N(u,s.numberFormat,s.width);t.push(`${e}${s.separator}${n}`),u+=s.increment}else{let e=" ".repeat(s.width);t.push(`${e}${s.separator}${n}`)}return{output:t.join(`
|
||||
`)+(a?`
|
||||
`:""),nextNumber:u}}var w={name:"nl",execute:async(r,s)=>{if(c(r))return m(p);let i={bodyStyle:"t",numberFormat:"rn",width:6,separator:" ",startNumber:1,increment:1},l=[],t=0;for(;t<r.length;){let n=r[t];if(n==="-b"&&t+1<r.length){let e=r[t+1];if(e!=="a"&&e!=="t"&&e!=="n")return{exitCode:1,stdout:"",stderr:`nl: invalid body numbering style: '${e}'
|
||||
`};i.bodyStyle=e,t+=2}else if(n.startsWith("-b")){let e=n.slice(2);if(e!=="a"&&e!=="t"&&e!=="n")return{exitCode:1,stdout:"",stderr:`nl: invalid body numbering style: '${e}'
|
||||
`};i.bodyStyle=e,t++}else if(n==="-n"&&t+1<r.length){let e=r[t+1];if(e!=="ln"&&e!=="rn"&&e!=="rz")return{exitCode:1,stdout:"",stderr:`nl: invalid line numbering format: '${e}'
|
||||
`};i.numberFormat=e,t+=2}else if(n.startsWith("-n")){let e=n.slice(2);if(e!=="ln"&&e!=="rn"&&e!=="rz")return{exitCode:1,stdout:"",stderr:`nl: invalid line numbering format: '${e}'
|
||||
`};i.numberFormat=e,t++}else if(n==="-w"&&t+1<r.length){let e=parseInt(r[t+1],10);if(Number.isNaN(e)||e<1)return{exitCode:1,stdout:"",stderr:`nl: invalid line number field width: '${r[t+1]}'
|
||||
`};i.width=e,t+=2}else if(n.startsWith("-w")){let e=parseInt(n.slice(2),10);if(Number.isNaN(e)||e<1)return{exitCode:1,stdout:"",stderr:`nl: invalid line number field width: '${n.slice(2)}'
|
||||
`};i.width=e,t++}else if(n==="-s"&&t+1<r.length)i.separator=r[t+1],t+=2;else if(n.startsWith("-s"))i.separator=n.slice(2),t++;else if(n==="-v"&&t+1<r.length){let e=parseInt(r[t+1],10);if(Number.isNaN(e))return{exitCode:1,stdout:"",stderr:`nl: invalid starting line number: '${r[t+1]}'
|
||||
`};i.startNumber=e,t+=2}else if(n.startsWith("-v")){let e=parseInt(n.slice(2),10);if(Number.isNaN(e))return{exitCode:1,stdout:"",stderr:`nl: invalid starting line number: '${n.slice(2)}'
|
||||
`};i.startNumber=e,t++}else if(n==="-i"&&t+1<r.length){let e=parseInt(r[t+1],10);if(Number.isNaN(e))return{exitCode:1,stdout:"",stderr:`nl: invalid line number increment: '${r[t+1]}'
|
||||
`};i.increment=e,t+=2}else if(n.startsWith("-i")){let e=parseInt(n.slice(2),10);if(Number.isNaN(e))return{exitCode:1,stdout:"",stderr:`nl: invalid line number increment: '${n.slice(2)}'
|
||||
`};i.increment=e,t++}else if(n==="--"){l.push(...r.slice(t+1));break}else{if(n.startsWith("-")&&n!=="-")return b("nl",n);l.push(n),t++}}let u="",a=i.startNumber;if(l.length===0){let n=f(s.stdin)??"";u=h(n,i,a).output}else for(let n of l){let e=s.fs.resolvePath(s.cwd,n),o=await s.fs.readFile(e);if(o===null)return{exitCode:1,stdout:u,stderr:`nl: ${n}: No such file or directory
|
||||
`};let d=h(o,i,a);u+=d.output,a=d.nextNumber}return{exitCode:0,stdout:u,stderr:""}}},g={name:"nl",flags:[{flag:"-b",type:"value",valueHint:"string"},{flag:"-n",type:"value",valueHint:"string"},{flag:"-w",type:"value",valueHint:"number"},{flag:"-s",type:"value",valueHint:"string"},{flag:"-v",type:"value",valueHint:"number"},{flag:"-i",type:"value",valueHint:"number"}],stdinType:"text",needsFiles:!0};export{w as a,g as b};
|
||||
7
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-S2BIZAWY.js
generated
vendored
Normal file
7
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-S2BIZAWY.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{c as f}from"./chunk-XEKXHOPO.js";import{a,b as c,c as d}from"./chunk-QAYAQNCG.js";var u={name:"rev",summary:"reverse lines characterwise",usage:"rev [file ...]",description:"Copies the specified files to standard output, reversing the order of characters in every line. If no files are specified, standard input is read.",examples:["echo 'hello' | rev # Output: olleh","rev file.txt # Reverse each line in file"]};function p(r){return Array.from(r).reverse().join("")}var g={name:"rev",execute:async(r,s)=>{if(c(r))return a(u);let o=[];for(let e of r)if(e==="--"){let t=r.indexOf(e);o.push(...r.slice(t+1));break}else{if(e.startsWith("-")&&e!=="-")return d("rev",e);o.push(e)}let n="",l=e=>{let t=e.split(`
|
||||
`),i=e.endsWith(`
|
||||
`)&&t[t.length-1]==="";return i&&t.pop(),t.map(p).join(`
|
||||
`)+(i?`
|
||||
`:"")};if(o.length===0){let e=f(s.stdin)??"";n=l(e)}else for(let e of o)if(e==="-"){let t=f(s.stdin)??"";n+=l(t)}else{let t=s.fs.resolvePath(s.cwd,e),i=await s.fs.readFile(t);if(i===null)return{exitCode:1,stdout:n,stderr:`rev: ${e}: No such file or directory
|
||||
`};n+=l(i)}return{exitCode:0,stdout:n,stderr:""}}},y={name:"rev",flags:[],stdinType:"text",needsFiles:!0};export{g as a,y as b};
|
||||
8
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-SAI2SPQQ.js
generated
vendored
Normal file
8
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-SAI2SPQQ.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
var n=class extends Error{stdout;stderr;constructor(t,s="",e=""){super(t),this.stdout=s,this.stderr=e}prependOutput(t,s){this.stdout=t+this.stdout,this.stderr=s+this.stderr}},c=class extends n{levels;name="BreakError";constructor(t=1,s="",e=""){super("break",s,e),this.levels=t}},a=class extends n{levels;name="ContinueError";constructor(t=1,s="",e=""){super("continue",s,e),this.levels=t}},i=class extends n{exitCode;name="ReturnError";constructor(t=0,s="",e=""){super("return",s,e),this.exitCode=t}},u=class extends n{exitCode;name="ErrexitError";constructor(t,s="",e=""){super(`errexit: command exited with status ${t}`,s,e),this.exitCode=t}},x=class extends n{varName;name="NounsetError";constructor(t,s=""){super(`${t}: unbound variable`,s,`bash: ${t}: unbound variable
|
||||
`),this.varName=t}},d=class extends n{exitCode;name="ExitError";constructor(t,s="",e=""){super("exit",s,e),this.exitCode=t}},p=class extends n{name="ArithmeticError";fatal;constructor(t,s="",e="",o=!1){super(t,s,e),this.stderr=e||`bash: ${t}
|
||||
`,this.fatal=o}},l=class extends n{name="BadSubstitutionError";constructor(t,s="",e=""){super(t,s,e),this.stderr=e||`bash: ${t}: bad substitution
|
||||
`}},h=class extends n{name="GlobError";constructor(t,s="",e=""){super(`no match: ${t}`,s,e),this.stderr=e||`bash: no match: ${t}
|
||||
`}},m=class extends n{name="BraceExpansionError";constructor(t,s="",e=""){super(t,s,e),this.stderr=e||`bash: ${t}
|
||||
`}},b=class extends n{limitType;name="ExecutionLimitError";static EXIT_CODE=126;constructor(t,s,e="",o=""){super(t,e,o),this.limitType=s,this.stderr=o||`bash: ${t}
|
||||
`}},$=class extends n{name="ExecutionAbortedError";constructor(t="",s=""){super("execution aborted",t,s)}},f=class extends n{name="SubshellExitError";constructor(t="",s=""){super("subshell exit",t,s)}};function v(r){return r instanceof c||r instanceof a||r instanceof i}var C=class extends n{exitCode;name="PosixFatalError";constructor(t,s="",e=""){super("posix fatal error",s,e),this.exitCode=t}};export{c as a,a as b,i as c,u as d,x as e,d as f,p as g,l as h,h as i,m as j,b as k,$ as l,f as m,v as n,C as o};
|
||||
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-SBBYKIYU.js
generated
vendored
Normal file
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-SBBYKIYU.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
async function t(e,n){return{stdout:`localhost
|
||||
`,stderr:"",exitCode:0}}var o={name:"hostname",execute:t},s={name:"hostname",flags:[]};export{o as a,s as b};
|
||||
9
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-SETW5JBN.js
generated
vendored
Normal file
9
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-SETW5JBN.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as i}from"./chunk-TDD4NFYE.js";import{a as u}from"./chunk-QIQMJJZ4.js";import{a as g,b as m}from"./chunk-QAYAQNCG.js";var S={name:"stat",summary:"display file or file system status",usage:"stat [OPTION]... FILE...",options:["-c FORMAT use the specified FORMAT instead of the default"," --help display this help and exit"]},$={format:{short:"c",type:"string"}},A={name:"stat",async execute(n,a){if(m(n))return g(S);let o=u("stat",n,$);if(!o.ok)return o.error;let c=o.result.flags.format??null,f=o.result.positional;if(f.length===0)return{stdout:"",stderr:`stat: missing operand
|
||||
`,exitCode:1};let r="",p="",d=!1;for(let s of f){let h=a.fs.resolvePath(a.cwd,s);try{let e=await a.fs.stat(h);if(c){let t=c,l=e.mode.toString(8),y=i(e.mode,e.isDirectory);t=t.replace(/%n/g,s),t=t.replace(/%N/g,`'${s}'`),t=t.replace(/%s/g,String(e.size)),t=t.replace(/%F/g,e.isDirectory?"directory":"regular file"),t=t.replace(/%a/g,l),t=t.replace(/%A/g,y),t=t.replace(/%u/g,"1000"),t=t.replace(/%U/g,"user"),t=t.replace(/%g/g,"1000"),t=t.replace(/%G/g,"group"),r+=`${t}
|
||||
`}else{let t=e.mode.toString(8).padStart(4,"0"),l=i(e.mode,e.isDirectory);r+=` File: ${s}
|
||||
`,r+=` Size: ${e.size} Blocks: ${Math.ceil(e.size/512)}
|
||||
`,r+=`Access: (${t}/${l})
|
||||
`,r+=`Modify: ${e.mtime.toISOString()}
|
||||
`}}catch{p+=`stat: cannot stat '${s}': No such file or directory
|
||||
`,d=!0}}return{stdout:r,stderr:p,exitCode:d?1:0}}},M={name:"stat",flags:[{flag:"-c",type:"value",valueHint:"format"},{flag:"-L",type:"boolean"}],needsArgs:!0};export{A as a,M as b};
|
||||
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-SHKOQWO4.js
generated
vendored
Normal file
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-SHKOQWO4.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
var o={name:"pwd",async execute(l,a){let t=!1;for(let e of l)if(e==="-P")t=!0;else if(e==="-L")t=!1;else{if(e==="--")break;e.startsWith("-")}let s=a.cwd;if(t)try{s=await a.fs.realpath(a.cwd)}catch{}return{stdout:`${s}
|
||||
`,stderr:"",exitCode:0}}},f={name:"pwd",flags:[{flag:"-P",type:"boolean"},{flag:"-L",type:"boolean"}]};export{o as a,f as b};
|
||||
14
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-SJYEXC2Z.js
generated
vendored
Normal file
14
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-SJYEXC2Z.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as p}from"./chunk-QIQMJJZ4.js";import{a as g}from"./chunk-W5DWRFSU.js";var x=`Usage: rmdir [-pv] DIRECTORY...
|
||||
Remove empty directories.
|
||||
|
||||
Options:
|
||||
-p, --parents Remove DIRECTORY and its ancestors
|
||||
-v, --verbose Output a diagnostic for every directory processed`,y={parents:{short:"p",long:"parents",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"},help:{long:"help",type:"boolean"}},D={name:"rmdir",async execute(t,r){let e=p("rmdir",t,y);if(!e.ok)return e.error;if(e.result.flags.help)return{stdout:`${x}
|
||||
`,stderr:"",exitCode:0};let a=e.result.flags.parents,o=e.result.flags.verbose,s=e.result.positional;if(s.length===0)return{stdout:"",stderr:`rmdir: missing operand
|
||||
`,exitCode:1};let c="",n="",i=0;for(let u of s){let d=await b(r,u,a,o);c+=d.stdout,n+=d.stderr,d.exitCode!==0&&(i=d.exitCode)}return{stdout:c,stderr:n,exitCode:i}}};async function b(t,r,e,a){let o="",s="",n=t.fs.resolvePath(t.cwd,r),i=await v(t,n,r,a);if(o+=i.stdout,s+=i.stderr,i.exitCode!==0)return{stdout:o,stderr:s,exitCode:i.exitCode};if(e){let u=n,d=r;for(;;){let l=C(u),f=C(d);if(l===u||l==="/"||l==="."||f==="."||f==="")break;let m=await v(t,l,f,a);if(o+=m.stdout,m.exitCode!==0)break;u=l,d=f}}return{stdout:o,stderr:s,exitCode:0}}async function v(t,r,e,a){try{if(!await t.fs.exists(r))return{stdout:"",stderr:`rmdir: failed to remove '${e}': No such file or directory
|
||||
`,exitCode:1};if(!(await t.fs.stat(r)).isDirectory)return{stdout:"",stderr:`rmdir: failed to remove '${e}': Not a directory
|
||||
`,exitCode:1};if((await t.fs.readdir(r)).length>0)return{stdout:"",stderr:`rmdir: failed to remove '${e}': Directory not empty
|
||||
`,exitCode:1};await t.fs.rm(r,{recursive:!1,force:!1});let n="";return a&&(n=`rmdir: removing directory, '${e}'
|
||||
`),{stdout:n,stderr:"",exitCode:0}}catch(o){let s=g(o);return{stdout:"",stderr:`rmdir: failed to remove '${e}': ${s}
|
||||
`,exitCode:1}}}function C(t){let r=t.replace(/\/+$/,""),e=r.lastIndexOf("/");return e===-1?".":e===0?"/":r.substring(0,e)}var $={name:"rmdir",flags:[{flag:"-p",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0};export{D as a,$ as b};
|
||||
1
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-STHBFACM.js
generated
vendored
Normal file
1
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-STHBFACM.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-SX2HC7SO.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-SX2HC7SO.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
function n(e){let r=e.match(/^(\d+\.?\d*)(s|m|h|d)?$/);if(!r)return null;let t=parseFloat(r[1]);switch(r[2]||"s"){case"s":return t*1e3;case"m":return t*60*1e3;case"h":return t*60*60*1e3;case"d":return t*24*60*60*1e3;default:return null}}export{n as a};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-SY4HAUHP.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-SY4HAUHP.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{b as e}from"./chunk-VACKIICN.js";var i=globalThis.setTimeout.bind(globalThis),r=globalThis.clearTimeout.bind(globalThis),s=globalThis.setInterval.bind(globalThis),T=globalThis.clearInterval.bind(globalThis);function l(t){return typeof t!="function"?t:e.bindCurrentContext(t)}var b=((t,n,...o)=>i(l(t),n,...o)),u=r;export{b as a,u as b};
|
||||
14
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-TA74ENH7.js
generated
vendored
Normal file
14
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-TA74ENH7.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{c as j,d as y}from"./chunk-XEKXHOPO.js";import{a as g,b as v,c as F}from"./chunk-QAYAQNCG.js";var N={name:"join",summary:"join lines of two files on a common field",usage:"join [OPTION]... FILE1 FILE2",description:"For each pair of input lines with identical join fields, write a line to standard output. The default join field is the first, delimited by blanks.",options:["-1 FIELD Join on this FIELD of file 1 (default: 1)","-2 FIELD Join on this FIELD of file 2 (default: 1)","-t CHAR Use CHAR as input and output field separator","-a FILENUM Also print unpairable lines from file FILENUM (1 or 2)","-v FILENUM Like -a but only output unpairable lines","-e STRING Replace missing fields with STRING","-o FORMAT Output format (comma-separated list of FILENUM.FIELD)","-i Ignore case when comparing fields"],examples:["join file1 file2 # Join on first field","join -1 2 -2 1 file1 file2 # Join file1 col 2 with file2 col 1","join -t ',' file1.csv file2.csv # Join CSV files","join -a 1 file1 file2 # Left outer join"]};function I(i,s){return s?i.split(s):i.split(/[ \t]+/).filter(n=>n.length>0)}function L(i,s,n,f){let e=I(i,s),r=e[n-1]??"";return f&&(r=r.toLowerCase()),{fields:e,joinKey:r,original:i}}function m(i,s,n){let f=n.separator??" ";if(n.outputFormat){let l=[];for(let{file:c,field:p}of n.outputFormat){let a=c===1?i:s;a&&p===0?l.push(a.joinKey):a&&a.fields[p-1]!==void 0?l.push(a.fields[p-1]):l.push(n.emptyString)}return l.join(f)}let e=[],r=i?.joinKey??s?.joinKey??"";if(e.push(r),i)for(let l=0;l<i.fields.length;l++)l!==n.field1-1&&e.push(i.fields[l]);if(s)for(let l=0;l<s.fields.length;l++)l!==n.field2-1&&e.push(s.fields[l]);return e.join(f)}function U(i){let s=i.split(","),n=[];for(let f of s){let e=f.trim().match(/^(\d+)\.(\d+)$/);if(!e)return null;let r=Number.parseInt(e[1],10),l=Number.parseInt(e[2],10);if(r!==1&&r!==2)return null;n.push({file:r,field:l})}return n}var E={name:"join",execute:async(i,s)=>{if(v(i))return g(N);let n={field1:1,field2:1,separator:null,printUnpairable:new Set,onlyUnpairable:new Set,emptyString:"",outputFormat:null,ignoreCase:!1},f=[],e=0;for(;e<i.length;){let t=i[e];if(t==="-1"&&e+1<i.length){let o=Number.parseInt(i[e+1],10);if(Number.isNaN(o)||o<1)return{exitCode:1,stdout:"",stderr:`join: invalid field number: '${i[e+1]}'
|
||||
`};n.field1=o,e+=2}else if(t==="-2"&&e+1<i.length){let o=Number.parseInt(i[e+1],10);if(Number.isNaN(o)||o<1)return{exitCode:1,stdout:"",stderr:`join: invalid field number: '${i[e+1]}'
|
||||
`};n.field2=o,e+=2}else if((t==="-t"||t==="--field-separator")&&e+1<i.length)n.separator=i[e+1],e+=2;else if(t.startsWith("-t")&&t.length>2)n.separator=t.slice(2),e++;else if(t==="-a"&&e+1<i.length){let o=Number.parseInt(i[e+1],10);if(o!==1&&o!==2)return{exitCode:1,stdout:"",stderr:`join: invalid file number: '${i[e+1]}'
|
||||
`};n.printUnpairable.add(o),e+=2}else if(t.match(/^-a[12]$/))n.printUnpairable.add(Number.parseInt(t[2],10)),e++;else if(t==="-v"&&e+1<i.length){let o=Number.parseInt(i[e+1],10);if(o!==1&&o!==2)return{exitCode:1,stdout:"",stderr:`join: invalid file number: '${i[e+1]}'
|
||||
`};n.onlyUnpairable.add(o),e+=2}else if(t.match(/^-v[12]$/))n.onlyUnpairable.add(Number.parseInt(t[2],10)),e++;else if(t==="-e"&&e+1<i.length)n.emptyString=i[e+1],e+=2;else if(t==="-o"&&e+1<i.length){let o=U(i[e+1]);if(!o)return{exitCode:1,stdout:"",stderr:`join: invalid field spec: '${i[e+1]}'
|
||||
`};n.outputFormat=o,e+=2}else if(t==="-i"||t==="--ignore-case")n.ignoreCase=!0,e++;else if(t==="--"){f.push(...i.slice(e+1));break}else{if(t.startsWith("-")&&t!=="-")return F("join",t);f.push(t),e++}}if(f.length!==2)return{exitCode:1,stdout:"",stderr:f.length<2?`join: missing file operand
|
||||
`:`join: extra operand
|
||||
`};let r=[];for(let t of f)if(t==="-")r.push(j(s.stdin)??"");else{let o=s.fs.resolvePath(s.cwd,t),u=await s.fs.readFile(o);if(u===null)return{exitCode:1,stdout:"",stderr:`join: ${t}: No such file or directory
|
||||
`};r.push(u)}let l=(t,o)=>{let u=t.split(`
|
||||
`);return t.endsWith(`
|
||||
`)&&u[u.length-1]===""&&u.pop(),u.filter(h=>h.length>0).map(h=>L(h,n.separator,o,n.ignoreCase))},c=l(r[0],n.field1),p=l(r[1],n.field2),a=new Map;for(let t of p){let o=a.get(t.joinKey);o?o.push(t):a.set(t.joinKey,[t])}let d=[],b=new Set;for(let t of c){let o=a.get(t.joinKey);if(o&&o.length>0){if(b.add(t.joinKey),n.onlyUnpairable.size===0)for(let u of o)d.push(m(t,u,n))}else(n.printUnpairable.has(1)||n.onlyUnpairable.has(1))&&d.push(m(t,null,n))}if(n.printUnpairable.has(2)||n.onlyUnpairable.has(2))for(let t of p)b.has(t.joinKey)||d.push(m(null,t,n));return{exitCode:0,stdout:y(d.length>0?`${d.join(`
|
||||
`)}
|
||||
`:""),stderr:"",stdoutEncoding:"binary"}}},H={name:"join",flags:[{flag:"-1",type:"value",valueHint:"number"},{flag:"-2",type:"value",valueHint:"number"},{flag:"-t",type:"value",valueHint:"delimiter"},{flag:"-a",type:"value",valueHint:"number"},{flag:"-v",type:"value",valueHint:"number"},{flag:"-e",type:"value",valueHint:"string"},{flag:"-o",type:"value",valueHint:"format"},{flag:"-i",type:"boolean"}],needsArgs:!0,minArgs:2};export{E as a,H as b};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-TC2WHAIS.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-TC2WHAIS.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as n,b as i,c as r}from"./chunk-PDUL32DM.js";import{a,b as s}from"./chunk-QAYAQNCG.js";var f={name:"head",summary:"output the first part of files",usage:"head [OPTION]... [FILE]...",options:["-c, --bytes=NUM print the first NUM bytes","-n, --lines=NUM print the first NUM lines (default 10)","-q, --quiet never print headers giving file names","-v, --verbose always print headers giving file names"," --help display this help and exit"]},m={name:"head",async execute(t,l){if(s(t))return a(f);let e=n(t,"head");if(!e.ok)return e.error;let{lines:o,bytes:p}=e.options;return i(l,e.options,"head",d=>r(d,o,p))}},g={name:"head",flags:[{flag:"-n",type:"value",valueHint:"number"},{flag:"-c",type:"value",valueHint:"number"},{flag:"-q",type:"boolean"},{flag:"-v",type:"boolean"}],stdinType:"text",needsFiles:!0};export{m as a,g as b};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-TDD4NFYE.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-TDD4NFYE.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
function x(r,o){let t=o?"d":"-",n=[r&256?"r":"-",r&128?"w":"-",r&64?"x":"-",r&32?"r":"-",r&16?"w":"-",r&8?"x":"-",r&4?"r":"-",r&2?"w":"-",r&1?"x":"-"];return t+n.join("")}export{x as a};
|
||||
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-UIJUTQPH.js
generated
vendored
Normal file
3
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-UIJUTQPH.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as i,b as l}from"./chunk-QAYAQNCG.js";var p={name:"history",summary:"display command history",usage:"history [n]",options:["-c clear the history list"," --help display this help and exit"]},h="BASH_HISTORY",m={name:"history",async execute(e,s){if(l(e))return i(p);let a=s.env.get(h)||"[]",t;try{t=JSON.parse(a)}catch{t=[]}if(e[0]==="-c")return s.env.set(h,"[]"),{stdout:"",stderr:"",exitCode:0};let n=t.length;e[0]&&/^\d+$/.test(e[0])&&(n=Math.min(parseInt(e[0],10),t.length));let c=t.length-n,r="";for(let o=c;o<t.length;o++){let y=(o+1).toString().padStart(5," ");r+=`${y} ${t[o]}
|
||||
`}return{stdout:r,stderr:"",exitCode:0}}},u={name:"history",flags:[{flag:"-c",type:"boolean"}]};export{m as a,u as b};
|
||||
5
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-VACKIICN.js
generated
vendored
Normal file
5
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-VACKIICN.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
6
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-VBLMIJON.js
generated
vendored
Normal file
6
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-VBLMIJON.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{c as u}from"./chunk-DLL7UR66.js";import{c as l}from"./chunk-XEKXHOPO.js";import{a as d,b as h}from"./chunk-QAYAQNCG.js";var m={name:"bash",summary:"execute shell commands or scripts",usage:"bash [OPTIONS] [SCRIPT_FILE] [ARGUMENTS...]",options:["-c COMMAND execute COMMAND string"," --help display this help and exit"],notes:["Without -c, reads and executes commands from SCRIPT_FILE.","Arguments are passed as $1, $2, etc. to the script.",'$0 is set to the script name (or "bash" with -c).']},F={name:"bash",async execute(t,e){if(h(t))return d(m);if(t[0]==="-c"&&t.length>=2){let s=t[1],n=t[2]||"bash",c=t.slice(3);return r(s,n,c,e)}if(t.length===0){let s=l(e.stdin);return s.trim()?r(s,"bash",[],e):{stdout:"",stderr:"",exitCode:0}}let o=t[0],i=t.slice(1);try{let s=e.fs.resolvePath(e.cwd,o),n=await e.fs.readFile(s);return r(n,o,i,e)}catch{return{stdout:"",stderr:`bash: ${o}: No such file or directory
|
||||
`,exitCode:127}}}},P={name:"sh",async execute(t,e){if(h(t))return d({...m,name:"sh",summary:"execute shell commands or scripts (POSIX shell)"});if(t[0]==="-c"&&t.length>=2){let s=t[1],n=t[2]||"sh",c=t.slice(3);return r(s,n,c,e)}if(t.length===0){let s=l(e.stdin);return s.trim()?r(s,"sh",[],e):{stdout:"",stderr:"",exitCode:0}}let o=t[0],i=t.slice(1);try{let s=e.fs.resolvePath(e.cwd,o),n=await e.fs.readFile(s);return r(n,o,i,e)}catch{return{stdout:"",stderr:`sh: ${o}: No such file or directory
|
||||
`,exitCode:127}}}};async function r(t,e,o,i){if(!i.exec)return{stdout:"",stderr:`bash: internal error: exec function not available
|
||||
`,exitCode:1};let s=u(i.exportedEnv||{},{0:e,"#":String(o.length),"@":o.join(" "),"*":o.join(" ")});o.forEach((a,p)=>{s[String(p+1)]=a});let n=t;if(n.startsWith("#!")){let a=n.indexOf(`
|
||||
`);a!==-1&&(n=n.slice(a+1))}return await i.exec(n,{env:s,cwd:i.cwd,stdin:i.stdin,stdinKind:"bytes",signal:i.signal})}var T={name:"bash",flags:[{flag:"-c",type:"value",valueHint:"string"}],stdinType:"text"},v={name:"sh",flags:[{flag:"-c",type:"value",valueHint:"string"}],stdinType:"text"};export{F as a,P as b,T as c,v as d};
|
||||
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-W5DWRFSU.js
generated
vendored
Normal file
2
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-W5DWRFSU.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
function n(e){return e instanceof Error?e.message:String(e)}export{n as a};
|
||||
10
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-WKPK7M56.js
generated
vendored
Normal file
10
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-WKPK7M56.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as j}from"./chunk-4I3HOE5Z.js";import{c as y}from"./chunk-XEKXHOPO.js";import{e as v}from"./chunk-BZUGFHVS.js";var w=v(j(),1);function C(){return Object.create(null)}function E(e,r,o){e[r]=o}function b(e){let r=C();for(let o of Object.keys(e)){let s=e[o];(typeof s=="string"||typeof s=="number"||typeof s=="boolean"||s===null)&&(r[o]=s)}return r}function S(e){let r=w.default.parse(e.trim(),{header:!0,dynamicTyping:!0,skipEmptyLines:!0}),o=r.data.map(s=>b(s));return{headers:r.meta.fields||[],data:o}}function I(e,r){return r.length===0?`${e.join(",")}
|
||||
`:`${w.default.unparse(r,{columns:e}).replace(/\r\n/g,`
|
||||
`)}
|
||||
`}async function g(e,r){let o=e.find(p=>!p.startsWith("-")),s;if(!o||o==="-")s=y(r.stdin);else try{let p=r.fs.resolvePath(r.cwd,o);s=await r.fs.readFile(p)}catch{return{headers:[],data:[],error:{stdout:"",stderr:`xan: ${o}: No such file or directory
|
||||
`,exitCode:1}}}let{headers:i,data:f}=S(s);return{headers:i,data:f}}async function N(e,r){let o=0,s=[],i=[];for(let t=0;t<e.length;t++){let n=e[t];(n==="-l"||n==="--limit")&&t+1<e.length?o=Number.parseInt(e[++t],10):(n==="-s"||n==="--select")&&t+1<e.length?s=e[++t].split(","):n.startsWith("-")||i.push(n)}let{headers:f,data:p,error:d}=await g(i,r);if(d)return d;let c=s.length>0?s.filter(t=>f.includes(t)):f,l=o>0?p.slice(0,o):p,h=Math.max(...c.map(t=>t.length)),a=[],$="\u2500".repeat(80);for(let t=0;t<l.length;t++){let n=l[t];a.push(`Row n\xB0${t}`),a.push($);for(let u of c){let m=n[u],x=m==null?"":String(m);a.push(`${u.padEnd(h)} ${x}`)}t<l.length-1&&a.push("")}return{stdout:`${a.join(`
|
||||
`)}
|
||||
`,stderr:"",exitCode:0}}async function A(e,r){let o=0,s=[];for(let t=0;t<e.length;t++){let n=e[t];n==="-n"&&t+1<e.length?o=Number.parseInt(e[++t],10):n.startsWith("-")||s.push(n)}let{headers:i,data:f,error:p}=await g(s,r);if(p)return p;let d=o>0?f.slice(0,o):f,c=i.map(t=>t.length);for(let t of d)for(let n=0;n<i.length;n++){let u=String(t[i[n]]??"");c[n]=Math.max(c[n],u.length)}let l=[],h="\u2500",a="\u2502";l.push(`\u250C${c.map(t=>h.repeat(t+2)).join("\u252C")}\u2510`);let $=i.map((t,n)=>` ${t.padEnd(c[n])} `).join(a);l.push(`${a}${$}${a}`),l.push(`\u251C${c.map(t=>h.repeat(t+2)).join("\u253C")}\u2524`);for(let t of d){let n=i.map((u,m)=>` ${String(t[u]??"").padEnd(c[m])} `).join(a);l.push(`${a}${n}${a}`)}return l.push(`\u2514${c.map(t=>h.repeat(t+2)).join("\u2534")}\u2518`),{stdout:`${l.join(`
|
||||
`)}
|
||||
`,stderr:"",exitCode:0}}export{C as a,E as b,b as c,S as d,I as e,g as f,N as g,A as h};
|
||||
8
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-WM5IJFMP.js
generated
vendored
Normal file
8
.output/server/node_modules/just-bash/dist/bundle/chunks/chunk-WM5IJFMP.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
||||
import{a as w,b as v,c as $}from"./chunk-QAYAQNCG.js";var R={name:"chmod",summary:"change file mode bits",usage:"chmod [OPTIONS] MODE FILE...",options:["-R change files recursively","-v output a diagnostic for every file processed"," --help display this help and exit"]},C={name:"chmod",async execute(s,a){if(v(s))return w(R);if(s.length<2)return{stdout:"",stderr:`chmod: missing operand
|
||||
`,exitCode:1};let e=!1,c=!1,i=0;for(;i<s.length&&s[i].startsWith("-");){let t=s[i];if(t==="-R"||t==="--recursive")e=!0,i++;else if(t==="-v"||t==="--verbose")c=!0,i++;else if(t==="--"){i++;break}else{if(/^[+-]?[rwxugo]+/.test(t)||/^\d+$/.test(t))break;if(/^-[Rv]+$/.test(t)){t.includes("R")&&(e=!0),t.includes("v")&&(c=!0),i++;continue}return $("chmod",t)}}if(s.length-i<2)return{stdout:"",stderr:`chmod: missing operand
|
||||
`,exitCode:1};let n=s[i],l=s.slice(i+1),r=/^[0-7]+$/.test(n),o;if(r)o=parseInt(n,8);else try{p(n,420)}catch{return{stdout:"",stderr:`chmod: invalid mode: '${n}'
|
||||
`,exitCode:1}}let f="",d="",u=!1;for(let t of l){let h=a.fs.resolvePath(a.cwd,t);try{let m;if(r&&o!==void 0)m=o;else{let g=await a.fs.stat(h);m=p(n,g.mode)}if(await a.fs.chmod(h,m),c&&(f+=`mode of '${t}' changed to ${m.toString(8).padStart(4,"0")}
|
||||
`),e&&(await a.fs.stat(h)).isDirectory){let I=await y(a,h,r?o:void 0,r?void 0:n,c);f+=I}}catch{d+=`chmod: cannot access '${t}': No such file or directory
|
||||
`,u=!0}}return{stdout:f,stderr:d,exitCode:u?1:0}}};async function y(s,a,e,c,i){let n="",l=await s.fs.readdir(a);for(let r of l){let o=a==="/"?`/${r}`:`${a}/${r}`,f;if(e!==void 0)f=e;else if(c!==void 0){let u=await s.fs.stat(o);f=p(c,u.mode)}else f=420;await s.fs.chmod(o,f),i&&(n+=`mode of '${o}' changed to ${f.toString(8).padStart(4,"0")}
|
||||
`),(await s.fs.stat(o)).isDirectory&&(n+=await y(s,o,e,c,i))}return n}function p(s,a=420){if(/^[0-7]+$/.test(s))return parseInt(s,8);let e=a&4095,c=s.split(",");for(let i of c){let n=i.match(/^([ugoa]*)([+\-=])([rwxXst]*)$/);if(!n)throw new Error(`Invalid mode: ${s}`);let l=n[1]||"a",r=n[2],o=n[3];(l==="a"||l==="")&&(l="ugo");let f=0;o.includes("r")&&(f|=4),o.includes("w")&&(f|=2),(o.includes("x")||o.includes("X"))&&(f|=1);let d=0;o.includes("s")&&(l.includes("u")&&(d|=2048),l.includes("g")&&(d|=1024)),o.includes("t")&&(d|=512);for(let u of l){let t=0;u==="u"?t=6:u==="g"?t=3:u==="o"&&(t=0);let h=f<<t;r==="+"?e|=h:r==="-"?e&=~h:r==="="&&(e&=~(7<<t),e|=h)}r==="+"?e|=d:r==="-"?e&=~d:r==="="&&(o.includes("s")&&(l.includes("u")&&(e&=-2049,e|=d&2048),l.includes("g")&&(e&=-1025,e|=d&1024)),o.includes("t")&&(e&=-513,e|=d&512))}return e}var O={name:"chmod",flags:[{flag:"-R",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0,minArgs:2};export{C as a,O as b};
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user