claudekit
Version:
CLI tools for Claude Code development workflow
73 lines • 2 kB
TypeScript
export interface ToolInput {
file_path?: string;
path?: string;
old_string?: string;
new_string?: string;
command?: string;
content?: string;
todos?: Array<{
content: string;
status: string;
id: string;
}>;
edits?: Array<{
old_string: string;
new_string: string;
}>;
[key: string]: unknown;
}
export interface TranscriptEntry {
type?: string;
uuid?: string;
parentUuid?: string | null;
sessionId?: string;
timestamp?: string;
message?: {
id?: string;
role?: string;
content?: Array<{
type?: string;
name?: string;
text?: string;
input?: ToolInput;
tool_use_id?: string;
}>;
};
toolUseResult?: {
newTodos?: Array<{
content: string;
status: string;
id?: string;
}>;
filePath?: string;
oldString?: string;
newString?: string;
[key: string]: unknown;
};
}
export interface ToolUse {
name: string;
input: ToolInput;
timestamp?: string | undefined;
}
export declare class TranscriptParser {
private readonly transcriptPath;
private entries;
private static readonly EDITING_TOOLS;
constructor(transcriptPath: string);
exists(): boolean;
private loadEntries;
getRecentMessages(messageCount: number): TranscriptEntry[];
findToolUsesInRecentMessages(messageCount: number, toolNames?: string[]): ToolUse[];
findLatestTodoState(): Array<{
content: string;
status: string;
id?: string;
}> | null;
findLastMessageWithMarker(marker: string): number;
private matchesTargetPatterns;
private hasFileChangesInRange;
hasFileChangesSinceMarker(marker: string, targetPatterns?: string[]): boolean;
hasRecentFileChanges(messageCount: number, targetPatterns?: string[]): boolean;
}
//# sourceMappingURL=transcript-parser.d.ts.map