/** * Automatic Workflow State Detection * @requirement FR-004: Automatic Workflow State Detection * * Detects workflow state from work signals (files, commits, etc.) */ export interface WorkSignals { newFiles: string[]; modifiedFiles: string[]; deletedFiles: string[]; linesAdded: number; linesDeleted: number; testsAdded: number; commits: Array<{ hash: string; message: string; timestamp: string; }>; timeElapsed: number; hasDesignDocs: boolean; hasTests: boolean; hasImplementation: boolean; } export type WorkflowState = 'UNDERSTANDING' | 'DESIGNING' | 'IMPLEMENTING' | 'TESTING' | 'REVIEWING' | 'READY_TO_COMMIT'; /** * Detect workflow state from current state and work signals */ export declare function detectWorkflowState(currentState: string, signals: WorkSignals): WorkflowState; /** * Collect work signals from git and file system * (Placeholder - would need git integration) */ export declare function collectWorkSignals(): Promise; /** * Check if state is in sync with actual work */ export declare function checkStateSync(currentState: string, signals: WorkSignals): { inSync: boolean; suggestedState?: WorkflowState; };