()
| 108 | } |
| 109 | |
| 110 | function cursorHooks(): string { |
| 111 | const hooks = { |
| 112 | version: 1, |
| 113 | hooks: { |
| 114 | preToolUse: [ |
| 115 | { |
| 116 | matcher: "Write|Edit|MultiEdit", |
| 117 | command: "bun tools/spec-loop/hooks/gate.ts" |
| 118 | } |
| 119 | ] |
| 120 | } |
| 121 | }; |
| 122 | |
| 123 | return JSON.stringify(hooks, null, 2) + "\n"; |
| 124 | } |
| 125 | |
| 126 | /* |
| 127 | * Merge Claude Code's settings.json instead of clobbering: a forker may |
nothing calls this directly
no outgoing calls
no test coverage detected