/** * Projections for the agent-facing iterate output. * * These strip fields that are always-false by the time items reach iterate * (isResolved, isOutdated, isMinimized, createdAtUnix) and check metadata the * agent/iterate prompt never reads (event, status, category). * conclusion is preserved on AgentCheck so the formatter can branch on run-level conclusions. * detailsUrl is preserved in AgentCheck as a fallback for external status checks. * The original domain types are preserved as internal snapshot types. */ import type { ReviewThread, PrComment, TriagedCheck, ClassifiedCheck, AgentThread, AgentComment, AgentCheck, AgentStalledCheck } from "../types.mts"; export declare function toAgentThread(t: ReviewThread): AgentThread; export declare function toAgentComment(c: PrComment & { edited?: boolean; }): AgentComment; export declare function toAgentCheck(c: TriagedCheck): AgentCheck; export declare function toAgentStalledCheck(c: ClassifiedCheck, nowSeconds: number): AgentStalledCheck; /** * Project failing checks for the agent. Deduplicates only null-runId external * checks by name — when runId is present each check may have a distinct job and * log tail, so they are all kept. */ export declare function toAgentChecks(checks: TriagedCheck[]): AgentCheck[];