Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Pin each event-log bound to its own variable, and cover the health wiring
erywim0e7cf80145df
diff --git a/server/harness/bus.test.ts b/server/harness/bus.test.tsindex fb0f1006a7..93683497ed 100644--- a/server/harness/bus.test.ts+++ b/server/harness/bus.test.ts@@ -454,11 +454,17 @@ describe("EventBus", () => {it("reads its bounds from the environment, falling back on unusable values", () => {expect(eventLogLimits({- OMB_EVENT_LOG_BATCH_LINES: "512",- OMB_EVENT_LOG_QUEUE_EVENTS: "0",- OMB_EVENT_LOG_QUEUE_BYTES: "-5",- OMB_EVENT_LOG_DRAIN_THREADS: "eight",- })).toEqual({ batchLines: 512, queueEvents: 4096, queueBytes: 32 * 1024 * 1024, drainThreads: 8 });+ OMB_EVENT_LOG_BATCH_LINES: "128",+ OMB_EVENT_LOG_QUEUE_EVENTS: "512",+ OMB_EVENT_LOG_QUEUE_BYTES: "1048576",+ OMB_EVENT_LOG_DRAIN_THREADS: "3",+ })).toEqual({ batchLines: 128, queueEvents: 512, queueBytes: 1024 * 1024, drainThreads: 3 });+ expect(eventLogLimits({+ OMB_EVENT_LOG_BATCH_LINES: "0",+ OMB_EVENT_LOG_QUEUE_EVENTS: "-5",+ OMB_EVENT_LOG_QUEUE_BYTES: "eight",+ OMB_EVENT_LOG_DRAIN_THREADS: "2.5",+ })).toEqual({ batchLines: 64, queueEvents: 4096, queueBytes: 32 * 1024 * 1024, drainThreads: 8 });expect(eventLogLimits({OMB_EVENT_LOG_BATCH_LINES: "999999",OMB_EVENT_LOG_QUEUE_EVENTS: "999999999999",diff --git a/server/index.test.ts b/server/index.test.tsindex c4cf126bb0..20c8c0bf9c 100644--- a/server/index.test.ts+++ b/server/index.test.ts@@ -1736,6 +1736,7 @@ describe("harness HTTP API", () => {expect(body.app).toBe("openmausbot");expect(typeof body.pid).toBe("number");expect(body.static).toBe(true);+ expect(body.eventLogDrops).toEqual({ events: expect.any(Number), bytes: expect.any(Number) });});it("refuses a second live server that shares the same data directory", async () => {