UNPKG

prompt-plus-plus-mcp

Version:

Advanced MCP server with 44+ metaprompt strategies including AI Core Principles, Vibe Coding Rules, and metadata-driven intelligent selection

35 lines 1.31 kB
import { StrategySelector } from './strategy-selector.js'; import { logger } from './logger.js'; export class PromptRefiner { strategyManager; strategySelector; constructor(strategyManager) { this.strategyManager = strategyManager; this.strategySelector = new StrategySelector(); } // Keep minimal interface for backward compatibility and metrics getPerformanceMetrics() { return this.strategySelector.getPerformanceMetrics(); } resetMetrics() { this.strategySelector.resetMetrics(); } // Deprecated: This method is no longer used since LLM makes all decisions // Kept for backward compatibility only autoSelectStrategy(prompt) { logger.warn('autoSelectStrategy is deprecated - LLM now makes all strategy decisions'); return { user_query: prompt, recommended_strategy: "done", strategy_name: "Done Prompt", reason: "LLM-driven selection now used instead of hardcoded logic", alternative: "star", alternative_name: "ECHO Prompt", prompt_characteristics: { word_count: prompt.split(/\s+/).length, detected_type: "general" } }; } } //# sourceMappingURL=prompt-refiner.js.map