UNPKG

mcp-chain-of-thought

Version:

Chain of Thought is a tool built for AI Agents, emphasizing chain-of-thought, reflection, and style consistency. It converts natural language into structured dev tasks with dependency tracking and iterative refinement, enabling agent-like developer behavi

37 lines (33 loc) 1.04 kB
/** * initProjectRules prompt generator * Responsible for combining templates and parameters into the final prompt */ import { loadPrompt, generatePrompt, loadPromptFromTemplate, } from "../loader.js"; import { getRulesFilePath } from "../../utils/pathUtils.js"; /** * initProjectRules prompt parameter interface */ export interface InitProjectRulesPromptParams { // No additional parameters currently, can be extended as needed in the future } /** * Get the complete prompt for initProjectRules * @param params prompt parameters (optional) * @returns the generated prompt */ export function getInitProjectRulesPrompt( params?: InitProjectRulesPromptParams ): string { // Use basic template const rulesPath = getRulesFilePath(); const indexTemplate = loadPromptFromTemplate("initProjectRules/index.md"); const basePrompt = generatePrompt(indexTemplate, { rulesPath, }); // Load possible custom prompt (override or append via environment variables) return loadPrompt(basePrompt, "INIT_PROJECT_RULES"); }