@seeka-labs/cli-apps 2.0.7-rc.2 → 2.0.12-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,19 +1,19 @@
1
- MIT License
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to deal
5
- in the Software without restriction, including without limitation the rights
6
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
- SOFTWARE.
1
+ MIT License
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ Expecting one of '${r.join("', '")}'`);return this._lifeCycleHooks[e]?this._life
27
27
  `),this.outputHelp({error:!0}));let r=t||{},i=r.exitCode||1,s=r.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in v.env){let t=e.attributeName();(this.getOptionValue(t)===void 0||["default","config","env"].includes(this.getOptionValueSource(t)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,v.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new hi(this.options),t=r=>this.getOptionValue(r)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(r));this.options.filter(r=>r.implied!==void 0&&t(r.attributeName())&&e.valueFromOption(this.getOptionValue(r.attributeName()),r)).forEach(r=>{Object.keys(r.implied).filter(i=>!t(i)).forEach(i=>{this.setOptionValueWithSource(i,r.implied[i],"implied")})})}missingArgument(e){let t=`error: missing required argument '${e}'`;this.error(t,{code:"commander.missingArgument"})}optionMissingArgument(e){let t=`error: option '${e.flags}' argument missing`;this.error(t,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let t=`error: required option '${e.flags}' not specified`;this.error(t,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,t){let r=o=>{let a=o.attributeName(),m=this.getOptionValue(a),u=this.options.find(c=>c.negate&&a===c.attributeName()),l=this.options.find(c=>!c.negate&&a===c.attributeName());return u&&(u.presetArg===void 0&&m===!1||u.presetArg!==void 0&&m===u.presetArg)?u:l||o},i=o=>{let a=r(o),m=a.attributeName();return this.getOptionValueSource(m)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},s=`error: ${i(e)} cannot be used with ${i(t)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],s=this;do{let o=s.createHelp().visibleOptions(s).filter(a=>a.long).map(a=>a.long);i=i.concat(o),s=s.parent}while(s&&!s._enablePositionalOptions);t=rr(e,i)}let r=`error: unknown option '${e}'${t}`;this.error(r,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let t=this.registeredArguments.length,r=t===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${t} argument${r} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],t="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(s=>{i.push(s.name()),s.alias()&&i.push(s.alias())}),t=rr(e,i)}let r=`error: unknown command '${e}'${t}`;this.error(r,{code:"commander.unknownCommand"})}version(e,t,r){if(e===void 0)return this._version;this._version=e,t=t||"-V, --version",r=r||"output the version number";let i=this.createOption(t,r);return this._versionOptionName=i.attributeName(),this._registerOption(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
28
28
  `),this._exit(0,"commander.version",e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");let r=this.parent?._findCommand(e);if(r){let i=[r.name()].concat(r.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${i}'`)}return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(t=>this.alias(t)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let t=this.registeredArguments.map(r=>li(r));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?t:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}helpGroup(e){return e===void 0?this._helpGroupHeading??"":(this._helpGroupHeading=e,this)}commandsGroup(e){return e===void 0?this._defaultCommandGroup??"":(this._defaultCommandGroup=e,this)}optionsGroup(e){return e===void 0?this._defaultOptionGroup??"":(this._defaultOptionGroup=e,this)}_initOptionGroup(e){this._defaultOptionGroup&&!e.helpGroupHeading&&e.helpGroup(this._defaultOptionGroup)}_initCommandGroup(e){this._defaultCommandGroup&&!e.helpGroup()&&e.helpGroup(this._defaultCommandGroup)}nameFromFilename(e){return this._name=T.basename(e,T.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let t=this.createHelp(),r=this._getOutputContext(e);t.prepareContext({error:r.error,helpWidth:r.helpWidth,outputHasColors:r.hasColors});let i=t.formatHelp(this,t);return r.hasColors?i:this._outputConfiguration.stripColor(i)}_getOutputContext(e){e=e||{};let t=!!e.error,r,i,s;return t?(r=a=>this._outputConfiguration.writeErr(a),i=this._outputConfiguration.getErrHasColors(),s=this._outputConfiguration.getErrHelpWidth()):(r=a=>this._outputConfiguration.writeOut(a),i=this._outputConfiguration.getOutHasColors(),s=this._outputConfiguration.getOutHelpWidth()),{error:t,write:a=>(i||(a=this._outputConfiguration.stripColor(a)),r(a)),hasColors:i,helpWidth:s}}outputHelp(e){let t;typeof e=="function"&&(t=e,e=void 0);let r=this._getOutputContext(e),i={error:r.error,write:r.write,command:this};this._getCommandAndAncestors().reverse().forEach(o=>o.emit("beforeAllHelp",i)),this.emit("beforeHelp",i);let s=this.helpInformation({error:r.error});if(t&&(s=t(s),typeof s!="string"&&!Buffer.isBuffer(s)))throw new Error("outputHelp callback must return a string or a Buffer");r.write(s),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",i),this._getCommandAndAncestors().forEach(o=>o.emit("afterAllHelp",i))}helpOption(e,t){return typeof e=="boolean"?(e?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(e??"-h, --help",t??"display help for command"),(e||t)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this._initOptionGroup(e),this}help(e){this.outputHelp(e);let t=Number(v.exitCode??0);t===0&&e&&typeof e!="function"&&e.error&&(t=1),this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){let r=["beforeAll","before","after","afterAll"];if(!r.includes(e))throw new Error(`Unexpected value for position to addHelpText.
29
29
  Expecting one of '${r.join("', '")}'`);let i=`${e}Help`;return this.on(i,s=>{let o;typeof t=="function"?o=t({error:s.error,command:s.command}):o=t,o&&s.write(`${o}
30
- `)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(i=>t.is(i))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function nr(n){return n.map(e=>{if(!e.startsWith("--inspect"))return e;let t,r="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?t=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=s[1],/^\d+$/.test(s[3])?i=s[3]:r=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=s[1],r=s[3],i=s[4]),t&&i!=="0"?`${t}=${r}:${parseInt(i)+1}`:e})}function Ze(){if(v.env.NO_COLOR||v.env.FORCE_COLOR==="0"||v.env.FORCE_COLOR==="false")return!1;if(v.env.FORCE_COLOR||v.env.CLICOLOR_FORCE!==void 0)return!0}et.Command=Xe;et.useColor=Ze});var mr=g(k=>{var{Argument:sr}=he(),{Command:tt}=ir(),{CommanderError:fi,InvalidArgumentError:or}=ne(),{Help:di}=Ue(),{Option:ar}=Ke();k.program=new tt;k.createCommand=n=>new tt(n);k.createOption=(n,e)=>new ar(n,e);k.createArgument=(n,e)=>new sr(n,e);k.Command=tt;k.Option=ar;k.Argument=sr;k.Help=di;k.CommanderError=fi;k.InvalidArgumentError=or;k.InvalidOptionArgumentError=or});var yr=g((ks,vr)=>{vr.exports=_r;_r.sync=Oi;var dr=require("fs");function wi(n,e){var t=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var r=0;r<t.length;r++){var i=t[r].toLowerCase();if(i&&n.substr(-i.length).toLowerCase()===i)return!0}return!1}function gr(n,e,t){return!n.isSymbolicLink()&&!n.isFile()?!1:wi(e,t)}function _r(n,e,t){dr.stat(n,function(r,i){t(r,r?!1:gr(i,n,e))})}function Oi(n,e){return gr(dr.statSync(n),n,e)}});var br=g((Ms,Or)=>{Or.exports=Sr;Sr.sync=bi;var Cr=require("fs");function Sr(n,e,t){Cr.stat(n,function(r,i){t(r,r?!1:wr(i,e))})}function bi(n,e){return wr(Cr.statSync(n),e)}function wr(n,e){return n.isFile()&&Ai(n,e)}function Ai(n,e){var t=n.mode,r=n.uid,i=n.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),m=parseInt("010",8),u=parseInt("001",8),l=a|m,c=t&u||t&m&&i===o||t&a&&r===s||t&l&&s===0;return c}});var Er=g(($s,Ar)=>{var Ls=require("fs"),de;process.platform==="win32"||global.TESTING_WINDOWS?de=yr():de=br();Ar.exports=it;it.sync=Ei;function it(n,e,t){if(typeof e=="function"&&(t=e,e={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(r,i){it(n,e||{},function(s,o){s?i(s):r(o)})})}de(n,e||{},function(r,i){r&&(r.code==="EACCES"||e&&e.ignoreErrors)&&(r=null,i=!1),t(r,i)})}function Ei(n,e){try{return de.sync(n,e||{})}catch(t){if(e&&e.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var Tr=g((Ns,Nr)=>{var Q=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",xr=require("path"),xi=Q?";":":",kr=Er(),Mr=n=>Object.assign(new Error(`not found: ${n}`),{code:"ENOENT"}),Lr=(n,e)=>{let t=e.colon||xi,r=n.match(/\//)||Q&&n.match(/\\/)?[""]:[...Q?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(t)],i=Q?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Q?i.split(t):[""];return Q&&n.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:r,pathExt:s,pathExtExe:i}},$r=(n,e,t)=>{typeof e=="function"&&(t=e,e={}),e||(e={});let{pathEnv:r,pathExt:i,pathExtExe:s}=Lr(n,e),o=[],a=u=>new Promise((l,c)=>{if(u===r.length)return e.all&&o.length?l(o):c(Mr(n));let p=r[u],f=/^".*"$/.test(p)?p.slice(1,-1):p,_=xr.join(f,n),S=!f&&/^\.[\\\/]/.test(n)?n.slice(0,2)+_:_;l(m(S,u,0))}),m=(u,l,c)=>new Promise((p,f)=>{if(c===i.length)return p(a(l+1));let _=i[c];kr(u+_,{pathExt:s},(S,G)=>{if(!S&&G)if(e.all)o.push(u+_);else return p(u+_);return p(m(u,l,c+1))})});return t?a(0).then(u=>t(null,u),t):a(0)},ki=(n,e)=>{e=e||{};let{pathEnv:t,pathExt:r,pathExtExe:i}=Lr(n,e),s=[];for(let o=0;o<t.length;o++){let a=t[o],m=/^".*"$/.test(a)?a.slice(1,-1):a,u=xr.join(m,n),l=!m&&/^\.[\\\/]/.test(n)?n.slice(0,2)+u:u;for(let c=0;c<r.length;c++){let p=l+r[c];try{if(kr.sync(p,{pathExt:i}))if(e.all)s.push(p);else return p}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw Mr(n)};Nr.exports=$r;$r.sync=ki});var Dr=g((Ts,st)=>{"use strict";var Pr=(n={})=>{let e=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};st.exports=Pr;st.exports.default=Pr});var jr=g((Ps,Vr)=>{"use strict";var Ir=require("path"),Mi=Tr(),Li=Dr();function Rr(n,e){let t=n.options.env||process.env,r=process.cwd(),i=n.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(n.options.cwd)}catch{}let o;try{o=Mi.sync(n.command,{path:t[Li({env:t})],pathExt:e?Ir.delimiter:void 0})}catch{}finally{s&&process.chdir(r)}return o&&(o=Ir.resolve(i?n.options.cwd:"",o)),o}function $i(n){return Rr(n)||Rr(n,!0)}Vr.exports=$i});var Hr=g((Ds,at)=>{"use strict";var ot=/([()\][%!^"`<>&|;, *?])/g;function Ni(n){return n=n.replace(ot,"^$1"),n}function Ti(n,e){return n=`${n}`,n=n.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),n=n.replace(/(?=(\\+?)?)\1$/,"$1$1"),n=`"${n}"`,n=n.replace(ot,"^$1"),e&&(n=n.replace(ot,"^$1")),n}at.exports.command=Ni;at.exports.argument=Ti});var Gr=g((Is,Fr)=>{"use strict";Fr.exports=/^#!(.*)/});var Wr=g((Rs,qr)=>{"use strict";var Pi=Gr();qr.exports=(n="")=>{let e=n.match(Pi);if(!e)return null;let[t,r]=e[0].replace(/#! ?/,"").split(" "),i=t.split("/").pop();return i==="env"?r:r?`${i} ${r}`:i}});var Br=g((Vs,Ur)=>{"use strict";var mt=require("fs"),Di=Wr();function Ii(n){let t=Buffer.alloc(150),r;try{r=mt.openSync(n,"r"),mt.readSync(r,t,0,150,0),mt.closeSync(r)}catch{}return Di(t.toString())}Ur.exports=Ii});var Qr=g((js,Kr)=>{"use strict";var Ri=require("path"),zr=jr(),Jr=Hr(),Vi=Br(),ji=process.platform==="win32",Hi=/\.(?:com|exe)$/i,Fi=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Gi(n){n.file=zr(n);let e=n.file&&Vi(n.file);return e?(n.args.unshift(n.file),n.command=e,zr(n)):n.file}function qi(n){if(!ji)return n;let e=Gi(n),t=!Hi.test(e);if(n.options.forceShell||t){let r=Fi.test(e);n.command=Ri.normalize(n.command),n.command=Jr.command(n.command),n.args=n.args.map(s=>Jr.argument(s,r));let i=[n.command].concat(n.args).join(" ");n.args=["/d","/s","/c",`"${i}"`],n.command=process.env.comspec||"cmd.exe",n.options.windowsVerbatimArguments=!0}return n}function Wi(n,e,t){e&&!Array.isArray(e)&&(t=e,e=null),e=e?e.slice(0):[],t=Object.assign({},t);let r={command:n,args:e,options:t,file:void 0,original:{command:n,args:e}};return t.shell?r:qi(r)}Kr.exports=Wi});var Zr=g((Hs,Xr)=>{"use strict";var ut=process.platform==="win32";function lt(n,e){return Object.assign(new Error(`${e} ${n.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${n.command}`,path:n.command,spawnargs:n.args})}function Ui(n,e){if(!ut)return;let t=n.emit;n.emit=function(r,i){if(r==="exit"){let s=Yr(i,e);if(s)return t.call(n,"error",s)}return t.apply(n,arguments)}}function Yr(n,e){return ut&&n===1&&!e.file?lt(e.original,"spawn"):null}function Bi(n,e){return ut&&n===1&&!e.file?lt(e.original,"spawnSync"):null}Xr.exports={hookChildProcess:Ui,verifyENOENT:Yr,verifyENOENTSync:Bi,notFoundError:lt}});var rn=g((Fs,Y)=>{"use strict";var en=require("child_process"),ct=Qr(),pt=Zr();function tn(n,e,t){let r=ct(n,e,t),i=en.spawn(r.command,r.args,r.options);return pt.hookChildProcess(i,r),i}function zi(n,e,t){let r=ct(n,e,t),i=en.spawnSync(r.command,r.args,r.options);return i.error=i.error||pt.verifyENOENTSync(i.status,r),i}Y.exports=tn;Y.exports.spawn=tn;Y.exports.sync=zi;Y.exports._parse=ct;Y.exports._enoent=pt});Qt().install();var ur=W(mr(),1),{program:_s,createCommand:vs,createArgument:ys,createOption:Cs,CommanderError:Ss,InvalidArgumentError:ws,InvalidOptionArgumentError:Os,Command:lr,Argument:bs,Option:P,Help:As}=ur.default;var gi=/[\p{Lu}]/u,_i=/[\p{Ll}]/u,cr=/^[\p{Lu}](?![\p{Lu}])/gu,fr=/([\p{Alpha}\p{N}_]|$)/u,rt=/[_.\- ]+/,vi=new RegExp("^"+rt.source),pr=new RegExp(rt.source+fr.source,"gu"),hr=new RegExp("\\d+"+fr.source,"gu"),yi=(n,e,t,r)=>{let i=!1,s=!1,o=!1,a=!1;for(let m=0;m<n.length;m++){let u=n[m];a=m>2?n[m-3]==="-":!0,i&&gi.test(u)?(n=n.slice(0,m)+"-"+n.slice(m),i=!1,o=s,s=!0,m++):s&&o&&_i.test(u)&&(!a||r)?(n=n.slice(0,m-1)+"-"+n.slice(m-1),o=s,s=!1,i=!0):(i=e(u)===u&&t(u)!==u,o=s,s=t(u)===u&&e(u)!==u)}return n},Ci=(n,e)=>(cr.lastIndex=0,n.replaceAll(cr,t=>e(t))),Si=(n,e)=>(pr.lastIndex=0,hr.lastIndex=0,n.replaceAll(hr,(t,r,i)=>["_","-"].includes(n.charAt(i+t.length))?t:e(t)).replaceAll(pr,(t,r)=>e(r)));function nt(n,e){if(!(typeof n=="string"||Array.isArray(n)))throw new TypeError("Expected the input to be `string | string[]`");if(e={pascalCase:!1,preserveConsecutiveUppercase:!1,...e},Array.isArray(n)?n=n.map(s=>s.trim()).filter(s=>s.length).join("-"):n=n.trim(),n.length===0)return"";let t=e.locale===!1?s=>s.toLowerCase():s=>s.toLocaleLowerCase(e.locale),r=e.locale===!1?s=>s.toUpperCase():s=>s.toLocaleUpperCase(e.locale);return n.length===1?rt.test(n)?"":e.pascalCase?r(n):t(n):(n!==t(n)&&(n=yi(n,t,r,e.preserveConsecutiveUppercase)),n=n.replace(vi,""),n=e.preserveConsecutiveUppercase?Ci(n,t):t(n),e.pascalCase&&(n=r(n.charAt(0))+n.slice(1)),Si(n,r))}var F=W(rn()),y=W(require("fs")),un=W(require("os")),d=W(require("path"));var ie="2.0.7-rc.2";var sn=()=>{se(),console.log(`
30
+ `)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(i=>t.is(i))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function nr(n){return n.map(e=>{if(!e.startsWith("--inspect"))return e;let t,r="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?t=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=s[1],/^\d+$/.test(s[3])?i=s[3]:r=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=s[1],r=s[3],i=s[4]),t&&i!=="0"?`${t}=${r}:${parseInt(i)+1}`:e})}function Ze(){if(v.env.NO_COLOR||v.env.FORCE_COLOR==="0"||v.env.FORCE_COLOR==="false")return!1;if(v.env.FORCE_COLOR||v.env.CLICOLOR_FORCE!==void 0)return!0}et.Command=Xe;et.useColor=Ze});var mr=g(k=>{var{Argument:sr}=he(),{Command:tt}=ir(),{CommanderError:fi,InvalidArgumentError:or}=ne(),{Help:di}=Ue(),{Option:ar}=Ke();k.program=new tt;k.createCommand=n=>new tt(n);k.createOption=(n,e)=>new ar(n,e);k.createArgument=(n,e)=>new sr(n,e);k.Command=tt;k.Option=ar;k.Argument=sr;k.Help=di;k.CommanderError=fi;k.InvalidArgumentError=or;k.InvalidOptionArgumentError=or});var yr=g((ks,vr)=>{vr.exports=_r;_r.sync=Oi;var dr=require("fs");function wi(n,e){var t=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var r=0;r<t.length;r++){var i=t[r].toLowerCase();if(i&&n.substr(-i.length).toLowerCase()===i)return!0}return!1}function gr(n,e,t){return!n.isSymbolicLink()&&!n.isFile()?!1:wi(e,t)}function _r(n,e,t){dr.stat(n,function(r,i){t(r,r?!1:gr(i,n,e))})}function Oi(n,e){return gr(dr.statSync(n),n,e)}});var br=g((Ms,Or)=>{Or.exports=Sr;Sr.sync=bi;var Cr=require("fs");function Sr(n,e,t){Cr.stat(n,function(r,i){t(r,r?!1:wr(i,e))})}function bi(n,e){return wr(Cr.statSync(n),e)}function wr(n,e){return n.isFile()&&Ai(n,e)}function Ai(n,e){var t=n.mode,r=n.uid,i=n.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),m=parseInt("010",8),u=parseInt("001",8),l=a|m,c=t&u||t&m&&i===o||t&a&&r===s||t&l&&s===0;return c}});var Er=g(($s,Ar)=>{var Ls=require("fs"),de;process.platform==="win32"||global.TESTING_WINDOWS?de=yr():de=br();Ar.exports=it;it.sync=Ei;function it(n,e,t){if(typeof e=="function"&&(t=e,e={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(r,i){it(n,e||{},function(s,o){s?i(s):r(o)})})}de(n,e||{},function(r,i){r&&(r.code==="EACCES"||e&&e.ignoreErrors)&&(r=null,i=!1),t(r,i)})}function Ei(n,e){try{return de.sync(n,e||{})}catch(t){if(e&&e.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var Tr=g((Ns,Nr)=>{var Q=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",xr=require("path"),xi=Q?";":":",kr=Er(),Mr=n=>Object.assign(new Error(`not found: ${n}`),{code:"ENOENT"}),Lr=(n,e)=>{let t=e.colon||xi,r=n.match(/\//)||Q&&n.match(/\\/)?[""]:[...Q?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(t)],i=Q?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Q?i.split(t):[""];return Q&&n.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:r,pathExt:s,pathExtExe:i}},$r=(n,e,t)=>{typeof e=="function"&&(t=e,e={}),e||(e={});let{pathEnv:r,pathExt:i,pathExtExe:s}=Lr(n,e),o=[],a=u=>new Promise((l,c)=>{if(u===r.length)return e.all&&o.length?l(o):c(Mr(n));let p=r[u],f=/^".*"$/.test(p)?p.slice(1,-1):p,_=xr.join(f,n),S=!f&&/^\.[\\\/]/.test(n)?n.slice(0,2)+_:_;l(m(S,u,0))}),m=(u,l,c)=>new Promise((p,f)=>{if(c===i.length)return p(a(l+1));let _=i[c];kr(u+_,{pathExt:s},(S,G)=>{if(!S&&G)if(e.all)o.push(u+_);else return p(u+_);return p(m(u,l,c+1))})});return t?a(0).then(u=>t(null,u),t):a(0)},ki=(n,e)=>{e=e||{};let{pathEnv:t,pathExt:r,pathExtExe:i}=Lr(n,e),s=[];for(let o=0;o<t.length;o++){let a=t[o],m=/^".*"$/.test(a)?a.slice(1,-1):a,u=xr.join(m,n),l=!m&&/^\.[\\\/]/.test(n)?n.slice(0,2)+u:u;for(let c=0;c<r.length;c++){let p=l+r[c];try{if(kr.sync(p,{pathExt:i}))if(e.all)s.push(p);else return p}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw Mr(n)};Nr.exports=$r;$r.sync=ki});var Dr=g((Ts,st)=>{"use strict";var Pr=(n={})=>{let e=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};st.exports=Pr;st.exports.default=Pr});var jr=g((Ps,Vr)=>{"use strict";var Ir=require("path"),Mi=Tr(),Li=Dr();function Rr(n,e){let t=n.options.env||process.env,r=process.cwd(),i=n.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(n.options.cwd)}catch{}let o;try{o=Mi.sync(n.command,{path:t[Li({env:t})],pathExt:e?Ir.delimiter:void 0})}catch{}finally{s&&process.chdir(r)}return o&&(o=Ir.resolve(i?n.options.cwd:"",o)),o}function $i(n){return Rr(n)||Rr(n,!0)}Vr.exports=$i});var Hr=g((Ds,at)=>{"use strict";var ot=/([()\][%!^"`<>&|;, *?])/g;function Ni(n){return n=n.replace(ot,"^$1"),n}function Ti(n,e){return n=`${n}`,n=n.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),n=n.replace(/(?=(\\+?)?)\1$/,"$1$1"),n=`"${n}"`,n=n.replace(ot,"^$1"),e&&(n=n.replace(ot,"^$1")),n}at.exports.command=Ni;at.exports.argument=Ti});var Gr=g((Is,Fr)=>{"use strict";Fr.exports=/^#!(.*)/});var Wr=g((Rs,qr)=>{"use strict";var Pi=Gr();qr.exports=(n="")=>{let e=n.match(Pi);if(!e)return null;let[t,r]=e[0].replace(/#! ?/,"").split(" "),i=t.split("/").pop();return i==="env"?r:r?`${i} ${r}`:i}});var Br=g((Vs,Ur)=>{"use strict";var mt=require("fs"),Di=Wr();function Ii(n){let t=Buffer.alloc(150),r;try{r=mt.openSync(n,"r"),mt.readSync(r,t,0,150,0),mt.closeSync(r)}catch{}return Di(t.toString())}Ur.exports=Ii});var Qr=g((js,Kr)=>{"use strict";var Ri=require("path"),zr=jr(),Jr=Hr(),Vi=Br(),ji=process.platform==="win32",Hi=/\.(?:com|exe)$/i,Fi=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Gi(n){n.file=zr(n);let e=n.file&&Vi(n.file);return e?(n.args.unshift(n.file),n.command=e,zr(n)):n.file}function qi(n){if(!ji)return n;let e=Gi(n),t=!Hi.test(e);if(n.options.forceShell||t){let r=Fi.test(e);n.command=Ri.normalize(n.command),n.command=Jr.command(n.command),n.args=n.args.map(s=>Jr.argument(s,r));let i=[n.command].concat(n.args).join(" ");n.args=["/d","/s","/c",`"${i}"`],n.command=process.env.comspec||"cmd.exe",n.options.windowsVerbatimArguments=!0}return n}function Wi(n,e,t){e&&!Array.isArray(e)&&(t=e,e=null),e=e?e.slice(0):[],t=Object.assign({},t);let r={command:n,args:e,options:t,file:void 0,original:{command:n,args:e}};return t.shell?r:qi(r)}Kr.exports=Wi});var Zr=g((Hs,Xr)=>{"use strict";var ut=process.platform==="win32";function lt(n,e){return Object.assign(new Error(`${e} ${n.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${n.command}`,path:n.command,spawnargs:n.args})}function Ui(n,e){if(!ut)return;let t=n.emit;n.emit=function(r,i){if(r==="exit"){let s=Yr(i,e);if(s)return t.call(n,"error",s)}return t.apply(n,arguments)}}function Yr(n,e){return ut&&n===1&&!e.file?lt(e.original,"spawn"):null}function Bi(n,e){return ut&&n===1&&!e.file?lt(e.original,"spawnSync"):null}Xr.exports={hookChildProcess:Ui,verifyENOENT:Yr,verifyENOENTSync:Bi,notFoundError:lt}});var rn=g((Fs,Y)=>{"use strict";var en=require("child_process"),ct=Qr(),pt=Zr();function tn(n,e,t){let r=ct(n,e,t),i=en.spawn(r.command,r.args,r.options);return pt.hookChildProcess(i,r),i}function zi(n,e,t){let r=ct(n,e,t),i=en.spawnSync(r.command,r.args,r.options);return i.error=i.error||pt.verifyENOENTSync(i.status,r),i}Y.exports=tn;Y.exports.spawn=tn;Y.exports.sync=zi;Y.exports._parse=ct;Y.exports._enoent=pt});Qt().install();var ur=W(mr(),1),{program:_s,createCommand:vs,createArgument:ys,createOption:Cs,CommanderError:Ss,InvalidArgumentError:ws,InvalidOptionArgumentError:Os,Command:lr,Argument:bs,Option:P,Help:As}=ur.default;var gi=/[\p{Lu}]/u,_i=/[\p{Ll}]/u,cr=/^[\p{Lu}](?![\p{Lu}])/gu,fr=/([\p{Alpha}\p{N}_]|$)/u,rt=/[_.\- ]+/,vi=new RegExp("^"+rt.source),pr=new RegExp(rt.source+fr.source,"gu"),hr=new RegExp("\\d+"+fr.source,"gu"),yi=(n,e,t,r)=>{let i=!1,s=!1,o=!1,a=!1;for(let m=0;m<n.length;m++){let u=n[m];a=m>2?n[m-3]==="-":!0,i&&gi.test(u)?(n=n.slice(0,m)+"-"+n.slice(m),i=!1,o=s,s=!0,m++):s&&o&&_i.test(u)&&(!a||r)?(n=n.slice(0,m-1)+"-"+n.slice(m-1),o=s,s=!1,i=!0):(i=e(u)===u&&t(u)!==u,o=s,s=t(u)===u&&e(u)!==u)}return n},Ci=(n,e)=>(cr.lastIndex=0,n.replaceAll(cr,t=>e(t))),Si=(n,e)=>(pr.lastIndex=0,hr.lastIndex=0,n.replaceAll(hr,(t,r,i)=>["_","-"].includes(n.charAt(i+t.length))?t:e(t)).replaceAll(pr,(t,r)=>e(r)));function nt(n,e){if(!(typeof n=="string"||Array.isArray(n)))throw new TypeError("Expected the input to be `string | string[]`");if(e={pascalCase:!1,preserveConsecutiveUppercase:!1,...e},Array.isArray(n)?n=n.map(s=>s.trim()).filter(s=>s.length).join("-"):n=n.trim(),n.length===0)return"";let t=e.locale===!1?s=>s.toLowerCase():s=>s.toLocaleLowerCase(e.locale),r=e.locale===!1?s=>s.toUpperCase():s=>s.toLocaleUpperCase(e.locale);return n.length===1?rt.test(n)?"":e.pascalCase?r(n):t(n):(n!==t(n)&&(n=yi(n,t,r,e.preserveConsecutiveUppercase)),n=n.replace(vi,""),n=e.preserveConsecutiveUppercase?Ci(n,t):t(n),e.pascalCase&&(n=r(n.charAt(0))+n.slice(1)),Si(n,r))}var F=W(rn()),y=W(require("fs")),un=W(require("os")),d=W(require("path"));var ie="2.0.12-alpha.0";var sn=()=>{se(),console.log(`
31
31
  \x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@
32
32
  \x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@
33
33
  \x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@