Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Merge #5107: Burst mode: plan limits, durable store, the lane and the manager

milind-soni5bad28500669
diff --cc shared/wire.ts
index 040adb47ea,8e7ed8332e..acd529302e
--- a/shared/wire.ts
+++ b/shared/wire.ts
@@@ -453,12 -455,16 +453,12 @@@ export interface WireMessage extends Se
roomRequest?: { id: string; phase: "request" | "result" };
id: string;
role: "bot" | "user";
- kind: "text" | "options" | "activity" | "screen" | "connector" | "secret" | "signin" | "routine.run" | "goal.run" | "digest" | "compaction" | "call" | "widget" | "app";
+ kind: "text" | "options" | "activity" | "screen" | "connector" | "secret" | "signin" | "routine.run" | "goal.run" | "burst" | "digest" | "compaction" | "call" | "widget" | "app";
text?: string;
digest?: TurnDigest;
- compaction?: {
- summary: string;
- firstKeptId: string;
- foldedThroughId: string;
- tokensBefore: number;
- by: "person" | "harness";
- };
+ /** kind "compaction" with no `compaction` record: the engine condensed its own session. A marker for people, never context. */
+ engineCompaction?: true;
+ compaction?: { summary: string; firstKeptId: string; foldedThroughId: string; tokensBefore: number; by: "person" | "harness" };
/** Renderers receive only the allowlisted /api/attachments URL. `file` entries are opened through the message-scoped
* file route, never by path. `source`: a bot attach-file copy's original path on the server, for Show in folder.
* `fromTool`: an image a tool's result returned while the bot worked, which it did not make or send. */