源码快照 @ 2026-09-02 (source-only, 剔除非源码素材)

This commit is contained in:
agent-radar
2026-09-02 01:05:41 +08:00
commit 04bac1f6e2
2200 changed files with 489415 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import assert from "node:assert/strict";
import test from "node:test";
import { runningInsideSandbox } from "../src/resolve.ts";
test("a sandbox id in the environment marks us as inside a sandbox", () => {
assert.equal(runningInsideSandbox({ DAYTONA_SANDBOX_ID: "snd-123" }), true);
});
test("an empty environment on a machine without sandbox volumes is outside", () => {
// Guarded so the assertion still holds when the suite itself runs in a sandbox.
const insideByVolume = runningInsideSandbox({});
assert.equal(typeof insideByVolume, "boolean");
});