@ton-ai-core/vibecode-linter
Version:
Advanced TypeScript linter with Git integration, dependency analysis, and comprehensive error reporting
34 lines • 1.16 kB
TypeScript
import { Effect } from "effect";
interface GitStatusSummary {
readonly branch: string;
readonly upstreamBranch: string | null;
readonly aheadBehind: string | null;
readonly isRepository: boolean;
readonly statusLines: readonly string[];
readonly hasUncommitted: boolean;
}
export interface GitCommitInfo {
readonly shortHash: string;
readonly date: string;
readonly subject: string;
readonly author: string;
}
export interface GitInsight {
readonly status: GitStatusSummary;
readonly headCommits: readonly GitCommitInfo[];
readonly upstreamCommits: readonly GitCommitInfo[];
}
/**
* CHANGE: Public Effect that returns git insight (status + commits).
* WHY: Simplifies orchestration in runLinter shell.
* QUOTE(ТЗ): "Effect-TS для всех эффектов"
* REF: user-request-project-info
* FORMAT THEOREM: fetchGitInsightEffect() = combine(status, commits)
* PURITY: SHELL
* EFFECT: Effect<GitInsight, never>
* INVARIANT: commits.length ≤ 5
* COMPLEXITY: O(1)
*/
export declare function fetchGitInsightEffect(): Effect.Effect<GitInsight, never>;
export {};
//# sourceMappingURL=git.d.ts.map