@bobmatnyc/ai-code-review
Version:
A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter
1,067 lines (1,066 loc) • 35.5 kB
TypeScript
/**
* @fileoverview Schema for quick fixes review structured output.
*
* This module defines the schema for structured output from the quick fixes review,
* using Zod for schema validation and LangChain for parsing.
*/
import { z } from 'zod';
import { StructuredOutputParser } from '@langchain/core/output_parsers';
/**
* Priority level for issues
*/
export type PriorityLevel = 'high' | 'medium' | 'low';
/**
* Issue category
*/
export type IssueCategory = 'bug' | 'security' | 'performance' | 'maintainability' | 'readability' | 'testing' | 'documentation' | 'configuration' | 'typing' | 'error-handling' | 'other';
/**
* Schema for a quick fix issue
*/
export declare const QuickFixIssueSchema: z.ZodObject<{
/**
* Title of the issue
*/
title: z.ZodString;
/**
* Detailed description of the issue
*/
description: z.ZodString;
/**
* Location information (file and line numbers)
*/
location: z.ZodObject<{
file: z.ZodOptional<z.ZodString>;
lineStart: z.ZodOptional<z.ZodNumber>;
lineEnd: z.ZodOptional<z.ZodNumber>;
codeSnippet: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
}, {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
}>;
/**
* Suggested fix for the issue
*/
suggestedFix: z.ZodObject<{
code: z.ZodString;
explanation: z.ZodString;
}, "strip", z.ZodTypeAny, {
code: string;
explanation: string;
}, {
code: string;
explanation: string;
}>;
/**
* Impact of fixing the issue
*/
impact: z.ZodString;
/**
* Effort level required to fix (1-5 scale)
*/
effort: z.ZodNumber;
/**
* Priority level of the issue
*/
priority: z.ZodEnum<["high", "medium", "low"]>;
/**
* Category of the issue
*/
category: z.ZodEnum<["bug", "security", "performance", "maintainability", "readability", "testing", "documentation", "configuration", "typing", "error-handling", "other"]>;
/**
* Tags related to the issue
*/
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}, {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}>;
/**
* Schema for the complete quick fixes review result
*/
export declare const QuickFixesReviewSchema: z.ZodObject<{
/**
* Array of high priority issues
*/
highPriorityIssues: z.ZodArray<z.ZodObject<{
/**
* Title of the issue
*/
title: z.ZodString;
/**
* Detailed description of the issue
*/
description: z.ZodString;
/**
* Location information (file and line numbers)
*/
location: z.ZodObject<{
file: z.ZodOptional<z.ZodString>;
lineStart: z.ZodOptional<z.ZodNumber>;
lineEnd: z.ZodOptional<z.ZodNumber>;
codeSnippet: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
}, {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
}>;
/**
* Suggested fix for the issue
*/
suggestedFix: z.ZodObject<{
code: z.ZodString;
explanation: z.ZodString;
}, "strip", z.ZodTypeAny, {
code: string;
explanation: string;
}, {
code: string;
explanation: string;
}>;
/**
* Impact of fixing the issue
*/
impact: z.ZodString;
/**
* Effort level required to fix (1-5 scale)
*/
effort: z.ZodNumber;
/**
* Priority level of the issue
*/
priority: z.ZodEnum<["high", "medium", "low"]>;
/**
* Category of the issue
*/
category: z.ZodEnum<["bug", "security", "performance", "maintainability", "readability", "testing", "documentation", "configuration", "typing", "error-handling", "other"]>;
/**
* Tags related to the issue
*/
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}, {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}>, "many">;
/**
* Array of medium priority issues
*/
mediumPriorityIssues: z.ZodArray<z.ZodObject<{
/**
* Title of the issue
*/
title: z.ZodString;
/**
* Detailed description of the issue
*/
description: z.ZodString;
/**
* Location information (file and line numbers)
*/
location: z.ZodObject<{
file: z.ZodOptional<z.ZodString>;
lineStart: z.ZodOptional<z.ZodNumber>;
lineEnd: z.ZodOptional<z.ZodNumber>;
codeSnippet: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
}, {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
}>;
/**
* Suggested fix for the issue
*/
suggestedFix: z.ZodObject<{
code: z.ZodString;
explanation: z.ZodString;
}, "strip", z.ZodTypeAny, {
code: string;
explanation: string;
}, {
code: string;
explanation: string;
}>;
/**
* Impact of fixing the issue
*/
impact: z.ZodString;
/**
* Effort level required to fix (1-5 scale)
*/
effort: z.ZodNumber;
/**
* Priority level of the issue
*/
priority: z.ZodEnum<["high", "medium", "low"]>;
/**
* Category of the issue
*/
category: z.ZodEnum<["bug", "security", "performance", "maintainability", "readability", "testing", "documentation", "configuration", "typing", "error-handling", "other"]>;
/**
* Tags related to the issue
*/
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}, {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}>, "many">;
/**
* Array of low priority issues
*/
lowPriorityIssues: z.ZodArray<z.ZodObject<{
/**
* Title of the issue
*/
title: z.ZodString;
/**
* Detailed description of the issue
*/
description: z.ZodString;
/**
* Location information (file and line numbers)
*/
location: z.ZodObject<{
file: z.ZodOptional<z.ZodString>;
lineStart: z.ZodOptional<z.ZodNumber>;
lineEnd: z.ZodOptional<z.ZodNumber>;
codeSnippet: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
}, {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
}>;
/**
* Suggested fix for the issue
*/
suggestedFix: z.ZodObject<{
code: z.ZodString;
explanation: z.ZodString;
}, "strip", z.ZodTypeAny, {
code: string;
explanation: string;
}, {
code: string;
explanation: string;
}>;
/**
* Impact of fixing the issue
*/
impact: z.ZodString;
/**
* Effort level required to fix (1-5 scale)
*/
effort: z.ZodNumber;
/**
* Priority level of the issue
*/
priority: z.ZodEnum<["high", "medium", "low"]>;
/**
* Category of the issue
*/
category: z.ZodEnum<["bug", "security", "performance", "maintainability", "readability", "testing", "documentation", "configuration", "typing", "error-handling", "other"]>;
/**
* Tags related to the issue
*/
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}, {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}>, "many">;
/**
* Summary of the quick fixes review
*/
summary: z.ZodString;
/**
* General recommendations
*/
recommendations: z.ZodArray<z.ZodString, "many">;
/**
* Positive aspects of the code
*/
positiveAspects: z.ZodArray<z.ZodString, "many">;
/**
* Development tools that could help
*/
recommendedTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
tool: z.ZodString;
description: z.ZodString;
configuration: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
description: string;
tool: string;
configuration?: string | undefined;
}, {
description: string;
tool: string;
configuration?: string | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
highPriorityIssues: {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}[];
mediumPriorityIssues: {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}[];
lowPriorityIssues: {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}[];
summary: string;
recommendations: string[];
positiveAspects: string[];
recommendedTools?: {
description: string;
tool: string;
configuration?: string | undefined;
}[] | undefined;
}, {
highPriorityIssues: {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}[];
mediumPriorityIssues: {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}[];
lowPriorityIssues: {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}[];
summary: string;
recommendations: string[];
positiveAspects: string[];
recommendedTools?: {
description: string;
tool: string;
configuration?: string | undefined;
}[] | undefined;
}>;
/**
* Type for a quick fix issue
*/
export type QuickFixIssue = z.infer<typeof QuickFixIssueSchema>;
/**
* Type for the complete quick fixes review result
*/
export type QuickFixesReview = z.infer<typeof QuickFixesReviewSchema>;
/**
* LangChain parser for quick fixes review output
*/
export declare const quickFixesReviewParser: StructuredOutputParser<z.ZodObject<{
/**
* Array of high priority issues
*/
highPriorityIssues: z.ZodArray<z.ZodObject<{
/**
* Title of the issue
*/
title: z.ZodString;
/**
* Detailed description of the issue
*/
description: z.ZodString;
/**
* Location information (file and line numbers)
*/
location: z.ZodObject<{
file: z.ZodOptional<z.ZodString>;
lineStart: z.ZodOptional<z.ZodNumber>;
lineEnd: z.ZodOptional<z.ZodNumber>;
codeSnippet: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
}, {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
}>;
/**
* Suggested fix for the issue
*/
suggestedFix: z.ZodObject<{
code: z.ZodString;
explanation: z.ZodString;
}, "strip", z.ZodTypeAny, {
code: string;
explanation: string;
}, {
code: string;
explanation: string;
}>;
/**
* Impact of fixing the issue
*/
impact: z.ZodString;
/**
* Effort level required to fix (1-5 scale)
*/
effort: z.ZodNumber;
/**
* Priority level of the issue
*/
priority: z.ZodEnum<["high", "medium", "low"]>;
/**
* Category of the issue
*/
category: z.ZodEnum<["bug", "security", "performance", "maintainability", "readability", "testing", "documentation", "configuration", "typing", "error-handling", "other"]>;
/**
* Tags related to the issue
*/
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}, {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}>, "many">;
/**
* Array of medium priority issues
*/
mediumPriorityIssues: z.ZodArray<z.ZodObject<{
/**
* Title of the issue
*/
title: z.ZodString;
/**
* Detailed description of the issue
*/
description: z.ZodString;
/**
* Location information (file and line numbers)
*/
location: z.ZodObject<{
file: z.ZodOptional<z.ZodString>;
lineStart: z.ZodOptional<z.ZodNumber>;
lineEnd: z.ZodOptional<z.ZodNumber>;
codeSnippet: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
}, {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
}>;
/**
* Suggested fix for the issue
*/
suggestedFix: z.ZodObject<{
code: z.ZodString;
explanation: z.ZodString;
}, "strip", z.ZodTypeAny, {
code: string;
explanation: string;
}, {
code: string;
explanation: string;
}>;
/**
* Impact of fixing the issue
*/
impact: z.ZodString;
/**
* Effort level required to fix (1-5 scale)
*/
effort: z.ZodNumber;
/**
* Priority level of the issue
*/
priority: z.ZodEnum<["high", "medium", "low"]>;
/**
* Category of the issue
*/
category: z.ZodEnum<["bug", "security", "performance", "maintainability", "readability", "testing", "documentation", "configuration", "typing", "error-handling", "other"]>;
/**
* Tags related to the issue
*/
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}, {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}>, "many">;
/**
* Array of low priority issues
*/
lowPriorityIssues: z.ZodArray<z.ZodObject<{
/**
* Title of the issue
*/
title: z.ZodString;
/**
* Detailed description of the issue
*/
description: z.ZodString;
/**
* Location information (file and line numbers)
*/
location: z.ZodObject<{
file: z.ZodOptional<z.ZodString>;
lineStart: z.ZodOptional<z.ZodNumber>;
lineEnd: z.ZodOptional<z.ZodNumber>;
codeSnippet: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
}, {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
}>;
/**
* Suggested fix for the issue
*/
suggestedFix: z.ZodObject<{
code: z.ZodString;
explanation: z.ZodString;
}, "strip", z.ZodTypeAny, {
code: string;
explanation: string;
}, {
code: string;
explanation: string;
}>;
/**
* Impact of fixing the issue
*/
impact: z.ZodString;
/**
* Effort level required to fix (1-5 scale)
*/
effort: z.ZodNumber;
/**
* Priority level of the issue
*/
priority: z.ZodEnum<["high", "medium", "low"]>;
/**
* Category of the issue
*/
category: z.ZodEnum<["bug", "security", "performance", "maintainability", "readability", "testing", "documentation", "configuration", "typing", "error-handling", "other"]>;
/**
* Tags related to the issue
*/
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}, {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}>, "many">;
/**
* Summary of the quick fixes review
*/
summary: z.ZodString;
/**
* General recommendations
*/
recommendations: z.ZodArray<z.ZodString, "many">;
/**
* Positive aspects of the code
*/
positiveAspects: z.ZodArray<z.ZodString, "many">;
/**
* Development tools that could help
*/
recommendedTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
tool: z.ZodString;
description: z.ZodString;
configuration: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
description: string;
tool: string;
configuration?: string | undefined;
}, {
description: string;
tool: string;
configuration?: string | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
highPriorityIssues: {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}[];
mediumPriorityIssues: {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}[];
lowPriorityIssues: {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}[];
summary: string;
recommendations: string[];
positiveAspects: string[];
recommendedTools?: {
description: string;
tool: string;
configuration?: string | undefined;
}[] | undefined;
}, {
highPriorityIssues: {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}[];
mediumPriorityIssues: {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}[];
lowPriorityIssues: {
description: string;
priority: "high" | "medium" | "low";
location: {
file?: string | undefined;
lineStart?: number | undefined;
lineEnd?: number | undefined;
codeSnippet?: string | undefined;
};
title: string;
impact: string;
category: "security" | "performance" | "documentation" | "testing" | "maintainability" | "bug" | "readability" | "other" | "configuration" | "typing" | "error-handling";
suggestedFix: {
code: string;
explanation: string;
};
effort: number;
tags?: string[] | undefined;
}[];
summary: string;
recommendations: string[];
positiveAspects: string[];
recommendedTools?: {
description: string;
tool: string;
configuration?: string | undefined;
}[] | undefined;
}>>;
/**
* Get format instructions for the quick fixes review parser
* @returns Format instructions string
*/
export declare function getQuickFixesReviewFormatInstructions(): string;