Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Merge pull request #6015 from Afloat16/fix/auto-room-quoted-replies
milind-soni6de136373e1c
diff --cc server/room-quoted-replies.e2e.test.tsindex 0ca71ee0c4,d27df51e4a..3ec590ed16--- a/server/room-quoted-replies.e2e.test.ts+++ b/server/room-quoted-replies.e2e.test.ts@@@ -9,6 -9,11 +9,10 @@@ let fixture: VerificationServerlet upstream: Server;const bots: Bot[] = [];let routingCalls = 0;+ let routingOptions: string[] = [];-let keyChecks = 0;+ let replyGate: { started: boolean; release: Promise<void> } | undefined;+ let replyContent = "I received your message.";+ let routingFailure = false;const api = async (method: string, path: string, body?: unknown) => {const response = await fetch(fixture.info.url + path, {@@@ -31,8 -36,13 +35,10 @@@ beforeAll(async () =>for await (const chunk of req) raw += chunk;const body = JSON.parse(raw || "{}");if (req.url === "/v1/systemone") {- if (body.questions?.answer?.type === "noul") {- keyChecks++;- return json({ answers: { answer: { type: "noul", noul: 0.99 } } });- }+ if (body.questions?.answer?.type === "noul") return json({ answers: { answer: { type: "noul", noul: 0.99 } } });routingCalls++;+ routingOptions = Object.keys(body.questions.answer.criteria);+ if (routingFailure) { res.writeHead(503, { "content-type": "application/json" }); res.end(JSON.stringify({ error: "fixture router unavailable" })); return; }const choice = bots[1]!.id;return json({ answers: { answer: { type: "choice", choice, confidence: 0.99, probabilities: { [choice]: 0.99 } } } });}