High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: review fixes
Luigi Agostiad2ffffd6d73
diff --git a/plugin/policy.test.ts b/plugin/policy.test.tsindex 316b88cb..e3310777 100644--- a/plugin/policy.test.ts+++ b/plugin/policy.test.ts@@ -47,7 +47,9 @@ describe("checkNavigationPolicy", () => {const cfg = { allowedDomains: ["example.com"] };const result = checkNavigationPolicy(cfg, "https://blocked.com");assert.strictEqual(result.allowed, false);- assert.ok(result.error?.includes("blocked.com"));+ assert.ok(result.error);+ const blockedUrl = new URL("https://blocked.com");+ assert.ok(result.error.includes(blockedUrl.hostname));});it("allows when no URL provided", () => {diff --git a/plugin/session.ts b/plugin/session.tsindex a033eadf..efc3b033 100644--- a/plugin/session.ts+++ b/plugin/session.ts@@ -97,8 +97,8 @@ async function resolveBinaryPath(binary: string): Promise<string> {return binary;}try {- const { execSync } = await import("child_process");- const resolved = execSync(`which ${binary}`, { encoding: "utf8" }).trim();+ const { execFileSync } = await import("child_process");+ const resolved = execFileSync("which", [binary], { encoding: "utf8" }).trim();return resolved || binary;} catch {return binary;