Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
test(team-profile): the unclaimed server profile's person is no bot name (#3799)
Milind Soni46c4fcbe5f41
diff --git a/server/cloud-team-profile.e2e.test.ts b/server/cloud-team-profile.e2e.test.tsindex cea4766ad2..209a2f7851 100644--- a/server/cloud-team-profile.e2e.test.ts+++ b/server/cloud-team-profile.e2e.test.ts@@ -141,9 +141,9 @@ it("lets Bob's Settings → Profile change only Bob's, whichever route his app sit("names Bob, not the owner, in his private chat's system prompt, with his About you only", async () => {// A server profile naming someone who has not signed in yet waits, read by nobody's turn.const config = JSON.parse(readFileSync(configFile(), "utf8")) as Record<string, unknown>;- writeFileSync(configFile(), JSON.stringify({ ...config, profile: { name: "Olive Owner", email: "[email protected]", aboutMe: "Olive likes sailing." } }));+ writeFileSync(configFile(), JSON.stringify({ ...config, profile: { name: "Imogen Owner", email: "[email protected]", aboutMe: "Imogen likes sailing." } }));await team.relaunch();- expect(JSON.stringify(await you(bob))).not.toContain("Olive");+ expect(JSON.stringify(await you(bob))).not.toContain("Imogen");const created = await team.as(ada, "POST", "/api/bots", { name: "Scout" });expect(created.status, JSON.stringify(created.body)).toBe(201);bot = created.body.bot;@@ -153,15 +153,15 @@ it("names Bob, not the owner, in his private chat's system prompt, with his Abouexpect(bobs.systemPrompt).toContain("payroll");expect(bobs.systemPrompt).not.toContain('conversation is "Ada Lovelace"');expect(bobs.systemPrompt).not.toContain("like tea");- expect(bobs.systemPrompt).not.toContain("Olive");+ expect(bobs.systemPrompt).not.toContain("Imogen");const adaThread = (await team.as(ada, "POST", `/api/bots/${bot.id}/tasks`, { title: "Ada and Scout" })).body.task.threadId as string;const adas = await turn(ada, adaThread, "And now?");expect(adas.systemPrompt).toContain(JSON.stringify("Ada Lovelace"));expect(adas.systemPrompt).toContain("like tea");expect(adas.systemPrompt).not.toContain('conversation is "Bob Builder"');expect(adas.systemPrompt).not.toContain("payroll");- expect(adas.systemPrompt).not.toContain("Olive");- expect(serverProfile()).toMatchObject({ name: "Olive Owner" });+ expect(adas.systemPrompt).not.toContain("Imogen");+ expect(serverProfile()).toMatchObject({ name: "Imogen Owner" });}, hostTimeout(120_000));it("puts each speaker's own name on a group chat's lines, for the people and for the bot", async () => {