UNPKG

@ton-ai-core/vibecode-linter

Version:

Advanced TypeScript linter with Git integration, dependency analysis, and comprehensive error reporting

28 lines 1.35 kB
import type { DiffSnippet } from "../../core/types/index.js"; export interface CommitInfo { readonly hash: string; readonly shortHash: string; readonly date: string; readonly author: string; readonly summary: string; } export interface CommitDiffBlock { readonly heading: string; readonly newerCommit: CommitInfo; readonly olderCommit: CommitInfo; readonly diffSnippet: DiffSnippet | null; } export declare function parseGitLogSegments(historyOutput: string): string[]; export declare function processCommitSegment(segment: string, filePath: string, line: number, relativePath: string): Promise<{ readonly lines: string[]; readonly snippet: readonly string[] | undefined; } | null>; export declare function parseCommitInfo(segment: string): CommitInfo | null; export declare function fetchCommitHistoryForLine(filePath: string, line: number, limit: number): Promise<CommitInfo[] | null>; export declare function handleSingleCommit(creation: CommitInfo, filePath: string, line: number, relativePath: string, contextLines: number): Promise<CommitDiffBlock[]>; export declare function buildDiffBlocks(commits: CommitInfo[], fileInfo: { path: string; relativePath: string; line: number; }, limit: number, contextLines: number): Promise<CommitDiffBlock[]>; //# sourceMappingURL=history-helpers.d.ts.map