Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Update tests that treated PUT /api/config as refused for a phone
aivsomkarb92ade6b0697
diff --git a/companion/test/relay-auth.test.ts b/companion/test/relay-auth.test.tsindex 52ca0cca85..8980eb5204 100644--- a/companion/test/relay-auth.test.ts+++ b/companion/test/relay-auth.test.ts@@ -46,7 +46,7 @@ it("adds the private capability only after authenticating and authorizing, neverexpect(received).toHaveLength(0);capability = "private-relay-secret";expect(await call("/api/bots/b/read", "unpaired")).toBe(401);- expect(await call("/api/config", "paired", "PUT")).toBe(403);+ expect(await call("/api/config", "paired", "PATCH")).toBe(403);expect(await call("/api/bots/b/computer/join")).toBe(403);expect(received).toHaveLength(0);expect(await call("/api/bots/b/read")).toBe(200);diff --git a/server/routes/config-phone-keys.test.ts b/server/routes/config-phone-keys.test.tsindex 492e43577a..f37876eed0 100644--- a/server/routes/config-phone-keys.test.ts+++ b/server/routes/config-phone-keys.test.ts@@ -21,7 +21,7 @@ async function put(auth: RequestAuth, body: unknown, method = "PUT") {const SENTENCE = "From a phone, only API keys can be changed. Change other settings on your computer.";describe("config writes from a paired phone", () => {- it.each([+ it.each<Record<string, unknown>>([{ mistral: { key: "k" } },{ openai: { key: "" } },{ anthropic: { key: "k", everyClaudeBot: false } },@@ -29,7 +29,7 @@ describe("config writes from a paired phone", () => {expect((await put(phone, body))?.status).toBe(409);});- it.each([+ it.each<Record<string, unknown>>([{ signIn: { admins: ["[email protected]"] } },{ browserEngine: { egress: { proxy: "socks5://127.0.0.1:1080" } } },{ openaiCompat: { key: "k" } },