Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Live calls: cover inline pages in the desktop window, and say which test stubs fetch
milind-soni90bef6b0d9af
diff --git a/docs/verification/live-calls.md b/docs/verification/live-calls.mdindex 3118af9d49..126657cb31 100644--- a/docs/verification/live-calls.md+++ b/docs/verification/live-calls.md@@ -97,8 +97,10 @@ with no `needsKey`. Nothing reaches Azure or OpenAI: a refused call never fallsback to another provider. `GET /api/config` and the stream tell a sessionwithout the admin scope `live.provider`, never `azureEndpoint` or`azureDeployment`. `server/live-access.test.ts` runs each caller above through-the sign-in gate and the limit; `server/live-azure-access.e2e.test.ts` and-`server/hosted-access.test.ts` do it on the full server with its `fetch` stubbed.+the sign-in gate and the limit. `server/live-azure-access.e2e.test.ts` does it on+the full server with a made-up key and its `fetch` stubbed.+`server/hosted-access.test.ts` does it for a shared workspace, with no key saved,+so a caller who gets through stops at the setup prompt.## User pathdiff --git a/server/live-access.test.ts b/server/live-access.test.tsindex 88f82613c8..ce8e9c4641 100644--- a/server/live-access.test.ts+++ b/server/live-access.test.ts@@ -145,6 +145,12 @@ describe("an Azure Live call", () => {expect(verdict(riding("https://abc.example.page"))).toBe("sign-in gate 403: forbidden: cross-origin request");expect(verdict(riding("null"))).toBe("sign-in gate 403: forbidden: cross-origin request");});+ it("is refused inside the desktop app's window too, where the app adds its owner header to every request", () => {+ const sandboxed = { ...LOCAL, "x-openmausbot-desktop-owner": "desktop-secret", origin: "null", "sec-fetch-site": "cross-site", "sec-fetch-dest": "empty" };+ expect(verdict(sandboxed, { resolve: DESKTOP })).toBe("sign-in gate 403: forbidden: cross-origin request");+ const sameHostPage = { ...LOCAL, "x-openmausbot-desktop-owner": "desktop-secret", origin: "http://127.0.0.1:9999", "sec-fetch-site": "same-site", "sec-fetch-dest": "empty" };+ expect(verdict(sameHostPage, { resolve: DESKTOP })).toMatch(/^sign-in gate 401: unauthorized: this browser is not signed in/);+ });it("is refused with no credential at all", () => {expect(verdict({ ...REMOTE, origin: "https://abc.example.page" })).toMatch(/^sign-in gate 403: forbidden: this request came through a proxy/);});