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