@opencodereview/core
v2.0.1
Published
Core detection engine for AI-generated code validation
Maintainers
Readme
@opencodereview/core
Core detection engine for Open Code Review
Installation
npm install @opencodereview/coreUsage
import { Scanner, DetectorRegistry } from '@opencodereview/core';
const scanner = new Scanner({
sla: 'L2',
ollamaUrl: 'http://localhost:11434'
});
const result = await scanner.scan('src/');
console.log(result.score, result.grade, result.issues);API
Scanner
scan(path: string, options?: ScanOptions): Promise<ScanResult>scanDiff(base: string, head: string): Promise<DiffResult>
Detectors
deep-hallucination- Detects AI hallucinated packagesstale-api- Detects deprecated APIssecurity-pattern- Detects security vulnerabilitieslogic-gap- Detects empty catches and logic gapsover-engineering- Detects unnecessary complexity
License
BSL-1.1 - See LICENSE
