@bobmatnyc/ai-code-review
Version:
A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter
30 lines (29 loc) • 1.08 kB
TypeScript
/**
* @fileoverview Package security analyzer using SERPAPI
*
* This module provides utilities to analyze package dependencies for security issues
* and integrates with architectural reviews to provide security insights.
*/
/**
* Package security analysis result
*/
export interface PackageSecurityAnalysisResult {
analyzedPackages: string[];
packageCount: number;
securityIssuesFound: number;
securityReport: string;
missingApiKey: boolean;
techStackReport?: string;
}
/**
* Analyze all package dependencies in a project for security issues
* @param projectPath The path to the project directory
* @returns Promise with security analysis results
*/
export declare function analyzePackageSecurity(projectPath: string): Promise<PackageSecurityAnalysisResult>;
/**
* Create a dependency security section for architectural reviews
* @param projectPath The path to the project
* @returns Security information formatted for inclusion in reviews
*/
export declare function createDependencySecuritySection(projectPath: string): Promise<string>;