This commit is contained in:
Adam Wolf
2026-06-01 20:07:02 -05:00
commit e6374a952c
15 changed files with 1255 additions and 0 deletions
+57
View File
@@ -0,0 +1,57 @@
export interface ActionConfig {
prompt: string;
model: string;
contextWindow: number;
maxToolCalls: number;
}
export interface EnvConfig {
botToken: string;
ollamaHost: string;
giteaUrl: string;
}
export interface PRContext {
owner: string;
repo: string;
prNumber: number;
headSha: string;
}
export type TriggerType = "pr_open" | "issue_comment";
export interface DiffChunk {
filename: string;
language: string;
hunk: string;
context: string;
}
export type MCPToolName = "read_file" | "list_dir" | "find_symbol";
export type ReviewSeverity = "error" | "warning" | "nit";
export interface ReviewIssue {
line: number;
severity: ReviewSeverity;
comment: string;
}
export interface ReviewResult {
issues: ReviewIssue[];
summary: string;
}
export interface ChunkReview {
chunk: DiffChunk;
result: ReviewResult;
}
export interface Finding extends ReviewIssue {
filename: string;
}
export interface AggregatedReview {
findings: Finding[];
summaries: string[];
}