refactor(core): migrate to Bun and converge acquisition policies and Agent boundaries

This commit is contained in:
root committed 2026-10-13 14:37:03 +08:00
1 parent 3f1c6d02f6
commit 27c0f27434
268 files changed
+7468 -7852

No files matched your search

+3 -3
View File
@@ -34,7 +34,7 @@ import { AUDIENCES_FIXTURE_RELEASES } from "../../packages/testkit/src/sites/nex
type Loose = any;
const env = (k: string, d?: string) => {
const v = Deno.env.get(k) ?? d;
const v = process.env[k] ?? d;
if (v === undefined) throw new Error(`缺少环境变量 ${k}`);
return v;
};
@@ -50,7 +50,7 @@ const EXPECTED_VERSION = env("VERIFY_CAMOFOX_VERSION", "1.18.0");
// SIGKILL 不执行 profile 落盘;新登录应明确识别为需登录,不能把它当作已恢复。
const KILL_LOGIN_REQUIRED = env("VERIFY_KILL_LOGIN_REQUIRED", "true") === "true";
const SCHEMA = "brverify";
const phase = Deno.args[0] ?? "a";
const phase = process.argv.slice(2)[0] ?? "a";
await mkdir(OUT, { recursive: true });
const results: Loose[] = [];
@@ -621,4 +621,4 @@ try {
await db.destroy();
await admin.destroy();
}
Deno.exit(results.length > 0 && results.every((r) => r.pass === true) ? 0 : 1);
process.exit(results.length > 0 && results.every((r) => r.pass === true) ? 0 : 1);