import { SessionPhase } from "../../types/hub.mjs"; //#region src/web/lib/sessionSummary.d.ts /** The rail's view of one session's attach state; offline means the page lost the hub. */ export type AttachPhase = 'offline' | 'connecting' | 'attached' | 'refused' | 'detached' | 'closed'; export interface StatusLineInput { attach: AttachPhase; phase: SessionPhase; /** ISO 8601 timestamp of the last phase change. */ phaseSince: string; awaitingInput: boolean; everPrompted: boolean; backgroundWorkActive?: boolean | null; /** Set once any run finished; a settled session is not "fresh" even unprompted. */ lastSettledAt?: string; /** Recorded by the hub but not running; opening it is what starts it. */ dormant?: boolean; /** A line an extension published about background work it runs for the session. */ activity?: { label: string; since?: string; }; /** Tool calls waiting for the person's approval. */ pendingApprovals?: number; } /** The ageing part of a status line: "