Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Phone removal test: read companion.mjs with LF line ends on a Windows checkout
milind-sonie0bff76e445f
diff --git a/electron/companion-revoke.node-test.mjs b/electron/companion-revoke.node-test.mjsindex ec3796d325..91ff0c928d 100644--- a/electron/companion-revoke.node-test.mjs+++ b/electron/companion-revoke.node-test.mjs@@ -5,7 +5,8 @@ import vm from "node:vm";/** companionRevoke alone, with the sidecar, its store and the transition queue stubbed. */function revokeWith({ running, removeAtRest = () => true, control = async () => ({}), portServed = false }) {- const source = readFileSync(new URL("./companion.mjs", import.meta.url), "utf8");+ // A Windows checkout has CRLF line ends: the function is cut out by its "\n}\n" end.+ const source = readFileSync(new URL("./companion.mjs", import.meta.url), "utf8").replace(/\r\n/g, "\n");const start = source.indexOf("export async function companionRevoke");const end = source.indexOf("\n}\n", start);assert.ok(start >= 0 && end > start);