/** * Shared task parsing utilities for MCP planning tools. * * This module provides common functions for parsing tasks from planning documents, * used by get-next-task, claim-task, and update-task-status tools. */ /** * Parsed task interface representing a task extracted from a planning document. */ export interface ParsedTask { id: string; planId: string; featureNumber: number; title: string; status: 'GAP' | 'WIP' | 'PASS' | 'BLOCKED'; dependencies: string[]; files: string[]; documentPath: string; agentPersona?: 'coder' | 'reviewer' | 'pm' | 'customer'; } /** * Extract plan ID from document path. * Example: "/path/to/plans/0008-plan-name/plan.md" -> "0008-plan-name" * * @param path - Document path * @returns Plan ID or null if not found */ export declare function extractPlanId(path: string): string | null; /** * Parse tasks from a planning document. * Extracts features marked with ### #: pattern. * * @param path - Document path * @param content - Document content * @param planId - Plan ID for task ID generation * @returns Array of parsed tasks */ export declare function parseTasksFromDocument(path: string, content: string, planId: string): ParsedTask[]; /** * Find a specific task in parsed tasks by ID. * * @param tasks - Array of parsed tasks * @param taskId - Task ID to find * @returns Parsed task or undefined if not found */ export declare function findTaskById(tasks: ParsedTask[], taskId: string): ParsedTask | undefined; //# sourceMappingURL=task-parser.d.ts.map