/** * G6.5 — status line renderer for the peaks-code batch-sync wait period. * * Single line, 80-120 chars, status-line-friendly. The shape is * documented in PRD §G6.5: * * [peaks-code] swarm 3/3 running | rd-planning 45% (12s ago) | qa-test-cases 30% (5s ago) | ui-design 20% (2s ago) * [peaks-code] swarm 3/3 running | rd-planning 70% (8s ago) | qa-test-cases 50% (3s ago) | ui-design 30% (6s ago) * ... * [peaks-code] swarm 3/3 done in 47.3s * * Pure helper; the poller calls it once per tick. No IO. */ import type { DispatchRecord } from '../dispatch/dispatch-record-writer.js'; export type SubAgentLiveView = { readonly role: string; readonly status: string; readonly progress: number | null; readonly lastBeatAgoSec: number | null; readonly isStale: boolean; readonly isNeverStarted: boolean; readonly stage: string | null; }; export type SwarmSummary = { readonly total: number; readonly running: number; readonly done: number; readonly failed: number; readonly stale: number; }; /** Build a per-sub-agent view of the current state of one record. */ export declare function viewSubAgent(record: DispatchRecord, now?: () => Date): SubAgentLiveView; /** Aggregate swarm summary. */ export declare function summarize(records: readonly DispatchRecord[]): SwarmSummary; /** Render a single status line. */ export declare function renderStatusLine(prefix: string, records: readonly DispatchRecord[], now?: () => Date): string;