/** * Status Dashboard Module * * This module provides functionality to display a dashboard with plans and task statistics */ /** * Metadata extracted from task files */ export interface TaskMetadata { id: number; status: 'pending' | 'in-progress' | 'completed' | 'needs-clarification'; } /** * Metadata extracted from plan files */ export interface PlanMetadata { id: number; summary: string; created: string; approval_method?: string; isArchived: boolean; directoryPath: string; tasks: TaskMetadata[]; } /** * Parse task files in a plan directory */ export declare function parseTaskFiles(planDir: string): Promise; /** * Collect all plan data from the filesystem */ export declare function collectPlanData(): Promise; /** * Plan status categorization */ export type PlanStatus = 'noTasks' | 'notStarted' | 'inProgress' | 'completed'; /** * Dashboard statistics interface */ export interface DashboardStatistics { totalPlans: number; activePlans: number; archivedPlans: number; taskCompletionRate: number; plansByStatus: { noTasks: number; notStarted: number; inProgress: number; completed: number; }; mostRecentPlan?: PlanMetadata; oldestPlan?: PlanMetadata; } /** * Categorize a single plan's status */ export declare function categorizePlanStatus(plan: PlanMetadata): PlanStatus; /** * Calculate all dashboard statistics */ export declare function calculateStatistics(plans: PlanMetadata[]): DashboardStatistics; /** * Format the complete dashboard */ export declare function formatDashboard(stats: DashboardStatistics, plans: PlanMetadata[]): string; /** * Main status function that orchestrates all components */ export declare function status(): Promise<{ success: boolean; message?: string; }>; //# sourceMappingURL=status.d.ts.map