sicario-red-team 0.1.5 → 0.1.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sicario-red-team",
3
- "version": "0.1.5",
3
+ "version": "0.1.8",
4
4
  "description": "Autonomous Agentic Red-Teaming Swarm Protocol",
5
5
  "type": "module",
6
6
  "files": [
@@ -102,7 +102,8 @@ export async function hitCommand(target, options) {
102
102
  title: raw.title || "Unknown Logic Flaw",
103
103
  vector: raw.vector || "Vector analysis inconclusive.",
104
104
  severity: raw.severity || "MEDIUM",
105
- targetElement: raw.targetElement || "General DOM Context",
105
+ targetElement: raw.targetElement || raw.target || "General DOM Context",
106
+ target: raw.target || raw.targetElement || "General DOM Context", // Double-mapping for safety
106
107
  mitigation: raw.mitigation || "Implement standard server-side validation guards.",
107
108
  thoughtProcess: raw.thoughtProcess || "Reasoning engine offline."
108
109
  });
@@ -138,7 +139,10 @@ export async function hitCommand(target, options) {
138
139
  const thoughtLines = wrap(thoughtProcess, boxWidth - 4);
139
140
  const mitLines = wrap(mitigation, boxWidth - 4);
140
141
 
141
- console.log(pc.cyan(`◇ SICARIO REASONING [${breachReport.title}] ${'─'.repeat(boxWidth - 21 - breachReport.title.length)}╮`));
142
+ const titleDisplay = breachReport.title.length > 30 ? breachReport.title.substring(0, 27) + "..." : breachReport.title;
143
+ const repeatCount = Math.max(0, boxWidth - 23 - titleDisplay.length);
144
+
145
+ console.log(pc.cyan(`◇ SICARIO REASONING [${titleDisplay}] ${'─'.repeat(repeatCount)}╮`));
142
146
  thoughtLines.forEach(line => console.log(pc.cyan(drawBoxRow(line, boxWidth))));
143
147
  console.log(pc.cyan(`├${'─'.repeat(boxWidth - 2)}┤`));
144
148
  console.log(pc.cyan(`│ ${pc.bold('FIX RECOMMENDATION').padEnd(boxWidth - 4)} │`));