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

Function extractStewardScript

scripts/live-github-steward-proof.js:88–92  ·  view source on GitHub ↗
(agentsMd)

Source from the content-addressed store, hash-verified

86}
87
88function extractStewardScript(agentsMd) {
89 const match = agentsMd.match(/<!-- BEGIN_STEWARD_SCRIPT -->\s*```js\n([\s\S]*?)\n```\s*<!-- END_STEWARD_SCRIPT -->/);
90 assert(match, 'standalone AGENTS.md must contain steward script block');
91 return match[1];
92}
93
94function sleep(ms) {
95 return new Promise((resolve) => setTimeout(resolve, ms));

Callers 1

setupInitialRepoFunction · 0.70

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected