/** * cleanup_threads Tool (Phase 6: Thread Lifecycle) * * Batch triage tool for thread health review. Groups all non-resolved threads * by lifecycle status (active/cooling/dormant) with optional auto-archival. * * Performance target: <2000ms (fetches all threads, computes lifecycle statuses) */ import type { LifecycleStatus } from "../services/thread-vitality.js"; import type { Project } from "../types/index.js"; import type { PerformanceData } from "../services/metrics.js"; export interface CleanupThreadsParams { project?: Project; /** If true, auto-archive dormant threads that have been dormant 30+ days */ auto_archive?: boolean; } interface ThreadSummary { thread_id: string; text: string; lifecycle_status: LifecycleStatus; vitality_score: number; thread_class: string; days_since_touch: number; dormant_days?: number; } export interface CleanupThreadsResult { success: boolean; summary: { emerging: number; active: number; cooling: number; dormant: number; total_open: number; }; groups: { emerging: ThreadSummary[]; active: ThreadSummary[]; cooling: ThreadSummary[]; dormant: ThreadSummary[]; }; archived_count: number; archived_ids: string[]; display?: string; performance: PerformanceData; } export declare function cleanupThreads(params: CleanupThreadsParams): Promise; export {}; //# sourceMappingURL=cleanup-threads.d.ts.map