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

Function readJSON

scripts/codex-compat.js:69–75  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

67 ensureDir(path.dirname(targetPath));
68 fs.copyFileSync(sourcePath, targetPath);
69}
70
71function generateDelegate(scriptName) {
72 return (
73 "#!/usr/bin/env node\n" +
74 "'use strict';\n" +
75 "const { spawnSync } = require('child_process');\n" +
76 "const fs = require('fs');\n" +
77 "const path = require('path');\n" +
78 "const pluginRoot = fs.readFileSync(path.join(__dirname, '..', 'plugin-root.txt'), 'utf8').trim();\n" +

Callers 3

generateConfigTomlFunction · 0.85
generatePluginManifestFunction · 0.85
generatePluginHooksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected