Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Merge remote-tracking branch 'gh/main' into train/nov30-a8a
milind-soni20f6ceb2b4a3
diff --cc server/drivers/acp/core.tsindex e45e4d4874,b6bdde14db..2b43029428--- a/server/drivers/acp/core.ts+++ b/server/drivers/acp/core.ts@@@ -62,10 -62,10 +62,10 @@@ import { appendNative } from "../nativeimport { acpAnswersAlone, acpSessionOperationKey, acpShellRequest, permissionLaunchCwd } from "../permission-command.ts"; import { acpReadPaths } from "../../own-file-reads.ts";import { openQuestionRequest, questionRequestFor, type AcpQuestionRequest } from "./question-requests.ts";import { commandSummary, toolDetailPreview } from "../../tool-summary.ts";-import { acpToolEndEvents } from "./tool-items.ts";+import { acpToolEndEvents } from "./tool-items.ts"; import { isOwnScreenToolName, ownScreenMounts } from "../../mcp-tool-images.ts";import { AcpHost } from "./host.ts"; import { LiveSwitchRefused, SignInRequests, type AcpDriverHooks } from "./driver-hooks.ts";import { exitBeforeResult } from "./exit-report.ts"; import { readNodeVersion } from "./node-version.ts";- import { decodeAcpConfig } from "./config-decode.ts";+ import { decodeAcpConfig } from "./config-decode.ts"; import { ToolCallDetails } from "./tool-call-details.ts";import { endTurn, receiveText, trackAssistantImage, trackAssistantWords, trackThoughtAfterTool, trackRunningTool, trackToolEndShown, type AcpAskFinish, type AcpSession, type AcpTurn } from "./turn-state.ts";import { recoveryPromptFor } from "../../resume-recovery.ts";import { noticeFailure } from "../../chat-notices.ts";@@@ -1020,7 -1020,7 +1020,7 @@@ export function createAcpDriver(supportasks,runningTools: new Set(),unkeyedToolIds: [],- endedToolIds: new Set(), ownScreenToolIds: new Set(), ownScreen: ownScreenMounts(mcpServers.map((server) => server.name)),- endedToolIds: new Set(), toolDetails: new ToolCallDetails(),++ endedToolIds: new Set(), ownScreenToolIds: new Set(), ownScreen: ownScreenMounts(mcpServers.map((server) => server.name)), toolDetails: new ToolCallDetails(),interruptTimer: null,stopQuietWatch: null,flushAssistantText,diff --cc server/drivers/acp/turn-state.tsindex 3ad50e840d,ff91f7639c..c5f35f6e13--- a/server/drivers/acp/turn-state.ts+++ b/server/drivers/acp/turn-state.ts@@@ -8,7 -8,7 +8,8 @@@ import type { AcpConfig } from "./core.import type { AcpDriverHooks } from "./driver-hooks.ts";import type { AcpHost, AcpLink } from "./host.ts"; import type { AppliedConfig } from "./applied-config.ts";import type { AcpTurnSteering } from "./steer.ts";+import { isOwnScreenToolName } from "../../mcp-tool-images.ts";+ import type { ToolCallDetails } from "./tool-call-details.ts";export type AcpAskFinish = (behavior: string,@@@ -42,10 -42,8 +43,12 @@@ export interface AcpTurnrunningTools: Set<string>;unkeyedToolIds: string[];endedToolIds: Set<string>;+ /** OpenMausBot's own computer/browser calls: their screenshots stay out of the chat. */+ ownScreenToolIds: Set<string>;+ /** The servers OpenMausBot mounted for this turn that carry its own computer/browser tools. */+ ownScreen: ReadonlySet<string>;+ /** What this turn's tool call notifications said, for a permission request that names only the call. */+ toolDetails: ToolCallDetails;interruptTimer: ReturnType<typeof setTimeout> | null;stopQuietWatch: (() => void) | null;flushAssistantText: () => void;