/** * Todo Continuation Enforcer Hook * * Prevents stopping when incomplete tasks remain in the todo list. * Forces the agent to continue until all tasks are marked complete. * * Ported from oh-my-opencode's todo-continuation-enforcer hook. */ export interface Todo { content: string; status: 'pending' | 'in_progress' | 'completed' | 'cancelled'; priority?: string; id?: string; } export interface IncompleteTodosResult { count: number; todos: Todo[]; total: number; } export interface TodoContinuationHook { checkIncomplete: (sessionId?: string) => Promise; } /** * Check for incomplete todos across all possible locations */ export declare function checkIncompleteTodos(sessionId?: string, directory?: string): Promise; /** * Create a Todo Continuation hook instance */ export declare function createTodoContinuationHook(directory: string): TodoContinuationHook; /** * Get formatted status string for todos */ export declare function formatTodoStatus(result: IncompleteTodosResult): string; /** * Get the next pending todo */ export declare function getNextPendingTodo(result: IncompleteTodosResult): Todo | null; //# sourceMappingURL=index.d.ts.map