sicario-red-team 0.6.3 → 0.6.4

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.
Files changed (2) hide show
  1. package/dist/sicario.js +0 -3
  2. package/package.json +1 -1
package/dist/sicario.js CHANGED
@@ -1,7 +1,4 @@
1
1
  #!/usr/bin/env node
2
- #!/usr/bin/env node
3
- import { createRequire } from 'module';
4
- const require = createRequire(import.meta.url);
5
2
 
6
3
  var Qs=Object.create;var Kp=Object.defineProperty;var Zs=Object.getOwnPropertyDescriptor;var e0=Object.getOwnPropertyNames;var t0=Object.getPrototypeOf,a0=Object.prototype.hasOwnProperty;var K=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,a)=>(typeof require<"u"?require:e)[a]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Y=(t,e)=>()=>(t&&(e=t(t=0)),e);var k=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nd=(t,e)=>{for(var a in e)Kp(t,a,{get:e[a],enumerable:!0})},p0=(t,e,a,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of e0(e))!a0.call(t,r)&&r!==a&&Kp(t,r,{get:()=>e[r],enumerable:!(p=Zs(e,r))||p.enumerable});return t};var le=(t,e,a)=>(a=t!=null?Qs(t0(t)):{},p0(e||!t||!t.__esModule?Kp(a,"default",{value:t,enumerable:!0}):a,t));var Rt=k(Xp=>{var Na=class extends Error{constructor(e,a,p){super(p),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=a,this.exitCode=e,this.nestedError=void 0}},Yp=class extends Na{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Xp.CommanderError=Na;Xp.InvalidArgumentError=Yp});var xa=k(Qp=>{var{InvalidArgumentError:r0}=Rt(),Jp=class{constructor(e,a){switch(this.description=a||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,a){return a===this.defaultValue||!Array.isArray(a)?[e]:a.concat(e)}default(e,a){return this.defaultValue=e,this.defaultValueDescription=a,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(a,p)=>{if(!this.argChoices.includes(a))throw new r0(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(a,p):a},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function i0(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}Qp.Argument=Jp;Qp.humanReadableArgName=i0});var er=k(sd=>{var{humanReadableArgName:d0}=xa(),Zp=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let a=e.commands.filter(r=>!r._hidden),p=e._getHelpCommand();return p&&!p._hidden&&a.push(p),this.sortSubcommands&&a.sort((r,i)=>r.name().localeCompare(i.name())),a}compareOptions(e,a){let p=r=>r.short?r.short.replace(/^-/,""):r.long.replace(/^--/,"");return p(e).localeCompare(p(a))}visibleOptions(e){let a=e.options.filter(r=>!r.hidden),p=e._getHelpOption();if(p&&!p.hidden){let r=p.short&&e._findOption(p.short),i=p.long&&e._findOption(p.long);!r&&!i?a.push(p):p.long&&!i?a.push(e.createOption(p.long,p.description)):p.short&&!r&&a.push(e.createOption(p.short,p.description))}return this.sortOptions&&a.sort(this.compareOptions),a}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let a=[];for(let p=e.parent;p;p=p.parent){let r=p.options.filter(i=>!i.hidden);a.push(...r)}return this.sortOptions&&a.sort(this.compareOptions),a}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(a=>{a.description=a.description||e._argsDescription[a.name()]||""}),e.registeredArguments.find(a=>a.description)?e.registeredArguments:[]}subcommandTerm(e){let a=e.registeredArguments.map(p=>d0(p)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(a?" "+a:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,a){return a.visibleCommands(e).reduce((p,r)=>Math.max(p,a.subcommandTerm(r).length),0)}longestOptionTermLength(e,a){return a.visibleOptions(e).reduce((p,r)=>Math.max(p,a.optionTerm(r).length),0)}longestGlobalOptionTermLength(e,a){return a.visibleGlobalOptions(e).reduce((p,r)=>Math.max(p,a.optionTerm(r).length),0)}longestArgumentTermLength(e,a){return a.visibleArguments(e).reduce((p,r)=>Math.max(p,a.argumentTerm(r).length),0)}commandUsage(e){let a=e._name;e._aliases[0]&&(a=a+"|"+e._aliases[0]);let p="";for(let r=e.parent;r;r=r.parent)p=r.name()+" "+p;return p+a+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let a=[];return e.argChoices&&a.push(`choices: ${e.argChoices.map(p=>JSON.stringify(p)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&a.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&a.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&a.push(`env: ${e.envVar}`),a.length>0?`${e.description} (${a.join(", ")})`:e.description}argumentDescription(e){let a=[];if(e.argChoices&&a.push(`choices: ${e.argChoices.map(p=>JSON.stringify(p)).join(", ")}`),e.defaultValue!==void 0&&a.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),a.length>0){let p=`(${a.join(", ")})`;return e.description?`${e.description} ${p}`:p}return e.description}formatHelp(e,a){let p=a.padWidth(e,a),r=a.helpWidth||80,i=2,d=2;function o(f,w){if(w){let h=`${f.padEnd(p+d)}${w}`;return a.wrap(h,r-i,p+d)}return f}function n(f){return f.join(`
7
4
  `).replace(/^/gm," ".repeat(i))}let s=[`Usage: ${a.commandUsage(e)}`,""],l=a.commandDescription(e);l.length>0&&(s=s.concat([a.wrap(l,r,0),""]));let m=a.visibleArguments(e).map(f=>o(a.argumentTerm(f),a.argumentDescription(f)));m.length>0&&(s=s.concat(["Arguments:",n(m),""]));let u=a.visibleOptions(e).map(f=>o(a.optionTerm(f),a.optionDescription(f)));if(u.length>0&&(s=s.concat(["Options:",n(u),""])),this.showGlobalOptions){let f=a.visibleGlobalOptions(e).map(w=>o(a.optionTerm(w),a.optionDescription(w)));f.length>0&&(s=s.concat(["Global Options:",n(f),""]))}let c=a.visibleCommands(e).map(f=>o(a.subcommandTerm(f),a.subcommandDescription(f)));return c.length>0&&(s=s.concat(["Commands:",n(c),""])),s.join(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sicario-red-team",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "type": "module",
5
5
  "description": "Autonomous Agentic Red-Teaming Swarm Protocol",
6
6
  "repository": {