sicario-red-team 0.5.0 → 0.5.2

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/bin/sicario.js +38 -2
  2. package/package.json +4 -3
package/bin/sicario.js CHANGED
@@ -3,6 +3,14 @@ import dotenv from 'dotenv';
3
3
  import path from 'path';
4
4
  import fs from 'fs';
5
5
 
6
+ // Detect Environment
7
+ const isTermux = process.env.PREFIX && process.env.PREFIX.includes('com.termux');
8
+
9
+ if (isTermux) {
10
+ console.log('🛸 \x1b[32mSicario Detected: Termux Environment\x1b[0m');
11
+ console.log(' Note: Using native Chromium bridge for sieges.\n');
12
+ }
13
+
6
14
  // Silently initialize dotenv
7
15
  dotenv.config({ quiet: true });
8
16
 
@@ -25,10 +33,29 @@ const __dirname = path.dirname(__filename);
25
33
 
26
34
  const program = new Command();
27
35
 
36
+ // Version should ideally come from package.json
37
+ const pkgPath = path.join(__dirname, '../package.json');
38
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
39
+
28
40
  program
29
41
  .name('sicario')
30
42
  .description('Autonomous Agentic Red-Teaming Swarm Protocol')
31
- .version('0.4.3');
43
+ .version(pkg.version);
44
+
45
+ async function bootSwarm() {
46
+ const nodes = [
47
+ 'The Cartographer', 'The Ghost', 'The Breacher',
48
+ 'The Accountant', 'The Admin', 'The Critic', 'The Scribe'
49
+ ];
50
+
51
+ for (const node of nodes) {
52
+ // A quick 100ms delay to make it feel like "loading"
53
+ await new Promise(r => setTimeout(r, 100));
54
+ console.log(` \x1b[32m[✔]\x1b[0m Node Online: \x1b[1m${node}\x1b[0m`);
55
+ }
56
+
57
+ console.log('\n\x1b[32m[!] Swarm Entrenched. Commencing Hit...\x1b[0m\n');
58
+ }
32
59
 
33
60
  // Use a more robust way to import the command logic relative to this file
34
61
  const hitCommandPath = pathToFileURL(path.join(__dirname, '../src-cli/commands/hit.js')).href;
@@ -45,6 +72,7 @@ program
45
72
  try {
46
73
  const finalTarget = posTarget || options.target; // Support both styles
47
74
  options.target = finalTarget;
75
+
48
76
  // API Key Check & Viral Hook
49
77
  let apiKey = process.env.CEREBRAS_API_KEY || getApiKey();
50
78
 
@@ -74,6 +102,10 @@ program
74
102
  clack.log.success('Key saved to ~/.sicario/config. Resuming mission...');
75
103
  }
76
104
 
105
+ console.log(`\x1b[1m\x1b[32m[+] DEPLOYING SICARIO RED-TEAM SWARM v${pkg.version}\x1b[0m`);
106
+ // Premium Boot Sequence
107
+ await bootSwarm();
108
+
77
109
  const { hitCommand } = await import(hitCommandPath);
78
110
  await hitCommand(options.target, options);
79
111
  } catch (err) {
@@ -93,6 +125,11 @@ program
93
125
  .action(async (posTarget, options) => {
94
126
  try {
95
127
  options.target = posTarget || options.target;
128
+
129
+ console.log(`\x1b[1m\x1b[32m[+] INITIATING SUSTAINED SICARIO SIEGE v${pkg.version}\x1b[0m`);
130
+ // Premium Boot Sequence
131
+ await bootSwarm();
132
+
96
133
  const { siegeCommand } = await import(siegeCommandPath);
97
134
  await siegeCommand(options.target, options);
98
135
  } catch (err) {
@@ -107,4 +144,3 @@ try {
107
144
  } catch (err) {
108
145
  console.error(err);
109
146
  }
110
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sicario-red-team",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "type": "module",
5
5
  "description": "Autonomous Agentic Red-Teaming Swarm Protocol",
6
6
  "repository": {
@@ -18,9 +18,9 @@
18
18
  ],
19
19
  "author": "Project Sicario",
20
20
  "license": "MIT",
21
-
22
21
  "bin": {
23
- "sicario": "./bin/sicario.js"
22
+ "sicario": "./bin/sicario.js",
23
+ "sicario-red-team": "./bin/sicario.js"
24
24
  },
25
25
  "files": [
26
26
  "bin",
@@ -42,6 +42,7 @@
42
42
  "commander": "^12.0.0",
43
43
  "convex": "^1.10.0",
44
44
  "dotenv": "^17.3.1",
45
+ "framer-motion": "^12.38.0",
45
46
  "jspdf": "^4.2.1",
46
47
  "jspdf-autotable": "^5.0.7",
47
48
  "lucide-react": "^0.363.0",