Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Train: make #5127's two real-server tests match what it does
milind-soni8a94c984f085
diff --git a/server/independent-threads-api.test.ts b/server/independent-threads-api.test.tsindex 3bb43714c9..04b363de99 100644--- a/server/independent-threads-api.test.ts+++ b/server/independent-threads-api.test.ts@@ -321,7 +321,7 @@ describe("independent bot tasks through the isolated control surface", () => {});expect(created.status).toBe(201);const room = created.body.group;- expect((await api("POST", `/api/groups/${room.id}/messages`, { threadId: room.threadId, text: "Have the reviewer run the release checks." })).status).toBe(202);+ expect((await api("POST", `/api/groups/${room.id}/messages`, { threadId: room.threadId, text: "Have the reviewer run the release checks." }, true)).status).toBe(202);const token = (await dump(models[0])).mcpConfig.mcpServers.agents.env.OMB_COMMS_TOKEN;const sent = await internal(token, "POST", "/api/internal/coordinate-bots", { botIds: [peer.id], message: "RELEASE_CHECKS: run the release checks." });expect(sent.status).toBe(200);diff --git a/server/long-running-chief.e2e.test.ts b/server/long-running-chief.e2e.test.tsindex d6e28cd265..b9ca5c2822 100644--- a/server/long-running-chief.e2e.test.ts+++ b/server/long-running-chief.e2e.test.ts@@ -269,13 +269,15 @@ it("tells the Chief what happened to each approval: allowed or denied, and parks{ key: "B0", match: ["PHASE-APPROVALS-JOB"], steps: [{ arguments: { bot_ids: [f.mira.id], message: "CHECK-HISTORY: check the export module's recent history." } }], reply: "B0: Mira is checking." },{ key: "B1", match: [SETTLED, "HISTORY-RESULT"], steps: [{ arguments: { bot_ids: [f.mira.id], message: "PUSH-BRANCH: push the export branch.", rework: true } }], reply: "B1: pushing." },{ key: "B2", match: [SETTLED, "PUSH-RESULT"], steps: [{ arguments: { bot_ids: [f.mira.id], message: "RUN-TESTS: run the test suite.", rework: true } }], reply: "B2: testing." },- { key: "B3", match: [SETTLED, "TESTS-RESULT"], reply: "APPROVALS-FINAL: history checked, push not done, tests not run." });+ { key: "B3", match: [SETTLED, "TESTS-RESULT"], reply: "APPROVALS-FINAL: history checked, push not done, tests not run." },+ // Mira's parked ask can resume Clive before the person answers it; whether it does is a race, so the entry is optional.+ { key: "BQ", match: ["Let it try again?"], reply: "BQ: Mira is waiting on the person." });f.script(f.mira.id,{ key: "MA", match: ["CHECK-HISTORY"], approve: { tool_name: "Bash", input: { command: "git log --oneline -5 -- src/export" } },reply: "HISTORY-RESULT: checked the history.", replyIfDenied: "HISTORY-RESULT: not checked." },{ key: "MB", match: ["PUSH-BRANCH"], approve: { tool_name: "Bash", input: { command: "git push origin export" } },reply: "PUSH-RESULT: pushed.", replyIfDenied: "PUSH-RESULT: not pushed; the push was denied." },- { key: "MC", match: ["RUN-TESTS"], approve: { tool_name: "Bash", input: { command: "pnpm test" } },+ { key: "MC", repeat: true, match: ["RUN-TESTS"], approve: { tool_name: "Bash", input: { command: "pnpm test" } },reply: "TESTS-RESULT: tests pass.", replyIfDenied: "TESTS-RESULT: I could not run the tests." });const job = await f.newJob("Approvals");await f.say(job, "PHASE-APPROVALS-JOB: check the export history, push the branch, and run the tests.");