Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
The wire contract keeps its size: the card's outside write lives in its own file
milind-soni413ce65117a6
diff --git a/shared/outside-write.ts b/shared/outside-write.tsnew file mode 100644index 0000000000..a74d55dbeb--- /dev/null+++ b/shared/outside-write.ts@@ -0,0 +1,4 @@+export interface OutsideWriteCardField {+ /** What work from outside asked to write where later turns read it; nothing is written until a person says yes. */+ outsideWrite?: { kind: "room-bulletin"; roomId: string; bulletin: string } | { kind: "memory"; action: string; text?: string; oldText?: string; until?: string };+}diff --git a/shared/wire.ts b/shared/wire.tsindex 3c6c9d2a0f..ed6f57e0bb 100644--- a/shared/wire.ts+++ b/shared/wire.ts@@ -19,7 +19,7 @@ import type { ProfileRequestCardData } from "./profile-request.ts";import type { PlaceRow } from "./place-view.ts";import type { ModelRequestCardData } from "./model-request.ts";import type { ConnectorCardData } from "./connector-card.ts"; import type { McpChangeRequest } from "./mcp-request.ts";-import type { SkillRequestCardData } from "./skill-request.ts";+import type { SkillRequestCardData } from "./skill-request.ts"; import type { OutsideWriteCardField } from "./outside-write.ts";import type { QuestionRequestCardData } from "./ask-question.ts";import type { AutomationLine, RoutineRunCardData } from "./routine-run.ts";import type { WidgetPayload } from "./widget.ts";@@ -149,8 +149,7 @@ export interface WireTask extends InboxTask {projectId?: string;/** Detached routine execution, reachable through its visible results card. */routineRunId?: string;- /** Work from outside (a webhook, an app's event) reached this conversation: what it starts or runs stays confined, for good. */- outside?: true;+ /** Work from outside (a webhook, an app's event) reached this conversation: what it starts or runs stays confined, for good. */ outside?: true;/** Set when a bot, not a person, opened this thread. */openedBy?: TaskOpenedBy;/** On a team's server: one person's conversation, seen by them alone (never by another member or an admin). */@@ -658,13 +657,11 @@ export function nextOpenThread<T extends OpenThreadCandidate>(tasks: readonly T[return [listed, open, own].map((candidates) => orderedThreadList(candidates)[0]).find((task) => task !== undefined);}-export interface OptionCardData extends WaitCardField, ComputerAskField, AccessRequestCardField {+export interface OptionCardData extends WaitCardField, ComputerAskField, AccessRequestCardField, OutsideWriteCardField {/** calls: one per outbound call the card covers, in subtitle order. */outboundRequest?: { tool: string; app: string | null; calls?: Array<{ app: string | null; label: string }> };/** `revision`: the entry as it applied without a person, so Undo can tell it changed since. */teamMemoryRequest?: { section: string; entryId: string; kind: string; revision?: string };- /** What work from outside asked to write where later turns read it; nothing is written until a person says yes. */- outsideWrite?: { kind: "room-bulletin"; roomId: string; bulletin: string } | { kind: "memory"; action: string; text?: string; oldText?: string; until?: string };title: string;subtitle: string;options: string[];