Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
import { spawnSync } from "node:child_process";
import { mkdtempSync, rmSync } from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { expect, it } from "vitest";
it.each(["sweep", "emergency", "tick", "timer", "queue"])("contains a %s failure without losing queue order", (mode) => {
const dir = mkdtempSync(join(tmpdir(), "omb-cache-failure-"));
try {
const child = spawnSync(process.execPath, [
"--experimental-strip-types", "--unhandled-rejections=strict", "server/testing/cache-sweep-failures.ts", dir, mode,
], { encoding: "utf8", timeout: 10_000 });
expect(child.status, child.stderr).toBe(0);
expect(child.stdout).toContain("fixture survived and recovered");
} finally {
rmSync(dir, { recursive: true, force: true });
}
});