trellis
Version:
Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications
24 lines • 820 B
TypeScript
export interface MirrorMeta {
repoKey: string;
rootPath: string;
journalPath: string;
sourceOpsPath: string;
lineCount: number;
lastHash?: string;
updatedAt: string;
}
/** Mirror one appended JSONL line (integration journal only). */
export declare function mirrorOpLine(opsPath: string, line: string, opHash?: string): void;
/** Best snapshot or journal for recovery. */
export declare function findMirrorForOpsPath(opsPath: string): {
path: string;
lineCount: number;
repoKey: string;
} | null;
export declare function restoreOpsFromMirror(opsPath: string): {
restored: number;
from: string;
} | null;
export declare function backfillMirrorIfBehind(opsPath: string): number;
export declare function listMirrors(): MirrorMeta[];
//# sourceMappingURL=oplog-mirror.d.ts.map