(cwd: string, targetPath: string)
| 128 | |
| 129 | /** Remove a link by its resolved path. */ |
| 130 | export function removeLink(cwd: string, targetPath: string): void { |
| 131 | const links = loadLinks(cwd).filter((l) => l.path !== targetPath) |
| 132 | saveLinks(cwd, links) |
| 133 | } |
| 134 | |
| 135 | /** First AGENTS.md found inside a linked repo, or undefined. */ |
| 136 | function readLinkedAgents(repo: string): string | undefined { |