UNPKG

pm-orchestrator-enhancement

Version:

PM Orchestrator Enhancement - Multi-agent parallel execution system

61 lines 1.96 kB
"use strict"; /** * PM Orchestrator Enhancement - Rule Checker Subagent * * MUST Rules検証を実行します。 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.RuleChecker = void 0; class RuleChecker { constructor() { this.version = '1.0.0'; } /** * MUST Rulesを検証します * * @param taskType タスクタイプ * @param files 対象ファイル * @param operation 操作タイプ * @returns 検証結果 */ async check(taskType, _files, operation) { const violations = []; // Rule 4: Git操作前の確認 if (operation === 'git') { const gitViolations = this.checkGitRules(_files); violations.push(...gitViolations); } // Rule 17: Claude Code痕跡の確認 const traceViolations = this.checkTraceRules(_files); violations.push(...traceViolations); return { status: violations.length === 0 ? 'pass' : 'fail', violations, recommendations: violations.length > 0 ? ['Fix all critical violations before proceeding'] : [] }; } /** * Git操作のルールをチェック(プライベート) */ checkGitRules(_files) { const violations = []; // Rule 4: mainブランチへの直接変更禁止 // 実際の実装では、git branch --show-current で確認 // ここではモック実装 return violations; } /** * Claude Code痕跡のルールをチェック(プライベート) */ checkTraceRules(_files) { const violations = []; // Rule 17: コミット署名禁止 // 実際の実装では、git logやファイル内容をチェック // ここではモック実装 return violations; } } exports.RuleChecker = RuleChecker; //# sourceMappingURL=rule-checker.js.map