Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
test: flush outbound audit writes before fixture cleanup
Fred Lackey5110c94623ad
diff --git a/server/outbound-hold.test.ts b/server/outbound-hold.test.tsindex e9aa5233df..e11a5a22da 100644--- a/server/outbound-hold.test.ts+++ b/server/outbound-hold.test.ts@@ -12,9 +12,12 @@ import { OutboundRequestService } from "./outbound-requests.ts";type HoldBot = Parameters<OutboundHold["hold"]>[0]["bot"];const dirs: string[] = [];-afterEach(() => {+afterEach(async () => {vi.useRealTimers();- for (const dir of dirs.splice(0)) rmSync(dir, { recursive: true, force: true });+ for (const dir of dirs.splice(0)) {+ await flushDecisionLog(dir);+ rmSync(dir, { recursive: true, force: true });+ }});const calls = [{ slug: "GMAIL_SEND_EMAIL", arguments: { to: "[email protected]", subject: "Hello" } }];