Skip to content

armgit / bla

Public Imported from GitHub
0

🛡️ BLA (Blind LLM Agents) — Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, and WebAssembly against AI reverse-engineering agents like REA. Poison -> Exhaust -> Hallucinate.

fix(ci): shell:true for npm.cmd on Windows (EINVAL)

qybaihe88550299c6e4
diff --git a/src/core/release-plan.ts b/src/core/release-plan.ts
index 2749b54..24cf150 100644
--- a/src/core/release-plan.ts
+++ b/src/core/release-plan.ts
@@ -323,6 +323,8 @@ export function packDualReleaseTarballs(repoDir: string, outDir: string): DualPa
execFileSync(npmCmd, ["pack", "--pack-destination", absOut], {
cwd: absRepo,
stdio: "pipe",
+ // .cmd shims on Windows require a shell; bare execFile EINVAL otherwise.
+ shell: process.platform === "win32",
});
const primaryFilename = `bla-agents-${version}.tgz`;
@@ -350,6 +352,7 @@ export function packDualReleaseTarballs(repoDir: string, outDir: string): DualPa
execFileSync(npmCmd, ["pack", "--pack-destination", absOut, "--ignore-scripts"], {
cwd: unpackedPkgDir,
stdio: "pipe",
+ shell: process.platform === "win32",
});
} finally {
rmSync(stageDir, { recursive: true, force: true });
diff --git a/tests/setup-mcp-doctor-release.test.ts b/tests/setup-mcp-doctor-release.test.ts
index f415ecb..bb228f6 100644
--- a/tests/setup-mcp-doctor-release.test.ts
+++ b/tests/setup-mcp-doctor-release.test.ts
@@ -573,6 +573,7 @@ describe("Issue #10: MCP Runtime Argument Validation, Prompts Contract & Subproc
const buildRes = spawnSync(npmCmd, ["run", "build"], {
cwd: process.cwd(),
stdio: "pipe",
+ shell: process.platform === "win32",
});
expect(buildRes.status).toBe(0);
}