Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(cloud): leave the desktop's phone rule as it was, and compare paths on Windows
milind-sonie5b5a2f9e269
diff --git a/server/lending-memory.test.ts b/server/lending-memory.test.tsindex 581a2485ce..5ea9a2dc0a 100644--- a/server/lending-memory.test.ts+++ b/server/lending-memory.test.ts@@ -416,7 +416,7 @@ describe("what the harness puts in a bot's folders, and what a bot writes therememory.noteForeignTurn("bot1");plant(join(opened("handed-in"), file));expect(memory.reconcile("bot1", false).changedBySomeoneElse).toBe(true);- expect(memory.reviewInfo("bot1").changed.some((name) => name.includes(file))).toBe(true);+ expect(memory.reviewInfo("bot1").changed.some((name) => name.split(sep).join("/").includes(file))).toBe(true);});it("a harness skill's name is no cover: a real folder or any other link under it is a change", () => {const { ws, skill, opened, fingerprint } = harness();diff --git a/server/phones/owner.test.ts b/server/phones/owner.test.tsindex e8668b9ac0..cf0efd2995 100644--- a/server/phones/owner.test.ts+++ b/server/phones/owner.test.ts@@ -26,6 +26,10 @@ describe("whose turn may use the desktop owner's phones", () => {expect(owners(base())).toBe(true);});+ it("a conversation a bot opened from the owner's own work is theirs here: off a Cloud its origin vouches for it", () => {+ expect(owners(base({ botOpened: true }))).toBe(true);+ });+it("a live admin session's line is the owner's; a client session's is not", () => {expect(owners(base({ thread: [said("m1", { sender: { id: ADMIN } })] }))).toBe(true);expect(owners(base({ thread: [said("m1", { sender: { id: MEMBER } })] }))).toBe(false);diff --git a/server/phones/owner.ts b/server/phones/owner.tsindex c808b6c683..aee395d7a5 100644--- a/server/phones/owner.ts+++ b/server/phones/owner.ts@@ -74,6 +74,8 @@ export function desktopLendingTurn(base: DesktopTurn, deps: DesktopOwnerDeps): Cif (by.kind === "loopback") return undefined;return by.kind === "session" && by.person ? by.person : NOT_THE_OWNER;},+ // Off a Cloud the work a conversation was opened with is vouched for by its origin, as a bot's ask is, not by who opened it.+ botOpened: false,reportsFromOthers: base.thread.some((line) => {if (line.webhookPost === true) return true;const routine = routineOf(line);