UNPKG

mcp-adr-analysis-server

Version:

MCP server for analyzing Architectural Decision Records and project architecture

61 lines 2 kB
/** * Enhanced sensitive content detector for smart git push * * Integrates with existing content-masking-tool.ts and adds git-specific patterns */ export interface SensitivePattern { name: string; pattern: RegExp; description: string; category: 'credentials' | 'secrets' | 'personal' | 'infrastructure' | 'development'; severity: 'critical' | 'high' | 'medium' | 'low'; falsePositivePatterns?: RegExp[]; contextRequired?: boolean; } export interface SensitiveMatch { pattern: SensitivePattern; match: string; line: number; column: number; context: string; confidence: number; suggestions: string[]; } export interface SensitiveContentResult { filePath: string; hasIssues: boolean; matches: SensitiveMatch[]; summary: { criticalCount: number; highCount: number; mediumCount: number; lowCount: number; totalCount: number; }; recommendations: string[]; } /** * Enhanced sensitive patterns for git context */ export declare const GIT_SENSITIVE_PATTERNS: SensitivePattern[]; /** * Analyze content for sensitive information */ export declare function analyzeSensitiveContent(filePath: string, content: string, customPatterns?: SensitivePattern[]): Promise<SensitiveContentResult>; /** * Integration with existing content masking tool */ export declare function integrateWithContentMasking(filePath: string, content: string): Promise<{ sensitiveAnalysis: SensitiveContentResult; maskingPrompt?: string; combinedRecommendations: string[]; }>; /** * Quick check for obviously sensitive files */ export declare function isObviouslySensitive(filePath: string): boolean; /** * Create a custom sensitive pattern */ export declare function createSensitivePattern(name: string, pattern: string, description: string, category: SensitivePattern['category'], severity: SensitivePattern['severity']): SensitivePattern; //# sourceMappingURL=enhanced-sensitive-detector.d.ts.map