Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Give the company backup fixture the tailnet share main calls on a state change
Milind Soni92d690e1a389
diff --git a/electron/company-backup-main.node-test.mjs b/electron/company-backup-main.node-test.mjsindex 6404422a60..77c85aa1cc 100644--- a/electron/company-backup-main.node-test.mjs+++ b/electron/company-backup-main.node-test.mjs@@ -58,6 +58,7 @@ function fixture() {return store;},createManagedDesktopClient: options => { f.onState = options.onState; f.clientOptions = options; return client; },+ tailnetShare: { recheck: () => { f.tailnetRechecks = (f.tailnetRechecks ?? 0) + 1; } },createOrgLibrary: options => { f.libraryOptions = options; return f.library; },managedDesktopRelay: { sendLibrary: async (proc, library) => { f.librarySent.push({ proc, library }); } },installCloudPlanIpc: () => {},@@ -319,6 +320,13 @@ for (const state of [{ status: "signed-out" }, { status: "reauth-required" }, {});}+test("every change to the organization's state reaches the tailnet share, which follows its policy", () => {+ const f = fixture();+ f.onState({ status: "connected", cloudBackups: true });+ f.onState({ status: "connected", cloudBackups: true });+ assert.equal(f.tailnetRechecks, 2);+});+test("backup IPC requires the local main window's exact main frame", async () => {const f = fixture();const subframe = { sender: f.event.sender, senderFrame: { url: `${ORIGIN}/embedded` } };