@bobmatnyc/ai-code-review
Version:
A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter
31 lines (30 loc) • 776 B
TypeScript
/**
* @fileoverview Security analysis for dependencies in AI Code Review
*
* This module provides functionality to detect security vulnerabilities
* in project dependencies using tools like npm audit.
*/
/**
* Security issues summary structure
*/
export interface SecurityIssues {
critical: number;
high: number;
moderate: number;
low: number;
info: number;
total: number;
}
/**
* Security analysis result
*/
export interface SecurityAnalysisResult {
securityIssues: SecurityIssues;
report: string;
}
/**
* Run npm audit to check for security vulnerabilities
* @param projectPath Path to the project
* @returns Security analysis results
*/
export declare function runNpmAudit(projectPath: string): Promise<SecurityAnalysisResult>;