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

Function writeJson

scripts/live-github-steward-proof.js:84–86  ·  view source on GitHub ↗
(filePath, value)

Source from the content-addressed store, hash-verified

82}
83
84function writeJson(filePath, value) {
85 writeFile(filePath, `${JSON.stringify(value, null, 2)}\n`);
86}
87
88function extractStewardScript(agentsMd) {
89 const match = agentsMd.match(/<!-- BEGIN_STEWARD_SCRIPT -->\s*```js\n([\s\S]*?)\n```\s*<!-- END_STEWARD_SCRIPT -->/);

Callers 1

createAgentPrFunction · 0.70

Calls 1

writeFileFunction · 0.70

Tested by

no test coverage detected