Skip to content

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

735 B
Raw Blame
import type { ServerTextParams } from "./server-text.ts";
/** Durable progress receipt for one goal-driven channel run. */
export type GroupGoalRunStatus =
  | "working"
  | "completed"
  | "needs-input"
  | "blocked"
  | "limit-reached"
  /** The operator (or a guard) parked the run. */
  | "paused"
  | "stopped"
  | "failed";

export interface GroupGoalRunCardData {
  runId: string;
  goal: string;
  status: GroupGoalRunStatus;
  coordinatorBotId: string;
  coordinatorName: string;
  turnCount: number;
  maxTurns: number;
  detail?: string;
  /** Fixed detail words, used only while they reconstruct the stored English. */
  detailCode?: string;
  detailParams?: ServerTextParams;
  startedAt: number;
  finishedAt?: number;
}