pm-orchestrator-enhancement
Version:
PM Orchestrator Enhancement - Multi-agent parallel execution system
62 lines • 1.69 kB
TypeScript
/**
* Pattern Detector Module
*
* ユーザー入力からタスクパターンを検出し、適切なワークフローを推奨します。
*/
import { WorkflowDefinition } from '../workflow/workflow-config';
export interface PatternMatch {
pattern: string;
confidence: number;
workflow?: WorkflowDefinition;
reasons: string[];
}
export interface DetectionResult {
matches: PatternMatch[];
recommendation?: WorkflowDefinition;
shouldUsePM: boolean;
}
export declare class PatternDetector {
private patterns;
constructor();
/**
* パターンの初期化
*/
private initializePatterns;
/**
* ユーザー入力からパターンを検出
*/
detect(userInput: string): DetectionResult;
/**
* マッチ理由を取得
*/
private getMatchReasons;
/**
* PM Orchestrator使用を推奨すべきか判定
*/
private shouldRecommendPM;
/**
* 推奨メッセージを生成
*/
generateRecommendation(result: DetectionResult): string;
/**
* カスタムパターンを追加
*/
addPattern(category: string, pattern: RegExp): void;
/**
* パターンカテゴリを削除
*/
removePattern(category: string): boolean;
/**
* 全パターンカテゴリを取得
*/
getAllPatterns(): Map<string, RegExp[]>;
/**
* 複雑度スコアを計算
*/
calculateComplexityScore(input: string, matches: PatternMatch[]): number;
/**
* 推奨されるサブエージェントを取得
*/
getRecommendedAgents(matches: PatternMatch[]): string[];
}
//# sourceMappingURL=pattern-detector.d.ts.map