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
22 lines • 867 B
JavaScript
/**
* 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";
/**
* Get the complete prompt for initProjectRules
* @param params prompt parameters (optional)
* @returns the generated prompt
*/
export function getInitProjectRulesPrompt(params) {
// 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");
}
//# sourceMappingURL=initProjectRules.js.map