vibe-coder-mcp
Version:
Production-ready MCP server with complete agent integration, multi-transport support, and comprehensive development automation tools for AI-assisted workflows.
51 lines • 2.39 kB
TypeScript
import { Intent, IntentPattern, ConfidenceLevel } from '../types/nl.js';
export type EntityExtractor = (text: string, match: RegExpMatchArray) => Record<string, unknown>;
export interface IntentMatch {
intent: Intent;
confidence: number;
confidenceLevel: ConfidenceLevel;
entities: Record<string, unknown>;
pattern: IntentPattern;
matchedText: string;
processingTime: number;
}
export interface PatternEngineConfig {
minConfidence: number;
maxPatternsPerIntent: number;
enableFuzzyMatching: boolean;
fuzzyThreshold: number;
}
export declare class EntityExtractors {
static projectName(text: string, _match: RegExpMatchArray): Record<string, unknown>;
static taskInfo(text: string, _match: RegExpMatchArray): Record<string, unknown>;
static epicInfo(text: string, _match: RegExpMatchArray): Record<string, unknown>;
static statusInfo(text: string, _match: RegExpMatchArray): Record<string, unknown>;
static agentInfo(text: string, _match: RegExpMatchArray): Record<string, unknown>;
static descriptionInfo(text: string, _match: RegExpMatchArray): Record<string, unknown>;
static searchInfo(text: string, _match: RegExpMatchArray): Record<string, unknown>;
static contentInfo(text: string, _match: RegExpMatchArray): Record<string, unknown>;
static artifactInfo(text: string, _match: RegExpMatchArray): Record<string, unknown>;
static general(text: string, _match: RegExpMatchArray): Record<string, unknown>;
}
export declare class IntentPatternEngine {
private patterns;
private config;
constructor(config?: Partial<PatternEngineConfig>);
private initializeDefaultPatterns;
addPattern(intent: Intent, pattern: IntentPattern): void;
removePattern(intent: Intent, patternId: string): boolean;
matchIntent(text: string): IntentMatch[];
private matchPattern;
private calculatePatternConfidence;
private extractEntities;
private getConfidenceLevel;
getTotalPatternCount(): number;
getPatternsForIntent(intent: Intent): IntentPattern[];
getSupportedIntents(): Intent[];
updateConfig(config: Partial<PatternEngineConfig>): void;
getConfig(): PatternEngineConfig;
clearPatterns(): void;
exportPatterns(): Record<string, IntentPattern[]>;
importPatterns(patterns: Record<string, IntentPattern[]>): void;
}
//# sourceMappingURL=patterns.d.ts.map