UNPKG

github-mcp-auto-git

Version:

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

91 lines 2.56 kB
/** * Be Lazy Checker * 効率性確認、重複排除、自動化機会検出 */ import { PerformanceReport, DuplicationReport, AutomationReport, CacheEfficiencyReport, ResourceOptimizationReport, ConstitutionalViolation } from '../../types/constitutional-ai.js'; export interface BeLazyConfig { enabled: boolean; performanceThreshold: number; duplicateThreshold: number; autoOptimize: boolean; } export interface BeLazyResult { score: number; violations: ConstitutionalViolation[]; recommendations: string[]; details: { performance: PerformanceReport; duplication: DuplicationReport; automation: AutomationReport; cache: CacheEfficiencyReport; resource: ResourceOptimizationReport; }; } export declare class BeLazyChecker { private workingDir; private config; private performanceHistory; private operationPatterns; constructor(workingDir: string, config: BeLazyConfig); /** * Be Lazy原則の効率性監査 */ performEfficiencyAudit(context?: { files?: string[]; operation?: string; metadata?: Record<string, any>; }): Promise<BeLazyResult>; /** * パフォーマンス分析 */ analyzePerformance(operation: string): Promise<PerformanceReport>; /** * 重複操作検出 */ detectDuplicateOperations(files: string[]): Promise<DuplicationReport>; /** * 自動化機会の特定 */ identifyAutomationOpportunities(context?: any): Promise<AutomationReport>; /** * キャッシュ効率性評価 */ evaluateCaching(): Promise<CacheEfficiencyReport>; /** * リソース使用量最適化 */ optimizeResourceUsage(): Promise<ResourceOptimizationReport>; /** * 効率性スコア計算 */ private calculateEfficiencyScore; /** * 効率性結果分析 */ private analyzeEfficiencyResults; /** * 効率性推奨事項生成 */ private generateEfficiencyRecommendations; /** * 操作パターン記録 */ recordOperation(operation: string): void; /** * パフォーマンス記録 */ recordPerformance(operation: string, executionTime: number): void; /** * 設定更新 */ updateConfig(newConfig: Partial<BeLazyConfig>): void; /** * 無効時の結果 */ private getDisabledResult; /** * エラー時の結果 */ private getErrorResult; } //# sourceMappingURL=be-lazy-checker.d.ts.map