| 1 | import * as Fs from "node:fs" |
| 2 | |
| 3 | const source = ".agents/AGENTS.md" |
| 4 | const target = "AGENTS.md" |
| 5 | |
| 6 | try { |
| 7 | Fs.lstatSync(target) |
| 8 | } catch (error) { |
| 9 | if (error?.code !== "ENOENT") { |
| 10 | throw error |
| 11 | } |
| 12 | Fs.symlinkSync(source, target) |
| 13 | } |