(source: string, destination: string)
| 69 | } |
| 70 | |
| 71 | function copyIfMissing(source: string, destination: string): "wrote" | "skipped" { |
| 72 | if (existsSync(destination) && !FORCE) { |
| 73 | return "skipped"; |
| 74 | } |
| 75 | ensureDir(dirname(destination)); |
| 76 | copyFileSync(source, destination); |
| 77 | |
| 78 | return "wrote"; |
| 79 | } |
| 80 | |
| 81 | /* |
| 82 | * Hook payloads for Claude Code (settings.json) and Cursor |
nothing calls this directly
no test coverage detected