( repoPath: string, branch: string, )
| 169 | } |
| 170 | |
| 171 | export function generateTmuxSessionName( |
| 172 | repoPath: string, |
| 173 | branch: string, |
| 174 | ): string { |
| 175 | const repoName = basename(repoPath) |
| 176 | const combined = `${repoName}_${branch}` |
| 177 | return combined.replace(/[/.]/g, '_') |
| 178 | } |
| 179 | |
| 180 | type WorktreeCreateResult = |
| 181 | | { |