intertools
Version:
🚀 Professional development assistant with Backend Engineer Mode. Auto-starts with full functionality, no prompts, iterative problem solving. Features: AI chat orchestrator, terminal monitoring, file analysis, error correction, performance optimization. C
234 lines • 5.49 kB
TypeScript
export interface ProductionData {
url: string;
errors: ProductionError[];
analytics: AnalyticsData;
performance: ProductionPerformance;
uptime: number;
security: SecurityInfo;
seo: SEOInfo;
accessibility: AccessibilityInfo;
}
export interface ProductionError {
type: 'javascript' | 'network' | 'server' | 'security' | 'performance';
message: string;
source?: string;
timestamp: Date;
severity: 'low' | 'medium' | 'high' | 'critical';
affectedUsers?: number;
stack?: string;
userAgent?: string;
location?: string;
}
export interface AnalyticsData {
pageViews: number;
uniqueUsers: number;
bounceRate: number;
conversionRate: number;
sessionDuration: number;
topPages: PageInfo[];
userBehavior: UserBehaviorEvent[];
trafficSources: TrafficSource[];
deviceBreakdown: DeviceInfo[];
geographicData: GeographicInfo[];
}
export interface PageInfo {
path: string;
views: number;
uniqueViews: number;
averageTime: number;
bounceRate: number;
}
export interface UserBehaviorEvent {
event: string;
page: string;
timestamp: Date;
userId?: string;
sessionId: string;
properties?: Record<string, any>;
}
export interface TrafficSource {
source: string;
medium: string;
users: number;
sessions: number;
conversionRate: number;
}
export interface DeviceInfo {
category: 'desktop' | 'mobile' | 'tablet';
users: number;
percentage: number;
browsers: BrowserInfo[];
}
export interface BrowserInfo {
name: string;
version: string;
users: number;
percentage: number;
}
export interface GeographicInfo {
country: string;
users: number;
sessions: number;
bounceRate: number;
}
export interface ProductionPerformance {
responseTime: number;
throughput: number;
errorRate: number;
availability: number;
memoryUsage: number;
cpuUsage: number;
diskUsage: number;
networkLatency: number;
cacheHitRate: number;
databaseResponseTime: number;
webVitals: WebVitals;
}
export interface WebVitals {
lcp: number;
fid: number;
cls: number;
fcp: number;
ttfb: number;
}
export interface SecurityInfo {
sslCertificate: {
valid: boolean;
expiresAt: Date;
issuer: string;
};
securityHeaders: Record<string, boolean>;
vulnerabilities: SecurityVulnerability[];
malwareDetected: boolean;
blacklistStatus: boolean;
}
export interface SecurityVulnerability {
type: string;
severity: 'low' | 'medium' | 'high' | 'critical';
description: string;
cve?: string;
fixRecommendation: string;
}
export interface SEOInfo {
title: string;
description: string;
keywords: string[];
headings: HeadingInfo[];
images: SEOImageInfo;
links: SEOLinkInfo;
structuredData: boolean;
mobileOptimized: boolean;
pageSpeed: number;
issues: SEOIssue[];
}
export interface HeadingInfo {
level: number;
text: string;
count: number;
}
export interface SEOImageInfo {
total: number;
withAlt: number;
withoutAlt: number;
oversized: number;
}
export interface SEOLinkInfo {
internal: number;
external: number;
broken: number;
}
export interface SEOIssue {
type: string;
severity: 'low' | 'medium' | 'high';
description: string;
recommendation: string;
}
export interface AccessibilityInfo {
score: number;
issues: AccessibilityIssue[];
wcagCompliance: {
level: 'A' | 'AA' | 'AAA' | 'none';
violations: number;
};
screenReaderCompatible: boolean;
keyboardNavigable: boolean;
colorContrast: {
passed: number;
failed: number;
};
}
export interface AccessibilityIssue {
type: string;
severity: 'low' | 'medium' | 'high' | 'critical';
description: string;
element?: string;
recommendation: string;
}
export declare class ProductionMonitor {
private monitoredSites;
private monitoringIntervals;
constructor();
/**
* Start monitoring a production site
*/
startMonitoring(url: string, interval?: number): Promise<void>;
/**
* Stop monitoring a site
*/
stopMonitoring(url: string): void;
/**
* Get production data for a site
*/
getProductionData(url: string): ProductionData | null;
/**
* Monitor production site
*/
monitorProductionSite(url: string): Promise<ProductionData>;
/**
* Capture production data
*/
private captureProductionData;
/**
* Capture production errors
*/
private captureProductionErrors;
/**
* Capture analytics data
*/
private captureAnalytics;
/**
* Measure production performance
*/
private measureProductionPerformance;
/**
* Measure uptime
*/
private measureUptime;
/**
* Analyze security
*/
private analyzeSecurity;
/**
* Analyze SEO
*/
private analyzeSEO;
/**
* Analyze accessibility
*/
private analyzeAccessibility;
/**
* Get simulated production data
*/
private getSimulatedProductionData;
/**
* Get monitoring statistics
*/
getStats(): {
monitoredSites: number;
totalErrors: number;
averageUptime: number;
criticalIssues: number;
performanceScore: number;
};
}
//# sourceMappingURL=production-monitor.d.ts.map