/** * `peaks retrospective index` — the index command (list + optional fzf * multi-select), hoisted out of `retrospective-commands.ts` so that file * clears the 300 raw-line cap. * * Identical control flow: same project-root resolution, same * `loadRetrospectiveIndex` call, same warning normalization, the same * `options.pick === true` gate in the same position, the same envelope * field order, the same exit codes (127 for an fzf problem, 1 otherwise), * the same two suggestion texts, and the same single catch — which moved * WITH its handler and still reports the failure (no swallow, so the * silent-warning counters are untouched). The fzf selection block became * one helper and the failure envelope another, so no function here is * over `max-lines-per-function` or `complexity`; nothing else was * rewritten. */ import type { Command } from 'commander'; import { type ProgramIO } from '../cli-helpers.js'; export interface RetrospectiveIndexCommandOptions { pick?: boolean; fzfBin?: string; project?: string; json?: boolean; } export declare function runRetrospectiveIndexAction(io: ProgramIO, options: RetrospectiveIndexCommandOptions): Promise; export declare function registerRetrospectiveIndexCommand(retrospective: Command, io: ProgramIO): void;