blitzstrike 2.4.11 → 2.4.13

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/CHANGELOG.md CHANGED
@@ -5,6 +5,25 @@ All notable changes to Blitz Strike are documented here.
5
5
  The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/).
7
7
 
8
+ ## [2.4.13] — 2026-09-14
9
+
10
+ ### Improved — live install progress
11
+
12
+ - `install-tools` streams a real-time `[done/total]` counter per tool completion,
13
+ so a long bulk install is visibly progressing instead of appearing stuck.
14
+
15
+ ## [2.4.12] — 2026-09-14
16
+
17
+ ### Improved — install-tools failure diagnostics
18
+
19
+ - `install-tools` now reports the REASON for every failed tool (last stderr/stdout
20
+ lines) instead of a bare `Failed: …` list.
21
+ - Preflight reports missing toolchains (go/java/python/cargo/meson/ninja/make/gcc)
22
+ + the `apt install` line to fix them before the mass install.
23
+ - Per-tool install budget raised 120s → 300s so cold-cache `go install` /
24
+ `pip install` of large tools (nuclei, amass, httpx, metasploit, …) no longer
25
+ time out.
26
+
8
27
  ## [2.4.11] — 2026-09-14
9
28
 
10
29
  ### Fixed — bulk-install no longer pollutes the caller's cwd
package/dist/index.js CHANGED
@@ -7519,7 +7519,7 @@ function ensureTool(name) {
7519
7519
  return { name: t.name, installed: false, action: "none", note: `no install command for ${platform}` };
7520
7520
  }
7521
7521
  mkdirSync3(TOOLS_DIR, { recursive: true });
7522
- const r = spawnSync(cmd, { shell: true, timeout: 120000, cwd: TOOLS_DIR });
7522
+ const r = spawnSync(cmd, { shell: true, timeout: 300000, cwd: TOOLS_DIR });
7523
7523
  const ok = r.status === 0;
7524
7524
  return {
7525
7525
  name: t.name,
@@ -7599,7 +7599,7 @@ function runCatalogTool(hint, target, extraFlags = []) {
7599
7599
  output: out.slice(0, 6000)
7600
7600
  };
7601
7601
  }
7602
- function ensureToolAsync(name, timeoutMs = 120000) {
7602
+ function ensureToolAsync(name, timeoutMs = 300000) {
7603
7603
  return new Promise((resolve) => {
7604
7604
  const t = loadTools().find((x) => x.name.toLowerCase() === name.toLowerCase());
7605
7605
  if (!t) {
@@ -15995,15 +15995,44 @@ async function runInstallTools(args) {
15995
15995
  }
15996
15996
  console.log(`Installing catalog tools${category ? ` (category: ${category})` : ""} — concurrency ${concurrency}
15997
15997
  `);
15998
- const r = await installAllTools({ category, concurrency, onProgress: (name, ok) => console.log(` ${ok ? "OK " : "FAIL"} ${name}`) });
15998
+ const chainMap = { go: "golang", java: "default-jdk", python3: "python3", pip3: "python3-pip", cargo: "cargo", make: "build-essential", meson: "meson", ninja: "ninja-build", gcc: "build-essential", git: "git" };
15999
+ const missingChains = Object.keys(chainMap).filter((c) => spawnSync5(`command -v ${c}`, { shell: true }).status !== 0);
16000
+ if (missingChains.length) {
16001
+ console.log(`⚠ Missing toolchains: ${missingChains.join(", ")} (${missingChains.map((c) => chainMap[c]).join(", ")})`);
16002
+ console.log(` Tools that need them will FAIL below. Install first, e.g.:
16003
+ apt install -y ${missingChains.map((c) => chainMap[c]).join(" ")}
16004
+ `);
16005
+ }
16006
+ const tools = loadTools();
16007
+ const totalTargets = tools.filter((t) => (t.category !== "mcp-server" || t.installable === true) && (!category || t.category === category.toLowerCase())).length;
16008
+ let done = 0;
16009
+ const r = await installAllTools({
16010
+ category,
16011
+ concurrency,
16012
+ onProgress: (name, ok) => {
16013
+ done += 1;
16014
+ const bar = `[${String(done).padStart(3)}/${String(totalTargets).padStart(3)}]`;
16015
+ process.stdout.write(` ${bar} ${ok ? "OK " : "FAIL"} ${name}
16016
+ `);
16017
+ }
16018
+ });
15999
16019
  console.log(`
16000
16020
  Summary: ${r.target_count} targets · ${r.installed} newly installed · ${r.already_installed} already present · ${r.failed} failed`);
16001
16021
  const mcp = r.skipped_mcp_servers;
16002
16022
  if (mcp.length)
16003
16023
  console.log(`Skipped MCP servers (connect them): ${mcp.join(", ")}`);
16004
- const failedList = r.results.filter((x) => x.installed !== true).map((x) => x.name);
16005
- if (failedList.length)
16006
- console.log(`Failed: ${failedList.join(", ")}`);
16024
+ const failedList = r.results.filter((x) => x.installed !== true);
16025
+ if (failedList.length) {
16026
+ console.log(`
16027
+ Failed (${failedList.length}) — reason per tool:`);
16028
+ for (const f of failedList) {
16029
+ const reason = String(f.output ?? f.note ?? "unknown error").split(`
16030
+ `).map((s) => s.trim()).filter(Boolean).slice(-2).join(" | ").slice(-160);
16031
+ console.log(` - ${f.name}: ${reason}`);
16032
+ }
16033
+ console.log(`
16034
+ Common causes: missing toolchain, pip/git network failures, or very heavy builds. ` + `Re-run after installing the missing toolchain — failed tools are skipped, not fatal.`);
16035
+ }
16007
16036
  }
16008
16037
  var ROOT10;
16009
16038
  var init_cli = __esm(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blitzstrike",
3
- "version": "2.4.11",
3
+ "version": "2.4.13",
4
4
  "description": "Blitz Strike — a universal MCP security-audit toolbelt. BLITZ sweeps the attack surface, EAGLE-EYE traces source-to-sink, STRIKE verifies live. 57 attack chains, 130-tool catalog, intelligence data layer. One server, every agent.",
5
5
  "type": "module",
6
6
  "bin": {