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
13 lines (11 loc) • 368 B
JavaScript
import fs from "fs";
const filePath = "./dist/index.js";
const shebang = "#!/usr/bin/env node\n";
let content = fs.readFileSync(filePath, "utf8");
if (!content.startsWith(shebang)) {
content = shebang + content;
fs.writeFileSync(filePath, content);
console.log("✅ Shebang added to dist/index.js");
} else {
console.log("ℹ️ Shebang already present.");
}