Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
#5681: type the one-department Chief fixture as the check reads it
milind-sonif697c89807e9
diff --git a/server/peer-roster.test.ts b/server/peer-roster.test.tsindex c081548fa3..90921bc3d9 100644--- a/server/peer-roster.test.ts+++ b/server/peer-roster.test.ts@@ -111,7 +111,7 @@ describe("Chief authority over additional departments", () => {expect(inChargeOfEvery({ ...everywhere, chiefOfStaff: false }, ["Work", "Personal", "Finance"])).toBe(false);expect(inChargeOfEvery({ ...everywhere, managedSections: ["", "Personal", 7 as unknown as string] }, ["Work", "Personal", "Finance"])).toBe(false);// With nothing to tick yet, the owner has not put it in charge of anything beyond its own department.- expect(inChargeOfEvery({ id: "c", name: "C", chiefOfStaff: true }, [])).toBe(false);+ expect(inChargeOfEvery({ chiefOfStaff: true }, [])).toBe(false);// A member's own Chief on a Team Cloud answers for its person's bots, never for departments.expect(inChargeOfEvery({ ...everywhere, createdBy: "[email protected]" }, ["Work", "Personal", "Finance"])).toBe(false);});