UNPKG

pury

Version:

🛡️ AI-powered security scanner with advanced threat detection, dual reporting system (detailed & summary), and comprehensive code analysis

30 lines 1.11 kB
import type { ScanOptions, ScanReport, PuryAIConfig } from './types/index.js'; export interface AnalyzerConfig { useAI?: boolean; analyzers?: string[]; sensitivity?: 'low' | 'medium' | 'high'; aiApiKey?: string; } export declare class PuryAI { private config; private readonly configManager; private fileScanner; private geminiClient?; private readonly contextManager; constructor(); loadConfig(configPath?: string): Promise<void>; scan(scanOptions: ScanOptions, analyzerConfig?: AnalyzerConfig, onProgress?: (step: string, current: number, total: number, currentFile?: string) => void): Promise<ScanReport>; private runAIAnalysis; private createReport; private createEmptyReport; testAIConnection(): Promise<boolean>; getConfig(): PuryAIConfig; createConfig(path?: string): Promise<void>; } export * from './types/index.js'; export * from './analyzers/index.js'; export * from './scanner/index.js'; export * from './config/index.js'; export * from './utils/index.js'; export * from './reporters/index.js'; //# sourceMappingURL=index.d.ts.map