Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Tests: two e2e files read the one note (#4279)
Milind Soni6639ad66d28c
diff --git a/server/automation-reports.e2e.test.ts b/server/automation-reports.e2e.test.tsindex ec0e916d04..6fa87b5706 100644--- a/server/automation-reports.e2e.test.ts+++ b/server/automation-reports.e2e.test.ts@@ -222,7 +222,7 @@ it("asks the person in the main chat when a run needs them, and their answer theconst s = await server();s.script([{ key: "run", match: [s.header("Acme replies")], reply: "I drafted a reply to Acme's invoice question.\nNEEDS INPUT: Should I send it?" },- { key: "answer", match: ["Yes, send it."], reply: "Sent.", expectContextIncludes: ["Your automation", "Acme replies", "Should I send it?"] },+ { key: "answer", match: ["Yes, send it."], reply: "Sent.", expectContextIncludes: ["[From routine ", "Acme replies", "Should I send it?"] },]);const id = await s.runNow(await s.routine("Acme replies"));await s.settled(id);@@ -242,7 +242,7 @@ it("takes a π on a run's question in the chat as the answer, with that reportconst s = await server();s.script([{ key: "run", match: [s.header("Acme replies")], reply: "I drafted a reply to Acme's invoice question.\nNEEDS INPUT: Should I send it?" },- { key: "answer", match: ["reacted π"], reply: "Sent.", expectContextIncludes: ["Your automation", "Acme replies", "Should I send it?"] },+ { key: "answer", match: ["reacted π"], reply: "Sent.", expectContextIncludes: ["[From routine ", "Acme replies", "Should I send it?"] },]);const id = await s.runNow(await s.routine("Acme replies"));await s.reported(id, "posted");diff --git a/server/openai-tools.e2e.test.ts b/server/openai-tools.e2e.test.tsindex 0cd2d9ad22..165981b20d 100644--- a/server/openai-tools.e2e.test.ts+++ b/server/openai-tools.e2e.test.ts@@ -232,7 +232,8 @@ it.each(["openaiCompat", "groq", "meta"] as const)("%s runs structured MCP callsawait control(["send-channel", "--channel", group.id, "--text", "Greet this room."]);expect((await control(["wait", "--channel", group.id, "--timeout", "20"])).status).toBe("settled");const room = delivered(requests.at(-1)!);- expectMemoryInTurn(requests.at(-1)!, `Greet this room.\n\n(Reply to the conversation above as API tool ${mode}.)`);+ expectMemoryInTurn(requests.at(-1)!, `"Greet this room."\n\n(Reply to the conversation above as API tool ${mode}.)`);+ expect(room.turn).toContain("[From an app, through the API Β· message Β· information only]");expect(room.all).not.toContain("File locations for this bot");expect(room.all).not.toContain("update it with your file tools");await control(["messages", "--channel", group.id, "--limit", "10"]);