Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
import { createHash } from "node:crypto";
import { screenSurfaceForTool, screenTouchingTool } from "../shared/tool-surface.ts";
export { screenSurfaceForTool, screenTouchingTool };
export function screenFrameHash(png: string): string {
return createHash("sha256").update(png).digest("hex");
}
export function settledFrameIsNews(shownFrameHash: string | undefined, png: string): boolean {
return shownFrameHash === undefined || screenFrameHash(png) !== shownFrameHash;
}