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

Function recountHookScripts

scripts/test-doc-surfaces.js:53–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53function recountHookScripts() {
54 const excluded = new Set(['smoke-test.js', 'harness-health-util.js']);
55 let count = 0;
56 for (const name of fs.readdirSync(path.join(projectRoot, 'hooks_src'))) {
57 if (name.endsWith('.js') && !excluded.has(name)) count += 1;
58 }
59 return count;
60}
61
62function recountHookEvents() {
63 const raw = fs.readFileSync(path.join(projectRoot, 'hooks', 'hooks-template.json'), 'utf8');

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected