Lines 1-21javascript
1var He=Object.create;var _e=Object.defineProperty;var je=Object.getOwnPropertyDescriptor;var Re=Object.getOwnPropertyNames;var Ue=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var I=(s=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(s,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):s)(function(s){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+s+'" is not supported')});var x=(s,e)=>()=>(e||s((e={exports:{}}).exports,e),e.exports);var Le=(s,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Re(e))!Me.call(s,i)&&i! ...
2`).replace(/^/gm," ".repeat(r))}let u=[`Usage: ${t.commandUsage(e)}`,""],c=t.commandDescription(e);c.length>0&&(u=u.concat([t.wrap(c,i,0),""]));let m=t.visibleArguments(e).map(h=>l(t.argumentTerm(h),t.argumentDescription(h)));m.length>0&&(u=u.concat(["Arguments:",a(m),""]));let d=t.visibleOptions(e).map(h=>l(t.optionTerm(h),t.optionDescription(h)));if(d.length>0&&(u=u.concat(["Options:",a(d),""])),this.showGlobalOptions){let h=t.visibleGlobalOptions(e).map(b=>l(t.optionTerm(b),t.optionDescription(b)));h.length>0&&(u=u.concat(["Global Options:",a(h),""]))}let C=t.visibleCommands(e).map(h=>l(t.s ...
3`)}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}wrap(e,t,
5`),c=" ".repeat(n),d="\\s\u200B",C=new RegExp(`
6|.{1,${l-1}}([${d}]|$)|[^${d}]+?([${d}]|$)`,"g"),h=u.match(C)||[];return a+h.map((b,_)=>b===`
7`?"":(_>0?c:"")+b.trimEnd()).join(`
8`)}};ye.Help=W});var Q=x(z=>{"use strict";var{InvalidArgumentError:Ge}=S(),B=class{constructor(e,t){this.flags=e,this.description=t||"",this.required=e.includes("<"),this.optional
9(Did you mean one of ${n.join(", ")}?)`:n.length===1?`
10(Did you mean ${n[0]}?)`:""}$e.suggestSimilar=Ye});var xe=x(Oe=>{"use strict";var Ze=I("events").EventEmitter,J=I("child_process"),E=I("path"),Y=I("fs"),f=I("process"),{Argument:Xe,humanReadableArgName:et}=q(),{CommanderError:Z}=S(),{Help:tt}=K
11- specify the name in Command constructor or using .name()`);return t=t||{},t.isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,t){return new Xe(e,t)}argument(e,t,n,i){let r=this.createArgument(e,t);return typeof n=="function"?r.default(i).argParser(n):r.default(n),this.addArgument(r),this}arguments(e){return e.trim().split(/ +/).forEach(t=>{this.argument(t)}),this}addArgument(e){let t=this.registeredArguments.slice(-1)[0];if(t&&t.variadic)throw new Error(`only the last ...
HighSandbox Evasion Gated Capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/index.jsView on unpkg · L1 12Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=t=>{if(t.code!=="commander.executeSubCommandAsync")throw t},this}_exit(e,t,n){this._exitCallback&&this._exitCallback(new Z(e,t,n)),f.exit(e)}action(e){let t=n=>{let i=this.registeredArguments.length,r=n.slice(0,i);return this._storeOptionsAsProperties?r[i]=this:r[i]=this.opts(),r.push(this),e.apply(this,r)};return this._actionHandler=t,this}createOption(e,t){return new be(e,t)}_callParseArg(e,t,n, ...
13- already used by option '${t.flags}'`)}this.options.push(e)}_registerCommand(e){let t=i=>[i.name()].concat(i.aliases()),n=t(e).find(i=>this._findCommand(i));if(n){let i=t(this._findCommand(n)).join("|"),r=t(e).
14 - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
15 - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
16 - ${m}`;throw new Error(d)}else if(c.code==="EACCES")throw new Error(`'${o}' not executable`);if(!u)f.exit(1);else{let m=new Z(1,"commander.executeSubCommandAsync","(error)");m.nestedError=c,u(m)}}),this.runningCommand=a}_dispatchSubcommand(e,t,n){let i=this._findCommand(e);i||this.help({error:!0});let r;return r=this._chainOrCallSubCommandHook(r,i,"preSubcommand"),r=this._chainOrCall(r,()=>{if(i._executableHandler)this._executeSubCommand(i,t.concat(n));else return i._parseCommand(t,n)}),r}_dispatchHelpCommand(e){e||this.help();let t=this._findCommand(e);return t&&!t._executableHandler&&t.hel ...
17`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
18`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
19`),this.outputHelp({error:!0}));let n=t||{},i=n.exitCode||1,r=n.code||"commander.error";this._exit(i,r,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in f.env){let t=e.attributeName();(this.getOptionValue(t)===void
20`),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 n=this.parent?._findCommand(e);if(n){let i=[n.name()].concat(n.aliases()).join("|");throw new Error(` ...
21Expecting one of '${n.join("', '")}'`);let i=`${e}Help`;return this.on(i,r=>{let o;typeof t=="function"?o=t({error:r.error,command:r.command}):o=t,o&&r.write(`${o}
Long lines were clipped for display.