Files
oh-my-opencode/dist/hooks/todo-continuation-enforcer/session-state.d.ts
T
2026-03-14 04:56:50 +00:00

20 lines
850 B
TypeScript

import type { SessionState, Todo } from "./types";
export interface ContinuationProgressUpdate {
previousIncompleteCount?: number;
previousStagnationCount: number;
stagnationCount: number;
hasProgressed: boolean;
progressSource: "none" | "todo" | "activity";
}
export interface SessionStateStore {
getState: (sessionID: string) => SessionState;
getExistingState: (sessionID: string) => SessionState | undefined;
trackContinuationProgress: (sessionID: string, incompleteCount: number, todos?: Todo[]) => ContinuationProgressUpdate;
resetContinuationProgress: (sessionID: string) => void;
cancelCountdown: (sessionID: string) => void;
cleanup: (sessionID: string) => void;
cancelAllCountdowns: () => void;
shutdown: () => void;
}
export declare function createSessionStateStore(): SessionStateStore;