()
| 88 | * v1 hook format is structurally similar; the same gate works. |
| 89 | */ |
| 90 | function claudeSettings(): string { |
| 91 | const settings = { |
| 92 | hooks: { |
| 93 | PreToolUse: [ |
| 94 | { |
| 95 | matcher: "Write|Edit|MultiEdit", |
| 96 | hooks: [ |
| 97 | { |
| 98 | type: "command", |
| 99 | command: "bun tools/spec-loop/hooks/gate.ts" |
| 100 | } |
| 101 | ] |
| 102 | } |
| 103 | ] |
| 104 | } |
| 105 | }; |
| 106 | |
| 107 | return JSON.stringify(settings, null, 2) + "\n"; |
| 108 | } |
| 109 | |
| 110 | function cursorHooks(): string { |
| 111 | const hooks = { |
nothing calls this directly
no outgoing calls
no test coverage detected