UNPKG

ubon

Version:

Security scanner for AI-generated apps (Cursor, Lovable, Windsurf, v0). Catches hardcoded secrets, prompt injection, hallucinated imports, Server Actions / Edge runtime mistakes, and the vibe-coded vulnerabilities traditional linters miss.

72 lines 2.63 kB
import { UbonScan } from '../index'; import { ScanResult, ScanOptions } from '../types'; import { redact as sharedRedact } from '../utils/redact'; export declare function renderPrMarkdown(results: ScanResult[]): string; export declare const redact: typeof sharedRedact; export declare function generateRecommendations(results: ScanResult[]): string[]; export interface CliOptions { directory: string; port?: string; skipBuild?: boolean; verbose?: boolean; failOn?: string; minConfidence?: string; enableRule?: string[]; disableRule?: string[]; baseline?: string | false; updateBaseline?: boolean; changedFiles?: string[]; gitChangedSince?: string; baseSha?: string; fixDryRun?: boolean; previewFixes?: boolean; applyFixes?: boolean; createPr?: boolean; profile?: string; gitHistoryDepth?: string; fast?: boolean; watch?: boolean; crawlInternal?: boolean; crawlStartUrl?: string; crawlDepth?: string; crawlTimeout?: string; detailed?: boolean; focusCritical?: boolean; focusSecurity?: boolean; focusNew?: boolean; color?: string; groupBy?: string; format?: string; minSeverity?: string; maxIssues?: string; showContext?: boolean; explain?: boolean; showConfidence?: boolean; showSuppressed?: boolean; ignoreSuppressed?: boolean; clearCache?: boolean; noCache?: boolean; noResultCache?: boolean; aiFriendly?: boolean; prComment?: boolean; interactive?: boolean; json?: boolean; ndjson?: boolean; sarif?: string; output?: string; quiet?: boolean; allowConfigJs?: boolean; schema?: boolean; preset?: string; since?: string; } export declare function applyPresetOptions(options: CliOptions): void; export declare function buildScanOptions(options: CliOptions, defaults?: Partial<ScanOptions>): ScanOptions; export declare function applyAiFriendlyPreset(scanOptions: ScanOptions, forceJson: boolean): void; export declare function outputResults(scanner: UbonScan, results: ScanResult[], scanOptions: ScanOptions, options: CliOptions): Promise<void>; export declare function handleFixes(results: ScanResult[], options: CliOptions): Promise<void>; export declare function checkExitCondition(results: ScanResult[], options: CliOptions): boolean; export declare function runScanCommand(options: CliOptions, defaults?: Partial<ScanOptions>): Promise<void>; export declare function dumpSchema(): Promise<boolean>; export declare function runCheckCommand(options: CliOptions): Promise<void>; //# sourceMappingURL=shared.d.ts.map