19 lines
678 B
TypeScript
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;
|
|
};
|