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

+2 -2
View File
@@ -62,7 +62,7 @@ describe("存储自检", () => {
mkdirSync(ok);
mkdirSync(ro);
chmodSync(ro, 0o555);
const isRoot = Deno.uid() === 0;
const isRoot = process.getuid?.() === 0;
const { problems, warnings } = await checkStorage({
dataDir,
sessionDir: join(dataDir, "agent-sessions"),
@@ -82,7 +82,7 @@ describe("存储自检", () => {
});
it("数据目录不可写 → problem", async () => {
if (Deno.uid() === 0) return; // root 无视权限位
if (process.getuid?.() === 0) return; // root 无视权限位
const locked = join(dir, "locked");
mkdirSync(locked);
chmodSync(locked, 0o555);