()
| 51 | } |
| 52 | |
| 53 | function 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 | |
| 62 | function recountHookEvents() { |
| 63 | const raw = fs.readFileSync(path.join(projectRoot, 'hooks', 'hooks-template.json'), 'utf8'); |