flashbacker
Version:
Claude Code state management with session continuity and AI personas
43 lines • 1.36 kB
TypeScript
/**
* Progress tracking for todo chains
*/
export interface TodoProgress {
completed: number;
total: number;
percentage: number;
}
/**
* TodoChainManager handles persistent TODO_CHAIN.md operations
* Based on Cline's FocusChainManager pattern adapted for Flashbacker memory system
*/
export declare class TodoChainManager {
private projectDir;
private todoChainPath;
constructor(projectDir: string);
/**
* Get current TODO_CHAIN.md content
* Returns null if file doesn't exist
*/
getCurrentTodoChain(): Promise<string | null>;
/**
* Update TODO_CHAIN.md with new content
* Creates file if it doesn't exist
*/
updateTodoChain(content: string): Promise<void>;
/**
* Parse progress from todo chain content
* Counts completed vs total tasks using markdown checklist format
*/
parseProgress(todoContent: string): TodoProgress;
/**
* Generate context summary from memory files and git commits
* Combines REMEMBER.md, WORKING_PLAN.md, and recent commits
*/
generateContextSummary(): Promise<string>;
/**
* Check if reminder should be injected
* Based on message count and todo update frequency
*/
shouldInjectReminder(messageCount: number, lastUpdateMessage?: number): boolean;
}
//# sourceMappingURL=todo-chain-manager.d.ts.map