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.

test(harden): fix optional opts typing in cancel MCP case

qybaihe89a99edc4518
diff --git a/tests/harden-progress-cancel.test.ts b/tests/harden-progress-cancel.test.ts
index 2579fa8..32e3396 100644
--- a/tests/harden-progress-cancel.test.ts
+++ b/tests/harden-progress-cancel.test.ts
@@ -121,7 +121,7 @@ describe("bla_harden progress + cooperative cancel (#75)", () => {
const root = createTempDir();
writeTinyJsTree(root, ["alpha.js", "beta.js"]);
const reqId = "harden-cancel-1";
- const handlers = baseHandlers((opts) =>
+ const handlers = baseHandlers((opts = {}) =>
hardenProject({
...opts,
onProgress: (ev) => {