crevr
Version:
A web-based UI for reviewing and reverting Claude Code changes
42 lines • 946 B
TypeScript
export interface ClaudeLogEntry {
type: string;
timestamp: string;
message?: {
content: Array<{
type: string;
name?: string;
input?: any;
text?: string;
}>;
};
tool?: string;
parameters?: any;
result?: any;
error?: any;
}
export interface FileChange {
id: string;
timestamp: string;
type: 'create' | 'edit' | 'delete' | 'write';
filePath: string;
oldContent?: string;
newContent?: string;
changes?: Array<{
oldString: string;
newString: string;
replaceAll?: boolean;
}>;
}
export interface ParsedChange {
id: string;
timestamp: string;
type: 'create' | 'edit' | 'delete' | 'write';
filePath: string;
diff?: string;
oldContent?: string;
newContent?: string;
oldString?: string;
newString?: string;
canRevert: boolean;
}
//# sourceMappingURL=types.d.ts.map