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

Function writeFile

scripts/codex-compat.js:46–53  ·  view source on GitHub ↗
(filePath, content)

Source from the content-addressed store, hash-verified

44function canonicalPathIdentity(value) {
45 const resolved = path.resolve(value);
46 try {
47 return fs.realpathSync.native
48 ? fs.realpathSync.native(resolved)
49 : fs.realpathSync(resolved);
50 } catch (_error) {
51 return resolved;
52 }
53}
54
55const CITADEL_ROOT = path.resolve(__dirname, '..');
56const CLAUDE_PLUGIN_MCP_PATH = path.join(CITADEL_ROOT, '.claude-plugin', '.mcp.json');

Callers 8

generateConfigTomlFunction · 0.70
generatePluginMcpConfigFunction · 0.70
generatePluginManifestFunction · 0.70
generatePluginHooksFunction · 0.70
translateAgentsFunction · 0.70
syncProjectScriptsFunction · 0.70
generateOpenAIYamlFunction · 0.70
syncProjectGuidanceFunction · 0.70

Calls 1

ensureDirFunction · 0.70

Tested by

no test coverage detected