Files
opencode-plugin-ralph-loop/dist/ralph-loop/loop-state-controller.d.ts
2026-04-19 19:16:31 -04:00

19 lines
678 B
TypeScript

import type { RalphLoopOptions, RalphLoopState } from "./types";
export declare function createLoopStateController(options: {
directory: string;
stateDir: string | undefined;
config: RalphLoopOptions["config"] | undefined;
}): {
startLoop(sessionID: string, prompt: string, loopOptions?: {
maxIterations?: number;
completionPromise?: string;
ultrawork?: boolean;
strategy?: "reset" | "continue";
}): boolean;
cancelLoop(sessionID: string): boolean;
getState(): RalphLoopState | null;
clear(): boolean;
incrementIteration(): RalphLoopState | null;
setSessionID(sessionID: string): RalphLoopState | null;
};