MCPcopy Create free account
hub / github.com/SethGammon/Citadel / generateDelegate

Function generateDelegate

scripts/codex-compat.js:55–67  ·  view source on GitHub ↗
(scriptName)

Source from the content-addressed store, hash-verified

53
54// ---- Utility helpers --------------------------------------------------------
55
56function ensureDir(dir) {
57 if (!DRY_RUN && !fs.existsSync(dir)) {
58 fs.mkdirSync(dir, { recursive: true });
59 }
60}
61
62function writeFile(filePath, content) {
63 if (DRY_RUN) {
64 console.log(` [dry-run] Would write: ${filePath}`);
65 return;
66 }
67 ensureDir(path.dirname(filePath));
68 fs.writeFileSync(filePath, content, 'utf8');
69}
70

Callers 1

syncProjectScriptsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected