Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

693 B
Raw Blame
export const BOT_RUNTIME_STATUSES = {
  connected: 'connected',
  disconnected: 'disconnected',
  // Polling-mode bots silent for >7d enter dormant: continuous polling stops
  // and sparse alarm-driven probes detect new messages. See .
  dormant: 'dormant',
  failed: 'failed',
  queued: 'queued',
  starting: 'starting',
} as const;

export type BotRuntimeStatus = (typeof BOT_RUNTIME_STATUSES)[keyof typeof BOT_RUNTIME_STATUSES];

export interface BotRuntimeStatusSnapshot {
  applicationId: string;
  /** Stable cross-platform gateway error code for client-side i18n. */
  errorCode?: string;
  errorMessage?: string;
  platform: string;
  status: BotRuntimeStatus;
  updatedAt: number;
}