/** * Given discovered issues with their statuses and a command context, produce * the ordered rows a picker displays, with context filtering. * * Pure (no I/O) so it is unit-tested directly. */ import { type IssueStatus } from "./issue-status.ts"; export type SelectorContext = "plan" | "run"; export interface IssueRow { issue: string; status: IssueStatus; merged: boolean; } export interface DisplayRow { issue: string; badge: { symbol: string; label: string; }; hint?: string; } export declare function listFor(context: SelectorContext, rows: IssueRow[]): DisplayRow[];