relaycode
Version:
A developer assistant that automates applying code changes from LLMs.
20 lines (17 loc) • 1.47 kB
TypeScript
import { StateFile } from 'relaycode-core';
declare const isRevertTransaction: (state: StateFile) => boolean;
declare const getRevertedTransactionUuid: (state: StateFile) => string | null;
declare const hasBeenProcessed: (cwd: string, uuid: string) => Promise<boolean>;
declare const writePendingState: (cwd: string, state: StateFile) => Promise<void>;
declare const updatePendingState: (cwd: string, state: StateFile) => Promise<void>;
declare const commitState: (cwd: string, uuid: string) => Promise<void>;
declare const markTransactionsAsGitCommitted: (cwd: string, uuids: string[]) => Promise<void>;
declare const deletePendingState: (cwd: string, uuid: string) => Promise<void>;
declare const readStateFile: (cwd: string, uuid: string) => Promise<StateFile | null>;
interface ReadStateFilesOptions {
skipReverts?: boolean;
}
declare const readAllStateFiles: (cwd?: string, options?: ReadStateFilesOptions) => Promise<StateFile[] | null>;
declare const findLatestStateFile: (cwd?: string, options?: ReadStateFilesOptions) => Promise<StateFile | null>;
declare const findStateFileByIdentifier: (cwd: string, identifier: string, options?: ReadStateFilesOptions) => Promise<StateFile | null>;
export { commitState, deletePendingState, findLatestStateFile, findStateFileByIdentifier, getRevertedTransactionUuid, hasBeenProcessed, isRevertTransaction, markTransactionsAsGitCommitted, readAllStateFiles, readStateFile, updatePendingState, writePendingState };