UNPKG

vibesec

Version:

Security scanner for AI-generated code - detects vulnerabilities in vibe-coded projects

22 lines 930 B
import { ErrorCategory } from '../error-reporter'; export interface SentryConfig { dsn: string; environment: 'development' | 'staging' | 'production'; tracesSampleRate?: number; profilesSampleRate?: number; release?: string; serverUrl?: string; } export declare class SentryIntegration { private initialized; init(config: SentryConfig): void; captureError(error: Error, category: ErrorCategory, context?: Record<string, unknown>): string; startSpan<T>(name: string, op: string, callback: () => Promise<T>): Promise<T>; addBreadcrumb(message: string, category: string, data?: Record<string, unknown>): void; setUser(userId: string, email?: string, username?: string): void; private getSentryLevel; close(timeout?: number): Promise<void>; } export declare const sentry: SentryIntegration; export declare function initSentryFromEnv(): void; //# sourceMappingURL=sentry.d.ts.map