* Gets the current branch name
()
| 285 | * Gets the current branch name |
| 286 | */ |
| 287 | async function getCurrentBranch(): Promise<string> { |
| 288 | const { |
| 289 | stdout: currentBranch |
| 290 | } = await execFileNoThrow(gitExe(), ['branch', '--show-current']); |
| 291 | return currentBranch.trim(); |
| 292 | } |
| 293 | |
| 294 | /** |
| 295 | * Processes messages for teleport resume, removing incomplete tool_use blocks |
no test coverage detected