UNPKG

github-mcp-auto-git

Version:

GitHub MCP Auto Git v3.0 - メモリ効率化・統合MCP・モジュール化完了の完全自動Git操作システム

79 lines 2.15 kB
/** * Fail Fast Checker * エラーハンドリング、早期バリデーション、異常状態検出 */ import { ValidationResult, AnomalyReport, CoverageReport, BoundaryReport, ConstitutionalViolation, SystemState } from '../../types/constitutional-ai.js'; export interface FailFastConfig { enabled: boolean; strictness: 'low' | 'medium' | 'high'; autoFix: boolean; } export interface FailFastResult { score: number; violations: ConstitutionalViolation[]; recommendations: string[]; details: { validation: ValidationResult; anomalies: AnomalyReport; coverage: CoverageReport; boundaries: BoundaryReport; }; } export declare class FailFastChecker { private workingDir; private config; constructor(workingDir: string, config: FailFastConfig); /** * Fail Fast原則の包括的チェック */ performFullCheck(context?: { files?: string[]; operation?: string; metadata?: Record<string, any>; }): Promise<FailFastResult>; /** * 早期バリデーション */ validateEarly(operation: string, input: any): Promise<ValidationResult>; /** * 異常状態検出 */ detectAnomalies(systemState: SystemState): Promise<AnomalyReport>; /** * エラーハンドリング完全性の検証 */ verifyErrorHandling(files: string[]): Promise<CoverageReport>; /** * セキュリティ境界の検証 */ validateSecurityBoundaries(): Promise<BoundaryReport>; /** * Fail Fastスコア計算 */ private calculateFailFastScore; /** * 結果分析と違反抽出 */ private analyzeResults; /** * 推奨事項生成 */ private generateRecommendations; /** * システム状態取得 */ private getSystemState; /** * 設定更新 */ updateConfig(newConfig: Partial<FailFastConfig>): void; /** * 無効時の結果 */ private getDisabledResult; /** * エラー時の結果 */ private getErrorResult; } //# sourceMappingURL=fail-fast-checker.d.ts.map